levent/agileista

View on GitHub
app/assets/javascripts/d3.v3/d3.v3.js

Summary

Maintainability
F
3 mos
Test Coverage

File d3.v3.js has 9264 lines of code (exceeds 250 allowed). Consider refactoring.
Open

!function() {
  var d3 = {
    version: "3.4.1"
  };
  if (!Date.now) Date.now = function() {
Severity: Major
Found in app/assets/javascripts/d3.v3/d3.v3.js - About 3 wks to fix

    Function brush has 277 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      d3.svg.brush = function() {
        var event = d3_eventDispatch(brush, "brushstart", "brush", "brushend"), x = null, y = null, xExtent = [ 0, 0 ], yExtent = [ 0, 0 ], xExtentDomain, yExtentDomain, xClamp = true, yClamp = true, resizes = d3_svg_brushResizes[0];
        function brush(g) {
          g.each(function() {
            var g = d3.select(this).style("pointer-events", "all").style("-webkit-tap-highlight-color", "rgba(0,0,0,0)").on("mousedown.brush", brushstart).on("touchstart.brush", brushstart);
    Severity: Major
    Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 day to fix

      Function zoom has 248 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        d3.behavior.zoom = function() {
          var view = {
            x: 0,
            y: 0,
            k: 1
      Severity: Major
      Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 day to fix

        Function d3_locale_timeFormat has 213 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          function d3_locale_timeFormat(locale) {
            var locale_dateTime = locale.dateTime, locale_date = locale.date, locale_time = locale.time, locale_periods = locale.periods, locale_days = locale.days, locale_shortDays = locale.shortDays, locale_months = locale.months, locale_shortMonths = locale.shortMonths;
            function d3_time_format(template) {
              var n = template.length;
              function format(date) {
        Severity: Major
        Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 day to fix

          Function force has 207 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            d3.layout.force = function() {
              var force = {}, event = d3.dispatch("start", "tick", "end"), size = [ 1, 1 ], drag, alpha, friction = .9, linkDistance = d3_layout_forceLinkDistance, linkStrength = d3_layout_forceLinkStrength, charge = -30, chargeDistance2 = d3_layout_forceChargeDistance2, gravity = .1, theta2 = .64, nodes = [], links = [], distances, strengths, charges;
              function repulse(node) {
                return function(quad, x1, _, x2) {
                  if (quad.point !== node) {
          Severity: Major
          Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 day to fix

            Function treemap has 146 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              d3.layout.treemap = function() {
                var hierarchy = d3.layout.hierarchy(), round = Math.round, size = [ 1, 1 ], padding = null, pad = d3_layout_treemapPadNull, sticky = false, stickies, mode = "squarify", ratio = .5 * (1 + Math.sqrt(5));
                function scale(children, k) {
                  var i = -1, n = children.length, child, area;
                  while (++i < n) {
            Severity: Major
            Found in app/assets/javascripts/d3.v3/d3.v3.js - About 5 hrs to fix

              Function d3_geo_clipExtent has 132 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                function d3_geo_clipExtent(x0, y0, x1, y1) {
                  return function(listener) {
                    var listener_ = listener, bufferListener = d3_geo_clipBufferListener(), clipLine = d3_geom_clipLine(x0, y0, x1, y1), segments, polygon, ring;
                    var clip = {
                      point: point,
              Severity: Major
              Found in app/assets/javascripts/d3.v3/d3.v3.js - About 5 hrs to fix

                Function bounds has 126 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                  d3.geo.bounds = function() {
                    var λ0, φ0, λ1, φ1, λ_, λ__, φ__, p0, dλSum, ranges, range;
                    var bound = {
                      point: point,
                      lineStart: lineStart,
                Severity: Major
                Found in app/assets/javascripts/d3.v3/d3.v3.js - About 5 hrs to fix

                  Function axis has 122 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                    d3.svg.axis = function() {
                      var scale = d3.scale.linear(), orient = d3_svg_axisDefaultOrient, innerTickSize = 6, outerTickSize = 6, tickPadding = 3, tickArguments_ = [ 10 ], tickValues = null, tickFormat_;
                      function axis(g) {
                        g.each(function() {
                          var g = d3.select(this);
                  Severity: Major
                  Found in app/assets/javascripts/d3.v3/d3.v3.js - About 4 hrs to fix

                    Function chord has 111 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      d3.layout.chord = function() {
                        var chord = {}, chords, groups, matrix, n, padding = 0, sortGroups, sortSubgroups, sortChords;
                        function relayout() {
                          var subgroups = {}, groupSums = [], groupIndex = d3.range(n), subgroupIndex = [], k, x, x0, i, j;
                          chords = [];
                    Severity: Major
                    Found in app/assets/javascripts/d3.v3/d3.v3.js - About 4 hrs to fix

                      Function tree has 108 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                        d3.layout.tree = function() {
                          var hierarchy = d3.layout.hierarchy().sort(null).value(null), separation = d3_layout_treeSeparation, size = [ 1, 1 ], nodeSize = false;
                          function tree(d, i) {
                            var nodes = hierarchy.call(this, d, i), root = nodes[0];
                            function firstWalk(node, previousSibling) {
                      Severity: Major
                      Found in app/assets/javascripts/d3.v3/d3.v3.js - About 4 hrs to fix

                        Function brushstart has 106 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            function brushstart() {
                              var target = this, eventTarget = d3.select(d3.event.target), event_ = event.of(target, arguments), g = d3.select(target), resizing = eventTarget.datum(), resizingX = !/^(n|s)$/.test(resizing) && x, resizingY = !/^(e|w)$/.test(resizing) && y, dragging = eventTarget.classed("extent"), dragRestore = d3_event_dragSuppress(), center, origin = d3.mouse(target), offset;
                              var w = d3.select(d3_window).on("keydown.brush", keydown).on("keyup.brush", keyup);
                              if (d3.event.changedTouches) {
                                w.on("touchmove.brush", brushmove).on("touchend.brush", brushend);
                        Severity: Major
                        Found in app/assets/javascripts/d3.v3/d3.v3.js - About 4 hrs to fix

                          Function quadtree has 102 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                            d3.geom.quadtree = function(points, x1, y1, x2, y2) {
                              var x = d3_geom_pointX, y = d3_geom_pointY, compat;
                              if (compat = arguments.length) {
                                x = d3_geom_quadtreeCompatX;
                                y = d3_geom_quadtreeCompatY;
                          Severity: Major
                          Found in app/assets/javascripts/d3.v3/d3.v3.js - About 4 hrs to fix

                            Function dsv has 100 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                              d3.dsv = function(delimiter, mimeType) {
                                var reFormat = new RegExp('["' + delimiter + "\n]"), delimiterCode = delimiter.charCodeAt(0);
                                function dsv(url, row, callback) {
                                  if (arguments.length < 3) callback = row, row = null;
                                  var xhr = d3_xhr(url, mimeType, row == null ? response : typedResponse(row), callback);
                            Severity: Major
                            Found in app/assets/javascripts/d3.v3/d3.v3.js - About 4 hrs to fix

                              Function d3_geo_clipCircle has 94 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                function d3_geo_clipCircle(radius) {
                                  var cr = Math.cos(radius), smallRadius = cr > 0, notHemisphere = abs(cr) > ε, interpolate = d3_geo_circleInterpolate(radius, 6 * d3_radians);
                                  return d3_geo_clip(visible, clipLine, interpolate, smallRadius ? [ 0, -radius ] : [ -π, radius - π ]);
                                  function visible(λ, φ) {
                                    return Math.cos(λ) * Math.cos(φ) > cr;
                              Severity: Major
                              Found in app/assets/javascripts/d3.v3/d3.v3.js - About 3 hrs to fix

                                Function tree has 89 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    function tree(d, i) {
                                      var nodes = hierarchy.call(this, d, i), root = nodes[0];
                                      function firstWalk(node, previousSibling) {
                                        var children = node.children, layout = node._tree;
                                        if (children && (n = children.length)) {
                                Severity: Major
                                Found in app/assets/javascripts/d3.v3/d3.v3.js - About 3 hrs to fix

                                  Function remove has 87 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      remove: function(node) {
                                        if (node.N) node.N.P = node.P;
                                        if (node.P) node.P.N = node.N;
                                        node.N = node.P = null;
                                        var parent = node.U, sibling, left = node.L, right = node.R, next, red;
                                  Severity: Major
                                  Found in app/assets/javascripts/d3.v3/d3.v3.js - About 3 hrs to fix

                                    Function d3_geo_clip has 86 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                      function d3_geo_clip(pointVisible, clipLine, interpolate, clipStart) {
                                        return function(rotate, listener) {
                                          var line = clipLine(listener), rotatedClipStart = rotate.invert(clipStart[0], clipStart[1]);
                                          var clip = {
                                            point: point,
                                    Severity: Major
                                    Found in app/assets/javascripts/d3.v3/d3.v3.js - About 3 hrs to fix

                                      Function data has 80 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                        d3_selectionPrototype.data = function(value, key) {
                                          var i = -1, n = this.length, group, node;
                                          if (!arguments.length) {
                                            value = new Array(n = (group = this[0]).length);
                                            while (++i < n) {
                                      Severity: Major
                                      Found in app/assets/javascripts/d3.v3/d3.v3.js - About 3 hrs to fix

                                        Function albersUsa has 76 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                          d3.geo.albersUsa = function() {
                                            var lower48 = d3.geo.albers();
                                            var alaska = d3.geo.conicEqualArea().rotate([ 154, 0 ]).center([ -2, 58.5 ]).parallels([ 55, 65 ]);
                                            var hawaii = d3.geo.conicEqualArea().rotate([ 157, 0 ]).center([ -3, 19.9 ]).parallels([ 8, 18 ]);
                                            var point, pointStream = {
                                        Severity: Major
                                        Found in app/assets/javascripts/d3.v3/d3.v3.js - About 3 hrs to fix

                                          Function d3_geo_resample has 76 lines of code (exceeds 25 allowed). Consider refactoring.
                                          Open

                                            function d3_geo_resample(project) {
                                              var δ2 = .5, cosMinDistance = Math.cos(30 * d3_radians), maxDepth = 16;
                                              function resample(stream) {
                                                return (maxDepth ? resampleRecursive : resampleNone)(stream);
                                              }
                                          Severity: Major
                                          Found in app/assets/javascripts/d3.v3/d3.v3.js - About 3 hrs to fix

                                            Function d3_scale_ordinal has 74 lines of code (exceeds 25 allowed). Consider refactoring.
                                            Open

                                              function d3_scale_ordinal(domain, ranger) {
                                                var index, range, rangeBand;
                                                function scale(x) {
                                                  return range[((index.get(x) || ranger.t === "range" && index.set(x, domain.push(x))) - 1) % range.length];
                                                }
                                            Severity: Major
                                            Found in app/assets/javascripts/d3.v3/d3.v3.js - About 2 hrs to fix

                                              Function d3_locale_numberFormat has 73 lines of code (exceeds 25 allowed). Consider refactoring.
                                              Open

                                                function d3_locale_numberFormat(locale) {
                                                  var locale_decimal = locale.decimal, locale_thousands = locale.thousands, locale_grouping = locale.grouping, locale_currency = locale.currency, formatGroup = locale_grouping ? function(value) {
                                                    var i = value.length, t = [], j = 0, g = locale_grouping[0];
                                                    while (i > 0 && g > 0) {
                                                      t.push(value.substring(i -= g, i + g));
                                              Severity: Major
                                              Found in app/assets/javascripts/d3.v3/d3.v3.js - About 2 hrs to fix

                                                Function graticule has 72 lines of code (exceeds 25 allowed). Consider refactoring.
                                                Open

                                                  d3.geo.graticule = function() {
                                                    var x1, x0, X1, X0, y1, y0, Y1, Y0, dx = 10, dy = dx, DX = 90, DY = 360, x, y, X, Y, precision = 2.5;
                                                    function graticule() {
                                                      return {
                                                        type: "MultiLineString",
                                                Severity: Major
                                                Found in app/assets/javascripts/d3.v3/d3.v3.js - About 2 hrs to fix

                                                  Function d3_xhr has 72 lines of code (exceeds 25 allowed). Consider refactoring.
                                                  Open

                                                    function d3_xhr(url, mimeType, response, callback) {
                                                      var xhr = {}, dispatch = d3.dispatch("beforesend", "progress", "load", "error"), headers = {}, request = new XMLHttpRequest(), responseType = null;
                                                      if (d3_window.XDomainRequest && !("withCredentials" in request) && /^(http(s)?:)?\/\//.test(url)) request = new XDomainRequest();
                                                      "onload" in request ? request.onload = request.onerror = respond : request.onreadystatechange = function() {
                                                        request.readyState > 3 && respond();
                                                  Severity: Major
                                                  Found in app/assets/javascripts/d3.v3/d3.v3.js - About 2 hrs to fix

                                                    Function d3_geom_voronoiConnectEdge has 72 lines of code (exceeds 25 allowed). Consider refactoring.
                                                    Open

                                                      function d3_geom_voronoiConnectEdge(edge, extent) {
                                                        var vb = edge.b;
                                                        if (vb) return true;
                                                        var va = edge.a, x0 = extent[0][0], x1 = extent[1][0], y0 = extent[0][1], y1 = extent[1][1], lSite = edge.l, rSite = edge.r, lx = lSite.x, ly = lSite.y, rx = rSite.x, ry = rSite.y, fx = (lx + rx) / 2, fy = (ly + ry) / 2, fm, fb;
                                                        if (ry === ly) {
                                                    Severity: Major
                                                    Found in app/assets/javascripts/d3.v3/d3.v3.js - About 2 hrs to fix

                                                      Function d3_svg_area has 71 lines of code (exceeds 25 allowed). Consider refactoring.
                                                      Open

                                                        function d3_svg_area(projection) {
                                                          var x0 = d3_geom_pointX, x1 = d3_geom_pointX, y0 = 0, y1 = d3_geom_pointY, defined = d3_true, interpolate = d3_svg_lineLinear, interpolateKey = interpolate.key, interpolateReverse = interpolate, L = "L", tension = .7;
                                                          function area(data) {
                                                            var segments = [], points0 = [], points1 = [], i = -1, n = data.length, d, fx0 = d3_functor(x0), fy0 = d3_functor(y0), fx1 = x0 === x1 ? function() {
                                                              return x;
                                                      Severity: Major
                                                      Found in app/assets/javascripts/d3.v3/d3.v3.js - About 2 hrs to fix

                                                        Function quadtree has 71 lines of code (exceeds 25 allowed). Consider refactoring.
                                                        Open

                                                            function quadtree(data) {
                                                              var d, fx = d3_functor(x), fy = d3_functor(y), xs, ys, i, n, x1_, y1_, x2_, y2_;
                                                              if (x1 != null) {
                                                                x1_ = x1, y1_ = y1, x2_ = x2, y2_ = y2;
                                                              } else {
                                                        Severity: Major
                                                        Found in app/assets/javascripts/d3.v3/d3.v3.js - About 2 hrs to fix

                                                          Function d3_geo_projectionMutator has 70 lines of code (exceeds 25 allowed). Consider refactoring.
                                                          Open

                                                            function d3_geo_projectionMutator(projectAt) {
                                                              var project, rotate, projectRotate, projectResample = d3_geo_resample(function(x, y) {
                                                                x = project(x, y);
                                                                return [ x[0] * k + δx, δy - x[1] * k ];
                                                              }), k = 150, x = 480, y = 250, λ = 0, φ = 0, δλ = 0, δφ = 0, δγ = 0, δx, δy, preclip = d3_geo_clipAntimeridian, postclip = d3_identity, clipAngle = null, clipExtent = null, stream;
                                                          Severity: Major
                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js - About 2 hrs to fix

                                                            Function axis has 68 lines of code (exceeds 25 allowed). Consider refactoring.
                                                            Open

                                                                function axis(g) {
                                                                  g.each(function() {
                                                                    var g = d3.select(this);
                                                                    var scale0 = this.__chart__ || scale, scale1 = this.__chart__ = scale.copy();
                                                                    var ticks = tickValues == null ? scale1.ticks ? scale1.ticks.apply(scale1, tickArguments_) : scale1.domain() : tickValues, tickFormat = tickFormat_ == null ? scale1.tickFormat ? scale1.tickFormat.apply(scale1, tickArguments_) : d3_identity : tickFormat_, tick = g.selectAll(".tick").data(ticks, scale1), tickEnter = tick.enter().insert("g", ".domain").attr("class", "tick").style("opacity", ε), tickExit = d3.transition(tick.exit()).style("opacity", ε).remove(), tickUpdate = d3.transition(tick).style("opacity", 1), tickTransform;
                                                            Severity: Major
                                                            Found in app/assets/javascripts/d3.v3/d3.v3.js - About 2 hrs to fix

                                                              Function insert has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                                                              Open

                                                                  insert: function(after, node) {
                                                                    var parent, grandpa, uncle;
                                                                    if (after) {
                                                                      node.P = after;
                                                                      node.N = after.N;
                                                              Severity: Major
                                                              Found in app/assets/javascripts/d3.v3/d3.v3.js - About 2 hrs to fix

                                                                Function touchstarted has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                Open

                                                                    function touchstarted() {
                                                                      var target = this, event_ = event.of(target, arguments), locations0 = {}, distance0 = 0, scale0, eventId = d3.event.changedTouches[0].identifier, touchmove = "touchmove.zoom-" + eventId, touchend = "touchend.zoom-" + eventId, w = d3.select(d3_window).on(touchmove, moved).on(touchend, ended), t = d3.select(target).on(mousedown, null).on(touchstart, started), dragRestore = d3_event_dragSuppress();
                                                                      d3_selection_interrupt.call(target);
                                                                      started();
                                                                      zoomstarted(event_);
                                                                Severity: Major
                                                                Found in app/assets/javascripts/d3.v3/d3.v3.js - About 2 hrs to fix

                                                                  Function voronoi has 64 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                  Open

                                                                    d3.geom.voronoi = function(points) {
                                                                      var x = d3_geom_pointX, y = d3_geom_pointY, fx = x, fy = y, clipExtent = d3_geom_voronoiClipExtent;
                                                                      if (points) return voronoi(points);
                                                                      function voronoi(data) {
                                                                        var polygons = new Array(data.length), x0 = clipExtent[0][0], y0 = clipExtent[0][1], x1 = clipExtent[1][0], y1 = clipExtent[1][1];
                                                                  Severity: Major
                                                                  Found in app/assets/javascripts/d3.v3/d3.v3.js - About 2 hrs to fix

                                                                    Function relayout has 64 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                    Open

                                                                        function relayout() {
                                                                          var subgroups = {}, groupSums = [], groupIndex = d3.range(n), subgroupIndex = [], k, x, x0, i, j;
                                                                          chords = [];
                                                                          groups = [];
                                                                          k = 0, i = -1;
                                                                    Severity: Major
                                                                    Found in app/assets/javascripts/d3.v3/d3.v3.js - About 2 hrs to fix

                                                                      Function d3_interpolateString has 63 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                      Open

                                                                        function d3_interpolateString(a, b) {
                                                                          var m, i, j, s0 = 0, s1 = 0, s = [], q = [], n, o;
                                                                          a = a + "", b = b + "";
                                                                          d3_interpolate_number.lastIndex = 0;
                                                                          for (i = 0; m = d3_interpolate_number.exec(b); ++i) {
                                                                      Severity: Major
                                                                      Found in app/assets/javascripts/d3.v3/d3.v3.js - About 2 hrs to fix

                                                                        Function d3_layout_packSiblings has 62 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                        Open

                                                                          function d3_layout_packSiblings(node) {
                                                                            if (!(nodes = node.children) || !(n = nodes.length)) return;
                                                                            var nodes, xMin = Infinity, xMax = -Infinity, yMin = Infinity, yMax = -Infinity, a, b, c, i, j, k, n;
                                                                            function bound(node) {
                                                                              xMin = Math.min(node.x - node.r, xMin);
                                                                        Severity: Major
                                                                        Found in app/assets/javascripts/d3.v3/d3.v3.js - About 2 hrs to fix

                                                                          Function nest has 61 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                          Open

                                                                            d3.nest = function() {
                                                                              var nest = {}, keys = [], sortKeys = [], sortValues, rollup;
                                                                              function map(mapType, array, depth) {
                                                                                if (depth >= keys.length) return rollup ? rollup.call(nest, array) : sortValues ? array.sort(sortValues) : array;
                                                                                var i = -1, n = array.length, key = keys[depth++], keyValue, object, setter, valuesByKey = new d3_Map(), values;
                                                                          Severity: Major
                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js - About 2 hrs to fix

                                                                            Function clipLine has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                            Open

                                                                                function clipLine(listener) {
                                                                                  var point0, c0, v0, v00, clean;
                                                                                  return {
                                                                                    lineStart: function() {
                                                                                      v00 = v0 = false;
                                                                            Severity: Major
                                                                            Found in app/assets/javascripts/d3.v3/d3.v3.js - About 2 hrs to fix

                                                                              Function d3_scale_log has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                              Open

                                                                                function d3_scale_log(linear, base, positive, domain) {
                                                                                  function log(x) {
                                                                                    return (positive ? Math.log(x < 0 ? 0 : x) : -Math.log(x > 0 ? 0 : -x)) / Math.log(base);
                                                                                  }
                                                                                  function pow(x) {
                                                                              Severity: Major
                                                                              Found in app/assets/javascripts/d3.v3/d3.v3.js - About 2 hrs to fix

                                                                                Function hierarchy has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                Open

                                                                                  d3.layout.hierarchy = function() {
                                                                                    var sort = d3_layout_hierarchySort, children = d3_layout_hierarchyChildren, value = d3_layout_hierarchyValue;
                                                                                    function recurse(node, depth, nodes) {
                                                                                      var childs = children.call(hierarchy, node, depth);
                                                                                      node.depth = depth;
                                                                                Severity: Major
                                                                                Found in app/assets/javascripts/d3.v3/d3.v3.js - About 2 hrs to fix

                                                                                  Function tick has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                  Open

                                                                                      force.tick = function() {
                                                                                        if ((alpha *= .99) < .005) {
                                                                                          event.end({
                                                                                            type: "end",
                                                                                            alpha: alpha = 0
                                                                                  Severity: Major
                                                                                  Found in app/assets/javascripts/d3.v3/d3.v3.js - About 2 hrs to fix

                                                                                    Function d3_geo_clipPolygon has 57 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                    Open

                                                                                      function d3_geo_clipPolygon(segments, compare, clipStartInside, interpolate, listener) {
                                                                                        var subject = [], clip = [];
                                                                                        segments.forEach(function(segment) {
                                                                                          if ((n = segment.length - 1) <= 0) return;
                                                                                          var n, p0 = segment[0], p1 = segment[n];
                                                                                    Severity: Major
                                                                                    Found in app/assets/javascripts/d3.v3/d3.v3.js - About 2 hrs to fix

                                                                                      Function stack has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                      Open

                                                                                        d3.layout.stack = function() {
                                                                                          var values = d3_identity, order = d3_layout_stackOrderDefault, offset = d3_layout_stackOffsetZero, out = d3_layout_stackOut, x = d3_layout_stackX, y = d3_layout_stackY;
                                                                                          function stack(data, index) {
                                                                                            var series = data.map(function(d, i) {
                                                                                              return values.call(stack, d, i);
                                                                                      Severity: Major
                                                                                      Found in app/assets/javascripts/d3.v3/d3.v3.js - About 2 hrs to fix

                                                                                        Function d3_geom_voronoiAddBeach has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                        Open

                                                                                          function d3_geom_voronoiAddBeach(site) {
                                                                                            var x = site.x, directrix = site.y, lArc, rArc, dxl, dxr, node = d3_geom_voronoiBeaches._;
                                                                                            while (node) {
                                                                                              dxl = d3_geom_voronoiLeftBreakPoint(node, directrix) - x;
                                                                                              if (dxl > ε) node = node.L; else {
                                                                                        Severity: Major
                                                                                        Found in app/assets/javascripts/d3.v3/d3.v3.js - About 2 hrs to fix

                                                                                          Function event has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                          Open

                                                                                              brush.event = function(g) {
                                                                                                g.each(function() {
                                                                                                  var event_ = event.of(this, arguments), extent1 = {
                                                                                                    x: xExtent,
                                                                                                    y: yExtent,
                                                                                          Severity: Major
                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js - About 2 hrs to fix

                                                                                            Function d3_geom_clipLine has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                            Open

                                                                                              function d3_geom_clipLine(x0, y0, x1, y1) {
                                                                                                return function(line) {
                                                                                                  var a = line.a, b = line.b, ax = a.x, ay = a.y, bx = b.x, by = b.y, t0 = 0, t1 = 1, dx = bx - ax, dy = by - ay, r;
                                                                                                  r = x0 - ax;
                                                                                                  if (!dx && r > 0) return;
                                                                                            Severity: Major
                                                                                            Found in app/assets/javascripts/d3.v3/d3.v3.js - About 2 hrs to fix

                                                                                              Function drag has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                              Open

                                                                                                d3.behavior.drag = function() {
                                                                                                  var event = d3_eventDispatch(drag, "drag", "dragstart", "dragend"), origin = null, mousedown = dragstart(d3_noop, d3.mouse, "mousemove", "mouseup"), touchstart = dragstart(touchid, touchposition, "touchmove", "touchend");
                                                                                                  function drag() {
                                                                                                    this.on("mousedown.drag", mousedown).on("touchstart.drag", touchstart);
                                                                                                  }
                                                                                              Severity: Major
                                                                                              Found in app/assets/javascripts/d3.v3/d3.v3.js - About 2 hrs to fix

                                                                                                Function bind has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                Open

                                                                                                    function bind(group, groupData) {
                                                                                                      var i, n = group.length, m = groupData.length, n0 = Math.min(n, m), updateNodes = new Array(m), enterNodes = new Array(m), exitNodes = new Array(n), node, nodeData;
                                                                                                      if (key) {
                                                                                                        var nodeByKeyValue = new d3_Map(), dataByKeyValue = new d3_Map(), keyValues = [], keyValue;
                                                                                                        for (i = -1; ++i < n; ) {
                                                                                                Severity: Major
                                                                                                Found in app/assets/javascripts/d3.v3/d3.v3.js - About 2 hrs to fix

                                                                                                  Function chord has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                  Open

                                                                                                    d3.svg.chord = function() {
                                                                                                      var source = d3_source, target = d3_target, radius = d3_svg_chordRadius, startAngle = d3_svg_arcStartAngle, endAngle = d3_svg_arcEndAngle;
                                                                                                      function chord(d, i) {
                                                                                                        var s = subgroup(this, source, d, i), t = subgroup(this, target, d, i);
                                                                                                        return "M" + s.p0 + arc(s.r, s.p1, s.a1 - s.a0) + (equals(s, t) ? curve(s.r, s.p1, s.r, s.p0) : curve(s.r, s.p1, t.r, t.p0) + arc(t.r, t.p1, t.a1 - t.a0) + curve(t.r, t.p1, s.r, s.p0)) + "Z";
                                                                                                  Severity: Minor
                                                                                                  Found in app/assets/javascripts/d3.v3/d3.v3.js - About 2 hrs to fix

                                                                                                    Function d3_interpolateTransform has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                    Open

                                                                                                      function d3_interpolateTransform(a, b) {
                                                                                                        var s = [], q = [], n, A = d3.transform(a), B = d3.transform(b), ta = A.translate, tb = B.translate, ra = A.rotate, rb = B.rotate, wa = A.skew, wb = B.skew, ka = A.scale, kb = B.scale;
                                                                                                        if (ta[0] != tb[0] || ta[1] != tb[1]) {
                                                                                                          s.push("translate(", null, ",", null, ")");
                                                                                                          q.push({
                                                                                                    Severity: Minor
                                                                                                    Found in app/assets/javascripts/d3.v3/d3.v3.js - About 2 hrs to fix

                                                                                                      Function d3_transitionNode has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                      Open

                                                                                                        function d3_transitionNode(node, i, id, inherit) {
                                                                                                          var lock = node.__transition__ || (node.__transition__ = {
                                                                                                            active: 0,
                                                                                                            count: 0
                                                                                                          }), transition = lock[id];
                                                                                                      Severity: Minor
                                                                                                      Found in app/assets/javascripts/d3.v3/d3.v3.js - About 2 hrs to fix

                                                                                                        Function d3_scale_linear has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                        Open

                                                                                                          function d3_scale_linear(domain, range, interpolate, clamp) {
                                                                                                            var output, input;
                                                                                                            function rescale() {
                                                                                                              var linear = Math.min(domain.length, range.length) > 2 ? d3_scale_polylinear : d3_scale_bilinear, uninterpolate = clamp ? d3_uninterpolateClamp : d3_uninterpolateNumber;
                                                                                                              output = linear(domain, range, uninterpolate, interpolate);
                                                                                                        Severity: Minor
                                                                                                        Found in app/assets/javascripts/d3.v3/d3.v3.js - About 2 hrs to fix

                                                                                                          Function d3_time_scale has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                          Open

                                                                                                            function d3_time_scale(linear, methods, format) {
                                                                                                              function scale(x) {
                                                                                                                return linear(x);
                                                                                                              }
                                                                                                              scale.invert = function(x) {
                                                                                                          Severity: Minor
                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

                                                                                                            Function resampleRecursive has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                            Open

                                                                                                                function resampleRecursive(stream) {
                                                                                                                  var λ00, φ00, x00, y00, a00, b00, c00, λ0, x0, y0, a0, b0, c0;
                                                                                                                  var resample = {
                                                                                                                    point: point,
                                                                                                                    lineStart: lineStart,
                                                                                                            Severity: Minor
                                                                                                            Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

                                                                                                              Function d3_time_interval has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                              Open

                                                                                                                function d3_time_interval(local, step, number) {
                                                                                                                  function round(date) {
                                                                                                                    var d0 = local(date), d1 = offset(d0, 1);
                                                                                                                    return date - d0 < d1 - date ? d0 : d1;
                                                                                                                  }
                                                                                                              Severity: Minor
                                                                                                              Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

                                                                                                                Function pie has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                Open

                                                                                                                  d3.layout.pie = function() {
                                                                                                                    var value = Number, sort = d3_layout_pieSortByValue, startAngle = 0, endAngle = τ;
                                                                                                                    function pie(data) {
                                                                                                                      var values = data.map(function(d, i) {
                                                                                                                        return +value.call(pie, d, i);
                                                                                                                Severity: Minor
                                                                                                                Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

                                                                                                                  Function path has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                  Open

                                                                                                                    d3.geo.path = function() {
                                                                                                                      var pointRadius = 4.5, projection, context, projectStream, contextStream, cacheStream;
                                                                                                                      function path(object) {
                                                                                                                        if (object) {
                                                                                                                          if (typeof pointRadius === "function") contextStream.pointRadius(+pointRadius.apply(this, arguments));
                                                                                                                  Severity: Minor
                                                                                                                  Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

                                                                                                                    Function histogram has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                    Open

                                                                                                                      d3.layout.histogram = function() {
                                                                                                                        var frequency = true, valuer = Number, ranger = d3_layout_histogramRange, binner = d3_layout_histogramBinSturges;
                                                                                                                        function histogram(data, i) {
                                                                                                                          var bins = [], values = data.map(valuer, this), range = ranger.call(this, values, i), thresholds = binner.call(this, range, values, i), bin, i = -1, n = values.length, m = thresholds.length - 1, k = frequency ? 1 : 1 / n, x;
                                                                                                                          while (++i < m) {
                                                                                                                    Severity: Minor
                                                                                                                    Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

                                                                                                                      Function resampleLineTo has 14 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                      Open

                                                                                                                          function resampleLineTo(x0, y0, λ0, a0, b0, c0, x1, y1, λ1, a1, b1, c1, depth, stream) {
                                                                                                                      Severity: Major
                                                                                                                      Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

                                                                                                                        Function d3_svg_line has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                        Open

                                                                                                                          function d3_svg_line(projection) {
                                                                                                                            var x = d3_geom_pointX, y = d3_geom_pointY, defined = d3_true, interpolate = d3_svg_lineLinear, interpolateKey = interpolate.key, tension = .7;
                                                                                                                            function line(data) {
                                                                                                                              var segments = [], points = [], i = -1, n = data.length, d, fx = d3_functor(x), fy = d3_functor(y);
                                                                                                                              function segment() {
                                                                                                                        Severity: Minor
                                                                                                                        Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

                                                                                                                          Function parseRows has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                          Open

                                                                                                                              dsv.parseRows = function(text, f) {
                                                                                                                                var EOL = {}, EOF = {}, rows = [], N = text.length, I = 0, n = 0, t, eol;
                                                                                                                                function token() {
                                                                                                                                  if (I >= N) return EOF;
                                                                                                                                  if (eol) return eol = false, EOL;
                                                                                                                          Severity: Minor
                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

                                                                                                                            Function point has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                            Open

                                                                                                                                    point: function(λ, φ) {
                                                                                                                                      var point1 = [ λ, φ ], point2, v = visible(λ, φ), c = smallRadius ? v ? 0 : code(λ, φ) : v ? code(λ + (λ < 0 ? π : -π), φ) : 0;
                                                                                                                                      if (!point0 && (v00 = v0 = v)) listener.lineStart();
                                                                                                                                      if (v !== v0) {
                                                                                                                                        point2 = intersect(point0, point1);
                                                                                                                            Severity: Minor
                                                                                                                            Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

                                                                                                                              Function d3_geo_pathBuffer has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                              Open

                                                                                                                                function d3_geo_pathBuffer() {
                                                                                                                                  var pointCircle = d3_geo_pathBufferCircle(4.5), buffer = [];
                                                                                                                                  var stream = {
                                                                                                                                    point: point,
                                                                                                                                    lineStart: function() {
                                                                                                                              Severity: Minor
                                                                                                                              Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

                                                                                                                                Function start has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                Open

                                                                                                                                    force.start = function() {
                                                                                                                                      var i, n = nodes.length, m = links.length, w = size[0], h = size[1], neighbors, o;
                                                                                                                                      for (i = 0; i < n; ++i) {
                                                                                                                                        (o = nodes[i]).index = i;
                                                                                                                                        o.weight = 0;
                                                                                                                                Severity: Minor
                                                                                                                                Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

                                                                                                                                  Function d3_time_format has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                  Open

                                                                                                                                      function d3_time_format(template) {
                                                                                                                                        var n = template.length;
                                                                                                                                        function format(date) {
                                                                                                                                          var string = [], i = -1, j = 0, c, p, f;
                                                                                                                                          while (++i < n) {
                                                                                                                                  Severity: Minor
                                                                                                                                  Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

                                                                                                                                    Function cluster has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                    Open

                                                                                                                                      d3.layout.cluster = function() {
                                                                                                                                        var hierarchy = d3.layout.hierarchy().sort(null).value(null), separation = d3_layout_treeSeparation, size = [ 1, 1 ], nodeSize = false;
                                                                                                                                        function cluster(d, i) {
                                                                                                                                          var nodes = hierarchy.call(this, d, i), root = nodes[0], previousNode, x = 0;
                                                                                                                                          d3_layout_treeVisitAfter(root, function(node) {
                                                                                                                                    Severity: Minor
                                                                                                                                    Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

                                                                                                                                      Function linePoint has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                      Open

                                                                                                                                            function linePoint(x, y) {
                                                                                                                                              x = Math.max(-d3_geo_clipExtentMAX, Math.min(d3_geo_clipExtentMAX, x));
                                                                                                                                              y = Math.max(-d3_geo_clipExtentMAX, Math.min(d3_geo_clipExtentMAX, y));
                                                                                                                                              var v = pointVisible(x, y);
                                                                                                                                              if (polygon) ring.push([ x, y ]);
                                                                                                                                      Severity: Minor
                                                                                                                                      Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

                                                                                                                                        Function extent has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                        Open

                                                                                                                                            brush.extent = function(z) {
                                                                                                                                              var x0, x1, y0, y1, t;
                                                                                                                                              if (!arguments.length) {
                                                                                                                                                if (x) {
                                                                                                                                                  if (xExtentDomain) {
                                                                                                                                        Severity: Minor
                                                                                                                                        Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

                                                                                                                                          Function pack has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                          Open

                                                                                                                                            d3.layout.pack = function() {
                                                                                                                                              var hierarchy = d3.layout.hierarchy().sort(d3_layout_packSort), padding = 0, size = [ 1, 1 ], radius;
                                                                                                                                              function pack(d, i) {
                                                                                                                                                var nodes = hierarchy.call(this, d, i), root = nodes[0], w = size[0], h = size[1], r = radius == null ? Math.sqrt : typeof radius === "function" ? radius : function() {
                                                                                                                                                  return radius;
                                                                                                                                          Severity: Minor
                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

                                                                                                                                            Function d3_geo_pathContext has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                            Open

                                                                                                                                              function d3_geo_pathContext(context) {
                                                                                                                                                var pointRadius = 4.5;
                                                                                                                                                var stream = {
                                                                                                                                                  point: point,
                                                                                                                                                  lineStart: function() {
                                                                                                                                            Severity: Minor
                                                                                                                                            Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

                                                                                                                                              Function linePoint has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                              Open

                                                                                                                                                  function linePoint(λ, φ) {
                                                                                                                                                    var p = d3_geo_cartesian([ λ * d3_radians, φ * d3_radians ]);
                                                                                                                                                    if (p0) {
                                                                                                                                                      var normal = d3_geo_cartesianCross(p0, p), equatorial = [ normal[1], -normal[0], 0 ], inflection = d3_geo_cartesianCross(equatorial, normal);
                                                                                                                                                      d3_geo_cartesianNormalize(inflection);
                                                                                                                                              Severity: Minor
                                                                                                                                              Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

                                                                                                                                                Function d3_geo_clipAntimeridianLine has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                Open

                                                                                                                                                  function d3_geo_clipAntimeridianLine(listener) {
                                                                                                                                                    var λ0 = NaN, φ0 = NaN, sλ0 = NaN, clean;
                                                                                                                                                    return {
                                                                                                                                                      lineStart: function() {
                                                                                                                                                        listener.lineStart();
                                                                                                                                                Severity: Minor
                                                                                                                                                Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

                                                                                                                                                  Function partition has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                  Open

                                                                                                                                                    d3.layout.partition = function() {
                                                                                                                                                      var hierarchy = d3.layout.hierarchy(), size = [ 1, 1 ];
                                                                                                                                                      function position(node, x, dx, dy) {
                                                                                                                                                        var children = node.children;
                                                                                                                                                        node.x = x;
                                                                                                                                                  Severity: Minor
                                                                                                                                                  Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

                                                                                                                                                    Function d3_rgb_parse has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                    Open

                                                                                                                                                      function d3_rgb_parse(format, rgb, hsl) {
                                                                                                                                                        var r = 0, g = 0, b = 0, m1, m2, name;
                                                                                                                                                        m1 = /([a-z]+)\((.*)\)/i.exec(format);
                                                                                                                                                        if (m1) {
                                                                                                                                                          m2 = m1[2].split(",");
                                                                                                                                                    Severity: Minor
                                                                                                                                                    Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

                                                                                                                                                      Function d3_geom_voronoiRemoveBeach has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                      Open

                                                                                                                                                        function d3_geom_voronoiRemoveBeach(beach) {
                                                                                                                                                          var circle = beach.circle, x = circle.x, y = circle.cy, vertex = {
                                                                                                                                                            x: x,
                                                                                                                                                            y: y
                                                                                                                                                          }, previous = beach.P, next = beach.N, disappearing = [ beach ];
                                                                                                                                                      Severity: Minor
                                                                                                                                                      Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

                                                                                                                                                        Function stream has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                            albersUsa.stream = function(stream) {
                                                                                                                                                              var lower48Stream = lower48.stream(stream), alaskaStream = alaska.stream(stream), hawaiiStream = hawaii.stream(stream);
                                                                                                                                                              return {
                                                                                                                                                                point: function(x, y) {
                                                                                                                                                                  lower48Stream.point(x, y);
                                                                                                                                                        Severity: Minor
                                                                                                                                                        Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

                                                                                                                                                          Function d3_scale_quantile has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                          Open

                                                                                                                                                            function d3_scale_quantile(domain, range) {
                                                                                                                                                              var thresholds;
                                                                                                                                                              function rescale() {
                                                                                                                                                                var k = 0, q = range.length;
                                                                                                                                                                thresholds = [];
                                                                                                                                                          Severity: Minor
                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

                                                                                                                                                            Function d3_scale_pow has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                            Open

                                                                                                                                                              function d3_scale_pow(linear, exponent, domain) {
                                                                                                                                                                var powp = d3_scale_powPow(exponent), powb = d3_scale_powPow(1 / exponent);
                                                                                                                                                                function scale(x) {
                                                                                                                                                                  return linear(powp(x));
                                                                                                                                                                }
                                                                                                                                                            Severity: Minor
                                                                                                                                                            Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

                                                                                                                                                              Function arc has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                              Open

                                                                                                                                                                d3.svg.arc = function() {
                                                                                                                                                                  var innerRadius = d3_svg_arcInnerRadius, outerRadius = d3_svg_arcOuterRadius, startAngle = d3_svg_arcStartAngle, endAngle = d3_svg_arcEndAngle;
                                                                                                                                                                  function arc() {
                                                                                                                                                                    var r0 = innerRadius.apply(this, arguments), r1 = outerRadius.apply(this, arguments), a0 = startAngle.apply(this, arguments) + d3_svg_arcOffset, a1 = endAngle.apply(this, arguments) + d3_svg_arcOffset, da = (a1 < a0 && (da = a0, 
                                                                                                                                                                    a0 = a1, a1 = da), a1 - a0), df = da < π ? "0" : "1", c0 = Math.cos(a0), s0 = Math.sin(a0), c1 = Math.cos(a1), s1 = Math.sin(a1);
                                                                                                                                                              Severity: Minor
                                                                                                                                                              Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

                                                                                                                                                                Function event has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                                Open

                                                                                                                                                                    zoom.event = function(g) {
                                                                                                                                                                      g.each(function() {
                                                                                                                                                                        var event_ = event.of(this, arguments), view1 = view;
                                                                                                                                                                        if (d3_transitionInheritId) {
                                                                                                                                                                          d3.select(this).transition().each("start.zoom", function() {
                                                                                                                                                                Severity: Minor
                                                                                                                                                                Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

                                                                                                                                                                  Function dragstart has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                                  Open

                                                                                                                                                                      function dragstart(id, position, move, end) {
                                                                                                                                                                        return function() {
                                                                                                                                                                          var target = this, parent = target.parentNode, event_ = event.of(target, arguments), eventTarget = d3.event.target, eventId = id(), drag = eventId == null ? "drag" : "drag-" + eventId, origin_ = position(parent, eventId), dragged = 0, offset, w = d3.select(d3_window).on(move + "." + drag, moved).on(end + "." + drag, ended), dragRestore = d3_event_dragSuppress();
                                                                                                                                                                          if (origin) {
                                                                                                                                                                            offset = origin.apply(target, arguments);
                                                                                                                                                                  Severity: Minor
                                                                                                                                                                  Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

                                                                                                                                                                    Function d3_geom_voronoiAttachCircle has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                                    Open

                                                                                                                                                                      function d3_geom_voronoiAttachCircle(arc) {
                                                                                                                                                                        var lArc = arc.P, rArc = arc.N;
                                                                                                                                                                        if (!lArc || !rArc) return;
                                                                                                                                                                        var lSite = lArc.site, cSite = arc.site, rSite = rArc.site;
                                                                                                                                                                        if (lSite === rSite) return;
                                                                                                                                                                    Severity: Minor
                                                                                                                                                                    Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

                                                                                                                                                                      Function brush has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                                      Open

                                                                                                                                                                          function brush(g) {
                                                                                                                                                                            g.each(function() {
                                                                                                                                                                              var g = d3.select(this).style("pointer-events", "all").style("-webkit-tap-highlight-color", "rgba(0,0,0,0)").on("mousedown.brush", brushstart).on("touchstart.brush", brushstart);
                                                                                                                                                                              var background = g.selectAll(".background").data([ 0 ]);
                                                                                                                                                                              background.enter().append("rect").attr("class", "background").style("visibility", "hidden").style("cursor", "crosshair");
                                                                                                                                                                      Severity: Minor
                                                                                                                                                                      Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

                                                                                                                                                                        Function circle has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                                        Open

                                                                                                                                                                          d3.geo.circle = function() {
                                                                                                                                                                            var origin = [ 0, 0 ], angle, precision = 6, interpolate;
                                                                                                                                                                            function circle() {
                                                                                                                                                                              var center = typeof origin === "function" ? origin.apply(this, arguments) : origin, rotate = d3_geo_rotation(-center[0] * d3_radians, -center[1] * d3_radians, 0).invert, ring = [];
                                                                                                                                                                              interpolate(null, null, 1, {
                                                                                                                                                                        Severity: Minor
                                                                                                                                                                        Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

                                                                                                                                                                          Function token has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                                          Open

                                                                                                                                                                                function token() {
                                                                                                                                                                                  if (I >= N) return EOF;
                                                                                                                                                                                  if (eol) return eol = false, EOL;
                                                                                                                                                                                  var j = I;
                                                                                                                                                                                  if (text.charCodeAt(j) === 34) {
                                                                                                                                                                          Severity: Minor
                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

                                                                                                                                                                            Function d3_scale_quantize has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                                            Open

                                                                                                                                                                              function d3_scale_quantize(x0, x1, range) {
                                                                                                                                                                                var kx, i;
                                                                                                                                                                                function scale(x) {
                                                                                                                                                                                  return range[Math.max(0, Math.min(i, Math.floor(kx * (x - x0))))];
                                                                                                                                                                                }
                                                                                                                                                                            Severity: Minor
                                                                                                                                                                            Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

                                                                                                                                                                              Function apportion has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                                              Open

                                                                                                                                                                                    function apportion(node, previousSibling, ancestor) {
                                                                                                                                                                                      if (previousSibling) {
                                                                                                                                                                                        var vip = node, vop = node, vim = previousSibling, vom = node.parent.children[0], sip = vip._tree.mod, sop = vop._tree.mod, sim = vim._tree.mod, som = vom._tree.mod, shift;
                                                                                                                                                                                        while (vim = d3_layout_treeRight(vim), vip = d3_layout_treeLeft(vip), vim && vip) {
                                                                                                                                                                                          vom = d3_layout_treeLeft(vom);
                                                                                                                                                                              Severity: Minor
                                                                                                                                                                              Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

                                                                                                                                                                                Function d3_geo_centroidRingStart has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                                                Open

                                                                                                                                                                                  function d3_geo_centroidRingStart() {
                                                                                                                                                                                    var λ00, φ00, x0, y0, z0;
                                                                                                                                                                                    d3_geo_centroid.point = function(λ, φ) {
                                                                                                                                                                                      λ00 = λ, φ00 = φ;
                                                                                                                                                                                      d3_geo_centroid.point = nextPoint;
                                                                                                                                                                                Severity: Minor
                                                                                                                                                                                Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

                                                                                                                                                                                  Function position has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                                                  Open

                                                                                                                                                                                      function position(row, u, rect, flush) {
                                                                                                                                                                                        var i = -1, n = row.length, x = rect.x, y = rect.y, v = u ? round(row.area / u) : 0, o;
                                                                                                                                                                                        if (u == rect.dx) {
                                                                                                                                                                                          if (flush || v > rect.dy) v = rect.dy;
                                                                                                                                                                                          while (++i < n) {
                                                                                                                                                                                  Severity: Minor
                                                                                                                                                                                  Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

                                                                                                                                                                                    Function d3_selection_on has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                                                    Open

                                                                                                                                                                                      function d3_selection_on(type, listener, capture) {
                                                                                                                                                                                        var name = "__on" + type, i = type.indexOf("."), wrap = d3_selection_onListener;
                                                                                                                                                                                        if (i > 0) type = type.substring(0, i);
                                                                                                                                                                                        var filter = d3_selection_onFilters.get(type);
                                                                                                                                                                                        if (filter) type = filter, wrap = d3_selection_onFilter;
                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                    Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

                                                                                                                                                                                      Function diagonal has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                                                      Open

                                                                                                                                                                                        d3.svg.diagonal = function() {
                                                                                                                                                                                          var source = d3_source, target = d3_target, projection = d3_svg_diagonalProjection;
                                                                                                                                                                                          function diagonal(d, i) {
                                                                                                                                                                                            var p0 = source.call(this, d, i), p3 = target.call(this, d, i), m = (p0.y + p3.y) / 2, p = [ p0, {
                                                                                                                                                                                              x: p0.x,
                                                                                                                                                                                      Severity: Minor
                                                                                                                                                                                      Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

                                                                                                                                                                                        Function attr has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                                                        Open

                                                                                                                                                                                          d3_transitionPrototype.attr = function(nameNS, value) {
                                                                                                                                                                                            if (arguments.length < 2) {
                                                                                                                                                                                              for (value in nameNS) this.attr(value, nameNS[value]);
                                                                                                                                                                                              return this;
                                                                                                                                                                                            }
                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                        Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

                                                                                                                                                                                          Function d3_geom_voronoiCloseCells has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                                                          Open

                                                                                                                                                                                            function d3_geom_voronoiCloseCells(extent) {
                                                                                                                                                                                              var x0 = extent[0][0], x1 = extent[1][0], y0 = extent[0][1], y1 = extent[1][1], x2, y2, x3, y3, cells = d3_geom_voronoiCells, iCell = cells.length, cell, iHalfEdge, halfEdges, nHalfEdges, start, end;
                                                                                                                                                                                              while (iCell--) {
                                                                                                                                                                                                cell = cells[iCell];
                                                                                                                                                                                                if (!cell || !cell.prepare()) continue;
                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

                                                                                                                                                                                            Function brushmove has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                                                            Open

                                                                                                                                                                                                  function brushmove() {
                                                                                                                                                                                                    var point = d3.mouse(target), moved = false;
                                                                                                                                                                                                    if (offset) {
                                                                                                                                                                                                      point[0] += offset[0];
                                                                                                                                                                                                      point[1] += offset[1];
                                                                                                                                                                                            Severity: Minor
                                                                                                                                                                                            Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

                                                                                                                                                                                              Function d3_geo_pointInPolygon has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                                                              Open

                                                                                                                                                                                                function d3_geo_pointInPolygon(point, polygon) {
                                                                                                                                                                                                  var meridian = point[0], parallel = point[1], meridianNormal = [ Math.sin(meridian), -Math.cos(meridian), 0 ], polarAngle = 0, winding = 0;
                                                                                                                                                                                                  d3_geo_areaRingSum.reset();
                                                                                                                                                                                                  for (var i = 0, n = polygon.length; i < n; ++i) {
                                                                                                                                                                                                    var ring = polygon[i], m = ring.length;
                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                              Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

                                                                                                                                                                                                Function d3_geom_voronoi has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                                                                Open

                                                                                                                                                                                                  function d3_geom_voronoi(sites, bbox) {
                                                                                                                                                                                                    var site = sites.sort(d3_geom_voronoiVertexOrder).pop(), x0, y0, circle;
                                                                                                                                                                                                    d3_geom_voronoiEdges = [];
                                                                                                                                                                                                    d3_geom_voronoiCells = new Array(sites.length);
                                                                                                                                                                                                    d3_geom_voronoiBeaches = new d3_geom_voronoiRedBlackTree();
                                                                                                                                                                                                Severity: Minor
                                                                                                                                                                                                Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

                                                                                                                                                                                                  Function insert has 8 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                                                  Open

                                                                                                                                                                                                        function insert(n, d, x, y, x1, y1, x2, y2) {
                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                  Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

                                                                                                                                                                                                    Function insertChild has 8 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                          function insertChild(n, d, x, y, x1, y1, x2, y2) {
                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                    Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

                                                                                                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                                                                                                      Open

                                                                                                                                                                                                                  for (j = i + 1; j < n; ++j) q[j].i--;
                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                      Found in app/assets/javascripts/d3.v3/d3.v3.js - About 45 mins to fix

                                                                                                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                                                                                                        Open

                                                                                                                                                                                                                    for (j = i + 1; j < n; ++j) q[j].i--;
                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                        Found in app/assets/javascripts/d3.v3/d3.v3.js - About 45 mins to fix

                                                                                                                                                                                                          Avoid deeply nested control flow statements.
                                                                                                                                                                                                          Open

                                                                                                                                                                                                                      for (j = i + 1; j < n; ++j) q[j].i -= 2;
                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js - About 45 mins to fix

                                                                                                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                                                                                                            Open

                                                                                                                                                                                                                          if (angle(λ0, λ) > angle(λ0, λ1)) λ1 = λ;
                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                            Found in app/assets/javascripts/d3.v3/d3.v3.js - About 45 mins to fix

                                                                                                                                                                                                              Avoid deeply nested control flow statements.
                                                                                                                                                                                                              Open

                                                                                                                                                                                                                        while (++i < n) if (!d3_selection_classedRe(name[i]).test(value)) return false;
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in app/assets/javascripts/d3.v3/d3.v3.js - About 45 mins to fix

                                                                                                                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                                                                                                                Open

                                                                                                                                                                                                                            for (var i = 0, n = points.length; i < n; ++i) listener.point((point = points[i])[0], point[1]);
                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                Found in app/assets/javascripts/d3.v3/d3.v3.js - About 45 mins to fix

                                                                                                                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                              if (subnode = subnodes[k]) d3_transitionNode(subnode, k, id, transition);
                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                  Found in app/assets/javascripts/d3.v3/d3.v3.js - About 45 mins to fix

                                                                                                                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                              while (++i < n) if (!value.contains(name[i])) return false;
                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                    Found in app/assets/javascripts/d3.v3/d3.v3.js - About 45 mins to fix

                                                                                                                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                    if (angle(λ, λ1) > angle(λ0, λ1)) λ0 = λ;
                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                      Found in app/assets/javascripts/d3.v3/d3.v3.js - About 45 mins to fix

                                                                                                                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                    for (var i = points.length - 1; i >= 0; --i) listener.point((point = points[i])[0], point[1]);
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in app/assets/javascripts/d3.v3/d3.v3.js - About 45 mins to fix

                                                                                                                                                                                                                          Avoid deeply nested control flow statements.
                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                      if (d3_layout_packIntersects(j, c)) {
                                                                                                                                                                                                                                        isect = 1;
                                                                                                                                                                                                                                        break;
                                                                                                                                                                                                                                      }
                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js - About 45 mins to fix

                                                                                                                                                                                                                            Function d3_geom_quadtreeVisit has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                              function d3_geom_quadtreeVisit(f, node, x1, y1, x2, y2) {
                                                                                                                                                                                                                            Severity: Minor
                                                                                                                                                                                                                            Found in app/assets/javascripts/d3.v3/d3.v3.js - About 45 mins to fix

                                                                                                                                                                                                                              Avoid deeply nested control flow statements.
                                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                          for (k = a._pack_prev; k !== j._pack_prev; k = k._pack_prev, s2++) {
                                                                                                                                                                                                                                            if (d3_layout_packIntersects(k, c)) {
                                                                                                                                                                                                                                              break;
                                                                                                                                                                                                                                            }
                                                                                                                                                                                                                                          }
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in app/assets/javascripts/d3.v3/d3.v3.js - About 45 mins to fix

                                                                                                                                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                Open

                                                                                                                                                                                                                                            if (s1 < s2 || s1 == s2 && b.r < a.r) d3_layout_packSplice(a, b = j); else d3_layout_packSplice(a = k, b);
                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                Found in app/assets/javascripts/d3.v3/d3.v3.js - About 45 mins to fix

                                                                                                                                                                                                                                  Consider simplifying this complex logical expression.
                                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                          if (abs(x3 - x2) > ε || abs(y3 - y2) > ε) {
                                                                                                                                                                                                                                            halfEdges.splice(iHalfEdge, 0, new d3_geom_voronoiHalfEdge(d3_geom_voronoiCreateBorderEdge(cell.site, end, abs(x3 - x0) < ε && y1 - y3 > ε ? {
                                                                                                                                                                                                                                              x: x0,
                                                                                                                                                                                                                                              y: abs(x2 - x0) < ε ? y2 : y1
                                                                                                                                                                                                                                            } : abs(y3 - y1) < ε && x1 - x3 > ε ? {
                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                  Found in app/assets/javascripts/d3.v3/d3.v3.js - About 40 mins to fix

                                                                                                                                                                                                                                    Function d3_geo_clipPolygon has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                      function d3_geo_clipPolygon(segments, compare, clipStartInside, interpolate, listener) {
                                                                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                                                                    Found in app/assets/javascripts/d3.v3/d3.v3.js - About 35 mins to fix

                                                                                                                                                                                                                                      Function quadtree has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                        d3.geom.quadtree = function(points, x1, y1, x2, y2) {
                                                                                                                                                                                                                                      Severity: Minor
                                                                                                                                                                                                                                      Found in app/assets/javascripts/d3.v3/d3.v3.js - About 35 mins to fix

                                                                                                                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                if (r > t1) return;
                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                        Found in app/assets/javascripts/d3.v3/d3.v3.js - About 30 mins to fix

                                                                                                                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                return line;
                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js - About 30 mins to fix

                                                                                                                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                    return text.substring(j);
                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                            Found in app/assets/javascripts/d3.v3/d3.v3.js - About 30 mins to fix

                                                                                                                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                                      if (r < t0) return;
                                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                                              Found in app/assets/javascripts/d3.v3/d3.v3.js - About 30 mins to fix

                                                                                                                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                                                                                                                Open

                                                                                                                                                                                                                                                      if (!dy && r < 0) return;
                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                Found in app/assets/javascripts/d3.v3/d3.v3.js - About 30 mins to fix

                                                                                                                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                                          if (r < t0) return;
                                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                                  Found in app/assets/javascripts/d3.v3/d3.v3.js - About 30 mins to fix

                                                                                                                                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                        return (rfocx + lfocx) / 2;
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in app/assets/javascripts/d3.v3/d3.v3.js - About 30 mins to fix

                                                                                                                                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                                                }; else if (va.x < x0) return;
                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                      Found in app/assets/javascripts/d3.v3/d3.v3.js - About 30 mins to fix

                                                                                                                                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                  }; else if (va.y >= y1) return;
                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                        Found in app/assets/javascripts/d3.v3/d3.v3.js - About 30 mins to fix

                                                                                                                                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                    }; else if (va.y < y0) return;
                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js - About 30 mins to fix

                                                                                                                                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                                return true;
                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                            Found in app/assets/javascripts/d3.v3/d3.v3.js - About 30 mins to fix

                                                                                                                                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                                                      if (r < t0) return;
                                                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                                                              Found in app/assets/javascripts/d3.v3/d3.v3.js - About 30 mins to fix

                                                                                                                                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                Open

                                                                                                                                                                                                                                                                    return this.each(d3_selection_classed(name, value));
                                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                                Found in app/assets/javascripts/d3.v3/d3.v3.js - About 30 mins to fix

                                                                                                                                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                                                        if (!dy && r > 0) return;
                                                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                                                  Found in app/assets/javascripts/d3.v3/d3.v3.js - About 30 mins to fix

                                                                                                                                                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                            if (r > t1) return;
                                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                                    Found in app/assets/javascripts/d3.v3/d3.v3.js - About 30 mins to fix

                                                                                                                                                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                                                                }; else if (va.x >= x1) return;
                                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                                      Found in app/assets/javascripts/d3.v3/d3.v3.js - About 30 mins to fix

                                                                                                                                                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                if (r > t1) return;
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in app/assets/javascripts/d3.v3/d3.v3.js - About 30 mins to fix

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                            function d3_interpolateHcl(a, b) {
                                                                                                                                                                                                                                                                              a = d3.hcl(a);
                                                                                                                                                                                                                                                                              b = d3.hcl(b);
                                                                                                                                                                                                                                                                              var ah = a.h, ac = a.c, al = a.l, bh = b.h - ah, bc = b.c - ac, bl = b.l - al;
                                                                                                                                                                                                                                                                              if (isNaN(bc)) bc = 0, ac = isNaN(ac) ? b.c : ac;
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 1 day to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 5814..5823

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 260.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                            function d3_interpolateHsl(a, b) {
                                                                                                                                                                                                                                                                              a = d3.hsl(a);
                                                                                                                                                                                                                                                                              b = d3.hsl(b);
                                                                                                                                                                                                                                                                              var ah = a.h, as = a.s, al = a.l, bh = b.h - ah, bs = b.s - as, bl = b.l - al;
                                                                                                                                                                                                                                                                              if (isNaN(bs)) bs = 0, as = isNaN(as) ? b.s : as;
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 1 day to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 5803..5812

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 260.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                            d3.max = function(array, f) {
                                                                                                                                                                                                                                                                              var i = -1, n = array.length, a, b;
                                                                                                                                                                                                                                                                              if (arguments.length === 1) {
                                                                                                                                                                                                                                                                                while (++i < n && !((a = array[i]) != null && a <= a)) a = undefined;
                                                                                                                                                                                                                                                                                while (++i < n) if ((b = array[i]) != null && b > a) a = b;
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 1 day to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 41..51

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 252.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                            d3.min = function(array, f) {
                                                                                                                                                                                                                                                                              var i = -1, n = array.length, a, b;
                                                                                                                                                                                                                                                                              if (arguments.length === 1) {
                                                                                                                                                                                                                                                                                while (++i < n && !((a = array[i]) != null && a <= a)) a = undefined;
                                                                                                                                                                                                                                                                                while (++i < n) if ((b = array[i]) != null && a > b) a = b;
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 1 day to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 52..62

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 252.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                  if (node === parent.L) {
                                                                                                                                                                                                                                                                                    sibling = parent.R;
                                                                                                                                                                                                                                                                                    if (sibling.C) {
                                                                                                                                                                                                                                                                                      sibling.C = false;
                                                                                                                                                                                                                                                                                      parent.C = true;
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 1 day to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 5287..5308

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 239.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                  } else {
                                                                                                                                                                                                                                                                                    sibling = parent.L;
                                                                                                                                                                                                                                                                                    if (sibling.C) {
                                                                                                                                                                                                                                                                                      sibling.C = false;
                                                                                                                                                                                                                                                                                      parent.C = true;
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 1 day to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 5266..5287

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 239.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                if (u == rect.dx) {
                                                                                                                                                                                                                                                                                  if (flush || v > rect.dy) v = rect.dy;
                                                                                                                                                                                                                                                                                  while (++i < n) {
                                                                                                                                                                                                                                                                                    o = row[i];
                                                                                                                                                                                                                                                                                    o.x = x;
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 1 day to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 7212..7225

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 205.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                } else {
                                                                                                                                                                                                                                                                                  if (flush || v > rect.dx) v = rect.dx;
                                                                                                                                                                                                                                                                                  while (++i < n) {
                                                                                                                                                                                                                                                                                    o = row[i];
                                                                                                                                                                                                                                                                                    o.x = x;
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 1 day to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 7199..7212

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 205.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                            var d3_time_scaleUtcFormat = d3_time_formatUtc.multi([ [ ".%L", function(d) {
                                                                                                                                                                                                                                                                              return d.getUTCMilliseconds();
                                                                                                                                                                                                                                                                            } ], [ ":%S", function(d) {
                                                                                                                                                                                                                                                                              return d.getUTCSeconds();
                                                                                                                                                                                                                                                                            } ], [ "%I:%M", function(d) {
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 7 hrs to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 9199..9213

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 179.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                            var d3_time_scaleLocalFormat = d3_time_format.multi([ [ ".%L", function(d) {
                                                                                                                                                                                                                                                                              return d.getMilliseconds();
                                                                                                                                                                                                                                                                            } ], [ ":%S", function(d) {
                                                                                                                                                                                                                                                                              return d.getSeconds();
                                                                                                                                                                                                                                                                            } ], [ "%I:%M", function(d) {
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 7 hrs to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 9228..9242

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 179.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              graticule.minorExtent = function(_) {
                                                                                                                                                                                                                                                                                if (!arguments.length) return [ [ x0, y0 ], [ x1, y1 ] ];
                                                                                                                                                                                                                                                                                x0 = +_[0][0], x1 = +_[1][0];
                                                                                                                                                                                                                                                                                y0 = +_[0][1], y1 = +_[1][1];
                                                                                                                                                                                                                                                                                if (x0 > x1) _ = x0, x0 = x1, x1 = _;
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 6 hrs to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 4436..4443

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 172.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              graticule.majorExtent = function(_) {
                                                                                                                                                                                                                                                                                if (!arguments.length) return [ [ X0, Y0 ], [ X1, Y1 ] ];
                                                                                                                                                                                                                                                                                X0 = +_[0][0], X1 = +_[1][0];
                                                                                                                                                                                                                                                                                Y0 = +_[0][1], Y1 = +_[1][1];
                                                                                                                                                                                                                                                                                if (X0 > X1) _ = X0, X0 = X1, X1 = _;
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 6 hrs to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 4444..4451

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 172.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                            function d3_geom_voronoiRedBlackRotateLeft(tree, node) {
                                                                                                                                                                                                                                                                              var p = node, q = node.R, parent = p.U;
                                                                                                                                                                                                                                                                              if (parent) {
                                                                                                                                                                                                                                                                                if (parent.L === p) parent.L = q; else parent.R = q;
                                                                                                                                                                                                                                                                              } else {
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 6 hrs to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 5329..5341

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 163.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                            function d3_geom_voronoiRedBlackRotateRight(tree, node) {
                                                                                                                                                                                                                                                                              var p = node, q = node.L, parent = p.U;
                                                                                                                                                                                                                                                                              if (parent) {
                                                                                                                                                                                                                                                                                if (parent.L === p) parent.L = q; else parent.R = q;
                                                                                                                                                                                                                                                                              } else {
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 6 hrs to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 5316..5328

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 163.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                if (x) {
                                                                                                                                                                                                                                                                                  x0 = z[0], x1 = z[1];
                                                                                                                                                                                                                                                                                  if (y) x0 = x0[0], x1 = x1[0];
                                                                                                                                                                                                                                                                                  xExtentDomain = [ x0, x1 ];
                                                                                                                                                                                                                                                                                  if (x.invert) x0 = x(x0), x1 = x(x1);
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 6 hrs to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 9060..9067

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 156.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                if (y) {
                                                                                                                                                                                                                                                                                  y0 = z[0], y1 = z[1];
                                                                                                                                                                                                                                                                                  if (x) y0 = y0[1], y1 = y1[1];
                                                                                                                                                                                                                                                                                  yExtentDomain = [ y0, y1 ];
                                                                                                                                                                                                                                                                                  if (y.invert) y0 = y(y0), y1 = y(y1);
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 6 hrs to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 9052..9059

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 156.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                            d3_selectionPrototype.html = function(value) {
                                                                                                                                                                                                                                                                              return arguments.length ? this.each(typeof value === "function" ? function() {
                                                                                                                                                                                                                                                                                var v = value.apply(this, arguments);
                                                                                                                                                                                                                                                                                this.innerHTML = v == null ? "" : v;
                                                                                                                                                                                                                                                                              } : value == null ? function() {
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 5 hrs to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 703..712

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 145.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                            d3_selectionPrototype.text = function(value) {
                                                                                                                                                                                                                                                                              return arguments.length ? this.each(typeof value === "function" ? function() {
                                                                                                                                                                                                                                                                                var v = value.apply(this, arguments);
                                                                                                                                                                                                                                                                                this.textContent = v == null ? "" : v;
                                                                                                                                                                                                                                                                              } : value == null ? function() {
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 5 hrs to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 713..722

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 145.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                  if (parent === grandpa.L) {
                                                                                                                                                                                                                                                                                    uncle = grandpa.R;
                                                                                                                                                                                                                                                                                    if (uncle && uncle.C) {
                                                                                                                                                                                                                                                                                      parent.C = uncle.C = false;
                                                                                                                                                                                                                                                                                      grandpa.C = true;
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 5 hrs to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 5205..5221

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 141.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                  } else {
                                                                                                                                                                                                                                                                                    uncle = grandpa.L;
                                                                                                                                                                                                                                                                                    if (uncle && uncle.C) {
                                                                                                                                                                                                                                                                                      parent.C = uncle.C = false;
                                                                                                                                                                                                                                                                                      grandpa.C = true;
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 5 hrs to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 5189..5205

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 141.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              rotation.invert = function(λ, φ) {
                                                                                                                                                                                                                                                                                var cosφ = Math.cos(φ), x = Math.cos(λ) * cosφ, y = Math.sin(λ) * cosφ, z = Math.sin(φ), k = z * cosδγ - y * sinδγ;
                                                                                                                                                                                                                                                                                return [ Math.atan2(y * cosδγ + z * sinδγ, x * cosδφ + k * sinδφ), d3_asin(k * cosδφ - x * sinδφ) ];
                                                                                                                                                                                                                                                                              };
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 5 hrs to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 4333..4336

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 138.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              function rotation(λ, φ) {
                                                                                                                                                                                                                                                                                var cosφ = Math.cos(φ), x = Math.cos(λ) * cosφ, y = Math.sin(λ) * cosφ, z = Math.sin(φ), k = z * cosδφ + x * sinδφ;
                                                                                                                                                                                                                                                                                return [ Math.atan2(y * cosδγ - k * sinδγ, x * cosδφ - z * sinδφ), d3_asin(k * cosδγ + y * sinδγ) ];
                                                                                                                                                                                                                                                                              }
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 5 hrs to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 4337..4340

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 138.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                  if (y) {
                                                                                                                                                                                                                                                                                    if (yExtentDomain) {
                                                                                                                                                                                                                                                                                      y0 = yExtentDomain[0], y1 = yExtentDomain[1];
                                                                                                                                                                                                                                                                                    } else {
                                                                                                                                                                                                                                                                                      y0 = yExtent[0], y1 = yExtent[1];
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 4 hrs to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 9032..9040

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 127.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                  if (x) {
                                                                                                                                                                                                                                                                                    if (xExtentDomain) {
                                                                                                                                                                                                                                                                                      x0 = xExtentDomain[0], x1 = xExtentDomain[1];
                                                                                                                                                                                                                                                                                    } else {
                                                                                                                                                                                                                                                                                      x0 = xExtent[0], x1 = xExtent[1];
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 4 hrs to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 9041..9049

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 127.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                alaskaPoint = alaska.translate([ x - .307 * k, y + .201 * k ]).clipExtent([ [ x - .425 * k + ε, y + .12 * k + ε ], [ x - .214 * k - ε, y + .234 * k - ε ] ]).stream(pointStream).point;
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 3837..3837

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 111.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                hawaiiPoint = hawaii.translate([ x - .205 * k, y + .212 * k ]).clipExtent([ [ x - .214 * k + ε, y + .166 * k + ε ], [ x - .115 * k - ε, y + .234 * k - ε ] ]).stream(pointStream).point;
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 3836..3836

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 111.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                            d3_time.second = d3_time_interval(function(date) {
                                                                                                                                                                                                                                                                              return new d3_date(Math.floor(date / 1e3) * 1e3);
                                                                                                                                                                                                                                                                            }, function(date, offset) {
                                                                                                                                                                                                                                                                              date.setTime(date.getTime() + Math.floor(offset) * 1e3);
                                                                                                                                                                                                                                                                            }, function(date) {
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 9114..9120

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 103.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                            d3_time.minute = d3_time_interval(function(date) {
                                                                                                                                                                                                                                                                              return new d3_date(Math.floor(date / 6e4) * 6e4);
                                                                                                                                                                                                                                                                            }, function(date, offset) {
                                                                                                                                                                                                                                                                              date.setTime(date.getTime() + Math.floor(offset) * 6e4);
                                                                                                                                                                                                                                                                            }, function(date) {
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 9105..9111

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 103.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                            function d3_svg_lineStepAfter(points) {
                                                                                                                                                                                                                                                                              var i = 0, n = points.length, p = points[0], path = [ p[0], ",", p[1] ];
                                                                                                                                                                                                                                                                              while (++i < n) path.push("H", (p = points[i])[0], "V", p[1]);
                                                                                                                                                                                                                                                                              return path.join("");
                                                                                                                                                                                                                                                                            }
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 7949..7953

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 102.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                            function d3_svg_lineStepBefore(points) {
                                                                                                                                                                                                                                                                              var i = 0, n = points.length, p = points[0], path = [ p[0], ",", p[1] ];
                                                                                                                                                                                                                                                                              while (++i < n) path.push("V", (p = points[i])[1], "H", p[0]);
                                                                                                                                                                                                                                                                              return path.join("");
                                                                                                                                                                                                                                                                            }
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 7954..7958

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 102.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              function d3_time_parseMonth(date, string, i) {
                                                                                                                                                                                                                                                                                d3_time_monthRe.lastIndex = 0;
                                                                                                                                                                                                                                                                                var n = d3_time_monthRe.exec(string.substring(i));
                                                                                                                                                                                                                                                                                return n ? (date.m = d3_time_monthLookup.get(n[0].toLowerCase()), i + n[0].length) : -1;
                                                                                                                                                                                                                                                                              }
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 3 other locations - About 3 hrs to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2602..2606
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2607..2611
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2612..2616

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 98.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              function d3_time_parseWeekday(date, string, i) {
                                                                                                                                                                                                                                                                                d3_time_dayRe.lastIndex = 0;
                                                                                                                                                                                                                                                                                var n = d3_time_dayRe.exec(string.substring(i));
                                                                                                                                                                                                                                                                                return n ? (date.w = d3_time_dayLookup.get(n[0].toLowerCase()), i + n[0].length) : -1;
                                                                                                                                                                                                                                                                              }
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 3 other locations - About 3 hrs to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2602..2606
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2612..2616
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2617..2621

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 98.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              function d3_time_parseMonthAbbrev(date, string, i) {
                                                                                                                                                                                                                                                                                d3_time_monthAbbrevRe.lastIndex = 0;
                                                                                                                                                                                                                                                                                var n = d3_time_monthAbbrevRe.exec(string.substring(i));
                                                                                                                                                                                                                                                                                return n ? (date.m = d3_time_monthAbbrevLookup.get(n[0].toLowerCase()), i + n[0].length) : -1;
                                                                                                                                                                                                                                                                              }
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 3 other locations - About 3 hrs to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2602..2606
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2607..2611
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2617..2621

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 98.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              function d3_time_parseWeekdayAbbrev(date, string, i) {
                                                                                                                                                                                                                                                                                d3_time_dayAbbrevRe.lastIndex = 0;
                                                                                                                                                                                                                                                                                var n = d3_time_dayAbbrevRe.exec(string.substring(i));
                                                                                                                                                                                                                                                                                return n ? (date.w = d3_time_dayAbbrevLookup.get(n[0].toLowerCase()), i + n[0].length) : -1;
                                                                                                                                                                                                                                                                              }
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 3 other locations - About 3 hrs to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2607..2611
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2612..2616
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2617..2621

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 98.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              while (rArc.circle && abs(x - rArc.circle.x) < ε && abs(y - rArc.circle.cy) < ε) {
                                                                                                                                                                                                                                                                                next = rArc.N;
                                                                                                                                                                                                                                                                                disappearing.push(rArc);
                                                                                                                                                                                                                                                                                d3_geom_voronoiDetachBeach(rArc);
                                                                                                                                                                                                                                                                                rArc = next;
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 4826..4831

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 95.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              while (lArc.circle && abs(x - lArc.circle.x) < ε && abs(y - lArc.circle.cy) < ε) {
                                                                                                                                                                                                                                                                                previous = lArc.P;
                                                                                                                                                                                                                                                                                disappearing.unshift(lArc);
                                                                                                                                                                                                                                                                                d3_geom_voronoiDetachBeach(lArc);
                                                                                                                                                                                                                                                                                lArc = previous;
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 4835..4840

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 95.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 8 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                            function d3_time_parseWeekdayNumber(date, string, i) {
                                                                                                                                                                                                                                                                              d3_time_numberRe.lastIndex = 0;
                                                                                                                                                                                                                                                                              var n = d3_time_numberRe.exec(string.substring(i, i + 1));
                                                                                                                                                                                                                                                                              return n ? (date.w = +n[0], i + n[0].length) : -1;
                                                                                                                                                                                                                                                                            }
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 7 other locations - About 2 hrs to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2669..2673
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2691..2695
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2696..2700
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2701..2705
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2706..2710
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2711..2715
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2716..2720

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 90.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 8 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                            function d3_time_parseDayOfYear(date, string, i) {
                                                                                                                                                                                                                                                                              d3_time_numberRe.lastIndex = 0;
                                                                                                                                                                                                                                                                              var n = d3_time_numberRe.exec(string.substring(i, i + 3));
                                                                                                                                                                                                                                                                              return n ? (date.j = +n[0], i + n[0].length) : -1;
                                                                                                                                                                                                                                                                            }
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 7 other locations - About 2 hrs to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2654..2658
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2669..2673
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2691..2695
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2701..2705
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2706..2710
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2711..2715
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2716..2720

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 90.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 8 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                            function d3_time_parseDay(date, string, i) {
                                                                                                                                                                                                                                                                              d3_time_numberRe.lastIndex = 0;
                                                                                                                                                                                                                                                                              var n = d3_time_numberRe.exec(string.substring(i, i + 2));
                                                                                                                                                                                                                                                                              return n ? (date.d = +n[0], i + n[0].length) : -1;
                                                                                                                                                                                                                                                                            }
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 7 other locations - About 2 hrs to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2654..2658
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2669..2673
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2696..2700
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2701..2705
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2706..2710
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2711..2715
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2716..2720

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 90.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 8 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                            function d3_time_parseFullYear(date, string, i) {
                                                                                                                                                                                                                                                                              d3_time_numberRe.lastIndex = 0;
                                                                                                                                                                                                                                                                              var n = d3_time_numberRe.exec(string.substring(i, i + 4));
                                                                                                                                                                                                                                                                              return n ? (date.y = +n[0], i + n[0].length) : -1;
                                                                                                                                                                                                                                                                            }
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 7 other locations - About 2 hrs to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2654..2658
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2691..2695
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2696..2700
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2701..2705
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2706..2710
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2711..2715
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2716..2720

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 90.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 8 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                            function d3_time_parseMinutes(date, string, i) {
                                                                                                                                                                                                                                                                              d3_time_numberRe.lastIndex = 0;
                                                                                                                                                                                                                                                                              var n = d3_time_numberRe.exec(string.substring(i, i + 2));
                                                                                                                                                                                                                                                                              return n ? (date.M = +n[0], i + n[0].length) : -1;
                                                                                                                                                                                                                                                                            }
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 7 other locations - About 2 hrs to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2654..2658
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2669..2673
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2691..2695
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2696..2700
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2701..2705
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2711..2715
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2716..2720

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 90.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 8 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                            function d3_time_parseHour24(date, string, i) {
                                                                                                                                                                                                                                                                              d3_time_numberRe.lastIndex = 0;
                                                                                                                                                                                                                                                                              var n = d3_time_numberRe.exec(string.substring(i, i + 2));
                                                                                                                                                                                                                                                                              return n ? (date.H = +n[0], i + n[0].length) : -1;
                                                                                                                                                                                                                                                                            }
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 7 other locations - About 2 hrs to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2654..2658
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2669..2673
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2691..2695
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2696..2700
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2706..2710
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2711..2715
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2716..2720

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 90.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 8 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                            function d3_time_parseSeconds(date, string, i) {
                                                                                                                                                                                                                                                                              d3_time_numberRe.lastIndex = 0;
                                                                                                                                                                                                                                                                              var n = d3_time_numberRe.exec(string.substring(i, i + 2));
                                                                                                                                                                                                                                                                              return n ? (date.S = +n[0], i + n[0].length) : -1;
                                                                                                                                                                                                                                                                            }
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 7 other locations - About 2 hrs to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2654..2658
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2669..2673
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2691..2695
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2696..2700
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2701..2705
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2706..2710
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2716..2720

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 90.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 8 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                            function d3_time_parseMilliseconds(date, string, i) {
                                                                                                                                                                                                                                                                              d3_time_numberRe.lastIndex = 0;
                                                                                                                                                                                                                                                                              var n = d3_time_numberRe.exec(string.substring(i, i + 3));
                                                                                                                                                                                                                                                                              return n ? (date.L = +n[0], i + n[0].length) : -1;
                                                                                                                                                                                                                                                                            }
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 7 other locations - About 2 hrs to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2654..2658
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2669..2673
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2691..2695
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2696..2700
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2701..2705
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2706..2710
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2711..2715

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 90.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                            function d3_time_parseWeekNumberMonday(date, string, i) {
                                                                                                                                                                                                                                                                              d3_time_numberRe.lastIndex = 0;
                                                                                                                                                                                                                                                                              var n = d3_time_numberRe.exec(string.substring(i));
                                                                                                                                                                                                                                                                              return n ? (date.W = +n[0], i + n[0].length) : -1;
                                                                                                                                                                                                                                                                            }
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2659..2663

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 85.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                if (typeof linkDistance === "function") for (i = 0; i < m; ++i) distances[i] = +linkDistance.call(this, links[i], i); else for (i = 0; i < m; ++i) distances[i] = linkDistance;
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 2 other locations - About 2 hrs to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 6280..6280
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 6282..6282

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 85.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                if (typeof linkStrength === "function") for (i = 0; i < m; ++i) strengths[i] = +linkStrength.call(this, links[i], i); else for (i = 0; i < m; ++i) strengths[i] = linkStrength;
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 2 other locations - About 2 hrs to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 6278..6278
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 6282..6282

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 85.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                if (typeof charge === "function") for (i = 0; i < n; ++i) charges[i] = +charge.call(this, nodes[i], i); else for (i = 0; i < n; ++i) charges[i] = charge;
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 2 other locations - About 2 hrs to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 6278..6278
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 6280..6280

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 85.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                            function d3_time_parseWeekNumberSunday(date, string, i) {
                                                                                                                                                                                                                                                                              d3_time_numberRe.lastIndex = 0;
                                                                                                                                                                                                                                                                              var n = d3_time_numberRe.exec(string.substring(i));
                                                                                                                                                                                                                                                                              return n ? (date.U = +n[0], i + n[0].length) : -1;
                                                                                                                                                                                                                                                                            }
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2664..2668

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 85.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              while (++i < n) {
                                                                                                                                                                                                                                                                                pi = points[i];
                                                                                                                                                                                                                                                                                px.shift();
                                                                                                                                                                                                                                                                                px.push(pi[0]);
                                                                                                                                                                                                                                                                                py.shift();
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 8010..8017

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 83.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                path += "Q" + (p[0] - t0[0] * 2 / 3) + "," + (p[1] - t0[1] * 2 / 3) + "," + p[0] + "," + p[1];
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 7992..7992

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 83.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                path += "Q" + (p[0] + t[0] * 2 / 3) + "," + (p[1] + t[1] * 2 / 3) + "," + lp[0] + "," + lp[1];
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 7975..7975

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 83.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              while (++i <= n) {
                                                                                                                                                                                                                                                                                pi = points[i];
                                                                                                                                                                                                                                                                                px.shift();
                                                                                                                                                                                                                                                                                px.push(pi[0]);
                                                                                                                                                                                                                                                                                py.shift();
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 8032..8039

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 83.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              zoom.x = function(z) {
                                                                                                                                                                                                                                                                                if (!arguments.length) return x1;
                                                                                                                                                                                                                                                                                x1 = z;
                                                                                                                                                                                                                                                                                x0 = z.copy();
                                                                                                                                                                                                                                                                                view = {
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 1306..1316

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 77.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              zoom.y = function(z) {
                                                                                                                                                                                                                                                                                if (!arguments.length) return y1;
                                                                                                                                                                                                                                                                                y1 = z;
                                                                                                                                                                                                                                                                                y0 = z.copy();
                                                                                                                                                                                                                                                                                view = {
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 1295..1305

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 77.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                  if (lx > rx) {
                                                                                                                                                                                                                                                                                    if (!va) va = {
                                                                                                                                                                                                                                                                                      x: (y0 - fb) / fm,
                                                                                                                                                                                                                                                                                      y: y0
                                                                                                                                                                                                                                                                                    }; else if (va.y >= y1) return;
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 5068..5077

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 75.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                  } else {
                                                                                                                                                                                                                                                                                    if (!va) va = {
                                                                                                                                                                                                                                                                                      x: (y1 - fb) / fm,
                                                                                                                                                                                                                                                                                      y: y1
                                                                                                                                                                                                                                                                                    }; else if (va.y < y0) return;
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 5059..5068

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 75.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                  if (ly < ry) {
                                                                                                                                                                                                                                                                                    if (!va) va = {
                                                                                                                                                                                                                                                                                      x: x0,
                                                                                                                                                                                                                                                                                      y: fm * x0 + fb
                                                                                                                                                                                                                                                                                    }; else if (va.x >= x1) return;
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 5088..5097

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 75.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                  } else {
                                                                                                                                                                                                                                                                                    if (!va) va = {
                                                                                                                                                                                                                                                                                      x: x1,
                                                                                                                                                                                                                                                                                      y: fm * x1 + fb
                                                                                                                                                                                                                                                                                    }; else if (va.x < x0) return;
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 5079..5088

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 75.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                            function d3_geom_polygonInside(p, a, b) {
                                                                                                                                                                                                                                                                              return (b[0] - a[0]) * (p[1] - a[1]) < (b[1] - a[1]) * (p[0] - a[0]);
                                                                                                                                                                                                                                                                            }
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 1182..1184

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 74.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                            function d3_cross2d(a, b, c) {
                                                                                                                                                                                                                                                                              return (b[0] - a[0]) * (c[1] - a[1]) - (b[1] - a[1]) * (c[0] - a[0]);
                                                                                                                                                                                                                                                                            }
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 4792..4794

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 74.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                            function d3_geo_graticuleX(y0, y1, dy) {
                                                                                                                                                                                                                                                                              var y = d3.range(y0, y1 - ε, dy).concat(y1);
                                                                                                                                                                                                                                                                              return function(x) {
                                                                                                                                                                                                                                                                                return y.map(function(y) {
                                                                                                                                                                                                                                                                                  return [ x, y ];
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 4485..4492

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 72.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                            function d3_geo_graticuleY(x0, x1, dx) {
                                                                                                                                                                                                                                                                              var x = d3.range(x0, x1 - ε, dx).concat(x1);
                                                                                                                                                                                                                                                                              return function(y) {
                                                                                                                                                                                                                                                                                return x.map(function(x) {
                                                                                                                                                                                                                                                                                  return [ x, y ];
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 4477..4484

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 72.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                if (dy < 0) {
                                                                                                                                                                                                                                                                                  if (r > t1) return;
                                                                                                                                                                                                                                                                                  if (r > t0) t0 = r;
                                                                                                                                                                                                                                                                                } else if (dy > 0) {
                                                                                                                                                                                                                                                                                  if (r < t0) return;
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 3 other locations - About 1 hr to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 3529..3535
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 3539..3545
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 3549..3555

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 71.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                if (dx < 0) {
                                                                                                                                                                                                                                                                                  if (r < t0) return;
                                                                                                                                                                                                                                                                                  if (r < t1) t1 = r;
                                                                                                                                                                                                                                                                                } else if (dx > 0) {
                                                                                                                                                                                                                                                                                  if (r > t1) return;
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 3 other locations - About 1 hr to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 3539..3545
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 3549..3555
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 3559..3565

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 71.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                if (dy < 0) {
                                                                                                                                                                                                                                                                                  if (r < t0) return;
                                                                                                                                                                                                                                                                                  if (r < t1) t1 = r;
                                                                                                                                                                                                                                                                                } else if (dy > 0) {
                                                                                                                                                                                                                                                                                  if (r > t1) return;
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 3 other locations - About 1 hr to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 3529..3535
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 3539..3545
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 3559..3565

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 71.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                if (dx < 0) {
                                                                                                                                                                                                                                                                                  if (r > t1) return;
                                                                                                                                                                                                                                                                                  if (r > t0) t0 = r;
                                                                                                                                                                                                                                                                                } else if (dx > 0) {
                                                                                                                                                                                                                                                                                  if (r < t0) return;
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 3 other locations - About 1 hr to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 3529..3535
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 3549..3555
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 3559..3565

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 71.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                    } else {
                                                                                                                                                                                                                                                                                      if (λ > λ_) {
                                                                                                                                                                                                                                                                                        if (angle(λ0, λ) > angle(λ0, λ1)) λ1 = λ;
                                                                                                                                                                                                                                                                                      } else {
                                                                                                                                                                                                                                                                                        if (angle(λ, λ1) > angle(λ0, λ1)) λ0 = λ;
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2961..2967

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 68.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                  if (antimeridian) {
                                                                                                                                                                                                                                                                                    if (λ < λ_) {
                                                                                                                                                                                                                                                                                      if (angle(λ0, λ) > angle(λ0, λ1)) λ1 = λ;
                                                                                                                                                                                                                                                                                    } else {
                                                                                                                                                                                                                                                                                      if (angle(λ, λ1) > angle(λ0, λ1)) λ0 = λ;
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2971..2977

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 68.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                if (y1) y1.domain(y0.range().map(function(y) {
                                                                                                                                                                                                                                                                                  return (y - view.y) / view.k;
                                                                                                                                                                                                                                                                                }).map(y0.invert));
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 1332..1334

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 67.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                if (x1) x1.domain(x0.range().map(function(x) {
                                                                                                                                                                                                                                                                                  return (x - view.x) / view.k;
                                                                                                                                                                                                                                                                                }).map(x0.invert));
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 1335..1337

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 67.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                            d3_labPrototype.darker = function(k) {
                                                                                                                                                                                                                                                                              return d3_lab(Math.max(0, this.l - d3_lab_K * (arguments.length ? k : 1)), this.a, this.b);
                                                                                                                                                                                                                                                                            };
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 1562..1564

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 65.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              function redrawY(g) {
                                                                                                                                                                                                                                                                                g.select(".extent").attr("y", yExtent[0]);
                                                                                                                                                                                                                                                                                g.selectAll(".extent,.e>rect,.w>rect").attr("height", yExtent[1] - yExtent[0]);
                                                                                                                                                                                                                                                                              }
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 8896..8899

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 65.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                            d3_labPrototype.brighter = function(k) {
                                                                                                                                                                                                                                                                              return d3_lab(Math.min(100, this.l + d3_lab_K * (arguments.length ? k : 1)), this.a, this.b);
                                                                                                                                                                                                                                                                            };
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 1565..1567

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 65.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              function redrawX(g) {
                                                                                                                                                                                                                                                                                g.select(".extent").attr("x", xExtent[0]);
                                                                                                                                                                                                                                                                                g.selectAll(".extent,.n>rect,.s>rect").attr("width", xExtent[1] - xExtent[0]);
                                                                                                                                                                                                                                                                              }
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 8900..8903

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 65.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                return d3.range(Math.ceil(X0 / DX) * DX, X1, DX).map(X).concat(d3.range(Math.ceil(Y0 / DY) * DY, Y1, DY).map(Y)).concat(d3.range(Math.ceil(x0 / dx) * dx, x1, dx).filter(function(x) {
                                                                                                                                                                                                                                                                                  return abs(x % DX) > ε;
                                                                                                                                                                                                                                                                                }).map(x)).concat(d3.range(Math.ceil(y0 / dy) * dy, y1, dy).filter(function(y) {
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 4412..4416

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 65.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                            d3_hclPrototype.brighter = function(k) {
                                                                                                                                                                                                                                                                              return d3_hcl(this.h, this.c, Math.min(100, this.l + d3_lab_K * (arguments.length ? k : 1)));
                                                                                                                                                                                                                                                                            };
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 1537..1539

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 65.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                            d3_hclPrototype.darker = function(k) {
                                                                                                                                                                                                                                                                              return d3_hcl(this.h, this.c, Math.max(0, this.l - d3_lab_K * (arguments.length ? k : 1)));
                                                                                                                                                                                                                                                                            };
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 1534..1536

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 65.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              stack.offset = function(x) {
                                                                                                                                                                                                                                                                                if (!arguments.length) return offset;
                                                                                                                                                                                                                                                                                offset = typeof x === "function" ? x : d3_layout_stackOffsets.get(x) || d3_layout_stackOffsetZero;
                                                                                                                                                                                                                                                                                return stack;
                                                                                                                                                                                                                                                                              };
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 6559..6563

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 64.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              stack.order = function(x) {
                                                                                                                                                                                                                                                                                if (!arguments.length) return order;
                                                                                                                                                                                                                                                                                order = typeof x === "function" ? x : d3_layout_stackOrders.get(x) || d3_layout_stackOrderDefault;
                                                                                                                                                                                                                                                                                return stack;
                                                                                                                                                                                                                                                                              };
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 6564..6568

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 64.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              brush.y = function(z) {
                                                                                                                                                                                                                                                                                if (!arguments.length) return y;
                                                                                                                                                                                                                                                                                y = z;
                                                                                                                                                                                                                                                                                resizes = d3_svg_brushResizes[!x << 1 | !y];
                                                                                                                                                                                                                                                                                return brush;
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 9012..9017

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 63.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              brush.x = function(z) {
                                                                                                                                                                                                                                                                                if (!arguments.length) return x;
                                                                                                                                                                                                                                                                                x = z;
                                                                                                                                                                                                                                                                                resizes = d3_svg_brushResizes[!x << 1 | !y];
                                                                                                                                                                                                                                                                                return brush;
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 9018..9023

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 63.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              graticule.majorStep = function(_) {
                                                                                                                                                                                                                                                                                if (!arguments.length) return [ DX, DY ];
                                                                                                                                                                                                                                                                                DX = +_[0], DY = +_[1];
                                                                                                                                                                                                                                                                                return graticule;
                                                                                                                                                                                                                                                                              };
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 4461..4465

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 62.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                  if (x) {
                                                                                                                                                                                                                                                                                    range = d3_scaleRange(x);
                                                                                                                                                                                                                                                                                    backgroundUpdate.attr("x", range[0]).attr("width", range[1] - range[0]);
                                                                                                                                                                                                                                                                                    redrawX(gUpdate);
                                                                                                                                                                                                                                                                                  }
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 8829..8833

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 62.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                  if (y) {
                                                                                                                                                                                                                                                                                    range = d3_scaleRange(y);
                                                                                                                                                                                                                                                                                    backgroundUpdate.attr("y", range[0]).attr("height", range[1] - range[0]);
                                                                                                                                                                                                                                                                                    redrawY(gUpdate);
                                                                                                                                                                                                                                                                                  }
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 8824..8828

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 62.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              graticule.minorStep = function(_) {
                                                                                                                                                                                                                                                                                if (!arguments.length) return [ dx, dy ];
                                                                                                                                                                                                                                                                                dx = +_[0], dy = +_[1];
                                                                                                                                                                                                                                                                                return graticule;
                                                                                                                                                                                                                                                                              };
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 4456..4460

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 62.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              GeometryCollection: function(object, listener) {
                                                                                                                                                                                                                                                                                var geometries = object.geometries, i = -1, n = geometries.length;
                                                                                                                                                                                                                                                                                while (++i < n) d3_geo_streamGeometry(geometries[i], listener);
                                                                                                                                                                                                                                                                              }
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2825..2828

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 61.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              MultiPolygon: function(object, listener) {
                                                                                                                                                                                                                                                                                var coordinates = object.coordinates, i = -1, n = coordinates.length;
                                                                                                                                                                                                                                                                                while (++i < n) d3_geo_streamPolygon(coordinates[i], listener);
                                                                                                                                                                                                                                                                              },
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2829..2832

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 61.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              greatArc.target = function(_) {
                                                                                                                                                                                                                                                                                if (!arguments.length) return target;
                                                                                                                                                                                                                                                                                target = _, target_ = typeof _ === "function" ? null : _;
                                                                                                                                                                                                                                                                                return greatArc;
                                                                                                                                                                                                                                                                              };
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 4510..4514

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 59.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                if (lx > rx) {
                                                                                                                                                                                                                                                                                  if (!va) va = {
                                                                                                                                                                                                                                                                                    x: fx,
                                                                                                                                                                                                                                                                                    y: y0
                                                                                                                                                                                                                                                                                  }; else if (va.y >= y1) return;
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 5045..5054

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 59.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              return "M0," + r + "A" + r + "," + r + " 0 1,1 0," + -r + "A" + r + "," + r + " 0 1,1 0," + r + "Z";
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 2 other locations - About 1 hr to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 7829..7829
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 7829..7829

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 59.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              zoom.center = function(_) {
                                                                                                                                                                                                                                                                                if (!arguments.length) return center;
                                                                                                                                                                                                                                                                                center = _ && [ +_[0], +_[1] ];
                                                                                                                                                                                                                                                                                return zoom;
                                                                                                                                                                                                                                                                              };
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 1290..1294

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 59.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              greatArc.source = function(_) {
                                                                                                                                                                                                                                                                                if (!arguments.length) return source;
                                                                                                                                                                                                                                                                                source = _, source_ = typeof _ === "function" ? null : _;
                                                                                                                                                                                                                                                                                return greatArc;
                                                                                                                                                                                                                                                                              };
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 4515..4519

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 59.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                return da >= d3_svg_arcMax ? r0 ? "M0," + r1 + "A" + r1 + "," + r1 + " 0 1,1 0," + -r1 + "A" + r1 + "," + r1 + " 0 1,1 0," + r1 + "M0," + r0 + "A" + r0 + "," + r0 + " 0 1,0 0," + -r0 + "A" + r0 + "," + r0 + " 0 1,0 0," + r0 + "Z" : "M0," + r1 + "A" + r1 + "," + r1 + " 0 1,1 0," + -r1 + "A" + r1 + "," + r1 + " 0 1,1 0," + r1 + "Z" : r0 ? "M" + r1 * c0 + "," + r1 * s0 + "A" + r1 + "," + r1 + " 0 " + df + ",1 " + r1 * c1 + "," + r1 * s1 + "L" + r0 * c1 + "," + r0 * s1 + "A" + r0 + "," + r0 + " 0 " + df + ",0 " + r0 * c0 + "," + r0 * s0 + "Z" : "M" + r1 * c0 + "," + r1 * s0 + "A" + r1 + "," + r1 + " 0 " + df + ",1 " + r1 * c1 + "," + r1 * s1 + "L0,0" + "Z";
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 2 other locations - About 1 hr to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 7829..7829
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 8350..8350

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 59.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              zoom.size = function(_) {
                                                                                                                                                                                                                                                                                if (!arguments.length) return size;
                                                                                                                                                                                                                                                                                size = _ && [ +_[0], +_[1] ];
                                                                                                                                                                                                                                                                                return zoom;
                                                                                                                                                                                                                                                                              };
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 1285..1289

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 59.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              m.scale = function() {
                                                                                                                                                                                                                                                                                var v = scale.apply(m, arguments);
                                                                                                                                                                                                                                                                                return v === m ? clipAuto ? m.clipExtent(null) : m : v;
                                                                                                                                                                                                                                                                              };
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 4646..4649

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 59.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              m.translate = function() {
                                                                                                                                                                                                                                                                                var v = translate.apply(m, arguments);
                                                                                                                                                                                                                                                                                return v === m ? clipAuto ? m.clipExtent(null) : m : v;
                                                                                                                                                                                                                                                                              };
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 4642..4645

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 59.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                } else {
                                                                                                                                                                                                                                                                                  if (!va) va = {
                                                                                                                                                                                                                                                                                    x: fx,
                                                                                                                                                                                                                                                                                    y: y1
                                                                                                                                                                                                                                                                                  }; else if (va.y < y0) return;
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 5036..5045

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 59.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              graticule.extent = function(_) {
                                                                                                                                                                                                                                                                                if (!arguments.length) return graticule.minorExtent();
                                                                                                                                                                                                                                                                                return graticule.majorExtent(_).minorExtent(_);
                                                                                                                                                                                                                                                                              };
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 4452..4455

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 56.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              graticule.step = function(_) {
                                                                                                                                                                                                                                                                                if (!arguments.length) return graticule.minorStep();
                                                                                                                                                                                                                                                                                return graticule.majorStep(_).minorStep(_);
                                                                                                                                                                                                                                                                              };
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 4432..4435

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 56.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              function location(p) {
                                                                                                                                                                                                                                                                                return [ (p[0] - view.x) / view.k, (p[1] - view.y) / view.k ];
                                                                                                                                                                                                                                                                              }
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 1320..1322

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 55.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              function point(l) {
                                                                                                                                                                                                                                                                                return [ l[0] * view.k + view.x, l[1] * view.k + view.y ];
                                                                                                                                                                                                                                                                              }
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 1317..1319

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 55.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              cluster.nodeSize = function(x) {
                                                                                                                                                                                                                                                                                if (!arguments.length) return nodeSize ? size : null;
                                                                                                                                                                                                                                                                                nodeSize = (size = x) != null;
                                                                                                                                                                                                                                                                                return cluster;
                                                                                                                                                                                                                                                                              };
                                                                                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 55 mins to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 6843..6847

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 54.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              force.linkStrength = function(x) {
                                                                                                                                                                                                                                                                                if (!arguments.length) return linkStrength;
                                                                                                                                                                                                                                                                                linkStrength = typeof x === "function" ? x : +x;
                                                                                                                                                                                                                                                                                return force;
                                                                                                                                                                                                                                                                              };
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 2 other locations - About 55 mins to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 6207..6211
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 6223..6227

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 54.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              cluster.size = function(x) {
                                                                                                                                                                                                                                                                                if (!arguments.length) return nodeSize ? null : size;
                                                                                                                                                                                                                                                                                nodeSize = (size = x) == null;
                                                                                                                                                                                                                                                                                return cluster;
                                                                                                                                                                                                                                                                              };
                                                                                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 55 mins to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 6838..6842

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 54.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              force.linkDistance = function(x) {
                                                                                                                                                                                                                                                                                if (!arguments.length) return linkDistance;
                                                                                                                                                                                                                                                                                linkDistance = typeof x === "function" ? x : +x;
                                                                                                                                                                                                                                                                                return force;
                                                                                                                                                                                                                                                                              };
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 2 other locations - About 55 mins to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 6213..6217
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 6223..6227

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 54.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              force.charge = function(x) {
                                                                                                                                                                                                                                                                                if (!arguments.length) return charge;
                                                                                                                                                                                                                                                                                charge = typeof x === "function" ? x : +x;
                                                                                                                                                                                                                                                                                return force;
                                                                                                                                                                                                                                                                              };
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 2 other locations - About 55 mins to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 6207..6211
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 6213..6217

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 54.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              tree.nodeSize = function(x) {
                                                                                                                                                                                                                                                                                if (!arguments.length) return nodeSize ? size : null;
                                                                                                                                                                                                                                                                                nodeSize = (size = x) != null;
                                                                                                                                                                                                                                                                                return tree;
                                                                                                                                                                                                                                                                              };
                                                                                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 55 mins to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 7108..7112

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 54.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              tree.size = function(x) {
                                                                                                                                                                                                                                                                                if (!arguments.length) return nodeSize ? null : size;
                                                                                                                                                                                                                                                                                nodeSize = (size = x) == null;
                                                                                                                                                                                                                                                                                return tree;
                                                                                                                                                                                                                                                                              };
                                                                                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 55 mins to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 7103..7107

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 54.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                            d3.descending = function(a, b) {
                                                                                                                                                                                                                                                                              return b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN;
                                                                                                                                                                                                                                                                            };
                                                                                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 55 mins to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 35..37

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 53.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              var alaska = d3.geo.conicEqualArea().rotate([ 154, 0 ]).center([ -2, 58.5 ]).parallels([ 55, 65 ]);
                                                                                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 55 mins to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 3767..3767

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 53.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              var hawaii = d3.geo.conicEqualArea().rotate([ 157, 0 ]).center([ -3, 19.9 ]).parallels([ 8, 18 ]);
                                                                                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 55 mins to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 3766..3766

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 53.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              var dx = b.x - a.x, dy = b.y - a.y, dr = a.r + b.r;
                                                                                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 55 mins to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 7060..7060

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 53.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                            d3.ascending = function(a, b) {
                                                                                                                                                                                                                                                                              return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;
                                                                                                                                                                                                                                                                            };
                                                                                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 55 mins to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 38..40

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 53.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              var db = a.r + c.r, dx = b.x - a.x, dy = b.y - a.y;
                                                                                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 55 mins to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 6975..6975

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 53.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                q.push({
                                                                                                                                                                                                                                                                                  i: s.push(s.pop() + "rotate(", null, ")") - 2,
                                                                                                                                                                                                                                                                                  x: d3_interpolateNumber(ra, rb)
                                                                                                                                                                                                                                                                                });
                                                                                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 50 mins to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 5917..5920

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 52.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              var hierarchy = d3.layout.hierarchy().sort(null).value(null), separation = d3_layout_treeSeparation, size = [ 1, 1 ], nodeSize = false;
                                                                                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 50 mins to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 6741..6741

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 52.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              force.chargeDistance = function(x) {
                                                                                                                                                                                                                                                                                if (!arguments.length) return Math.sqrt(chargeDistance2);
                                                                                                                                                                                                                                                                                chargeDistance2 = x * x;
                                                                                                                                                                                                                                                                                return force;
                                                                                                                                                                                                                                                                              };
                                                                                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 50 mins to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 6238..6242

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 52.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              var hierarchy = d3.layout.hierarchy().sort(null).value(null), separation = d3_layout_treeSeparation, size = [ 1, 1 ], nodeSize = false;
                                                                                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 50 mins to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 7074..7074

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 52.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                q.push({
                                                                                                                                                                                                                                                                                  i: s.push(s.pop() + "skewX(", null, ")") - 2,
                                                                                                                                                                                                                                                                                  x: d3_interpolateNumber(wa, wb)
                                                                                                                                                                                                                                                                                });
                                                                                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 50 mins to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 5909..5912

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 52.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              force.theta = function(x) {
                                                                                                                                                                                                                                                                                if (!arguments.length) return Math.sqrt(theta2);
                                                                                                                                                                                                                                                                                theta2 = x * x;
                                                                                                                                                                                                                                                                                return force;
                                                                                                                                                                                                                                                                              };
                                                                                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 50 mins to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 6228..6232

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 52.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              chord.padding = function(x) {
                                                                                                                                                                                                                                                                                if (!arguments.length) return padding;
                                                                                                                                                                                                                                                                                padding = x;
                                                                                                                                                                                                                                                                                chords = groups = null;
                                                                                                                                                                                                                                                                                return chord;
                                                                                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 50 mins to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 6081..6086

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 51.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              chord.sortGroups = function(x) {
                                                                                                                                                                                                                                                                                if (!arguments.length) return sortGroups;
                                                                                                                                                                                                                                                                                sortGroups = x;
                                                                                                                                                                                                                                                                                chords = groups = null;
                                                                                                                                                                                                                                                                                return chord;
                                                                                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 50 mins to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 6075..6080

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 51.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              start: function() {
                                                                                                                                                                                                                                                                                return this.edge.l === this.site ? this.edge.a : this.edge.b;
                                                                                                                                                                                                                                                                              },
                                                                                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 50 mins to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 5146..5148

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 51.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              end: function() {
                                                                                                                                                                                                                                                                                return this.edge.l === this.site ? this.edge.b : this.edge.a;
                                                                                                                                                                                                                                                                              }
                                                                                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 50 mins to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 5143..5145

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 51.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                for (var i = 0, n = group.length; i < n; i++) {
                                                                                                                                                                                                                                                                                  if ((node = group[i]) && filter.call(node, node.__data__, i, j)) {
                                                                                                                                                                                                                                                                                    subgroup.push(node);
                                                                                                                                                                                                                                                                                  }
                                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 8431..8435

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 49.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                for (var group = this[j], i = 0, n = group.length; i < n; i++) {
                                                                                                                                                                                                                                                                                  if ((node = group[i]) && filter.call(node, node.__data__, i, j)) {
                                                                                                                                                                                                                                                                                    subgroup.push(node);
                                                                                                                                                                                                                                                                                  }
                                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 845..849

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 49.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                if (typeof _ === "function") interpolateKey = interpolate = _; else interpolateKey = (interpolate = d3_svg_lineInterpolators.get(_) || d3_svg_lineLinear).key;
                                                                                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 8197..8197

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 49.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                      if (angle(a[0], b[1]) > angle(a[0], a[1])) a[1] = b[1];
                                                                                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 3030..3030

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 49.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                    if (quad.point && dn && dn < chargeDistance2) {
                                                                                                                                                                                                                                                                                      var k = quad.pointCharge / dn;
                                                                                                                                                                                                                                                                                      node.px -= dx * k;
                                                                                                                                                                                                                                                                                      node.py -= dy * k;
                                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 6116..6120

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 49.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                      if (angle(b[0], a[1]) > angle(a[0], a[1])) a[0] = b[0];
                                                                                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 3029..3029

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 49.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                      if (dn < chargeDistance2) {
                                                                                                                                                                                                                                                                                        var k = quad.charge / dn;
                                                                                                                                                                                                                                                                                        node.px -= dx * k;
                                                                                                                                                                                                                                                                                        node.py -= dy * k;
                                                                                                                                                                                                                                                                                      }
                                                                                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 6123..6127

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 49.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                if (typeof _ === "function") interpolateKey = interpolate = _; else interpolateKey = (interpolate = d3_svg_lineInterpolators.get(_) || d3_svg_lineLinear).key;
                                                                                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 7905..7905

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 49.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                            d3.geo.length = function(object) {
                                                                                                                                                                                                                                                                              d3_geo_lengthSum = 0;
                                                                                                                                                                                                                                                                              d3.geo.stream(object, d3_geo_length);
                                                                                                                                                                                                                                                                              return d3_geo_lengthSum;
                                                                                                                                                                                                                                                                            };
                                                                                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2846..2850

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 47.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              chord.sortSubgroups = function(x) {
                                                                                                                                                                                                                                                                                if (!arguments.length) return sortSubgroups;
                                                                                                                                                                                                                                                                                sortSubgroups = x;
                                                                                                                                                                                                                                                                                chords = null;
                                                                                                                                                                                                                                                                                return chord;
                                                                                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 7263..7268

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 47.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              treemap.sticky = function(x) {
                                                                                                                                                                                                                                                                                if (!arguments.length) return sticky;
                                                                                                                                                                                                                                                                                sticky = x;
                                                                                                                                                                                                                                                                                stickies = null;
                                                                                                                                                                                                                                                                                return treemap;
                                                                                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 6087..6092

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 47.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                            d3.geo.area = function(object) {
                                                                                                                                                                                                                                                                              d3_geo_areaSum = 0;
                                                                                                                                                                                                                                                                              d3.geo.stream(object, d3_geo_area);
                                                                                                                                                                                                                                                                              return d3_geo_areaSum;
                                                                                                                                                                                                                                                                            };
                                                                                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 4539..4543

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 47.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                if (t1 < 1) line.b = {
                                                                                                                                                                                                                                                                                  x: ax + t1 * dx,
                                                                                                                                                                                                                                                                                  y: ay + t1 * dy
                                                                                                                                                                                                                                                                                };
                                                                                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 3566..3569

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 46.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                while (++i < n) object = coordinates[i], listener.point(object[0], object[1], object[2]);
                                                                                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2837..2837

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 46.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                if (t0 > 0) line.a = {
                                                                                                                                                                                                                                                                                  x: ax + t0 * dx,
                                                                                                                                                                                                                                                                                  y: ay + t0 * dy
                                                                                                                                                                                                                                                                                };
                                                                                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 3570..3573

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 46.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              while (++i < n) coordinate = coordinates[i], listener.point(coordinate[0], coordinate[1], coordinate[2]);
                                                                                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2813..2813

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 46.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                var dx = x - x0, dy = y - y0, z = Math.sqrt(dx * dx + dy * dy);
                                                                                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 30 mins to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 3956..3956

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 45.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              var l = Math.sqrt(d[0] * d[0] + d[1] * d[1] + d[2] * d[2]);
                                                                                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 2 other locations - About 30 mins to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2892..2892
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 8075..8075

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 45.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              return a[0] * b[0] + a[1] * b[1] + a[2] * b[2];
                                                                                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 2 other locations - About 30 mins to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2906..2906
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 8075..8075

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 45.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              return a[0] * b[0] + a[1] * b[1] + a[2] * b[2] + a[3] * b[3];
                                                                                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 2 other locations - About 30 mins to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2892..2892
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 2906..2906

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 45.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                var dx = x - x0, dy = y - y0, z = Math.sqrt(dx * dx + dy * dy);
                                                                                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 30 mins to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 3973..3973

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 45.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              voronoi.x = function(_) {
                                                                                                                                                                                                                                                                                return arguments.length ? (fx = d3_functor(x = _), voronoi) : x;
                                                                                                                                                                                                                                                                              };
                                                                                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 30 mins to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 5430..5432

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 45.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                      var dx = size[0], dy = size[1], cx = dx / 2, cy = dy / 2, i = d3.interpolateZoom([ (cx - view.x) / view.k, (cy - view.y) / view.k, dx / view.k ], [ (cx - view1.x) / view1.k, (cy - view1.y) / view1.k, dx / view1.k ]);
                                                                                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 30 mins to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 1239..1239

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 45.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              voronoi.y = function(_) {
                                                                                                                                                                                                                                                                                return arguments.length ? (fy = d3_functor(y = _), voronoi) : y;
                                                                                                                                                                                                                                                                              };
                                                                                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                                                                                          Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 30 mins to fix
                                                                                                                                                                                                                                                                          app/assets/javascripts/d3.v3/d3.v3.js on lines 5427..5429

                                                                                                                                                                                                                                                                          Duplicated Code

                                                                                                                                                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                                                                                          This issue has a mass of 45.

                                                                                                                                                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                                                                                          Further Reading

                                                                                                                                                                                                                                                                          There are no issues that match your filters.

                                                                                                                                                                                                                                                                          Category
                                                                                                                                                                                                                                                                          Status