meteor/meteor

View on GitHub
packages/deprecated/d3/d3.v3.js

Summary

Maintainability
F
3 mos
Test Coverage

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

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

    Function d3_geom_voronoiTessellate has 268 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      function d3_geom_voronoiTessellate(points, callback) {
        var Sites = {
          list: points.map(function(v, i) {
            return {
              index: i,
    Severity: Major
    Found in packages/deprecated/d3/d3.v3.js - About 1 day to fix

      Function brush has 213 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, resizes = d3_svg_brushResizes[0], extent = [ [ 0, 0 ], [ 0, 0 ] ], extentDomain;
          function brush(g) {
            g.each(function() {
              var g = d3.select(this), bg = g.selectAll(".background").data([ 0 ]), fg = g.selectAll(".extent").data([ 0 ]), tz = g.selectAll(".resize").data(resizes, String), e;
      Severity: Major
      Found in packages/deprecated/d3/d3.v3.js - About 1 day to fix

        Function force has 203 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, gravity = .1, theta = .8, nodes = [], links = [], distances, strengths, charges;
            function repulse(node) {
              return function(quad, x1, _, x2) {
                if (quad.point !== node) {
        Severity: Major
        Found in packages/deprecated/d3/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 packages/deprecated/d3/d3.v3.js - About 5 hrs to fix

            Function d3_geo_clipView has 138 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

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

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

                d3.behavior.zoom = function() {
                  var translate = [ 0, 0 ], translate0, scale = 1, scale0, scaleExtent = d3_behavior_zoomInfinity, event = d3_eventDispatch(zoom, "zoom"), x0, x1, y0, y1, touchtime;
                  function zoom() {
                    this.on("mousedown.zoom", mousedown).on("mousemove.zoom", mousemove).on(d3_behavior_zoomWheel + ".zoom", mousewheel).on("dblclick.zoom", dblclick).on("touchstart.zoom", touchstart).on("touchmove.zoom", touchmove).on("touchend.zoom", touchstart);
                  }
              Severity: Major
              Found in packages/deprecated/d3/d3.v3.js - About 5 hrs to fix

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

                  d3.svg.axis = function() {
                    var scale = d3.scale.linear(), orient = d3_svg_axisDefaultOrient, tickMajorSize = 6, tickMinorSize = 6, tickEndSize = 6, tickPadding = 3, tickArguments_ = [ 10 ], tickValues = null, tickFormat_, tickSubdivide = 0;
                    function axis(g) {
                      g.each(function() {
                        var g = d3.select(this);
                Severity: Major
                Found in packages/deprecated/d3/d3.v3.js - About 5 hrs to fix

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

                    d3.geom.voronoi = function(points) {
                      var size = null, x = d3_svg_lineX, y = d3_svg_lineY, clip;
                      if (arguments.length) return voronoi(points);
                      function voronoi(data) {
                        var points, polygons = data.map(function() {
                  Severity: Major
                  Found in packages/deprecated/d3/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 packages/deprecated/d3/d3.v3.js - About 4 hrs to fix

                      Function brushstart has 105 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"), center, origin = mouse(), offset;
                            var w = d3.select(d3_window).on("mousemove.brush", brushmove).on("mouseup.brush", brushend).on("touchmove.brush", brushmove).on("touchend.brush", brushend).on("keydown.brush", keydown).on("keyup.brush", keyup);
                            if (dragging) {
                              origin[0] = extent[0][0] - origin[0];
                      Severity: Major
                      Found in packages/deprecated/d3/d3.v3.js - About 4 hrs to fix

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

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

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

                            function d3_dsv(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, callback);
                          Severity: Major
                          Found in packages/deprecated/d3/d3.v3.js - About 4 hrs to fix

                            Function tree has 99 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 ];
                                function tree(d, i) {
                                  var nodes = hierarchy.call(this, d, i), root = nodes[0];
                                  function firstWalk(node, previousSibling) {
                            Severity: Major
                            Found in packages/deprecated/d3/d3.v3.js - About 3 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 = Math.abs(cr) > ε, interpolate = d3_geo_circleInterpolate(radius, 6 * d3_radians);
                                  return d3_geo_clip(visible, clipLine, interpolate);
                                  function visible(λ, φ) {
                                    return Math.cos(λ) * Math.cos(φ) > cr;
                              Severity: Major
                              Found in packages/deprecated/d3/d3.v3.js - About 3 hrs to fix

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

                                  function d3_geo_clip(pointVisible, clipLine, interpolate) {
                                    return function(listener) {
                                      var line = clipLine(listener);
                                      var clip = {
                                        point: point,
                                Severity: Major
                                Found in packages/deprecated/d3/d3.v3.js - About 3 hrs to fix

                                  Function tree has 85 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 packages/deprecated/d3/d3.v3.js - About 3 hrs to fix

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

                                      function d3_geo_clipPolygon(segments, compare, inside, 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 packages/deprecated/d3/d3.v3.js - About 3 hrs to fix

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

                                          function axis(g) {
                                            g.each(function() {
                                              var g = d3.select(this);
                                              var ticks = tickValues == null ? scale.ticks ? scale.ticks.apply(scale, tickArguments_) : scale.domain() : tickValues, tickFormat = tickFormat_ == null ? scale.tickFormat ? scale.tickFormat.apply(scale, tickArguments_) : String : tickFormat_;
                                              var subticks = d3_svg_axisSubdivide(scale, ticks, tickSubdivide), subtick = g.selectAll(".tick.minor").data(subticks, String), subtickEnter = subtick.enter().insert("line", ".tick").attr("class", "tick minor").style("opacity", 1e-6), subtickExit = d3.transition(subtick.exit()).style("opacity", 1e-6).remove(), subtickUpdate = d3.transition(subtick).style("opacity", 1);
                                      Severity: Major
                                      Found in packages/deprecated/d3/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 packages/deprecated/d3/d3.v3.js - About 3 hrs to fix

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

                                            d3.geom.hull = function(vertices) {
                                              var x = d3_svg_lineX, y = d3_svg_lineY;
                                              if (arguments.length) return hull(vertices);
                                              function hull(data) {
                                                if (data.length < 3) return [];
                                          Severity: Major
                                          Found in packages/deprecated/d3/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) || index.set(x, domain.push(x))) - 1) % range.length];
                                                }
                                            Severity: Major
                                            Found in packages/deprecated/d3/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 packages/deprecated/d3/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_svg_lineX, x1 = d3_svg_lineX, y0 = 0, y1 = d3_svg_lineY, 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 packages/deprecated/d3/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 packages/deprecated/d3/d3.v3.js - About 2 hrs to fix

                                                    Function hull has 69 lines of code (exceeds 25 allowed). Consider refactoring.
                                                    Open

                                                        function hull(data) {
                                                          if (data.length < 3) return [];
                                                          var fx = d3_functor(x), fy = d3_functor(y), n = data.length, vertices, plen = n - 1, points = [], stack = [], d, i, j, h = 0, x1, y1, x2, y2, u, v, a, sp;
                                                          if (fx === d3_svg_lineX && y === d3_svg_lineY) vertices = data; else for (i = 0,
                                                          vertices = []; i < n; ++i) {
                                                    Severity: Major
                                                    Found in packages/deprecated/d3/d3.v3.js - About 2 hrs to fix

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

                                                          function voronoi(data) {
                                                            var points, polygons = data.map(function() {
                                                              return [];
                                                            }), fx = d3_functor(x), fy = d3_functor(y), d, i, n = data.length, Z = 1e6;
                                                            if (fx === d3_svg_lineX && fy === d3_svg_lineY) points = data; else for (points = [],
                                                      Severity: Major
                                                      Found in packages/deprecated/d3/d3.v3.js - About 2 hrs to fix

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

                                                          function d3_geo_resample(project) {
                                                            var δ2 = .5, maxDepth = 16;
                                                            function resample(stream) {
                                                              var λ0, x0, y0, a0, b0, c0;
                                                              var resample = {
                                                        Severity: Major
                                                        Found in packages/deprecated/d3/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 packages/deprecated/d3/d3.v3.js - About 2 hrs to fix

                                                            Function d3_geo_projectionMutator has 63 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;
                                                            Severity: Major
                                                            Found in packages/deprecated/d3/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 packages/deprecated/d3/d3.v3.js - About 2 hrs to fix

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

                                                                  d3.format = function(specifier) {
                                                                    var match = d3_format_re.exec(specifier), fill = match[1] || " ", align = match[2] || ">", sign = match[3] || "", basePrefix = match[4] || "", zfill = match[5], width = +match[6], comma = match[7], precision = match[8], type = match[9], scale = 1, suffix = "", integer = false;
                                                                    if (precision) precision = +precision.substring(1);
                                                                    if (zfill || fill === "0" && align === "=") {
                                                                      zfill = fill = "0";
                                                                Severity: Major
                                                                Found in packages/deprecated/d3/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 packages/deprecated/d3/d3.v3.js - About 2 hrs to fix

                                                                    Function d3_interpolateString has 60 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;
                                                                        d3_interpolate_number.lastIndex = 0;
                                                                        for (i = 0; m = d3_interpolate_number.exec(b); ++i) {
                                                                          if (m.index) s.push(b.substring(s0, s1 = m.index));
                                                                    Severity: Major
                                                                    Found in packages/deprecated/d3/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 packages/deprecated/d3/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 packages/deprecated/d3/d3.v3.js - About 2 hrs to fix

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

                                                                            d3.behavior.drag = function() {
                                                                              var event = d3_eventDispatch(drag, "drag", "dragstart", "dragend"), origin = null;
                                                                              function drag() {
                                                                                this.on("mousedown.drag", mousedown).on("touchstart.drag", mousedown);
                                                                              }
                                                                          Severity: Major
                                                                          Found in packages/deprecated/d3/d3.v3.js - About 2 hrs to fix

                                                                            Function xhr has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                            Open

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

                                                                              Function hierarchy has 56 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 packages/deprecated/d3/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 packages/deprecated/d3/d3.v3.js - About 2 hrs to fix

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

                                                                                    function d3_scale_log(linear, base, log, pow) {
                                                                                      function scale(x) {
                                                                                        return linear(log(x));
                                                                                      }
                                                                                      scale.invert = function(x) {
                                                                                  Severity: Major
                                                                                  Found in packages/deprecated/d3/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 packages/deprecated/d3/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 packages/deprecated/d3/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 packages/deprecated/d3/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 packages/deprecated/d3/d3.v3.js - About 2 hrs to fix

                                                                                            Function d3_transitionNode has 49 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 packages/deprecated/d3/d3.v3.js - About 1 hr to fix

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

                                                                                                  function mousedown() {
                                                                                                    var target = this, event_ = event.of(target, arguments), eventTarget = d3.event.target, touchId = d3.event.touches ? d3.event.changedTouches[0].identifier : null, offset, origin_ = point(), moved = 0;
                                                                                                    var w = d3.select(d3_window).on(touchId != null ? "touchmove.drag-" + touchId : "mousemove.drag", dragmove).on(touchId != null ? "touchend.drag-" + touchId : "mouseup.drag", dragend, true);
                                                                                                    if (origin) {
                                                                                                      offset = origin.apply(target, arguments);
                                                                                              Severity: Minor
                                                                                              Found in packages/deprecated/d3/d3.v3.js - About 1 hr to fix

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

                                                                                                    function resample(stream) {
                                                                                                      var λ0, x0, y0, a0, b0, c0;
                                                                                                      var resample = {
                                                                                                        point: point,
                                                                                                        lineStart: lineStart,
                                                                                                Severity: Minor
                                                                                                Found in packages/deprecated/d3/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 packages/deprecated/d3/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 = 2 * π;
                                                                                                        function pie(data) {
                                                                                                          var values = data.map(function(d, i) {
                                                                                                            return +value.call(pie, d, i);
                                                                                                    Severity: Minor
                                                                                                    Found in packages/deprecated/d3/d3.v3.js - About 1 hr to fix

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

                                                                                                          force.start = function() {
                                                                                                            var i, j, 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 packages/deprecated/d3/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 packages/deprecated/d3/d3.v3.js - About 1 hr to fix

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

                                                                                                            d3.geom.polygon = function(coordinates) {
                                                                                                              coordinates.area = function() {
                                                                                                                var i = 0, n = coordinates.length, area = coordinates[n - 1][1] * coordinates[0][0] - coordinates[n - 1][0] * coordinates[0][1];
                                                                                                                while (++i < n) {
                                                                                                                  area += coordinates[i - 1][1] * coordinates[i][0] - coordinates[i - 1][0] * coordinates[i][1];
                                                                                                          Severity: Minor
                                                                                                          Found in packages/deprecated/d3/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 packages/deprecated/d3/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 packages/deprecated/d3/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_pathCircle(4.5), buffer = [];
                                                                                                                    var stream = {
                                                                                                                      point: point,
                                                                                                                      lineStart: function() {
                                                                                                                Severity: Minor
                                                                                                                Found in packages/deprecated/d3/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 packages/deprecated/d3/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_svg_lineX, y = d3_svg_lineY, 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 packages/deprecated/d3/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) {
                                                                                                                              z = extentDomain || extent;
                                                                                                                              if (x) {
                                                                                                                      Severity: Minor
                                                                                                                      Found in packages/deprecated/d3/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 packages/deprecated/d3/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 packages/deprecated/d3/d3.v3.js - About 1 hr to fix

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

                                                                                                                              d3.geo.albersUsa = function() {
                                                                                                                                var lower48 = d3.geo.conicEqualArea().rotate([ 98, 0 ]).center([ 0, 38 ]).parallels([ 29.5, 45.5 ]);
                                                                                                                                var alaska = d3.geo.conicEqualArea().rotate([ 160, 0 ]).center([ 0, 60 ]).parallels([ 55, 65 ]);
                                                                                                                                var hawaii = d3.geo.conicEqualArea().rotate([ 160, 0 ]).center([ 0, 20 ]).parallels([ 8, 18 ]);
                                                                                                                                var puertoRico = d3.geo.conicEqualArea().rotate([ 60, 0 ]).center([ 0, 10 ]).parallels([ 8, 18 ]);
                                                                                                                            Severity: Minor
                                                                                                                            Found in packages/deprecated/d3/d3.v3.js - About 1 hr to fix

                                                                                                                              Function d3_time_scale has 36 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 packages/deprecated/d3/d3.v3.js - About 1 hr to fix

                                                                                                                                Function format has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                Open

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

                                                                                                                                  Function pack has 35 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 ];
                                                                                                                                      function pack(d, i) {
                                                                                                                                        var nodes = hierarchy.call(this, d, i), root = nodes[0];
                                                                                                                                        root.x = 0;
                                                                                                                                  Severity: Minor
                                                                                                                                  Found in packages/deprecated/d3/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 packages/deprecated/d3/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 packages/deprecated/d3/d3.v3.js - About 1 hr to fix

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

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

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

                                                                                                                                                rightOf: function(he, p) {
                                                                                                                                                  var e = he.edge, topsite = e.region.r, rightOfSite = p.x > topsite.x;
                                                                                                                                                  if (rightOfSite && he.side === "l") {
                                                                                                                                                    return 1;
                                                                                                                                                  }
                                                                                                                                          Severity: Minor
                                                                                                                                          Found in packages/deprecated/d3/d3.v3.js - About 1 hr to fix

                                                                                                                                            Function cluster has 32 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 ];
                                                                                                                                                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 packages/deprecated/d3/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) {
                                                                                                                                                  var powp = d3_scale_powPow(exponent), powb = d3_scale_powPow(1 / exponent);
                                                                                                                                                  function scale(x) {
                                                                                                                                                    return linear(powp(x));
                                                                                                                                                  }
                                                                                                                                              Severity: Minor
                                                                                                                                              Found in packages/deprecated/d3/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 packages/deprecated/d3/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 packages/deprecated/d3/d3.v3.js - About 1 hr to fix

                                                                                                                                                    Function d3_scale_quantile has 30 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 packages/deprecated/d3/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 packages/deprecated/d3/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 packages/deprecated/d3/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 packages/deprecated/d3/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 packages/deprecated/d3/d3.v3.js - About 1 hr to fix

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

                                                                                                                                                                    function linePoint(x, y) {
                                                                                                                                                                      x = Math.max(-d3_geo_clipViewMAX, Math.min(d3_geo_clipViewMAX, x));
                                                                                                                                                                      y = Math.max(-d3_geo_clipViewMAX, Math.min(d3_geo_clipViewMAX, y));
                                                                                                                                                                      var v = visible(x, y);
                                                                                                                                                                      if (polygon) ring.push([ x, y ]);
                                                                                                                                                              Severity: Minor
                                                                                                                                                              Found in packages/deprecated/d3/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 packages/deprecated/d3/d3.v3.js - About 1 hr to fix

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

                                                                                                                                                                      function brush(g) {
                                                                                                                                                                        g.each(function() {
                                                                                                                                                                          var g = d3.select(this), bg = g.selectAll(".background").data([ 0 ]), fg = g.selectAll(".extent").data([ 0 ]), tz = g.selectAll(".resize").data(resizes, String), e;
                                                                                                                                                                          g.style("pointer-events", "all").on("mousedown.brush", brushstart).on("touchstart.brush", brushstart);
                                                                                                                                                                          bg.enter().append("rect").attr("class", "background").style("visibility", "hidden").style("cursor", "crosshair");
                                                                                                                                                                  Severity: Minor
                                                                                                                                                                  Found in packages/deprecated/d3/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 = mouse(), moved = false;
                                                                                                                                                                            if (offset) {
                                                                                                                                                                              point[0] += offset[0];
                                                                                                                                                                              point[1] += offset[1];
                                                                                                                                                                    Severity: Minor
                                                                                                                                                                    Found in packages/deprecated/d3/d3.v3.js - About 1 hr to fix

                                                                                                                                                                      Function attr has 26 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 packages/deprecated/d3/d3.v3.js - About 1 hr to fix

                                                                                                                                                                        Function d3_geo_pathProjectStream has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                                        Open

                                                                                                                                                                          function d3_geo_pathProjectStream(project) {
                                                                                                                                                                            var resample = d3_geo_resample(function(λ, φ) {
                                                                                                                                                                              return project([ λ * d3_degrees, φ * d3_degrees ]);
                                                                                                                                                                            });
                                                                                                                                                                            return function(stream) {
                                                                                                                                                                        Severity: Minor
                                                                                                                                                                        Found in packages/deprecated/d3/d3.v3.js - About 1 hr to fix

                                                                                                                                                                          Function d3_geo_bounds has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                                          Open

                                                                                                                                                                            function d3_geo_bounds(projectStream) {
                                                                                                                                                                              var x0, y0, x1, y1;
                                                                                                                                                                              var bound = {
                                                                                                                                                                                point: boundPoint,
                                                                                                                                                                                lineStart: d3_noop,
                                                                                                                                                                          Severity: Minor
                                                                                                                                                                          Found in packages/deprecated/d3/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 packages/deprecated/d3/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 packages/deprecated/d3/d3.v3.js - About 1 hr to fix

                                                                                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                                                                                Open

                                                                                                                                                                                            for (var i = 0; i < points.length; i++) listener.point((point = points[i])[0], point[1]);
                                                                                                                                                                                Severity: Major
                                                                                                                                                                                Found in packages/deprecated/d3/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 packages/deprecated/d3/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 packages/deprecated/d3/d3.v3.js - About 45 mins to fix

                                                                                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                                                                                      Open

                                                                                                                                                                                                  for (var i = points.length; --i >= 0; ) listener.point((point = points[i])[0], point[1]);
                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                      Found in packages/deprecated/d3/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 packages/deprecated/d3/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 packages/deprecated/d3/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 packages/deprecated/d3/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 packages/deprecated/d3/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 packages/deprecated/d3/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 packages/deprecated/d3/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 packages/deprecated/d3/d3.v3.js - About 45 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 packages/deprecated/d3/d3.v3.js - About 35 mins to fix

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

                                                                                                                                                                                                          function d3_geo_clipPolygon(segments, compare, inside, interpolate, listener) {
                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                        Found in packages/deprecated/d3/d3.v3.js - About 35 mins to fix

                                                                                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                                                                                          Open

                                                                                                                                                                                                              return this.each(d3_selection_classed(name, value));
                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                          Found in packages/deprecated/d3/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 packages/deprecated/d3/d3.v3.js - About 30 mins to fix

                                                                                                                                                                                                              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 packages/deprecated/d3/d3.v3.js and 1 other location - About 1 day to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 23..33

                                                                                                                                                                                                              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 248.

                                                                                                                                                                                                              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 packages/deprecated/d3/d3.v3.js and 1 other location - About 1 day to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 34..44

                                                                                                                                                                                                              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 248.

                                                                                                                                                                                                              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 packages/deprecated/d3/d3.v3.js and 1 other location - About 1 day to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 6234..6247

                                                                                                                                                                                                              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 packages/deprecated/d3/d3.v3.js and 1 other location - About 1 day to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 6221..6234

                                                                                                                                                                                                              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

                                                                                                                                                                                                                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 (bh > 180) bh -= 360; else if (bh < -180) bh += 360;
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in packages/deprecated/d3/d3.v3.js and 1 other location - About 7 hrs to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 4967..4975

                                                                                                                                                                                                              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 187.

                                                                                                                                                                                                              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 h0 = a.h, s0 = a.s, l0 = a.l, h1 = b.h - h0, s1 = b.s - s0, l1 = b.l - l0;
                                                                                                                                                                                                                  if (h1 > 180) h1 -= 360; else if (h1 < -180) h1 += 360;
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in packages/deprecated/d3/d3.v3.js and 1 other location - About 7 hrs to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 4957..4965

                                                                                                                                                                                                              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 187.

                                                                                                                                                                                                              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];
                                                                                                                                                                                                                      extentDomain[0][1] = y0, extentDomain[1][1] = y1;
                                                                                                                                                                                                                      if (y.invert) y0 = y(y0), y1 = y(y1);
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in packages/deprecated/d3/d3.v3.js and 1 other location - About 7 hrs to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 7759..7766

                                                                                                                                                                                                              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 180.

                                                                                                                                                                                                              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];
                                                                                                                                                                                                                      extentDomain[0][0] = x0, extentDomain[1][0] = x1;
                                                                                                                                                                                                                      if (x.invert) x0 = x(x0), x1 = x(x1);
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in packages/deprecated/d3/d3.v3.js and 1 other location - About 7 hrs to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 7767..7774

                                                                                                                                                                                                              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 180.

                                                                                                                                                                                                              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 packages/deprecated/d3/d3.v3.js and 1 other location - About 6 hrs to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 3114..3121

                                                                                                                                                                                                              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.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 packages/deprecated/d3/d3.v3.js and 1 other location - About 6 hrs to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 3106..3113

                                                                                                                                                                                                              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

                                                                                                                                                                                                                  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δφ), Math.asin(Math.max(-1, Math.min(1, k * cosδφ - x * sinδφ))) ];
                                                                                                                                                                                                                  };
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in packages/deprecated/d3/d3.v3.js and 1 other location - About 6 hrs to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 3003..3006

                                                                                                                                                                                                              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 162.

                                                                                                                                                                                                              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δφ), Math.asin(Math.max(-1, Math.min(1, k * cosδγ + y * sinδγ))) ];
                                                                                                                                                                                                                  }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in packages/deprecated/d3/d3.v3.js and 1 other location - About 6 hrs to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 3007..3010

                                                                                                                                                                                                              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 162.

                                                                                                                                                                                                              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 packages/deprecated/d3/d3.v3.js and 1 other location - About 5 hrs to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 775..784

                                                                                                                                                                                                              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.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 packages/deprecated/d3/d3.v3.js and 1 other location - About 5 hrs to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 765..774

                                                                                                                                                                                                              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 (x) {
                                                                                                                                                                                                                        x0 = z[0][0], x1 = z[1][0];
                                                                                                                                                                                                                        if (!extentDomain) {
                                                                                                                                                                                                                          x0 = extent[0][0], x1 = extent[1][0];
                                                                                                                                                                                                                          if (x.invert) x0 = x.invert(x0), x1 = x.invert(x1);
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in packages/deprecated/d3/d3.v3.js and 1 other location - About 5 hrs to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 7748..7755

                                                                                                                                                                                                              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

                                                                                                                                                                                                                      if (y) {
                                                                                                                                                                                                                        y0 = z[0][1], y1 = z[1][1];
                                                                                                                                                                                                                        if (!extentDomain) {
                                                                                                                                                                                                                          y0 = extent[0][1], y1 = extent[1][1];
                                                                                                                                                                                                                          if (y.invert) y0 = y.invert(y0), y1 = y.invert(y1);
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in packages/deprecated/d3/d3.v3.js and 1 other location - About 5 hrs to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 7740..7747

                                                                                                                                                                                                              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

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

                                                                                                                                                                                                              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 107.

                                                                                                                                                                                                              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_time(Math.floor(date / 6e4) * 6e4);
                                                                                                                                                                                                                }, function(date, offset) {
                                                                                                                                                                                                                  date.setTime(date.getTime() + Math.floor(offset) * 6e4);
                                                                                                                                                                                                                }, function(date) {
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in packages/deprecated/d3/d3.v3.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 8253..8259

                                                                                                                                                                                                              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 107.

                                                                                                                                                                                                              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 packages/deprecated/d3/d3.v3.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 3764..3768

                                                                                                                                                                                                              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_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 packages/deprecated/d3/d3.v3.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 3759..3763

                                                                                                                                                                                                              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_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 packages/deprecated/d3/d3.v3.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 8144..8148

                                                                                                                                                                                                              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

                                                                                                                                                                                                                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 packages/deprecated/d3/d3.v3.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 8149..8153

                                                                                                                                                                                                              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 6 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 packages/deprecated/d3/d3.v3.js and 5 other locations - About 2 hrs to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 8163..8167
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 8186..8190
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 8191..8195
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 8196..8200
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 8201..8205

                                                                                                                                                                                                              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 6 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 packages/deprecated/d3/d3.v3.js and 5 other locations - About 2 hrs to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 8163..8167
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 8181..8185
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 8186..8190
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 8191..8195
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 8201..8205

                                                                                                                                                                                                              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 6 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 packages/deprecated/d3/d3.v3.js and 5 other locations - About 2 hrs to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 8163..8167
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 8181..8185
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 8186..8190
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 8196..8200
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 8201..8205

                                                                                                                                                                                                              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 6 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 packages/deprecated/d3/d3.v3.js and 5 other locations - About 2 hrs to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 8163..8167
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 8181..8185
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 8186..8190
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 8191..8195
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 8196..8200

                                                                                                                                                                                                              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 6 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 packages/deprecated/d3/d3.v3.js and 5 other locations - About 2 hrs to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 8163..8167
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 8181..8185
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 8191..8195
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 8196..8200
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 8201..8205

                                                                                                                                                                                                              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 6 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 packages/deprecated/d3/d3.v3.js and 5 other locations - About 2 hrs to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 8181..8185
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 8186..8190
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 8191..8195
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 8196..8200
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 8201..8205

                                                                                                                                                                                                              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 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 packages/deprecated/d3/d3.v3.js and 2 other locations - About 2 hrs to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 5320..5320
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 5322..5322

                                                                                                                                                                                                              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

                                                                                                                                                                                                                      } else {
                                                                                                                                                                                                                        x1 = s1 ? s1.x : -Z;
                                                                                                                                                                                                                        y1 = e.c - e.a * x1;
                                                                                                                                                                                                                        x2 = s2 ? s2.x : Z;
                                                                                                                                                                                                                        y2 = e.c - e.a * x2;
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in packages/deprecated/d3/d3.v3.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 4124..4129

                                                                                                                                                                                                              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 packages/deprecated/d3/d3.v3.js and 2 other locations - About 2 hrs to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 5322..5322
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 5324..5324

                                                                                                                                                                                                              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

                                                                                                                                                                                                                      if (e.a === 1) {
                                                                                                                                                                                                                        y1 = s1 ? s1.y : -Z;
                                                                                                                                                                                                                        x1 = e.c - e.b * y1;
                                                                                                                                                                                                                        y2 = s2 ? s2.y : Z;
                                                                                                                                                                                                                        x2 = e.c - e.b * y2;
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in packages/deprecated/d3/d3.v3.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 4129..4134

                                                                                                                                                                                                              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 packages/deprecated/d3/d3.v3.js and 2 other locations - About 2 hrs to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 5320..5320
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 5324..5324

                                                                                                                                                                                                              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

                                                                                                                                                                                                              Identical 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 packages/deprecated/d3/d3.v3.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 3848..3855

                                                                                                                                                                                                              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

                                                                                                                                                                                                              Identical 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 packages/deprecated/d3/d3.v3.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 3820..3827

                                                                                                                                                                                                              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 packages/deprecated/d3/d3.v3.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 3802..3802

                                                                                                                                                                                                              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 packages/deprecated/d3/d3.v3.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 3785..3785

                                                                                                                                                                                                              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

                                                                                                                                                                                                                  function redrawX(g) {
                                                                                                                                                                                                                    g.select(".extent").attr("x", extent[0][0]);
                                                                                                                                                                                                                    g.selectAll(".extent,.n>rect,.s>rect").attr("width", extent[1][0] - extent[0][0]);
                                                                                                                                                                                                                  }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in packages/deprecated/d3/d3.v3.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 7613..7616

                                                                                                                                                                                                              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

                                                                                                                                                                                                                  function redrawY(g) {
                                                                                                                                                                                                                    g.select(".extent").attr("y", extent[0][1]);
                                                                                                                                                                                                                    g.selectAll(".extent,.e>rect,.w>rect").attr("height", extent[1][1] - extent[0][1]);
                                                                                                                                                                                                                  }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in packages/deprecated/d3/d3.v3.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 7609..7612

                                                                                                                                                                                                              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

                                                                                                                                                                                                                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 packages/deprecated/d3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 2691..2693

                                                                                                                                                                                                              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 isLeft(a, b, c) {
                                                                                                                                                                                                                      return (b[0] - a[0]) * (c[1] - a[1]) - (c[0] - a[0]) * (b[1] - a[1]);
                                                                                                                                                                                                                    }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in packages/deprecated/d3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 4076..4078

                                                                                                                                                                                                              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_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 packages/deprecated/d3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 3147..3154

                                                                                                                                                                                                              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_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 packages/deprecated/d3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 3155..3162

                                                                                                                                                                                                              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

                                                                                                                                                                                                                  zoom.y = function(z) {
                                                                                                                                                                                                                    if (!arguments.length) return y1;
                                                                                                                                                                                                                    y1 = z;
                                                                                                                                                                                                                    y0 = z.copy();
                                                                                                                                                                                                                    translate = [ 0, 0 ];
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in packages/deprecated/d3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 1115..1122

                                                                                                                                                                                                              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

                                                                                                                                                                                                                  zoom.x = function(z) {
                                                                                                                                                                                                                    if (!arguments.length) return x1;
                                                                                                                                                                                                                    x1 = z;
                                                                                                                                                                                                                    x0 = z.copy();
                                                                                                                                                                                                                    translate = [ 0, 0 ];
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in packages/deprecated/d3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 1123..1130

                                                                                                                                                                                                              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

                                                                                                                                                                                                                    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 Math.abs(x % DX) > ε;
                                                                                                                                                                                                                    }).map(x)).concat(d3.range(Math.ceil(y0 / dy) * dy, y1, dy).filter(function(y) {
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in packages/deprecated/d3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 3082..3086

                                                                                                                                                                                                              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 69.

                                                                                                                                                                                                              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_parseWeekdayAbbrev(date, string, i) {
                                                                                                                                                                                                                  d3_time_dayAbbrevRe.lastIndex = 0;
                                                                                                                                                                                                                  var n = d3_time_dayAbbrevRe.exec(string.substring(i));
                                                                                                                                                                                                                  return n ? i += n[0].length : -1;
                                                                                                                                                                                                                }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in packages/deprecated/d3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 8139..8143

                                                                                                                                                                                                              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

                                                                                                                                                                                                                function d3_time_parseWeekday(date, string, i) {
                                                                                                                                                                                                                  d3_time_dayRe.lastIndex = 0;
                                                                                                                                                                                                                  var n = d3_time_dayRe.exec(string.substring(i));
                                                                                                                                                                                                                  return n ? i += n[0].length : -1;
                                                                                                                                                                                                                }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in packages/deprecated/d3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 8134..8138

                                                                                                                                                                                                              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

                                                                                                                                                                                                                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 packages/deprecated/d3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 1314..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 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 packages/deprecated/d3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 1343..1345

                                                                                                                                                                                                              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 packages/deprecated/d3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              packages/deprecated/d3/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 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.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 packages/deprecated/d3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 1340..1342

                                                                                                                                                                                                              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 d3_time_scaleUTCGetYear(d) {
                                                                                                                                                                                                                  var y = d.getUTCFullYear(), d0 = d3_time_scaleUTCSetYear(y), d1 = d3_time_scaleUTCSetYear(y + 1);
                                                                                                                                                                                                                  return y + (d - d0) / (d1 - d0);
                                                                                                                                                                                                                }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in packages/deprecated/d3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 8349..8352

                                                                                                                                                                                                              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 packages/deprecated/d3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 5607..5611

                                                                                                                                                                                                              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

                                                                                                                                                                                                                function d3_time_scaleGetYear(d) {
                                                                                                                                                                                                                  var y = d.getFullYear(), d0 = d3_time_scaleSetYear(y), d1 = d3_time_scaleSetYear(y + 1);
                                                                                                                                                                                                                  return y + (d - d0) / (d1 - d0);
                                                                                                                                                                                                                }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in packages/deprecated/d3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 8401..8404

                                                                                                                                                                                                              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.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 packages/deprecated/d3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 5602..5606

                                                                                                                                                                                                              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

                                                                                                                                                                                                                    if (x1) x1.domain(x0.range().map(function(x) {
                                                                                                                                                                                                                      return (x - translate[0]) / scale;
                                                                                                                                                                                                                    }).map(x0.invert));
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in packages/deprecated/d3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 1149..1151

                                                                                                                                                                                                              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 packages/deprecated/d3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 7730..7735

                                                                                                                                                                                                              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.y = function(z) {
                                                                                                                                                                                                                    if (!arguments.length) return y;
                                                                                                                                                                                                                    y = z;
                                                                                                                                                                                                                    resizes = d3_svg_brushResizes[!x << 1 | !y];
                                                                                                                                                                                                                    return brush;
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in packages/deprecated/d3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 7724..7729

                                                                                                                                                                                                              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

                                                                                                                                                                                                                    if (y1) y1.domain(y0.range().map(function(y) {
                                                                                                                                                                                                                      return (y - translate[1]) / scale;
                                                                                                                                                                                                                    }).map(y0.invert));
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in packages/deprecated/d3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 1146..1148

                                                                                                                                                                                                              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

                                                                                                                                                                                                                  return dx && {
                                                                                                                                                                                                                    floor: function(x) {
                                                                                                                                                                                                                      return Math.floor(x / dx) * dx;
                                                                                                                                                                                                                    },
                                                                                                                                                                                                                    ceil: function(x) {
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in packages/deprecated/d3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 6555..6562

                                                                                                                                                                                                              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) {
                                                                                                                                                                                                                        e = d3_scaleRange(x);
                                                                                                                                                                                                                        bg.attr("x", e[0]).attr("width", e[1] - e[0]);
                                                                                                                                                                                                                        redrawX(g);
                                                                                                                                                                                                                      }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in packages/deprecated/d3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 7596..7600

                                                                                                                                                                                                              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) {
                                                                                                                                                                                                                        e = d3_scaleRange(y);
                                                                                                                                                                                                                        bg.attr("y", e[0]).attr("height", e[1] - e[0]);
                                                                                                                                                                                                                        redrawY(g);
                                                                                                                                                                                                                      }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in packages/deprecated/d3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 7591..7595

                                                                                                                                                                                                              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.majorStep = function(_) {
                                                                                                                                                                                                                    if (!arguments.length) return [ DX, DY ];
                                                                                                                                                                                                                    DX = +_[0], DY = +_[1];
                                                                                                                                                                                                                    return graticule;
                                                                                                                                                                                                                  };
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in packages/deprecated/d3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 3131..3135

                                                                                                                                                                                                              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 packages/deprecated/d3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 3126..3130

                                                                                                                                                                                                              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

                                                                                                                                                                                                                  var nice = {
                                                                                                                                                                                                                    floor: function(x) {
                                                                                                                                                                                                                      return Math.floor(x / base) * base;
                                                                                                                                                                                                                    },
                                                                                                                                                                                                                    ceil: function(x) {
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in packages/deprecated/d3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 6457..6464

                                                                                                                                                                                                              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 packages/deprecated/d3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 2047..2050

                                                                                                                                                                                                              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 packages/deprecated/d3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 2051..2054

                                                                                                                                                                                                              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 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 packages/deprecated/d3/d3.v3.js and 2 other locations - About 1 hr to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 6825..6825
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 7097..7097

                                                                                                                                                                                                              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 packages/deprecated/d3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 3634..3637

                                                                                                                                                                                                              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.target = function(_) {
                                                                                                                                                                                                                    if (!arguments.length) return target;
                                                                                                                                                                                                                    target = _, target_ = typeof _ === "function" ? null : _;
                                                                                                                                                                                                                    return greatArc;
                                                                                                                                                                                                                  };
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in packages/deprecated/d3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 3180..3184

                                                                                                                                                                                                              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 packages/deprecated/d3/d3.v3.js and 2 other locations - About 1 hr to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 6825..6825
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 6825..6825

                                                                                                                                                                                                              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 packages/deprecated/d3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 3630..3633

                                                                                                                                                                                                              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 packages/deprecated/d3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 3185..3189

                                                                                                                                                                                                              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

                                                                                                                                                                                                                function d3_scaleExtent(domain) {
                                                                                                                                                                                                                  var start = domain[0], stop = domain[domain.length - 1];
                                                                                                                                                                                                                  return start < stop ? [ start, stop ] : [ stop, start ];
                                                                                                                                                                                                                }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in packages/deprecated/d3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 8330..8333

                                                                                                                                                                                                              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 packages/deprecated/d3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 3102..3105

                                                                                                                                                                                                              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.extent = function(_) {
                                                                                                                                                                                                                    if (!arguments.length) return graticule.minorExtent();
                                                                                                                                                                                                                    return graticule.majorExtent(_).minorExtent(_);
                                                                                                                                                                                                                  };
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in packages/deprecated/d3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 3122..3125

                                                                                                                                                                                                              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 d3_time_scaleExtent(domain) {
                                                                                                                                                                                                                  var start = domain[0], stop = domain[domain.length - 1];
                                                                                                                                                                                                                  return start < stop ? [ start, stop ] : [ stop, start ];
                                                                                                                                                                                                                }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in packages/deprecated/d3/d3.v3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 6357..6360

                                                                                                                                                                                                              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 4 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 packages/deprecated/d3/d3.v3.js and 3 other locations - About 55 mins to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 3515..3519
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 5254..5258
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 5260..5264

                                                                                                                                                                                                              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 4 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 packages/deprecated/d3/d3.v3.js and 3 other locations - About 55 mins to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 3515..3519
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 5254..5258
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 5270..5274

                                                                                                                                                                                                              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 4 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 packages/deprecated/d3/d3.v3.js and 3 other locations - About 55 mins to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 3515..3519
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 5260..5264
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 5270..5274

                                                                                                                                                                                                              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 4 locations. Consider refactoring.
                                                                                                                                                                                                              Open

                                                                                                                                                                                                                  path.pointRadius = function(_) {
                                                                                                                                                                                                                    if (!arguments.length) return pointRadius;
                                                                                                                                                                                                                    pointRadius = typeof _ === "function" ? _ : +_;
                                                                                                                                                                                                                    return path;
                                                                                                                                                                                                                  };
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in packages/deprecated/d3/d3.v3.js and 3 other locations - About 55 mins to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 5254..5258
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 5260..5264
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 5270..5274

                                                                                                                                                                                                              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 packages/deprecated/d3/d3.v3.js and 1 other location - About 55 mins to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 17..19

                                                                                                                                                                                                              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_time_scaleLocalMethods.year = function(extent, m) {
                                                                                                                                                                                                                  return d3_time_scaleLinear.domain(extent.map(d3_time_scaleGetYear)).ticks(m).map(d3_time_scaleSetYear);
                                                                                                                                                                                                                };
                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                              Found in packages/deprecated/d3/d3.v3.js and 1 other location - About 55 mins to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 8405..8407

                                                                                                                                                                                                              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 packages/deprecated/d3/d3.v3.js and 1 other location - About 55 mins to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 20..22

                                                                                                                                                                                                              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 packages/deprecated/d3/d3.v3.js and 1 other location - About 55 mins to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 6005..6005

                                                                                                                                                                                                              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_time_scaleUTCMethods.year = function(extent, m) {
                                                                                                                                                                                                                  return d3_time_scaleLinear.domain(extent.map(d3_time_scaleUTCGetYear)).ticks(m).map(d3_time_scaleUTCSetYear);
                                                                                                                                                                                                                };
                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                              Found in packages/deprecated/d3/d3.v3.js and 1 other location - About 55 mins to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 8371..8373

                                                                                                                                                                                                              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 packages/deprecated/d3/d3.v3.js and 1 other location - About 55 mins to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 6090..6090

                                                                                                                                                                                                              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() + "skewX(", null, ")") - 2,
                                                                                                                                                                                                                      x: d3_interpolateNumber(wa, wb)
                                                                                                                                                                                                                    });
                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                              Found in packages/deprecated/d3/d3.v3.js and 1 other location - About 50 mins to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 4710..4713

                                                                                                                                                                                                              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() + "rotate(", null, ")") - 2,
                                                                                                                                                                                                                      x: d3_interpolateNumber(ra, rb)
                                                                                                                                                                                                                    });
                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                              Found in packages/deprecated/d3/d3.v3.js and 1 other location - About 50 mins to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 4718..4721

                                                                                                                                                                                                              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 4 locations. Consider refactoring.
                                                                                                                                                                                                              Open

                                                                                                                                                                                                                  var alaska = d3.geo.conicEqualArea().rotate([ 160, 0 ]).center([ 0, 60 ]).parallels([ 55, 65 ]);
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in packages/deprecated/d3/d3.v3.js and 3 other locations - About 50 mins to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 3262..3262
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 3264..3264
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 3265..3265

                                                                                                                                                                                                              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 4 locations. Consider refactoring.
                                                                                                                                                                                                              Open

                                                                                                                                                                                                                  var hawaii = d3.geo.conicEqualArea().rotate([ 160, 0 ]).center([ 0, 20 ]).parallels([ 8, 18 ]);
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in packages/deprecated/d3/d3.v3.js and 3 other locations - About 50 mins to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 3262..3262
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 3263..3263
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 3265..3265

                                                                                                                                                                                                              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 4 locations. Consider refactoring.
                                                                                                                                                                                                              Open

                                                                                                                                                                                                                  var lower48 = d3.geo.conicEqualArea().rotate([ 98, 0 ]).center([ 0, 38 ]).parallels([ 29.5, 45.5 ]);
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in packages/deprecated/d3/d3.v3.js and 3 other locations - About 50 mins to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 3263..3263
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 3264..3264
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 3265..3265

                                                                                                                                                                                                              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 4 locations. Consider refactoring.
                                                                                                                                                                                                              Open

                                                                                                                                                                                                                  var puertoRico = d3.geo.conicEqualArea().rotate([ 60, 0 ]).center([ 0, 10 ]).parallels([ 8, 18 ]);
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in packages/deprecated/d3/d3.v3.js and 3 other locations - About 50 mins to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 3262..3262
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 3263..3263
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 3264..3264

                                                                                                                                                                                                              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

                                                                                                                                                                                                                  d3_geo_pathCentroid.point = function(x, y) {
                                                                                                                                                                                                                    d3_geo_pathCentroid.point = nextPoint;
                                                                                                                                                                                                                    x00 = x0 = x, y00 = y0 = y;
                                                                                                                                                                                                                  };
                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                              Found in packages/deprecated/d3/d3.v3.js and 1 other location - About 50 mins to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 3326..3329

                                                                                                                                                                                                              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

                                                                                                                                                                                                                  return ((a = a.point)[0] < 0 ? a[1] - π / 2 - ε : π / 2 - a[1]) - ((b = b.point)[0] < 0 ? b[1] - π / 2 - ε : π / 2 - b[1]);
                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                              Found in packages/deprecated/d3/d3.v3.js and 1 other location - About 50 mins to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 2480..2480

                                                                                                                                                                                                              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 packages/deprecated/d3/d3.v3.js and 1 other location - About 50 mins to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 5124..5129

                                                                                                                                                                                                              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

                                                                                                                                                                                                                  d3_geo_pathArea.point = function(x, y) {
                                                                                                                                                                                                                    d3_geo_pathArea.point = nextPoint;
                                                                                                                                                                                                                    x00 = x0 = x, y00 = y0 = y;
                                                                                                                                                                                                                  };
                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                              Found in packages/deprecated/d3/d3.v3.js and 1 other location - About 50 mins to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 3431..3434

                                                                                                                                                                                                              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.padding = function(x) {
                                                                                                                                                                                                                    if (!arguments.length) return padding;
                                                                                                                                                                                                                    padding = x;
                                                                                                                                                                                                                    chords = groups = null;
                                                                                                                                                                                                                    return chord;
                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                              Found in packages/deprecated/d3/d3.v3.js and 1 other location - About 50 mins to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 5130..5135

                                                                                                                                                                                                              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 3 locations. Consider refactoring.
                                                                                                                                                                                                              Open

                                                                                                                                                                                                                    if (fx === d3_svg_lineX && fy === d3_svg_lineY) points = data; else for (points = [],
                                                                                                                                                                                                                    i = 0; i < n; ++i) {
                                                                                                                                                                                                                      points.push([ +fx.call(this, d = data[i], i), +fy.call(this, d, i) ]);
                                                                                                                                                                                                                    }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in packages/deprecated/d3/d3.v3.js and 2 other locations - About 45 mins to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 3941..3944
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 4196..4198

                                                                                                                                                                                                              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 50.

                                                                                                                                                                                                              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 (fx === d3_svg_lineX && fy === d3_svg_lineY) points = data; else for (i = 0; i < n; ++i) {
                                                                                                                                                                                                                      points.push([ +fx.call(this, d = data[i], i), +fy.call(this, d, i) ]);
                                                                                                                                                                                                                    }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in packages/deprecated/d3/d3.v3.js and 2 other locations - About 45 mins to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 3941..3944
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 4111..4114

                                                                                                                                                                                                              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 50.

                                                                                                                                                                                                              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 (fx === d3_svg_lineX && y === d3_svg_lineY) vertices = data; else for (i = 0,
                                                                                                                                                                                                                    vertices = []; i < n; ++i) {
                                                                                                                                                                                                                      vertices.push([ +fx.call(this, d = data[i], i), +fy.call(this, d, i) ]);
                                                                                                                                                                                                                    }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in packages/deprecated/d3/d3.v3.js and 2 other locations - About 45 mins to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 4111..4114
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 4196..4198

                                                                                                                                                                                                              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 50.

                                                                                                                                                                                                              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

                                                                                                                                                                                                                  keys: function() {
                                                                                                                                                                                                                    var keys = [];
                                                                                                                                                                                                                    this.forEach(function(key) {
                                                                                                                                                                                                                      keys.push(key);
                                                                                                                                                                                                                    });
                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                              Found in packages/deprecated/d3/d3.v3.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 333..339

                                                                                                                                                                                                              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

                                                                                                                                                                                                                  values: function() {
                                                                                                                                                                                                                    var values = [];
                                                                                                                                                                                                                    this.forEach(function(value) {
                                                                                                                                                                                                                      values.push(value);
                                                                                                                                                                                                                    });
                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                              Found in packages/deprecated/d3/d3.v3.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 219..225

                                                                                                                                                                                                              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 packages/deprecated/d3/d3.v3.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 6944..6944

                                                                                                                                                                                                              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 packages/deprecated/d3/d3.v3.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 3716..3716

                                                                                                                                                                                                              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)) {
                                                                                                                                                                                                                        subgroup.push(node);
                                                                                                                                                                                                                      }
                                                                                                                                                                                                                    }
                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                              Found in packages/deprecated/d3/d3.v3.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 908..912

                                                                                                                                                                                                              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 48.

                                                                                                                                                                                                              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)) {
                                                                                                                                                                                                                        subgroup.push(node);
                                                                                                                                                                                                                      }
                                                                                                                                                                                                                    }
                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                              Found in packages/deprecated/d3/d3.v3.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 7181..7185

                                                                                                                                                                                                              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 48.

                                                                                                                                                                                                              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 ];
                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                              Found in packages/deprecated/d3/d3.v3.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 6104..6104

                                                                                                                                                                                                              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

                                                                                                                                                                                                              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 ];
                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                              Found in packages/deprecated/d3/d3.v3.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 5784..5784

                                                                                                                                                                                                              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.length = function(object) {
                                                                                                                                                                                                                  d3_geo_lengthSum = 0;
                                                                                                                                                                                                                  d3.geo.stream(object, d3_geo_length);
                                                                                                                                                                                                                  return d3_geo_lengthSum;
                                                                                                                                                                                                                };
                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                              Found in packages/deprecated/d3/d3.v3.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 2068..2072

                                                                                                                                                                                                              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 packages/deprecated/d3/d3.v3.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 6285..6290

                                                                                                                                                                                                              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 packages/deprecated/d3/d3.v3.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 5136..5141

                                                                                                                                                                                                              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 packages/deprecated/d3/d3.v3.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 3209..3213

                                                                                                                                                                                                              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 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 packages/deprecated/d3/d3.v3.js and 2 other locations - About 30 mins to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 2225..2225
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 3891..3891

                                                                                                                                                                                                              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 packages/deprecated/d3/d3.v3.js and 2 other locations - About 30 mins to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 2225..2225
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 2239..2239

                                                                                                                                                                                                              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 packages/deprecated/d3/d3.v3.js and 2 other locations - About 30 mins to fix
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 2239..2239
                                                                                                                                                                                                              packages/deprecated/d3/d3.v3.js on lines 3891..3891

                                                                                                                                                                                                              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