opsforgeio/cabot

View on GitHub
cabot/static/arachnys/js/raphael.js

Summary

Maintainability
F
2 mos
Test Coverage

File raphael.js has 5493 lines of code (exceeds 250 allowed). Consider refactoring.
Open

// ┌────────────────────────────────────────────────────────────────────┐ \\
// │ Raphaël 2.1.0 - JavaScript Vector Library                          │ \\
// ├────────────────────────────────────────────────────────────────────┤ \\
// │ Copyright © 2008-2012 Dmitry Baranovskiy (http://raphaeljs.com)    │ \\
// │ Copyright © 2008-2012 Sencha Labs (http://sencha.com)              │ \\
Severity: Major
Found in cabot/static/arachnys/js/raphael.js - About 2 wks to fix

    Consider simplifying this complex logical expression.
    Open

            if (params.opacity != null ||
                params["stroke-width"] != null ||
                params.fill != null ||
                params.src != null ||
                params.stroke != null ||
    Severity: Critical
    Found in cabot/static/arachnys/js/raphael.js - About 1 day to fix

      Function setFillAndStroke has 243 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          setFillAndStroke = function (o, params) {
              var node = o.node,
                  attrs = o.attrs,
                  vis = node.style.visibility;
              node.style.visibility = "hidden";
      Severity: Major
      Found in cabot/static/arachnys/js/raphael.js - About 1 day to fix

        Function setFillAndStroke has 211 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            setFillAndStroke = function (o, params) {
                // o.paper.canvas.style.display = "none";
                o.attrs = o.attrs || {};
                var node = o.node,
                    a = o.attrs,
        Severity: Major
        Found in cabot/static/arachnys/js/raphael.js - About 1 day to fix

          Function runAnimation has 194 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              function runAnimation(anim, element, percent, status, totalOrigin, times) {
                  percent = toFloat(percent);
                  var params,
                      isInAnim,
                      isInAnimSet,
          Severity: Major
          Found in cabot/static/arachnys/js/raphael.js - About 7 hrs to fix

            Function addArrow has 137 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                addArrow = function (o, value, isEnd) {
                    if (o.type == "path") {
                        var values = Str(value).toLowerCase().split("-"),
                            p = o.paper,
                            se = isEnd ? "end" : "start",
            Severity: Major
            Found in cabot/static/arachnys/js/raphael.js - About 5 hrs to fix

              Function animation has 121 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      animation = function () {
                          var Now = +new Date,
                              l = 0;
                          for (; l < animationElements.length; l++) {
                              var e = animationElements[l];
              Severity: Major
              Found in cabot/static/arachnys/js/raphael.js - About 4 hrs to fix

                Function _path2curve has 97 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        path2curve = R._path2curve = cacher(function (path, path2) {
                            var pth = !path2 && paths(path);
                            if (!path2 && pth.curve) {
                                return pathClone(pth.curve);
                            }
                Severity: Major
                Found in cabot/static/arachnys/js/raphael.js - About 3 hrs to fix

                  Function _pathToAbsolute has 95 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          pathToAbsolute = R._pathToAbsolute = function (pathArray) {
                              var pth = paths(pathArray);
                              if (pth.abs) {
                                  return pathClone(pth.abs);
                              }
                  Severity: Major
                  Found in cabot/static/arachnys/js/raphael.js - About 3 hrs to fix

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

                            extractTransform = R._extractTransform = function (el, tstr) {
                                if (tstr == null) {
                                    return el._.transform;
                                }
                                tstr = Str(tstr).replace(/\.{3}|\u2026/g, el._.transform || E);
                    Severity: Major
                    Found in cabot/static/arachnys/js/raphael.js - About 3 hrs to fix

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

                              a2c = function (x1, y1, rx, ry, angle, large_arc_flag, sweep_flag, x2, y2, recursive) {
                                  // for more information of where this math came from visit:
                                  // http://www.w3.org/TR/SVG11/implnote.html#ArcImplementationNotes
                                  var _120 = PI * 120 / 180,
                                      rad = PI / 180 * (+angle || 0),
                      Severity: Major
                      Found in cabot/static/arachnys/js/raphael.js - About 3 hrs to fix

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

                            addGradientFill = function (element, gradient) {
                                var type = "linear",
                                    id = element.id + gradient,
                                    fx = .5, fy = .5,
                                    o = element.node,
                        Severity: Major
                        Found in cabot/static/arachnys/js/raphael.js - About 3 hrs to fix

                          Function _pathToRelative has 77 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  pathToRelative = R._pathToRelative = function (pathArray) {
                                      var pth = paths(pathArray);
                                      if (pth.rel) {
                                          return pathClone(pth.rel);
                                      }
                          Severity: Major
                          Found in cabot/static/arachnys/js/raphael.js - About 3 hrs to fix

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

                                R.getRGB = cacher(function (colour) {
                                    if (!colour || !!((colour = Str(colour)).indexOf("-") + 1)) {
                                        return {r: -1, g: -1, b: -1, hex: "none", error: 1, toString: clrToString};
                                    }
                                    if (colour == "none") {
                            Severity: Major
                            Found in cabot/static/arachnys/js/raphael.js - About 2 hrs to fix

                              Consider simplifying this complex logical expression.
                              Open

                                      if (res.type == "text") {
                                          res.paper.canvas.style.display = E;
                                          var span = res.paper.span,
                                              m = 100,
                                              fontSize = a.font && a.font.match(/\d+(?:\.\d*)?(?=px)/);
                              Severity: Critical
                              Found in cabot/static/arachnys/js/raphael.js - About 2 hrs to fix

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

                                    elproto.attr = function (name, value) {
                                        if (this.removed) {
                                            return this;
                                        }
                                        if (name == null) {
                                Severity: Major
                                Found in cabot/static/arachnys/js/raphael.js - About 2 hrs to fix

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

                                          eve = function (name, scope) {
                                              var e = events,
                                                  oldstop = stop,
                                                  args = Array.prototype.slice.call(arguments, 2),
                                                  listeners = eve.listeners(name),
                                  Severity: Major
                                  Found in cabot/static/arachnys/js/raphael.js - About 2 hrs to fix

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

                                        elproto.attr = function (name, value) {
                                            if (this.removed) {
                                                return this;
                                            }
                                            if (name == null) {
                                    Severity: Major
                                    Found in cabot/static/arachnys/js/raphael.js - About 2 hrs to fix

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

                                          addGradientFill = function (o, gradient, fill) {
                                              o.attrs = o.attrs || {};
                                              var attrs = o.attrs,
                                                  pow = Math.pow,
                                                  opacity,
                                      Severity: Major
                                      Found in cabot/static/arachnys/js/raphael.js - About 2 hrs to fix

                                        Function interHelper has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            function interHelper(bez1, bez2, justCount) {
                                                var bbox1 = R.bezierBBox(bez1),
                                                    bbox2 = R.bezierBBox(bez2);
                                                if (!R.isBBoxIntersect(bbox1, bbox2)) {
                                                    return justCount ? 0 : [];
                                        Severity: Major
                                        Found in cabot/static/arachnys/js/raphael.js - About 2 hrs to fix

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

                                              function interPathHelper(path1, path2, justCount) {
                                                  path1 = R._path2curve(path1);
                                                  path2 = R._path2curve(path2);
                                                  var x1, y1, x2, y2, x1m, y1m, x2m, y2m, bez1, bez2,
                                                      res = justCount ? 0 : [];
                                          Severity: Major
                                          Found in cabot/static/arachnys/js/raphael.js - About 2 hrs to fix

                                            Consider simplifying this complex logical expression.
                                            Open

                                                        if (params[has](att)) {
                                                            if (!R._availableAttrs[has](att)) {
                                                                continue;
                                                            }
                                                            var value = params[att];
                                            Severity: Critical
                                            Found in cabot/static/arachnys/js/raphael.js - About 2 hrs to fix

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

                                                  function CubicBezierAtTime(t, p1x, p1y, p2x, p2y, duration) {
                                                      var cx = 3 * p1x,
                                                          bx = 3 * (p2x - p1x) - cx,
                                                          ax = 1 - cx - bx,
                                                          cy = 3 * p1y,
                                              Severity: Minor
                                              Found in cabot/static/arachnys/js/raphael.js - About 2 hrs to fix

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

                                                    eve.off = eve.unbind = function (name, f) {
                                                        var names = name.split(separator),
                                                            e,
                                                            key,
                                                            splice,
                                                Severity: Minor
                                                Found in cabot/static/arachnys/js/raphael.js - About 2 hrs to fix

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

                                                      addEvent = (function () {
                                                          if (g.doc.addEventListener) {
                                                              return function (obj, type, fn, element) {
                                                                  var realName = supportsTouch && touchMap[type] ? touchMap[type] : type,
                                                                      f = function (e) {
                                                  Severity: Minor
                                                  Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

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

                                                        R._engine.create = function () {
                                                            var con = R._getContainer.apply(0, arguments),
                                                                container = con && con.container,
                                                                x = con.x,
                                                                y = con.y,
                                                    Severity: Minor
                                                    Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

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

                                                          var pathDimensions = R.pathBBox = function (path) {
                                                              var pth = paths(path);
                                                              if (pth.bbox) {
                                                                  return pth.bbox;
                                                              }
                                                      Severity: Minor
                                                      Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

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

                                                                        processPath = function (path, d) {
                                                                            var nx, ny;
                                                                            if (!path) {
                                                                                return ["C", d.x, d.y, d.x, d.y, d.x, d.y];
                                                                            }
                                                        Severity: Minor
                                                        Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

                                                          Consider simplifying this complex logical expression.
                                                          Open

                                                                      if (rgb[6]) {
                                                                          values = rgb[6][split](commaSpaces);
                                                                          red = toFloat(values[0]);
                                                                          values[0].slice(-1) == "%" && (red *= 2.55);
                                                                          green = toFloat(values[1]);
                                                          Severity: Critical
                                                          Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

                                                            Consider simplifying this complex logical expression.
                                                            Open

                                                                        if (rgb[5]) {
                                                                            values = rgb[5][split](commaSpaces);
                                                                            red = toFloat(values[0]);
                                                                            values[0].slice(-1) == "%" && (red *= 2.55);
                                                                            green = toFloat(values[1]);
                                                            Severity: Critical
                                                            Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

                                                              Function create has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                                                              Open

                                                                  R._engine.create = function () {
                                                                      var con = R._getContainer.apply(0, arguments),
                                                                          container = con.container,
                                                                          height = con.height,
                                                                          s,
                                                              Severity: Minor
                                                              Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

                                                                Function curveDim has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                Open

                                                                        curveDim = cacher(function (p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y) {
                                                                            var a = (c2x - 2 * c1x + p1x) - (p2x - 2 * c2x + c1x),
                                                                                b = 2 * (c1x - p1x) - 2 * (c2x - c1x),
                                                                                c = p1x - c1x,
                                                                                t1 = (-b + math.sqrt(b * b - 4 * a * c)) / 2 / a,
                                                                Severity: Minor
                                                                Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

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

                                                                      elproto.transform = function (tstr) {
                                                                          if (tstr == null) {
                                                                              return this._.transform;
                                                                          }
                                                                          var vbs = this.paper._viewBoxShift,
                                                                  Severity: Minor
                                                                  Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

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

                                                                        getLengthFactory = function (istotal, subpath) {
                                                                            return function (path, length, onlystart) {
                                                                                path = path2curve(path);
                                                                                var x, y, p, l, sp = "", subpaths = {}, point,
                                                                                    len = 0;
                                                                    Severity: Minor
                                                                    Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

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

                                                                          R._engine.text = function (vml, x, y, text) {
                                                                              var el = createNode("shape"),
                                                                                  path = createNode("path"),
                                                                                  o = createNode("textpath");
                                                                              x = x || 0;
                                                                      Severity: Minor
                                                                      Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

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

                                                                                setCoords = function (p, sx, sy, dx, dy, deg) {
                                                                                    var _ = p._,
                                                                                        m = p.matrix,
                                                                                        fillpos = _.fillpos,
                                                                                        o = p.node,
                                                                        Severity: Minor
                                                                        Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

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

                                                                              dragMove = function (e) {
                                                                                  var x = e.clientX,
                                                                                      y = e.clientY,
                                                                                      scrollY = g.doc.documentElement.scrollTop || g.doc.body.scrollTop,
                                                                                      scrollX = g.doc.documentElement.scrollLeft || g.doc.body.scrollLeft,
                                                                          Severity: Minor
                                                                          Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

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

                                                                                R.registerFont = function (font) {
                                                                                    if (!font.face) {
                                                                                        return font;
                                                                                    }
                                                                                    this.fonts = this.fonts || {};
                                                                            Severity: Minor
                                                                            Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

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

                                                                                  R.parsePathString = function (pathString) {
                                                                                      if (!pathString) {
                                                                                          return null;
                                                                                      }
                                                                                      var pth = paths(pathString);
                                                                              Severity: Minor
                                                                              Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

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

                                                                                    paperproto.print = function (x, y, string, font, size, origin, letter_spacing) {
                                                                                        origin = origin || "middle"; // baseline|middle
                                                                                        letter_spacing = mmax(mmin(letter_spacing || 0, 1), -1);
                                                                                        var letters = Str(string)[split](E),
                                                                                            shift = 0,
                                                                                Severity: Minor
                                                                                Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

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

                                                                                          parseDots = R._parseDots = cacher(function (gradient) {
                                                                                              var dots = [];
                                                                                              for (var i = 0, ii = gradient.length; i < ii; i++) {
                                                                                                  var dot = {},
                                                                                                      par = gradient[i].match(/^([^:]*):?([\d\.]*)/);
                                                                                  Severity: Minor
                                                                                  Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

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

                                                                                            function solveCurveX(x, epsilon) {
                                                                                                var t0, t1, t2, x2, d2, i;
                                                                                                for(t2 = x, i = 0; i < 8; i++) {
                                                                                                    x2 = sampleCurveX(t2) - x;
                                                                                                    if (abs(x2) < epsilon) {
                                                                                    Severity: Minor
                                                                                    Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

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

                                                                                          tuneText = function (el, params) {
                                                                                              if (el.type != "text" || !(params[has]("text") || params[has]("font") || params[has]("font-size") || params[has]("x") || params[has]("y"))) {
                                                                                                  return;
                                                                                              }
                                                                                              var a = el.attrs,
                                                                                      Severity: Minor
                                                                                      Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

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

                                                                                            function catmullRom2bezier(crp, z) {
                                                                                                var d = [];
                                                                                                for (var i = 0, iLen = crp.length; iLen - 2 * !z > i; i += 2) {
                                                                                                    var p = [
                                                                                                                {x: +crp[i - 2], y: +crp[i - 1]},
                                                                                        Severity: Minor
                                                                                        Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

                                                                                          Consider simplifying this complex logical expression.
                                                                                          Open

                                                                                                  if (
                                                                                                      px2 < +mmin(x1, x2).toFixed(2) ||
                                                                                                      px2 > +mmax(x1, x2).toFixed(2) ||
                                                                                                      px2 < +mmin(x3, x4).toFixed(2) ||
                                                                                                      px2 > +mmax(x3, x4).toFixed(2) ||
                                                                                          Severity: Critical
                                                                                          Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

                                                                                            Consider simplifying this complex logical expression.
                                                                                            Open

                                                                                                        if ((params.stroke && params.stroke != "none") ||
                                                                                                            params["stroke-width"] ||
                                                                                                            params["stroke-opacity"] != null ||
                                                                                                            params["stroke-dasharray"] ||
                                                                                                            params["stroke-miterlimit"] ||
                                                                                            Severity: Critical
                                                                                            Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

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

                                                                                                  var toHex = function (color) {
                                                                                                      if (R.vml) {
                                                                                                          // http://dean.edwards.name/weblog/2009/10/convert-any-colour-value-to-hex-in-msie/
                                                                                                          var trim = /^\s+|\s+$/g;
                                                                                                          var bod;
                                                                                              Severity: Minor
                                                                                              Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

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

                                                                                                        path2vml = function (path) {
                                                                                                            var total =  /[ahqstv]/ig,
                                                                                                                command = R._pathToAbsolute;
                                                                                                            Str(path).match(total) && (command = R._path2curve);
                                                                                                            total = /[clmz]/g;
                                                                                                Severity: Minor
                                                                                                Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

                                                                                                  Function a2c has 10 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                  Open

                                                                                                          a2c = function (x1, y1, rx, ry, angle, large_arc_flag, sweep_flag, x2, y2, recursive) {
                                                                                                  Severity: Major
                                                                                                  Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

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

                                                                                                        R.color = function (clr) {
                                                                                                            var rgb;
                                                                                                            if (R.is(clr, "object") && "h" in clr && "s" in clr && "b" in clr) {
                                                                                                                rgb = R.hsb2rgb(clr);
                                                                                                                clr.r = rgb.r;
                                                                                                    Severity: Minor
                                                                                                    Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

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

                                                                                                          function intersect(x1, y1, x2, y2, x3, y3, x4, y4) {
                                                                                                              if (
                                                                                                                  mmax(x1, x2) < mmin(x3, x4) ||
                                                                                                                  mmin(x1, x2) > mmax(x3, x4) ||
                                                                                                                  mmax(y1, y2) < mmin(y3, y4) ||
                                                                                                      Severity: Minor
                                                                                                      Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

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

                                                                                                            eve.listeners = function (name) {
                                                                                                                var names = name.split(separator),
                                                                                                                    e = events,
                                                                                                                    item,
                                                                                                                    items,
                                                                                                        Severity: Minor
                                                                                                        Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

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

                                                                                                              R._engine.setViewBox = function (x, y, w, h, fit) {
                                                                                                                  eve("raphael.setViewBox", this, this._viewBox, [x, y, w, h, fit]);
                                                                                                                  var size = mmax(w / this.width, h / this.height),
                                                                                                                      top = this.top,
                                                                                                                      aspectRatio = fit ? "meet" : "xMinYMin",
                                                                                                          Severity: Minor
                                                                                                          Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

                                                                                                            Function findDotAtSegment has 9 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                            Open

                                                                                                                    findDotAtSegment = function (p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, t) {
                                                                                                            Severity: Major
                                                                                                            Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

                                                                                                              Function bezlen has 9 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                              Open

                                                                                                                  function bezlen(x1, y1, x2, y2, x3, y3, x4, y4, z) {
                                                                                                              Severity: Major
                                                                                                              Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

                                                                                                                Function getTatLen has 9 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                Open

                                                                                                                    function getTatLen(x1, y1, x2, y2, x3, y3, x4, y4, ll) {
                                                                                                                Severity: Major
                                                                                                                Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

                                                                                                                  Function getPointAtSegmentLength has 9 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                  Open

                                                                                                                      getPointAtSegmentLength = function (p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, length) {
                                                                                                                  Severity: Major
                                                                                                                  Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

                                                                                                                    Function findDotsAtSegment has 9 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                    Open

                                                                                                                        R.findDotsAtSegment = function (p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, t) {
                                                                                                                    Severity: Major
                                                                                                                    Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

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

                                                                                                                          elproto.glow = function (glow) {
                                                                                                                              if (this.type == "text") {
                                                                                                                                  return null;
                                                                                                                              }
                                                                                                                              glow = glow || {};
                                                                                                                      Severity: Minor
                                                                                                                      Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

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

                                                                                                                                equaliseTransform = R._equaliseTransform = function (t1, t2) {
                                                                                                                                    t2 = Str(t2).replace(/\.{3}|\u2026/g, t1);
                                                                                                                                    t1 = R.parseTransformString(t1) || [];
                                                                                                                                    t2 = R.parseTransformString(t2) || [];
                                                                                                                                    var maxlength = mmax(t1.length, t2.length),
                                                                                                                        Severity: Minor
                                                                                                                        Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

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

                                                                                                                              R._getContainer = function (x, y, w, h) {
                                                                                                                                  var container;
                                                                                                                                  container = h == null && !R.is(x, "object") ? g.doc.getElementById(x) : x;
                                                                                                                                  if (container == null) {
                                                                                                                                      return;
                                                                                                                          Severity: Minor
                                                                                                                          Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

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

                                                                                                                                R.findDotsAtSegment = function (p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, t) {
                                                                                                                                    var t1 = 1 - t,
                                                                                                                                        t13 = pow(t1, 3),
                                                                                                                                        t12 = pow(t1, 2),
                                                                                                                                        t2 = t * t,
                                                                                                                            Severity: Minor
                                                                                                                            Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

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

                                                                                                                                  elproto.status = function (anim, value) {
                                                                                                                                      var out = [],
                                                                                                                                          i = 0,
                                                                                                                                          len,
                                                                                                                                          e;
                                                                                                                              Severity: Minor
                                                                                                                              Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

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

                                                                                                                                    paperproto.getFont = function (family, weight, style, stretch) {
                                                                                                                                        stretch = stretch || "normal";
                                                                                                                                        style = style || "normal";
                                                                                                                                        weight = +weight || {normal: 400, bold: 700, lighter: 300, bolder: 800}[weight] || 400;
                                                                                                                                        if (!R.fonts) {
                                                                                                                                Severity: Minor
                                                                                                                                Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

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

                                                                                                                                      var addArrow = function (o, value, isEnd) {
                                                                                                                                          var values = Str(value).toLowerCase().split("-"),
                                                                                                                                              se = isEnd ? "end" : "start",
                                                                                                                                              i = values.length,
                                                                                                                                              type = "classic",
                                                                                                                                  Severity: Minor
                                                                                                                                  Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

                                                                                                                                    Consider simplifying this complex logical expression.
                                                                                                                                    Open

                                                                                                                                                    if ((tt1[0] != tt2[0]) ||
                                                                                                                                                        (tt1[0].toLowerCase() == "r" && (tt1[2] != tt2[2] || tt1[3] != tt2[3])) ||
                                                                                                                                                        (tt1[0].toLowerCase() == "s" && (tt1[3] != tt2[3] || tt1[4] != tt2[4]))
                                                                                                                                                        ) {
                                                                                                                                                        return;
                                                                                                                                    Severity: Major
                                                                                                                                    Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

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

                                                                                                                                          R.bezierBBox = function (p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y) {
                                                                                                                                      Severity: Major
                                                                                                                                      Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

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

                                                                                                                                                curveDim = cacher(function (p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y) {
                                                                                                                                        Severity: Major
                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

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

                                                                                                                                              function intersect(x1, y1, x2, y2, x3, y3, x4, y4) {
                                                                                                                                          Severity: Major
                                                                                                                                          Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

                                                                                                                                            Consider simplifying this complex logical expression.
                                                                                                                                            Open

                                                                                                                                                    if (!isInAnim) {
                                                                                                                                                        for (var attr in params) if (params[has](attr)) {
                                                                                                                                                            if (availableAnimAttrs[has](attr) || element.paper.customAttributes[has](attr)) {
                                                                                                                                                                from[attr] = element.attr(attr);
                                                                                                                                                                (from[attr] == null) && (from[attr] = availableAttrs[attr]);
                                                                                                                                            Severity: Major
                                                                                                                                            Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

                                                                                                                                              Consider simplifying this complex logical expression.
                                                                                                                                              Open

                                                                                                                                                  if ((navigator.vendor == "Apple Computer, Inc.") && (version && version[1] < 4 || navigator.platform.slice(0, 2) == "iP") ||
                                                                                                                                                      (navigator.vendor == "Google Inc." && version && version[1] < 8)) {
                                                                                                                                              
                                                                                                                                                      paperproto.safari = function () {
                                                                                                                                                          var rect = this.rect(-99, -99, this.width + 99, this.height + 99).attr({stroke: "none"});
                                                                                                                                              Severity: Major
                                                                                                                                              Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

                                                                                                                                                Consider simplifying this complex logical expression.
                                                                                                                                                Open

                                                                                                                                                            if (rgb[4]) {
                                                                                                                                                                values = rgb[4][split](commaSpaces);
                                                                                                                                                                red = toFloat(values[0]);
                                                                                                                                                                values[0].slice(-1) == "%" && (red *= 2.55);
                                                                                                                                                                green = toFloat(values[1]);
                                                                                                                                                Severity: Major
                                                                                                                                                Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

                                                                                                                                                  Function print has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                  Open

                                                                                                                                                      paperproto.print = function (x, y, string, font, size, origin, letter_spacing) {
                                                                                                                                                  Severity: Major
                                                                                                                                                  Found in cabot/static/arachnys/js/raphael.js - About 50 mins to fix

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

                                                                                                                                                        R._engine.image = function (svg, src, x, y, w, h) {
                                                                                                                                                    Severity: Minor
                                                                                                                                                    Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

                                                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                                                      Open

                                                                                                                                                                              if (justCount) {
                                                                                                                                                                                  res += intr;
                                                                                                                                                                              } else {
                                                                                                                                                                                  for (var k = 0, kk = intr.length; k < kk; k++) {
                                                                                                                                                                                      intr[k].segment1 = i;
                                                                                                                                                      Severity: Major
                                                                                                                                                      Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

                                                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                                                        Open

                                                                                                                                                                            for (var k in path.k) if (path[has](k)) {
                                                                                                                                                                                fontcopy.glyphs[glyph].k[k] = path.k[k];
                                                                                                                                                                            }
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

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

                                                                                                                                                                  q2c = function (x1, y1, ax, ay, x2, y2) {
                                                                                                                                                          Severity: Minor
                                                                                                                                                          Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

                                                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                                                            Open

                                                                                                                                                                                switch (availableAnimAttrs[attr]) {
                                                                                                                                                                                    case nu:
                                                                                                                                                                                        diff[attr] = (to[attr] - from[attr]) / ms;
                                                                                                                                                                                        break;
                                                                                                                                                                                    case "colour":
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

                                                                                                                                                              Avoid deeply nested control flow statements.
                                                                                                                                                              Open

                                                                                                                                                                                          if (onlystart) {return sp;}
                                                                                                                                                              Severity: Major
                                                                                                                                                              Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

                                                                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                                                                Open

                                                                                                                                                                                    for (key in e) if (e[has](key)) {
                                                                                                                                                                                        splice.push(e[key]);
                                                                                                                                                                                    }
                                                                                                                                                                Severity: Major
                                                                                                                                                                Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

                                                                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                                                                  Open

                                                                                                                                                                                          if (justCount) {
                                                                                                                                                                                              res++;
                                                                                                                                                                                          } else {
                                                                                                                                                                                              res.push({
                                                                                                                                                                                                  x: is.x,
                                                                                                                                                                  Severity: Major
                                                                                                                                                                  Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

                                                                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                                                                    Open

                                                                                                                                                                                        for (key in e.n) if (e.n[has](key) && e.n[key].f) {
                                                                                                                                                                                            var funcs = e.n[key].f;
                                                                                                                                                                                            for (j = 0, jj = funcs.length; j < jj; j++) if (funcs[j] == f) {
                                                                                                                                                                                                funcs.splice(j, 1);
                                                                                                                                                                                                break;
                                                                                                                                                                    Severity: Major
                                                                                                                                                                    Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

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

                                                                                                                                                                          elproto.drag = function (onmove, onstart, onend, move_scope, start_scope, end_scope) {
                                                                                                                                                                      Severity: Minor
                                                                                                                                                                      Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

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

                                                                                                                                                                            R._engine.rect = function (svg, x, y, w, h, r) {
                                                                                                                                                                        Severity: Minor
                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

                                                                                                                                                                          Avoid deeply nested control flow statements.
                                                                                                                                                                          Open

                                                                                                                                                                                                  if (pj[0] == "C") {
                                                                                                                                                                                                      bez2 = [x2, y2].concat(pj.slice(1));
                                                                                                                                                                                                      x2 = bez2[6];
                                                                                                                                                                                                      y2 = bez2[7];
                                                                                                                                                                                                  } else {
                                                                                                                                                                          Severity: Major
                                                                                                                                                                          Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

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

                                                                                                                                                                                function runAnimation(anim, element, percent, status, totalOrigin, times) {
                                                                                                                                                                            Severity: Minor
                                                                                                                                                                            Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

                                                                                                                                                                              Avoid deeply nested control flow statements.
                                                                                                                                                                              Open

                                                                                                                                                                                                      switch (availableAnimAttrs[attr]) {
                                                                                                                                                                                                          case nu:
                                                                                                                                                                                                              now = +from[attr] + pos * ms * diff[attr];
                                                                                                                                                                                                              break;
                                                                                                                                                                                                          case "colour":
                                                                                                                                                                              Severity: Major
                                                                                                                                                                              Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

                                                                                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                                                                                Open

                                                                                                                                                                                                    for (key in e.n) if (e.n[has](key) && e.n[key].f) {
                                                                                                                                                                                                        delete e.n[key].f;
                                                                                                                                                                                                    }
                                                                                                                                                                                Severity: Major
                                                                                                                                                                                Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

                                                                                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                                                                                  Open

                                                                                                                                                                                                              if (gradient) {
                                                                                                                                                                                                                  stops = gradient.getElementsByTagName("stop");
                                                                                                                                                                                                                  $(stops[stops.length - 1], {"stop-opacity": value});
                                                                                                                                                                                                              }
                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                  Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

                                                                                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                                                                                    Open

                                                                                                                                                                                                            for (key in to) if (to[has](key)) {
                                                                                                                                                                                                                init[key] = e.totalOrigin[key];
                                                                                                                                                                                                            }
                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                    Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

                                                                                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                                                                                      Open

                                                                                                                                                                                                              for (j = 0, jj = e.f.length; j < jj; j++) if (e.f[j] == f) {
                                                                                                                                                                                                                  e.f.splice(j, 1);
                                                                                                                                                                                                                  break;
                                                                                                                                                                                                              }
                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                      Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

                                                                                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                                                                                        Open

                                                                                                                                                                                                                    if (o._.arrows) {
                                                                                                                                                                                                                        "startString" in o._.arrows && addArrow(o, o._.arrows.startString);
                                                                                                                                                                                                                        "endString" in o._.arrows && addArrow(o, o._.arrows.endString, 1);
                                                                                                                                                                                                                    }
                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

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

                                                                                                                                                                                              function Matrix(a, b, c, d, e, f) {
                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                          Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

                                                                                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                                                                                            Open

                                                                                                                                                                                                                        if (path) {
                                                                                                                                                                                                                            var clip = R._g.doc.getElementById(path.replace(/(^url\(#|\)$)/g, E));
                                                                                                                                                                                                                            clip && clip.parentNode.removeChild(clip);
                                                                                                                                                                                                                            $(node, {"clip-path": E});
                                                                                                                                                                                                                            delete o.clip;
                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                            Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

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

                                                                                                                                                                                                  elproto.animateWith = function (el, anim, params, ms, easing, callback) {
                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                              Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

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

                                                                                                                                                                                                    function CubicBezierAtTime(t, p1x, p1y, p2x, p2y, duration) {
                                                                                                                                                                                                Severity: Minor
                                                                                                                                                                                                Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

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

                                                                                                                                                                                                          setCoords = function (p, sx, sy, dx, dy, deg) {
                                                                                                                                                                                                  Severity: Minor
                                                                                                                                                                                                  Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

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

                                                                                                                                                                                                        R.angle = function (x1, y1, x2, y2, x3, y3) {
                                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                                    Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

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

                                                                                                                                                                                                          R._engine.rect = function (vml, x, y, w, h, r) {
                                                                                                                                                                                                      Severity: Minor
                                                                                                                                                                                                      Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

                                                                                                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                if (tlen == 2) {
                                                                                                                                                                                                                                    bb = bb || el.getBBox(1);
                                                                                                                                                                                                                                    m.rotate(t[1], bb.x + bb.width / 2, bb.y + bb.height / 2);
                                                                                                                                                                                                                                    deg += t[1];
                                                                                                                                                                                                                                } else if (tlen == 4) {
                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

                                                                                                                                                                                                          Avoid deeply nested control flow statements.
                                                                                                                                                                                                          Open

                                                                                                                                                                                                                              } else if (command == "s") {
                                                                                                                                                                                                                                  if (tlen == 2 || tlen == 3) {
                                                                                                                                                                                                                                      bb = bb || el.getBBox(1);
                                                                                                                                                                                                                                      m.scale(t[1], t[tlen - 1], bb.x + bb.width / 2, bb.y + bb.height / 2);
                                                                                                                                                                                                                                      sx *= t[1];
                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                          Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

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

                                                                                                                                                                                                                R._engine.image = function (vml, src, x, y, w, h) {
                                                                                                                                                                                                            Severity: Minor
                                                                                                                                                                                                            Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

                                                                                                                                                                                                              Avoid deeply nested control flow statements.
                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                          if (stop) {
                                                                                                                                                                                                                                              break;
                                                                                                                                                                                                                                          }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

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

                                                                                                                                                                                                                    R.matrix = function (a, b, c, d, e, f) {
                                                                                                                                                                                                                Severity: Minor
                                                                                                                                                                                                                Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

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

                                                                                                                                                                                                                          matrixproto.add = function (a, b, c, d, e, f) {
                                                                                                                                                                                                                  Severity: Minor
                                                                                                                                                                                                                  Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

                                                                                                                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                if ("opacity" in attrs || "fill-opacity" in attrs) {
                                                                                                                                                                                                                                                    var gradient = R._g.doc.getElementById(node.getAttribute("fill").replace(/^url\(#|\)$/g, E));
                                                                                                                                                                                                                                                    if (gradient) {
                                                                                                                                                                                                                                                        var stops = gradient.getElementsByTagName("stop");
                                                                                                                                                                                                                                                        $(stops[stops.length - 1], {"stop-opacity": ("opacity" in attrs ? attrs.opacity : 1) * ("fill-opacity" in attrs ? attrs["fill-opacity"] : 1)});
                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                    Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

                                                                                                                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                      for (var subkey in par) if (par[has](subkey)) {
                                                                                                                                                                                                                                          params[subkey] = par[subkey];
                                                                                                                                                                                                                                      }
                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                      Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

                                                                                                                                                                                                                        Consider simplifying this complex logical expression.
                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                } else if (g.doc.attachEvent) {
                                                                                                                                                                                                                                    return function (obj, type, fn, element) {
                                                                                                                                                                                                                                        var f = function (e) {
                                                                                                                                                                                                                                            e = e || g.win.event;
                                                                                                                                                                                                                                            var scrollY = g.doc.documentElement.scrollTop || g.doc.body.scrollTop,
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js - About 40 mins to fix

                                                                                                                                                                                                                          Consider simplifying this complex logical expression.
                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                              if (path1 && path2 && path1[i][0] == "M" && path2[i][0] != "M") {
                                                                                                                                                                                                                                                  path2.splice(i, 0, ["M", a2.x, a2.y]);
                                                                                                                                                                                                                                                  a1.bx = 0;
                                                                                                                                                                                                                                                  a1.by = 0;
                                                                                                                                                                                                                                                  a1.x = path1[i][1];
                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                          Found in cabot/static/arachnys/js/raphael.js - About 40 mins to fix

                                                                                                                                                                                                                            Consider simplifying this complex logical expression.
                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                            if (letters[i] == "\n") {
                                                                                                                                                                                                                                                shift = 0;
                                                                                                                                                                                                                                                curr = 0;
                                                                                                                                                                                                                                                notfirst = 0;
                                                                                                                                                                                                                                                shifty += lineHeight;
                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                            Found in cabot/static/arachnys/js/raphael.js - About 40 mins to fix

                                                                                                                                                                                                                              Consider simplifying this complex logical expression.
                                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                      if (o.textpath) {
                                                                                                                                                                                                                                          var textpathStyle = o.textpath.style;
                                                                                                                                                                                                                                          params.font && (textpathStyle.font = params.font);
                                                                                                                                                                                                                                          params["font-family"] && (textpathStyle.fontFamily = '"' + params["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g, E) + '"');
                                                                                                                                                                                                                                          params["font-size"] && (textpathStyle.fontSize = params["font-size"]);
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in cabot/static/arachnys/js/raphael.js - About 40 mins to fix

                                                                                                                                                                                                                                Consider simplifying this complex logical expression.
                                                                                                                                                                                                                                Open

                                                                                                                                                                                                                                        if (el.type != "text" || !(params[has]("text") || params[has]("font") || params[has]("font-size") || params[has]("x") || params[has]("y"))) {
                                                                                                                                                                                                                                            return;
                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                Found in cabot/static/arachnys/js/raphael.js - About 40 mins to fix

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

                                                                                                                                                                                                                                      R._engine.ellipse = function (svg, x, y, rx, ry) {
                                                                                                                                                                                                                                  Severity: Minor
                                                                                                                                                                                                                                  Found in cabot/static/arachnys/js/raphael.js - About 35 mins to fix

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

                                                                                                                                                                                                                                            rectPath = R._rectPath = function (x, y, w, h, r) {
                                                                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                                                                    Found in cabot/static/arachnys/js/raphael.js - About 35 mins to fix

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

                                                                                                                                                                                                                                          paperproto.rect = function (x, y, w, h, r) {
                                                                                                                                                                                                                                      Severity: Minor
                                                                                                                                                                                                                                      Found in cabot/static/arachnys/js/raphael.js - About 35 mins to fix

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

                                                                                                                                                                                                                                            R._engine.ellipse = function (vml, x, y, rx, ry) {
                                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js - About 35 mins to fix

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

                                                                                                                                                                                                                                              R._engine.setViewBox = function (x, y, w, h, fit) {
                                                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                                                          Found in cabot/static/arachnys/js/raphael.js - About 35 mins to fix

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

                                                                                                                                                                                                                                                            fixM = function (path1, path2, a1, a2, i) {
                                                                                                                                                                                                                                            Severity: Minor
                                                                                                                                                                                                                                            Found in cabot/static/arachnys/js/raphael.js - About 35 mins to fix

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

                                                                                                                                                                                                                                                  paperproto.image = function (src, x, y, w, h) {
                                                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                                                              Found in cabot/static/arachnys/js/raphael.js - About 35 mins to fix

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

                                                                                                                                                                                                                                                    R._engine.setViewBox = function (x, y, w, h, fit) {
                                                                                                                                                                                                                                                Severity: Minor
                                                                                                                                                                                                                                                Found in cabot/static/arachnys/js/raphael.js - About 35 mins to fix

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

                                                                                                                                                                                                                                                      paperproto.setViewBox = function (x, y, w, h, fit) {
                                                                                                                                                                                                                                                  Severity: Minor
                                                                                                                                                                                                                                                  Found in cabot/static/arachnys/js/raphael.js - About 35 mins to fix

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

                                                                                                                                                                                                                                                        function base3(t, p1, p2, p3, p4) {
                                                                                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                                                                                    Found in cabot/static/arachnys/js/raphael.js - About 35 mins to fix

                                                                                                                                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                                              return this;
                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                      Found in cabot/static/arachnys/js/raphael.js - About 30 mins to fix

                                                                                                                                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                    return t2;
                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js - About 30 mins to fix

                                                                                                                                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                  return {r: -1, g: -1, b: -1, hex: "none", error: 1, toString: clrToString};
                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                          Found in cabot/static/arachnys/js/raphael.js - About 30 mins to fix

                                                                                                                                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                                        return ii - 1 ? out : out[names[0]];
                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                            Found in cabot/static/arachnys/js/raphael.js - About 30 mins to fix

                                                                                                                                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                                                      return this;
                                                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                                                              Found in cabot/static/arachnys/js/raphael.js - About 30 mins to fix

                                                                                                                                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                Open

                                                                                                                                                                                                                                                                                    return [l, 1];
                                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                                Found in cabot/static/arachnys/js/raphael.js - About 30 mins to fix

                                                                                                                                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                                                              return out;
                                                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                                                  Found in cabot/static/arachnys/js/raphael.js - About 30 mins to fix

                                                                                                                                                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                return rgb;
                                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                                    Found in cabot/static/arachnys/js/raphael.js - About 30 mins to fix

                                                                                                                                                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                                                                  return out;
                                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                                      Found in cabot/static/arachnys/js/raphael.js - About 30 mins to fix

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

                                                                                                                                                                                                                                                                                    if (rgb[5]) {
                                                                                                                                                                                                                                                                                        values = rgb[5][split](commaSpaces);
                                                                                                                                                                                                                                                                                        red = toFloat(values[0]);
                                                                                                                                                                                                                                                                                        values[0].slice(-1) == "%" && (red *= 2.55);
                                                                                                                                                                                                                                                                                        green = toFloat(values[1]);
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 1 day to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 858..870

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 307.

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

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

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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 (rgb[6]) {
                                                                                                                                                                                                                                                                                        values = rgb[6][split](commaSpaces);
                                                                                                                                                                                                                                                                                        red = toFloat(values[0]);
                                                                                                                                                                                                                                                                                        values[0].slice(-1) == "%" && (red *= 2.55);
                                                                                                                                                                                                                                                                                        green = toFloat(values[1]);
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 1 day to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 845..857

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 307.

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

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

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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

                                                                                                                                                                                                                                                                                    for (key in this.paper.customAttributes) if (this.paper.customAttributes[has](key) && params[has](key) && R.is(this.paper.customAttributes[key], "function")) {
                                                                                                                                                                                                                                                                                        var par = this.paper.customAttributes[key].apply(this, [].concat(params[key]));
                                                                                                                                                                                                                                                                                        this.attrs[key] = params[key];
                                                                                                                                                                                                                                                                                        for (var subkey in par) if (par[has](subkey)) {
                                                                                                                                                                                                                                                                                            params[subkey] = par[subkey];
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 6 hrs to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 4562..4568

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 161.

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

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

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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

                                                                                                                                                                                                                                                                                for (key in this.paper.customAttributes) if (this.paper.customAttributes[has](key) && params[has](key) && R.is(this.paper.customAttributes[key], "function")) {
                                                                                                                                                                                                                                                                                    var par = this.paper.customAttributes[key].apply(this, [].concat(params[key]));
                                                                                                                                                                                                                                                                                    this.attrs[key] = params[key];
                                                                                                                                                                                                                                                                                    for (var subkey in par) if (par[has](subkey)) {
                                                                                                                                                                                                                                                                                        params[subkey] = par[subkey];
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 6 hrs to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 5488..5494

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 161.

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

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

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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

                                                                                                                                                                                                                                                                                    for (var i = 0, ii = names.length; i < ii; i++) {
                                                                                                                                                                                                                                                                                        name = names[i];
                                                                                                                                                                                                                                                                                        if (name in this.attrs) {
                                                                                                                                                                                                                                                                                            out[name] = this.attrs[name];
                                                                                                                                                                                                                                                                                        } else if (R.is(this.paper.customAttributes[name], "function")) {
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 6 hrs to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 5459..5468

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 156.

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

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

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

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

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

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

                                                                                                                                                                                                                                                                                    for (var i = 0, ii = names.length; i < ii; i++) {
                                                                                                                                                                                                                                                                                        name = names[i];
                                                                                                                                                                                                                                                                                        if (name in this.attrs) {
                                                                                                                                                                                                                                                                                            out[name] = this.attrs[name];
                                                                                                                                                                                                                                                                                        } else if (R.is(this.paper.customAttributes[name], "function")) {
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 6 hrs to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 4534..4543

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 156.

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

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

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

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

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

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

                                                                                                                                                                                                                                                                                if (name == null) {
                                                                                                                                                                                                                                                                                    var res = {};
                                                                                                                                                                                                                                                                                    for (var a in this.attrs) if (this.attrs[has](a)) {
                                                                                                                                                                                                                                                                                        res[a] = this.attrs[a];
                                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 5 hrs to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 5444..5452

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 138.

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

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

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

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

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

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

                                                                                                                                                                                                                                                                                if (name == null) {
                                                                                                                                                                                                                                                                                    var res = {};
                                                                                                                                                                                                                                                                                    for (var a in this.attrs) if (this.attrs[has](a)) {
                                                                                                                                                                                                                                                                                        res[a] = this.attrs[a];
                                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 5 hrs to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 4516..4524

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 138.

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

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

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

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

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

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

                                                                                                                                                                                                                                                                                insertbefore = R._insertbefore = function (el, el2, paper) {
                                                                                                                                                                                                                                                                                    tear(el, paper);
                                                                                                                                                                                                                                                                                    el2 == paper.bottom && (paper.bottom = el);
                                                                                                                                                                                                                                                                                    el2.prev && (el2.prev.next = el);
                                                                                                                                                                                                                                                                                    el.prev = el2.prev;
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 1838..1845

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 112.

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

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

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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

                                                                                                                                                                                                                                                                                insertafter = R._insertafter = function (el, el2, paper) {
                                                                                                                                                                                                                                                                                    tear(el, paper);
                                                                                                                                                                                                                                                                                    el2 == paper.top && (paper.top = el);
                                                                                                                                                                                                                                                                                    el2.next && (el2.next.prev = el);
                                                                                                                                                                                                                                                                                    el.next = el2.next;
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 1846..1853

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 112.

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

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

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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 method in elproto) if (elproto[has](method) && !setproto[has](method)) {
                                                                                                                                                                                                                                                                                setproto[method] = (function (methodname) {
                                                                                                                                                                                                                                                                                    return function () {
                                                                                                                                                                                                                                                                                        var arg = arguments;
                                                                                                                                                                                                                                                                                        return this.forEach(function (el) {
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 5805..5814

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 108.

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

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

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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 method in elproto) if (elproto[has](method) && !setproto[has](method)) {
                                                                                                                                                                                                                                                                                setproto[method] = (function (methodname) {
                                                                                                                                                                                                                                                                                    return function () {
                                                                                                                                                                                                                                                                                        var arg = arguments;
                                                                                                                                                                                                                                                                                        return this.forEach(function (el) {
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 4831..4840

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 108.

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

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

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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 (pj[0] == "C") {
                                                                                                                                                                                                                                                                                                    bez2 = [x2, y2].concat(pj.slice(1));
                                                                                                                                                                                                                                                                                                    x2 = bez2[6];
                                                                                                                                                                                                                                                                                                    y2 = bez2[7];
                                                                                                                                                                                                                                                                                                } else {
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 1243..1251

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 97.

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

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

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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 (pi[0] == "C") {
                                                                                                                                                                                                                                                                                            bez1 = [x1, y1].concat(pi.slice(1));
                                                                                                                                                                                                                                                                                            x1 = bez1[6];
                                                                                                                                                                                                                                                                                            y1 = bez1[7];
                                                                                                                                                                                                                                                                                        } else {
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 1258..1266

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 97.

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

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

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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 scrollY = g.doc.documentElement.scrollTop || g.doc.body.scrollTop,
                                                                                                                                                                                                                                                                                                scrollX = g.doc.documentElement.scrollLeft || g.doc.body.scrollLeft,
                                                                                                                                                                                                                                                                                                x = e.clientX + scrollX,
                                                                                                                                                                                                                                                                                                y = e.clientY + scrollY;
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 2241..2244

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 94.

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

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

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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 scrollY = g.doc.documentElement.scrollTop || g.doc.body.scrollTop,
                                                                                                                                                                                                                                                                                                    scrollX = g.doc.documentElement.scrollLeft || g.doc.body.scrollLeft,
                                                                                                                                                                                                                                                                                                    x = e.clientX + scrollX,
                                                                                                                                                                                                                                                                                                    y = e.clientY + scrollY;
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 2269..2272

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 94.

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

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

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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

                                                                                                                                                                                                                                                                                                if (o._.arrows) {
                                                                                                                                                                                                                                                                                                    "startString" in o._.arrows && addArrow(o, o._.arrows.startString);
                                                                                                                                                                                                                                                                                                    "endString" in o._.arrows && addArrow(o, o._.arrows.endString, 1);
                                                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 4129..4132

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 88.

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

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

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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

                                                                                                                                                                                                                                                                                                    if (o._.arrows) {
                                                                                                                                                                                                                                                                                                        "startString" in o._.arrows && addArrow(o, o._.arrows.startString);
                                                                                                                                                                                                                                                                                                        "endString" in o._.arrows && addArrow(o, o._.arrows.endString, 1);
                                                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 4203..4206

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 88.

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

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

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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 (this.node.parentNode.tagName.toLowerCase() == "a") {
                                                                                                                                                                                                                                                                                    this.node.parentNode.parentNode.removeChild(this.node.parentNode);
                                                                                                                                                                                                                                                                                } else {
                                                                                                                                                                                                                                                                                    this.node.parentNode.removeChild(this.node);
                                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 4577..4581

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 88.

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

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

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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 (this.node.parentNode.tagName.toLowerCase() == "a") {
                                                                                                                                                                                                                                                                                    this.node.parentNode.parentNode.appendChild(this.node.parentNode);
                                                                                                                                                                                                                                                                                } else {
                                                                                                                                                                                                                                                                                    this.node.parentNode.appendChild(this.node);
                                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 4485..4489

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 88.

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

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

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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

                                                                                                                                                                                                                                                                                if (cx == null || cy == null) {
                                                                                                                                                                                                                                                                                    var bbox = this.getBBox(1);
                                                                                                                                                                                                                                                                                    cx = bbox.x + bbox.width / 2;
                                                                                                                                                                                                                                                                                    cy = bbox.y + bbox.height / 2;
                                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 5356..5360

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 80.

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

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

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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

                                                                                                                                                                                                                                                                                if (cx == null || cy == null) {
                                                                                                                                                                                                                                                                                    var bbox = this.getBBox(1);
                                                                                                                                                                                                                                                                                    cx = bbox.x + bbox.width / 2;
                                                                                                                                                                                                                                                                                    cy = bbox.y + bbox.height / 2;
                                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 4400..4404

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 80.

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

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

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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 (R.is(clr, "object") && "h" in clr && "s" in clr && "b" in clr) {
                                                                                                                                                                                                                                                                                    rgb = R.hsb2rgb(clr);
                                                                                                                                                                                                                                                                                    clr.r = rgb.r;
                                                                                                                                                                                                                                                                                    clr.g = rgb.g;
                                                                                                                                                                                                                                                                                    clr.b = rgb.b;
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 649..670

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 79.

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

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

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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 (R.is(clr, "object") && "h" in clr && "s" in clr && "l" in clr) {
                                                                                                                                                                                                                                                                                    rgb = R.hsl2rgb(clr);
                                                                                                                                                                                                                                                                                    clr.r = rgb.r;
                                                                                                                                                                                                                                                                                    clr.g = rgb.g;
                                                                                                                                                                                                                                                                                    clr.b = rgb.b;
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 643..670

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 79.

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

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

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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

                                                                                                                                                                                                                                                                                    newpath = pathTypes[o.type] && (params.x != a.x || params.y != a.y || params.width != a.width || params.height != a.height || params.cx != a.cx || params.cy != a.cy || params.rx != a.rx || params.ry != a.ry || params.r != a.r),
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 4997..4997

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

                                                                                                                                                                                                                                                                                        } else {
                                                                                                                                                                                                                                                                                            o._.arrows.startPath && markerCounter[o._.arrows.startPath]--;
                                                                                                                                                                                                                                                                                            o._.arrows.startMarker && markerCounter[o._.arrows.startMarker]--;
                                                                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 3939..3942

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

                                                                                                                                                                                                                                                                                    isOval = ovalTypes[o.type] && (a.cx != params.cx || a.cy != params.cy || a.r != params.r || a.rx != params.rx || a.ry != params.ry),
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 4996..4996

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 77.

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

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

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

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

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

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

                                                                                                                                                                                                                                                                                        if (isEnd) {
                                                                                                                                                                                                                                                                                            o._.arrows.endPath && markerCounter[o._.arrows.endPath]--;
                                                                                                                                                                                                                                                                                            o._.arrows.endMarker && markerCounter[o._.arrows.endMarker]--;
                                                                                                                                                                                                                                                                                        } else {
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 3942..3945

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

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

                                                                                                                                                                                                                                                                                if (value == null && R.is(name, "array")) {
                                                                                                                                                                                                                                                                                    out = {};
                                                                                                                                                                                                                                                                                    for (i = 0, ii = name.length; i < ii; i++) {
                                                                                                                                                                                                                                                                                        out[name[i]] = this.attr(name[i]);
                                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 5471..5477

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

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

                                                                                                                                                                                                                                                                                if (this.attrs && value == null && R.is(name, "array")) {
                                                                                                                                                                                                                                                                                    out = {};
                                                                                                                                                                                                                                                                                    for (i = 0, ii = name.length; i < ii; i++) {
                                                                                                                                                                                                                                                                                        out[name[i]] = this.attr(name[i]);
                                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 4546..4552

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

                                                                                                                                                                                                                                                                                H = (C == 0 ? null :
                                                                                                                                                                                                                                                                                     V == r ? (g - b) / C :
                                                                                                                                                                                                                                                                                     V == g ? (b - r) / C + 2 :
                                                                                                                                                                                                                                                                                              (r - g) / C + 4
                                                                                                                                                                                                                                                                                    );
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 750..753

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

                                                                                                                                                                                                                                                                                H = (C == 0 ? null :
                                                                                                                                                                                                                                                                                     M == r ? (g - b) / C :
                                                                                                                                                                                                                                                                                     M == g ? (b - r) / C + 2 :
                                                                                                                                                                                                                                                                                              (r - g) / C + 4);
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 730..734

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 4 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                    if (t1 > 0 && t1 < 1) {
                                                                                                                                                                                                                                                                                        dot = findDotAtSegment(p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, t1);
                                                                                                                                                                                                                                                                                        x.push(dot.x);
                                                                                                                                                                                                                                                                                        y.push(dot.y);
                                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 3 other locations - About 1 hr to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 1644..1648
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 1649..1653
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 1666..1670

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 4 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                    if (t1 > 0 && t1 < 1) {
                                                                                                                                                                                                                                                                                        dot = findDotAtSegment(p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, t1);
                                                                                                                                                                                                                                                                                        x.push(dot.x);
                                                                                                                                                                                                                                                                                        y.push(dot.y);
                                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 3 other locations - About 1 hr to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 1649..1653
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 1661..1665
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 1666..1670

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 4 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                    if (t2 > 0 && t2 < 1) {
                                                                                                                                                                                                                                                                                        dot = findDotAtSegment(p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, t2);
                                                                                                                                                                                                                                                                                        x.push(dot.x);
                                                                                                                                                                                                                                                                                        y.push(dot.y);
                                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 3 other locations - About 1 hr to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 1644..1648
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 1661..1665
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 1666..1670

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 4 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                    if (t2 > 0 && t2 < 1) {
                                                                                                                                                                                                                                                                                        dot = findDotAtSegment(p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, t2);
                                                                                                                                                                                                                                                                                        x.push(dot.x);
                                                                                                                                                                                                                                                                                        y.push(dot.y);
                                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 3 other locations - About 1 hr to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 1644..1648
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 1649..1653
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 1661..1665

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

                                                                                                                                                                                                                                                                                        x: pow(t1, 3) * p1x + pow(t1, 2) * 3 * t * c1x + t1 * 3 * t * t * c2x + pow(t, 3) * p2x,
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 1630..1630

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

                                                                                                                                                                                                                                                                                        y: pow(t1, 3) * p1y + pow(t1, 2) * 3 * t * c1y + t1 * 3 * t * t * c2y + pow(t, 3) * p2y
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 1629..1629

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

                                                                                                                                                                                                                                                                                            case "width":
                                                                                                                                                                                                                                                                                                node.setAttribute(att, value);
                                                                                                                                                                                                                                                                                                o._.dirty = 1;
                                                                                                                                                                                                                                                                                                if (attrs.fx) {
                                                                                                                                                                                                                                                                                                    att = "x";
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 4157..4165

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

                                                                                                                                                                                                                                                                                            case "height":
                                                                                                                                                                                                                                                                                                node.setAttribute(att, value);
                                                                                                                                                                                                                                                                                                o._.dirty = 1;
                                                                                                                                                                                                                                                                                                if (attrs.fy) {
                                                                                                                                                                                                                                                                                                    att = "y";
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 4135..4143

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

                                                                                                                                                                                                                                                                                            var t1 = di.t + abs((is[ci] - di[ci]) / (di1[ci] - di[ci])) * (di1.t - di.t),
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 1207..1207

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

                                                                                                                                                                                                                                                                                    && (bbox1.y < bbox2.y2 && bbox1.y > bbox2.y || bbox2.y < bbox1.y2 && bbox2.y > bbox1.y);
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 1086..1086

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

                                                                                                                                                                                                                                                                                                t2 = dj.t + abs((is[cj] - dj[cj]) / (dj1[cj] - dj[cj])) * (dj1.t - dj.t);
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 1206..1206

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

                                                                                                                                                                                                                                                                                    || (bbox1.x < bbox2.x2 && bbox1.x > bbox2.x || bbox2.x < bbox1.x2 && bbox2.x > bbox1.x)
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 1087..1087

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

                                                                                                                                                                                                                                                                            elproto.show = function () {
                                                                                                                                                                                                                                                                                !this.removed && this.paper.safari(this.node.style.display = "");
                                                                                                                                                                                                                                                                                return this;
                                                                                                                                                                                                                                                                            };
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 4464..4467

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 60.

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

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

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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

                                                                                                                                                                                                                                                                            elproto.hide = function () {
                                                                                                                                                                                                                                                                                !this.removed && this.paper.safari(this.node.style.display = "none");
                                                                                                                                                                                                                                                                                return this;
                                                                                                                                                                                                                                                                            };
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 4469..4472

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 60.

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

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

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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

                                                                                                                                                                                                                                                                                    if (!R.is(pathArray, array) || !R.is(pathArray && pathArray[0], array)) { // rough assumption
                                                                                                                                                                                                                                                                                        pathArray = R.parsePathString(pathArray);
                                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 1351..1353

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 58.

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

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

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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

                                                                                                                                                                                                                                                                                    if (!R.is(pathArray, array) || !R.is(pathArray && pathArray[0], array)) { // rough assumption
                                                                                                                                                                                                                                                                                        pathArray = R.parsePathString(pathArray);
                                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 1430..1432

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 58.

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

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

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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

                                                                                                                                                                                                                                                                                        "matrix(" + [this.get(0), this.get(1), this.get(2), this.get(3), this.get(4), this.get(5)].join() + ")" :
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 2206..2206

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

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

                                                                                                                                                                                                                                                                                        return "m" + [this.get(0), this.get(1), this.get(2), this.get(3), this.get(4), this.get(5)];
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 2140..2140

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

                                                                                                                                                                                                                                                                                    y = t13 * p1y + t12 * 3 * t * c1y + t1 * 3 * t * t * c2y + t3 * p2y,
                                                                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 55 mins to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 1034..1034

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

                                                                                                                                                                                                                                                                                    x = t13 * p1x + t12 * 3 * t * c1x + t1 * 3 * t * t * c2x + t3 * p2x,
                                                                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 55 mins to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 1035..1035

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

                                                                                                                                                                                                                                                                                    if (top) {
                                                                                                                                                                                                                                                                                        this._top = (this._top + top) % 1;
                                                                                                                                                                                                                                                                                        s.top = this._top + "px";
                                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 4800..4803

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

                                                                                                                                                                                                                                                                                    ny = (x1 * y2 - y1 * x2) * (y3 - y4) - (y1 - y2) * (x3 * y4 - y3 * x4),
                                                                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 1139..1139

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

                                                                                                                                                                                                                                                                                matrixproto.y = function (x, y) {
                                                                                                                                                                                                                                                                                    return x * this.b + y * this.d + this.f;
                                                                                                                                                                                                                                                                                };
                                                                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 2128..2130

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 ((tt1[0] != tt2[0]) ||
                                                                                                                                                                                                                                                                                            (tt1[0].toLowerCase() == "r" && (tt1[2] != tt2[2] || tt1[3] != tt2[3])) ||
                                                                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 1995..1997

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

                                                                                                                                                                                                                                                                                                } else if ((o.type == "circle" || o.type == "ellipse" || Str(value).charAt() != "r") && addGradientFill(o, value)) {
                                                                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 4269..4269

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

                                                                                                                                                                                                                                                                                var nx = (x1 * y2 - y1 * x2) * (x3 - x4) - (x1 - x2) * (x3 * y4 - y3 * x4),
                                                                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 1140..1140

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

                                                                                                                                                                                                                                                                                matrixproto.x = function (x, y) {
                                                                                                                                                                                                                                                                                    return x * this.a + y * this.c + this.e;
                                                                                                                                                                                                                                                                                };
                                                                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 2132..2134

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 (left) {
                                                                                                                                                                                                                                                                                        this._left = (this._left + left) % 1;
                                                                                                                                                                                                                                                                                        s.left = this._left + "px";
                                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 4804..4807

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

                                                                                                                                                                                                                                                                                                (o.type == "circle" || o.type == "ellipse" || Str(value).charAt() != "r") && addGradientFill(o, value);
                                                                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 4246..4246

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

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

                                                                                                                                                                                                                                                                                for (var i in this) {
                                                                                                                                                                                                                                                                                    this[i] = typeof this[i] == "function" ? R._removedFactory(i) : null;
                                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 3 other locations - About 40 mins to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 4490..4492
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 4826..4828
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 5798..5800

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 4 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                for (var i in this) {
                                                                                                                                                                                                                                                                                    this[i] = typeof this[i] == "function" ? R._removedFactory(i) : null;
                                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 3 other locations - About 40 mins to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 4826..4828
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 5435..5437
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 5798..5800

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 4 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                for (var i in this) {
                                                                                                                                                                                                                                                                                    this[i] = typeof this[i] == "function" ? R._removedFactory(i) : null;
                                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 3 other locations - About 40 mins to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 4490..4492
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 5435..5437
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 5798..5800

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 4 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                for (var i in this) {
                                                                                                                                                                                                                                                                                    this[i] = typeof this[i] == "function" ? R._removedFactory(i) : null;
                                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 3 other locations - About 40 mins to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 4490..4492
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 4826..4828
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 5435..5437

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

                                                                                                                                                                                                                                                                                    ellipse: function (el) {
                                                                                                                                                                                                                                                                                        var a = el.attrs;
                                                                                                                                                                                                                                                                                        return ellipsePath(a.cx, a.cy, a.rx, a.ry);
                                                                                                                                                                                                                                                                                    },
                                                                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 421..424

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

                                                                                                                                                                                                                                                                                if (r > 1 || g > 1 || b > 1) {
                                                                                                                                                                                                                                                                                    r /= 255;
                                                                                                                                                                                                                                                                                    g /= 255;
                                                                                                                                                                                                                                                                                    b /= 255;
                                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 702..706

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

                                                                                                                                                                                                                                                                                    image: function (el) {
                                                                                                                                                                                                                                                                                        var a = el.attrs;
                                                                                                                                                                                                                                                                                        return rectPath(a.x, a.y, a.width, a.height);
                                                                                                                                                                                                                                                                                    },
                                                                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 413..416

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

                                                                                                                                                                                                                                                                                if (h > 1 || s > 1 || l > 1) {
                                                                                                                                                                                                                                                                                    h /= 360;
                                                                                                                                                                                                                                                                                    s /= 100;
                                                                                                                                                                                                                                                                                    l /= 100;
                                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 617..621

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

                                                                                                                                                                                                                                                                                                    point = getPointAtSegmentLength(x, y, p[1], p[2], p[3], p[4], p[5], p[6], length - len);
                                                                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 2702..2702

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

                                                                                                                                                                                                                                                                                                    point = getPointAtSegmentLength(x, y, p[1], p[2], p[3], p[4], p[5], p[6], length - len);
                                                                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 2713..2713

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

                                                                                                                                                                                                                                                                                            case "cx":
                                                                                                                                                                                                                                                                                                node.setAttribute(att, value);
                                                                                                                                                                                                                                                                                                o.pattern && updatePosition(o);
                                                                                                                                                                                                                                                                                                o._.dirty = 1;
                                                                                                                                                                                                                                                                                                break;
                                                                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 4174..4178

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

                                                                                                                                                                                                                                                                                            case "cy":
                                                                                                                                                                                                                                                                                                node.setAttribute(att, value);
                                                                                                                                                                                                                                                                                                o.pattern && updatePosition(o);
                                                                                                                                                                                                                                                                                                o._.dirty = 1;
                                                                                                                                                                                                                                                                                                break;
                                                                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 4152..4156

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

                                                                                                                                                                                                                                                                                map = {M: "m", L: "l", C: "c", Z: "x", m: "t", l: "r", c: "v", z: "x"},
                                                                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/d3.js on lines 9082..9091

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 46.

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

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

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

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

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

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

                                                                                                                                                                                                                                                                                        attrs2 = {x: 0, y: 0, bx: 0, by: 0, X: 0, Y: 0, qx: null, qy: null},
                                                                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 1683..1683

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 46.

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

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

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

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

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

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

                                                                                                                                                                                                                                                                                if (R.is(TString, array) && R.is(TString[0], array)) { // rough assumption
                                                                                                                                                                                                                                                                                    data = pathClone(TString);
                                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 957..959

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 46.

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

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

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

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

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

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

                                                                                                                                                                                                                                                                                        attrs = {x: 0, y: 0, bx: 0, by: 0, X: 0, Y: 0, qx: null, qy: null},
                                                                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 1684..1684

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 46.

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

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

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

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

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

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

                                                                                                                                                                                                                                                                                if (R.is(pathString, array) && R.is(pathString[0], array)) { // rough assumption
                                                                                                                                                                                                                                                                                    data = pathClone(pathString);
                                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 993..995

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 46.

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

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

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

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

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

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

                                                                                                                                                                                                                                                                                if (deg.length - 1) {
                                                                                                                                                                                                                                                                                    cx = toFloat(deg[1]);
                                                                                                                                                                                                                                                                                    cy = toFloat(deg[2]);
                                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 30 mins to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 5350..5353

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 45.

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

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

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

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

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

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

                                                                                                                                                                                                                                                                                if (deg.length - 1) {
                                                                                                                                                                                                                                                                                    cx = toFloat(deg[1]);
                                                                                                                                                                                                                                                                                    cy = toFloat(deg[2]);
                                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 30 mins to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 4394..4397

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 45.

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

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

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

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

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

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

                                                                                                                                                                                                                                                                                    t2 = (-b - math.sqrt(b * b - 4 * a * c)) / 2 / a;
                                                                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 30 mins to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 1657..1657

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 45.

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

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

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

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

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

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

                                                                                                                                                                                                                                                                                    t1 = (-b + math.sqrt(b * b - 4 * a * c)) / 2 / a;
                                                                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                                                                        Found in cabot/static/arachnys/js/raphael.js and 1 other location - About 30 mins to fix
                                                                                                                                                                                                                                                                        cabot/static/arachnys/js/raphael.js on lines 1658..1658

                                                                                                                                                                                                                                                                        Duplicated Code

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

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

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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