Noosfero/noosfero

View on GitHub
plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js

Summary

Maintainability
F
2 mos
Test Coverage

File jquery.jstree.js has 4203 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*
 * jsTree 1.0-rc3
 * http://jstree.com/
 *
 * Copyright (c) 2010 Ivan Bozhanov (vakata.com)

    Function __init has 209 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            __init : function () {
                this.data.dnd = {
                    active : false,
                    after : false,
                    inside : false,

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

                  load_node_xml : function (obj, s_call, e_call) {
                      var s = this.get_settings().xml_data,
                          error_func = function () {},
                          success_func = function () {};
      
      

        Function load_node_html has 116 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                    load_node_html : function (obj, s_call, e_call) {
                        var d,
                            s = this.get_settings().html_data,
                            error_func = function () {},
                            success_func = function () {};

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

                      load_node_json : function (obj, s_call, e_call) {
                          var s = this.get_settings().json_data, d,
                              error_func = function () {},
                              success_func = function () {};
                          obj = this._get_node(obj);

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

                        get_xml : function (tp, obj, li_attr, a_attr, is_callback) {
                            var result = "", 
                                s = this._get_settings(), 
                                _this = this,
                                tmp1, tmp2, li, a, lang;

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

                          _parse_json : function (js, obj, is_callback) {
                              var d = false, 
                                  p = this._get_settings(),
                                  s = p.json_data,
                                  t = p.core.html_titles,

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

                            create_node    : function (obj, position, js, callback, is_loaded) {
                                obj = this._get_node(obj);
                                position = typeof position === "undefined" ? "last" : position;
                                var d = $("<li />"),
                                    s = this._get_settings().core,

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

                              prepare_move : function (o, r, pos, cb, is_cb) {
                                  var p = {};
                  
                                  p.ot = $.jstree._reference(o) || this;
                                  p.o = p.ot._get_node(o);

                    Function select_node has 65 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                                select_node : function (obj, check, e) {
                                    obj = this._get_node(obj);
                                    if(obj == -1 || !obj || !obj.length) { return false; }
                                    var s = this._get_settings().ui,
                                        is_multiple = (s.select_multiple_modifier == "on" || (s.select_multiple_modifier !== false && e && e[s.select_multiple_modifier + "Key"])),

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

                                  get_json : function (obj, li_attr, a_attr, is_callback) {
                                      var result = [], 
                                          s = this._get_settings(), 
                                          _this = this,
                                          tmp1, tmp2, li, a, t, lang;

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

                                    init    : function () { 
                                        this.set_focus(); 
                                        if(this._get_settings().core.rtl) {
                                            this.get_container().addClass("jstree-rtl").css("direction", "rtl");
                                        }

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

                                  __init : function () {
                                      var s = this._get_settings().types;
                                      this.data.types.attach_to = [];
                                      this.get_container()
                                          .bind("init.jstree", $.proxy(function () { 

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

                                        _show_input : function (obj, callback) {
                                            obj = this._get_node(obj);
                                            var rtl = this._get_settings().core.rtl,
                                                w = this._get_settings().crrm.input_width_limit,
                                                w1 = obj.children("ins").width(),

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

                                      __init : function () { 
                                          this.data.ui.selected = $(); 
                                          this.data.ui.last_selected = false; 
                                          this.data.ui.hovered = null;
                                          this.data.ui.to_select = this.get_settings().ui.initially_select;

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

                                        __init : function () {
                                            var s = this._get_settings().themeroller;
                                            this.get_container()
                                                .addClass("ui-widget-content")
                                                .addClass("jstree-themeroller")

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

                                              change_state : function (obj, state) {
                                                  obj = this._get_node(obj);
                                                  var coll = false, rc = this._get_settings().checkbox.real_checkboxes;
                                                  if(!obj || obj === -1) { return false; }
                                                  state = (state === false || state === true) ? state : obj.hasClass("jstree-checked");

                                    Function __init has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            __init : function () {
                                                if(!this.data.ui) { throw "jsTree wholerow: jsTree UI plugin not included."; }
                                                this.data.wholerow.html = false;
                                                this.data.wholerow.to = false;
                                                this.get_container()

                                      Function plugin has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              plugin : function (pname, pdata) {
                                                  pdata = $.extend({}, {
                                                      __init        : $.noop, 
                                                      __destroy    : $.noop,
                                                      _fn            : {},

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

                                            $.fn.jstree = function (settings) {
                                                var isMethodCall = (typeof settings == 'string'), // is this a method call like $().jstree("open_node")
                                                    args = Array.prototype.slice.call(arguments, 1), 
                                                    returnValue = this;
                                        
                                        

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

                                                  drag : function (e) { 
                                                      if(!$.vakata.dnd.is_down) { return; }
                                                      if(!$.vakata.dnd.is_drag) {
                                                          if(Math.abs(e.pageX - $.vakata.dnd.init_x) > 5 || Math.abs(e.pageY - $.vakata.dnd.init_y) > 5) { 
                                                              $.vakata.dnd.helper.appendTo("body");

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

                                                    show    : function (s, t, x, y, d, p, rtl) {
                                                        $.vakata.context.rtl = !!rtl;
                                                        var html = $.vakata.context.parse(s), h, w;
                                                        if(!html) { return; }
                                                        $.vakata.context.vis = true;

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

                                                          reload_nodes : function (is_callback) {
                                                              var _this = this,
                                                                  done = true,
                                                                  current = [],
                                                                  remaining = [];

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

                                                            _themeroller : function (obj) {
                                                                var s = this._get_settings().themeroller;
                                                                obj = (!obj || obj == -1) ? this.get_container_ul() : this._get_node(obj);
                                                                obj = (!obj || obj == -1) ? this.get_container_ul() : obj.parent();
                                                                obj

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

                                                              dnd_show : function () {
                                                                  if(!this.data.dnd.prepared) { return; }
                                                                  var o = ["before","inside","after"],
                                                                      r = false,
                                                                      rtl = this._get_settings().core.rtl,

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

                                                            add_sheet : function(opts) {
                                                                var tmp = false, is_new = true;
                                                                if(opts.str) {
                                                                    if(opts.title) { tmp = $("style[id='" + opts.title + "-stylesheet']")[0]; }
                                                                    if(tmp) { is_new = false; }

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

                                                                  save_cookie : function (c) {
                                                                      if(this.data.core.refreshing) { return; }
                                                                      var s = this._get_settings().cookies;
                                                                      if(!c) { // if called manually and not by event
                                                                          if(s.save_loaded) {

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

                                                                    move_node : function (obj, ref, position, is_copy, is_prepared, skip_check) {
                                                                        if(!is_prepared) { 
                                                                            return this.prepare_move(obj, ref, position, function (p) {
                                                                                this.move_node(p, false, false, is_copy, true, skip_check);
                                                                            });

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

                                                                  __init : function () {
                                                                      this.get_container()
                                                                          .bind("before.jstree", $.proxy(function (e, data) { 
                                                                                  var nms = [], res = true, p, t;
                                                                                  if(data.func == "move_node") {

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

                                                                    parse    : function (s, is_callback) {
                                                                        if(!s) { return false; }
                                                                        var str = "",
                                                                            tmp = false,
                                                                            was_sep = true;

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

                                                                          _prepare_checkboxes : function (obj) {
                                                                              obj = !obj || obj == -1 ? this.get_container().find("> ul > li") : this._get_node(obj);
                                                                              if(obj === false) { return; } // added for removing root nodes
                                                                              var c, _this = this, t, ts = this._get_settings().checkbox.two_state, rc = this._get_settings().checkbox.real_checkboxes, rcn = this._get_settings().checkbox.real_checkboxes_names;
                                                                              obj.each(function () {

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

                                                                                $.jstree._fn[i] = function () {
                                                                                    var rslt,
                                                                                        func = val,
                                                                                        args = Array.prototype.slice.call(arguments),
                                                                                        evnt = new $.Event("before.jstree"),

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

                                                                              check_move : function () {
                                                                                  if(!this.__call_old()) { return false; }
                                                                                  var m  = this._get_move(),
                                                                                      s  = m.rt._get_settings().types,
                                                                                      mc = m.rt._check("max_children", m.cr),

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

                                                                                search : function (str, skip_async) {
                                                                                    if($.trim(str) === "") { this.clear_search(); return; }
                                                                                    var s = this.get_settings().search, 
                                                                                        t = this,
                                                                                        error_func = function () { },

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

                                                                                  destroy    : function () { 
                                                                                      var i,
                                                                                          n = this.get_index(),
                                                                                          s = this._get_settings(),
                                                                                          _this = this;

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

                                                                            $.vakata.xslt = function (xml, xsl, callback) {
                                                                                var r = false, p, q, s;
                                                                                // IE9
                                                                                if(r === false && window.ActiveXObject) {
                                                                                    try {

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

                                                                                      dnd_prepare : function () {
                                                                                          if(!r || !r.length) { return; }
                                                                                          this.data.dnd.off = r.offset();
                                                                                          if(this._get_settings().core.rtl) {
                                                                                              this.data.dnd.off.right = this.data.dnd.off.left + r.width();

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

                                                                                        create_node : function (obj, position, js, callback, is_loaded, skip_check) {
                                                                                            if(!skip_check && (is_loaded || this._is_loaded(obj))) {
                                                                                                var p  = (typeof position == "string" && position.match(/^before|after$/i) && obj !== -1) ? this._get_parent(obj) : this._get_node(obj),
                                                                                                    s  = this._get_settings().types,
                                                                                                    mc = this._check("max_children", p),

                                                                              Consider simplifying this complex logical expression.
                                                                              Open

                                                                                              if(obj && obj !== -1 && (s.progressive_render || s.progressive_unload) && !obj.is(".jstree-open, .jstree-leaf") && obj.children("ul").children("li").length === 0 && obj.data("jstree_children")) {
                                                                                                  d = this._parse_json(obj.data("jstree_children"), obj);
                                                                                                  if(d) {
                                                                                                      obj.append(d);
                                                                                                      if(!s.progressive_unload) { obj.removeData("jstree_children"); }

                                                                                Consider simplifying this complex logical expression.
                                                                                Open

                                                                                    if($().jquery.split('.')[1] >= 8) {
                                                                                        $.expr[':'].jstree_contains = $.expr.createPseudo(function(search) {
                                                                                            return function(a) {
                                                                                                return (a.textContent || a.innerText || "").toLowerCase().indexOf(search.toLowerCase())>=0;
                                                                                            };

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

                                                                                          show    : function (s, t, x, y, d, p, rtl) {

                                                                                    Avoid deeply nested control flow statements.
                                                                                    Open

                                                                                                                            if(s_call) { s_call.call(this); } 

                                                                                      Avoid deeply nested control flow statements.
                                                                                      Open

                                                                                                                                  if(s.correct_state) { 
                                                                                                                                      this.get_container().children("ul").empty();
                                                                                                                                      if(s_call) { s_call.call(this); } 
                                                                                                                                  }

                                                                                        Avoid deeply nested control flow statements.
                                                                                        Open

                                                                                                                                if(s_call) { s_call.call(this); } 

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

                                                                                                      move_node : function (obj, ref, position, is_copy, is_prepared, skip_check) {

                                                                                            Avoid deeply nested control flow statements.
                                                                                            Open

                                                                                                                                    if(s.clean_node) { this.clean_node(obj); }

                                                                                              Avoid deeply nested control flow statements.
                                                                                              Open

                                                                                                                                      if(s_call) { s_call.call(this); }

                                                                                                Avoid deeply nested control flow statements.
                                                                                                Open

                                                                                                                                            if(s.correct_state) { 
                                                                                                                                                this.get_container().children("ul").empty();
                                                                                                                                                if(s_call) { s_call.call(this); } 
                                                                                                                                            }

                                                                                                  Avoid deeply nested control flow statements.
                                                                                                  Open

                                                                                                                                          if(s_call) { s_call.call(this); } 

                                                                                                    Avoid deeply nested control flow statements.
                                                                                                    Open

                                                                                                                                            if(s_call) { s_call.call(this); } 

                                                                                                      Avoid deeply nested control flow statements.
                                                                                                      Open

                                                                                                                                                  if(s.correct_state) { 
                                                                                                                                                      this.correct_state(obj);
                                                                                                                                                      if(s_call) { s_call.call(this); } 
                                                                                                                                                  }

                                                                                                        Avoid deeply nested control flow statements.
                                                                                                        Open

                                                                                                                                                if(s_call) { s_call.call(this); } 

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

                                                                                                                      move_node : function (obj, ref, position, is_copy, is_prepared, skip_check) {

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

                                                                                                                        create_node : function (obj, position, js, callback, is_loaded, skip_check) {

                                                                                                              Avoid deeply nested control flow statements.
                                                                                                              Open

                                                                                                                                                      if(s_call) { s_call.call(this); }

                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                Open

                                                                                                                                                if(tmp.length) {
                                                                                                                                                    ul2 = $("<ul />");
                                                                                                                                                    ul2.append(tmp);
                                                                                                                                                    d.append(ul2);
                                                                                                                                                }

                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                  Open

                                                                                                                                                          if(s_call) { s_call.call(this); }

                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                    Open

                                                                                                                                                                if(s.correct_state) { 
                                                                                                                                                                    this.correct_state(obj);
                                                                                                                                                                    if(s_call) { s_call.call(this); } 
                                                                                                                                                                }

                                                                                                                      Consider simplifying this complex logical expression.
                                                                                                                      Open

                                                                                                                                                  if(d === "" || (d && d.toString && d.toString().replace(/^[\s\n]+$/,"") === "") || (!$.isArray(d) && !$.isPlainObject(d))) {
                                                                                                                                                      return error_func.call(this, x, t, "");
                                                                                                                                                  }

                                                                                                                        Consider simplifying this complex logical expression.
                                                                                                                        Open

                                                                                                                                                if(
                                                                                                                                                    a_attr.length || 
                                                                                                                                                    $.inArray("languages", s.plugins) !== -1 || 
                                                                                                                                                    t.children("ins").get(0).style.backgroundImage.length || 
                                                                                                                                                    (t.children("ins").get(0).className && t.children("ins").get(0).className.replace(/jstree[^ ]*|$/ig,'').length)

                                                                                                                          Consider simplifying this complex logical expression.
                                                                                                                          Open

                                                                                                                                                  if($.vakata.dnd.is_drag && $.vakata.dnd.user_data.jstree && e.currentTarget === e.target && $.vakata.dnd.user_data.obj && $($.vakata.dnd.user_data.obj).length && $($.vakata.dnd.user_data.obj).parents(".jstree:eq(0)")[0] !== e.target) { // node should not be from the same tree
                                                                                                                                                      var tr = $.jstree._reference(e.currentTarget), dc;
                                                                                                                                                      if(tr.data.dnd.foreign) {
                                                                                                                                                          dc = tr._get_settings().dnd.drag_check.call(this, { "o" : o, "r" : tr.get_container(), is_root : true });
                                                                                                                                                          if(dc === true || dc.inside === true || dc.before === true || dc.after === true) {

                                                                                                                            Consider simplifying this complex logical expression.
                                                                                                                            Open

                                                                                                                                                            if(obj == -1 || !obj) { this.get_container().children("ul").empty().append(d.children()).find("li, a").filter(function () { return !this.firstChild || !this.firstChild.tagName || this.firstChild.tagName !== "INS"; }).prepend("<ins class='jstree-icon'>&#160;</ins>").end().filter("a").children("ins:first-child").not(".jstree-icon").addClass("jstree-icon"); }
                                                                                                                                                            else { obj.children("a.jstree-loading").removeClass("jstree-loading"); obj.append(d).children("ul").find("li, a").filter(function () { return !this.firstChild || !this.firstChild.tagName || this.firstChild.tagName !== "INS"; }).prepend("<ins class='jstree-icon'>&#160;</ins>").end().filter("a").children("ins:first-child").not(".jstree-icon").addClass("jstree-icon"); obj.removeData("jstree_is_loading"); }

                                                                                                                              Consider simplifying this complex logical expression.
                                                                                                                              Open

                                                                                                                                                              if(obj == -1 || !obj) { this.get_container().children("ul").empty().append(d.children()).find("li, a").filter(function () { return !this.firstChild || !this.firstChild.tagName || this.firstChild.tagName !== "INS"; }).prepend("<ins class='jstree-icon'>&#160;</ins>").end().filter("a").children("ins:first-child").not(".jstree-icon").addClass("jstree-icon"); }
                                                                                                                                                              else { obj.children("a.jstree-loading").removeClass("jstree-loading"); obj.append(d).children("ul").find("li, a").filter(function () { return !this.firstChild || !this.firstChild.tagName || this.firstChild.tagName !== "INS"; }).prepend("<ins class='jstree-icon'>&#160;</ins>").end().filter("a").children("ins:first-child").not(".jstree-icon").addClass("jstree-icon"); obj.removeData("jstree_is_loading"); }

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

                                                                                                                                            prepare_move : function (o, r, pos, cb, is_cb) {

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

                                                                                                                                              create : function (obj, position, js, callback, skip_rename) {

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

                                                                                                                                                create_node    : function (obj, position, js, callback, is_loaded) {

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

                                                                                                                                                  get_xml : function (tp, obj, li_attr, a_attr, is_callback) {

                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                        Open

                                                                                                                                                        else if(obj.nextAll("li").size() > 0) { return obj.nextAll("li:eq(0)"); }

                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                          Open

                                                                                                                                                              if(md - m.o.d < 0) { return false; }

                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                            Open

                                                                                                                                                            return this.__call_old(true, obj, position, js, callback, is_loaded, skip_check);

                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                              Open

                                                                                                                                                              else { var o = obj.parentsUntil(".jstree","li:eq(0)"); return o.length ? o : false; }

                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                Open

                                                                                                                                                                return true;

                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                  Open

                                                                                                                                                                      if(md === 0) { return false; }

                                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                                    Open

                                                                                                                                                                    else { return obj.parentsUntil(".jstree","li").next("li").eq(0); }

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

                                                                                                                                                                                  if(d) {
                                                                                                                                                                                      d = $(d);
                                                                                                                                                                                      if(!d.is("ul")) { d = $("<ul />").append(d); }
                                                                                                                                                                                      if(obj == -1 || !obj) { this.get_container().children("ul").empty().append(d.children()).find("li, a").filter(function () { return !this.firstChild || !this.firstChild.tagName || this.firstChild.tagName !== "INS"; }).prepend("<ins class='jstree-icon'>&#160;</ins>").end().filter("a").children("ins:first-child").not(".jstree-icon").addClass("jstree-icon"); }
                                                                                                                                                                                      else { obj.children("a.jstree-loading").removeClass("jstree-loading"); obj.append(d).children("ul").find("li, a").filter(function () { return !this.firstChild || !this.firstChild.tagName || this.firstChild.tagName !== "INS"; }).prepend("<ins class='jstree-icon'>&#160;</ins>").end().filter("a").children("ins:first-child").not(".jstree-icon").addClass("jstree-icon"); obj.removeData("jstree_is_loading"); }
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 4041..4064

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 406.

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

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

                                                                                                                                                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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(d && d !== "" && d.toString && d.toString().replace(/^[\s\n]+$/,"") !== "") {
                                                                                                                                                                                      d = $(d);
                                                                                                                                                                                      if(!d.is("ul")) { d = $("<ul />").append(d); }
                                                                                                                                                                                      if(obj == -1 || !obj) { this.get_container().children("ul").empty().append(d.children()).find("li, a").filter(function () { return !this.firstChild || !this.firstChild.tagName || this.firstChild.tagName !== "INS"; }).prepend("<ins class='jstree-icon'>&#160;</ins>").end().filter("a").children("ins:first-child").not(".jstree-icon").addClass("jstree-icon"); }
                                                                                                                                                                                      else { obj.children("a.jstree-loading").removeClass("jstree-loading"); obj.append(d).children("ul").find("li, a").filter(function () { return !this.firstChild || !this.firstChild.tagName || this.firstChild.tagName !== "INS"; }).prepend("<ins class='jstree-icon'>&#160;</ins>").end().filter("a").children("ins:first-child").not(".jstree-icon").addClass("jstree-icon"); obj.removeData("jstree_is_loading"); }
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 4111..4134

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 406.

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

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

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

                                                                                                                                                                                  this.parse_xml(d, $.proxy(function (d) {
                                                                                                                                                                                      if(d) {
                                                                                                                                                                                          d = d.replace(/ ?xmlns="[^"]*"/ig, "");
                                                                                                                                                                                          if(d.length > 10) {
                                                                                                                                                                                              d = $(d);
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 3273..3300

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 369.

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

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

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

                                                                                                                                                                                  this.parse_xml(d, $.proxy(function (d) {
                                                                                                                                                                                      if(d) {
                                                                                                                                                                                          d = d.replace(/ ?xmlns="[^"]*"/ig, "");
                                                                                                                                                                                          if(d.length > 10) {
                                                                                                                                                                                              d = $(d);
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 3201..3228

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 369.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                              error_func = function (x, t, e) {
                                                                                                                                                                                  var ef = this.get_settings().html_data.ajax.error; 
                                                                                                                                                                                  if(ef) { ef.call(this, x, t, e); }
                                                                                                                                                                                  if(obj != -1 && obj.length) {
                                                                                                                                                                                      obj.children("a.jstree-loading").removeClass("jstree-loading");
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1729..1741
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 3253..3265

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 209.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                              error_func = function (x, t, e) {
                                                                                                                                                                                  var ef = this.get_settings().json_data.ajax.error; 
                                                                                                                                                                                  if(ef) { ef.call(this, x, t, e); }
                                                                                                                                                                                  if(obj != -1 && obj.length) {
                                                                                                                                                                                      obj.children("a.jstree-loading").removeClass("jstree-loading");
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 3253..3265
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 4092..4104

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 209.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                              error_func = function (x, t, e) {
                                                                                                                                                                                  var ef = this.get_settings().xml_data.ajax.error; 
                                                                                                                                                                                  if(ef) { ef.call(this, x, t, e); }
                                                                                                                                                                                  if(obj !== -1 && obj.length) {
                                                                                                                                                                                      obj.children("a.jstree-loading").removeClass("jstree-loading");
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1729..1741
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 4092..4104

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 209.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                  $(document)
                                                                                                                                                                      .bind("keydown", "up", function (e) { 
                                                                                                                                                                          if($.vakata.context.vis) { 
                                                                                                                                                                              var o = $.vakata.context.cnt.find("ul:visible").last().children(".vakata-hover").removeClass("vakata-hover").prevAll("li:not(.vakata-separator)").first();
                                                                                                                                                                              if(!o.length) { o = $.vakata.context.cnt.find("ul:visible").last().children("li:not(.vakata-separator)").last(); }
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 3647..3665

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 187.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                                  if(e.pageX + 24 > this.data.dnd.cof.left + this.data.dnd.cw) {
                                                                                                                                                                                      if(this.data.dnd.i1) { clearInterval(this.data.dnd.i1); }
                                                                                                                                                                                      this.data.dnd.i1 = setInterval($.proxy(function () { this.scrollLeft += $.vakata.dnd.scroll_spd; }, cnt), 100);
                                                                                                                                                                                  }
                                                                                                                                                                                  else if(e.pageX - 24 < this.data.dnd.cof.left) {
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 2372..2382

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 177.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                                  if(e.pageY + 24 > this.data.dnd.cof.top + this.data.dnd.ch) {
                                                                                                                                                                                      if(this.data.dnd.i2) { clearInterval(this.data.dnd.i2); }
                                                                                                                                                                                      this.data.dnd.i2 = setInterval($.proxy(function () { this.scrollTop += $.vakata.dnd.scroll_spd; }, cnt), 100);
                                                                                                                                                                                  }
                                                                                                                                                                                  else if(e.pageY - 24 < this.data.dnd.cof.top) {
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 2359..2369

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 177.

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

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

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

                                                                                                                                                      See codeclimate-duplication's documentation for more 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($(window).width() - (e.pageX - l) < 20) {
                                                                                                                                                                          if(sli && dir2 === "left") { clearInterval(sli); sli = false; }
                                                                                                                                                                          if(!sli) { dir2 = "right"; sli = setInterval(function () { $(document).scrollLeft($(document).scrollLeft() + $.vakata.dnd.scroll_spd); }, 150); }
                                                                                                                                                                      }
                                                                                                                                                                      else { 
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 2234..2240

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 171.

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

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

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

                                                                                                                                                      See codeclimate-duplication's documentation for more 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($(window).height() - (e.pageY - t) < 20) {
                                                                                                                                                                          if(sti && dir1 === "up") { clearInterval(sti); sti = false; }
                                                                                                                                                                          if(!sti) { dir1 = "down"; sti = setInterval(function () { $(document).scrollTop($(document).scrollTop() + $.vakata.dnd.scroll_spd); }, 150); }
                                                                                                                                                                      }
                                                                                                                                                                      else { 
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 2249..2255

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 171.

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

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

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

                                                                                                                                                      See codeclimate-duplication's documentation for more 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($this.children("ul").children("li.jstree-unchecked, li.jstree-undetermined").length) {
                                                                                                                                                                                      $this.parentsUntil(".jstree", "li").andSelf().removeClass("jstree-checked jstree-unchecked").addClass("jstree-undetermined");
                                                                                                                                                                                      if(rc) { $this.parentsUntil(".jstree", "li").andSelf().children(":checkbox").prop("checked", false); }
                                                                                                                                                                                      return false;
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 2867..2877

                                                                                                                                                      Duplicated Code

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

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

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

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

                                                                                                                                                                              if(state) {
                                                                                                                                                                                  if($this.children("ul").children("li.jstree-checked, li.jstree-undetermined").length) {
                                                                                                                                                                                      $this.parentsUntil(".jstree", "li").andSelf().removeClass("jstree-checked jstree-unchecked").addClass("jstree-undetermined");
                                                                                                                                                                                      if(rc) { $this.parentsUntil(".jstree", "li").andSelf().children(":checkbox").prop("checked", false); }
                                                                                                                                                                                      return false;
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 2878..2888

                                                                                                                                                      Duplicated Code

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

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

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

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

                                                                                                                                                                      if(e.pageX - l < 20) {
                                                                                                                                                                          if(sli && dir2 === "right") { clearInterval(sli); sli = false; }
                                                                                                                                                                          if(!sli) { dir2 = "left"; sli = setInterval(function () { $(document).scrollLeft($(document).scrollLeft() - $.vakata.dnd.scroll_spd); }, 150); }
                                                                                                                                                                      }
                                                                                                                                                                      else { 
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 2227..2233

                                                                                                                                                      Duplicated Code

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

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

                                                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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(e.pageY - t < 20) { 
                                                                                                                                                                          if(sti && dir1 === "down") { clearInterval(sti); sti = false; }
                                                                                                                                                                          if(!sti) { dir1 = "up"; sti = setInterval(function () { $(document).scrollTop($(document).scrollTop() - $.vakata.dnd.scroll_spd); }, 150); }
                                                                                                                                                                      }
                                                                                                                                                                      else { 
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 2242..2248

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                                                  if(d) {
                                                                                                                                                                                      if(obj === -1 || !obj) { this.get_container().children("ul").empty().append(d.children()); }
                                                                                                                                                                                      else { obj.append(d).children("a.jstree-loading").removeClass("jstree-loading"); obj.removeData("jstree_is_loading"); }
                                                                                                                                                                                      this.clean_node(obj);
                                                                                                                                                                                      if(s_call) { s_call.call(this); }
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1707..1712

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 133.

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

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

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

                                                                                                                                                                                  else {
                                                                                                                                                                                      if(obj === -1 || !obj) { this.get_container().children("ul").empty().append(d.children()); }
                                                                                                                                                                                      else { obj.append(d).children("a.jstree-loading").removeClass("jstree-loading"); obj.removeData("jstree_is_loading"); }
                                                                                                                                                                                      this.clean_node(obj);
                                                                                                                                                                                      if(s_call) { s_call.call(this); }
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1749..1754

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 133.

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

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

                                                                                                                                                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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.data.themes) { 
                                                                                                                                                                          if(m) { m.attr("class", "jstree-" + this.data.themes.theme); }
                                                                                                                                                                          if(ml) { ml.attr("class", "jstree-" + this.data.themes.theme); }
                                                                                                                                                                          $.vakata.dnd.helper.attr("class", "jstree-dnd-helper jstree-" + this.data.themes.theme); 
                                                                                                                                                                      }
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 2490..2494

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 125.

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

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

                                                                                                                                                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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.data.themes) { 
                                                                                                                                                                                  if(m) { m.attr("class", "jstree-" + this.data.themes.theme); }
                                                                                                                                                                                  if(ml) { ml.attr("class", "jstree-" + this.data.themes.theme); }
                                                                                                                                                                                  $.vakata.dnd.helper.attr("class", "jstree-dnd-helper jstree-" + this.data.themes.theme); 
                                                                                                                                                                              }
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 2678..2682

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 125.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                          this.data.core.to_load = $.map($.makeArray(this.data.core.to_load), function (n) { return "#" + n.toString().replace(/^#/,"").replace(/\\\//g,"/").replace(/\//g,"\\\/").replace(/\\\./g,".").replace(/\./g,"\\.").replace(/\:/g,"\\:"); });
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 483..483

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 122.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                          this.data.core.to_open = $.map($.makeArray(this.data.core.to_open), function (n) { return "#" + n.toString().replace(/^#/,"").replace(/\\\//g,"/").replace(/\//g,"\\\/").replace(/\\\./g,".").replace(/\./g,"\\.").replace(/\:/g,"\\:"); });
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 484..484

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 122.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                  "shift+right" : function () { 
                                                                                                                                                                      var o = this.data.ui.hovered || this.data.ui.last_selected;
                                                                                                                                                                      if(o && o.length) {
                                                                                                                                                                          if(o.hasClass("jstree-closed")) { this.open_node(o); }
                                                                                                                                                                          else { this.hover_node(this._get_next(o)); }
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1577..1584
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1585..1592

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                                  "right" : function () { 
                                                                                                                                                                      var o = this.data.ui.hovered || this.data.ui.last_selected;
                                                                                                                                                                      if(o && o.length) {
                                                                                                                                                                          if(o.hasClass("jstree-closed")) { this.open_node(o); }
                                                                                                                                                                          else { this.hover_node(this._get_next(o)); }
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1585..1592
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1593..1600

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                                  "ctrl+right" : function () { 
                                                                                                                                                                      var o = this.data.ui.hovered || this.data.ui.last_selected;
                                                                                                                                                                      if(o && o.length) {
                                                                                                                                                                          if(o.hasClass("jstree-closed")) { this.open_node(o); }
                                                                                                                                                                          else { this.hover_node(this._get_next(o)); }
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1577..1584
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1593..1600

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                                  check_all : function () {
                                                                                                                                                                      var _this = this, 
                                                                                                                                                                          coll = this._get_settings().checkbox.two_state ? this.get_container_ul().find("li") : this.get_container_ul().children("li");
                                                                                                                                                                      coll.each(function () {
                                                                                                                                                                          _this.change_state(this, false);
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 2916..2923

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 111.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                  uncheck_all : function () {
                                                                                                                                                                      var _this = this,
                                                                                                                                                                          coll = this._get_settings().checkbox.two_state ? this.get_container_ul().find("li") : this.get_container_ul().children("li");
                                                                                                                                                                      coll.each(function () {
                                                                                                                                                                          _this.change_state(this, true);
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 2908..2915

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 111.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                      this.data.ui.selected.each(function () { if(this.id) { _this.data.ui.to_select.push("#" + this.id.toString().replace(/^#/,"").replace(/\\\//g,"/").replace(/\//g,"\\\/").replace(/\\\./g,".").replace(/\./g,"\\.").replace(/\:/g,"\\:")); } });
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 469..471

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 110.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                      this.get_container_ul().find("li.jstree-open").each(function () { 
                                                                                                                                                                          if(this.id) { _this.data.core.to_open.push("#" + this.id.toString().replace(/^#/,"").replace(/\\\//g,"/").replace(/\//g,"\\\/").replace(/\\\./g,".").replace(/\./g,"\\.").replace(/\:/g,"\\:")); }
                                                                                                                                                                      });
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1091..1091

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 110.

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

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

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

                                                                                                                                                      See codeclimate-duplication's documentation for more 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($.isArray(langs) && langs.length) {
                                                                                                                                                                          lang = (lang && $.inArray(lang,langs) != -1) ? lang : this.data.languages.current_language;
                                                                                                                                                                          obj = obj.children("a." + lang);
                                                                                                                                                                      }
                                                                                                                                                                      else { obj = obj.children("a:eq(0)"); }
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1996..2000

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 105.

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

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

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

                                                                                                                                                      See codeclimate-duplication's documentation for more 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($.isArray(langs) && langs.length) {
                                                                                                                                                                          lang = (lang && $.inArray(lang,langs) != -1) ? lang : this.data.languages.current_language;
                                                                                                                                                                          obj = obj.children("a." + lang);
                                                                                                                                                                      }
                                                                                                                                                                      else { obj = obj.children("a:eq(0)"); }
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1975..1979

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 105.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                  "shift+left" : function () { 
                                                                                                                                                                      var o = this.data.ui.hovered || this.data.ui.last_selected;
                                                                                                                                                                      if(o) {
                                                                                                                                                                          if(o.hasClass("jstree-open")) { this.close_node(o); }
                                                                                                                                                                          else { this.hover_node(this._get_prev(o)); }
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1553..1560
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1561..1568

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 104.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                  "ctrl+left" : function () { 
                                                                                                                                                                      var o = this.data.ui.hovered || this.data.ui.last_selected;
                                                                                                                                                                      if(o) {
                                                                                                                                                                          if(o.hasClass("jstree-open")) { this.close_node(o); }
                                                                                                                                                                          else { this.hover_node(this._get_prev(o)); }
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1553..1560
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1569..1576

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 104.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                  cut : function (obj) {
                                                                                                                                                                      obj = this._get_node(obj, true);
                                                                                                                                                                      if(!obj || !obj.length) { return false; }
                                                                                                                                                                      this.data.crrm.cp_nodes = false;
                                                                                                                                                                      this.data.crrm.ct_nodes = obj;
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1388..1394

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 104.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                  copy : function (obj) {
                                                                                                                                                                      obj = this._get_node(obj, true);
                                                                                                                                                                      if(!obj || !obj.length) { return false; }
                                                                                                                                                                      this.data.crrm.ct_nodes = false;
                                                                                                                                                                      this.data.crrm.cp_nodes = obj;
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1381..1387

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 104.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                  "left" : function () { 
                                                                                                                                                                      var o = this.data.ui.hovered || this.data.ui.last_selected;
                                                                                                                                                                      if(o) {
                                                                                                                                                                          if(o.hasClass("jstree-open")) { this.close_node(o); }
                                                                                                                                                                          else { this.hover_node(this._get_prev(o)); }
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1561..1568
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1569..1576

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 104.

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

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

                                                                                                                                                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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(s) {
                                                                                                                                                                          obj = obj.clone();
                                                                                                                                                                          obj.children("INS").remove();
                                                                                                                                                                          return obj.html();
                                                                                                                                                                      }
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 804..812

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 102.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                      if(s) {
                                                                                                                                                                          obj = obj.clone();
                                                                                                                                                                          obj.children("INS").remove();
                                                                                                                                                                          return obj.html();
                                                                                                                                                                      }
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1980..1988

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 102.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                          s = $.map($.makeArray(s), function (n) { return "#" + n.toString().replace(/^#/,"").replace(/\\\//g,"/").replace(/\//g,"\\\/").replace(/\\\./g,".").replace(/\./g,"\\.").replace(/\:/g,"\\:"); });
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1097..1097

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                                      s = $.map($.makeArray(s), function (n) { return "#" + n.toString().replace(/^#/,"").replace(/\\\//g,"/").replace(/\//g,"\\\/").replace(/\\\./g,".").replace(/\./g,"\\.").replace(/\:/g,"\\:"); });
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 2964..2964

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                                  get_unchecked : function (obj, get_all) { 
                                                                                                                                                                      obj = !obj || obj === -1 ? this.get_container() : this._get_node(obj);
                                                                                                                                                                      return get_all || this._get_settings().checkbox.two_state ? obj.find(".jstree-unchecked") : obj.find("> ul > .jstree-unchecked, .jstree-undetermined > ul > .jstree-unchecked");
                                                                                                                                                                  },
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 2929..2932

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 96.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                  get_checked : function (obj, get_all) {
                                                                                                                                                                      obj = !obj || obj === -1 ? this.get_container() : this._get_node(obj);
                                                                                                                                                                      return get_all || this._get_settings().checkbox.two_state ? obj.find(".jstree-checked") : obj.find("> ul > .jstree-checked, .jstree-undetermined > ul > .jstree-checked");
                                                                                                                                                                  },
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 2933..2936

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 96.

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

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

                                                                                                                                                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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(m.icon) { 
                                                                                                                                                                              if(m.icon.indexOf("/") === -1) { tmp.children("ins").addClass(m.icon); }
                                                                                                                                                                              else { tmp.children("ins").css("background","url('" + m.icon + "') center center no-repeat"); }
                                                                                                                                                                          }
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1821..1824

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 95.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                              if(m.icon) { 
                                                                                                                                                                                  if(m.icon.indexOf("/") === -1) { tmp.children("ins").addClass(m.icon); }
                                                                                                                                                                                  else { tmp.children("ins").css("background","url('" + m.icon + "') center center no-repeat"); }
                                                                                                                                                                              }
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 757..760

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 95.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                      if(s) { obj.children("ul").stop(true, true).slideUp(s, function () { this.style.display = ""; t.after_close(obj); }); }
                                                                                                                                                                      else { t.after_close(obj); }
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 650..651

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 82.

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

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

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

                                                                                                                                                      See codeclimate-duplication's documentation for more 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(s) { obj.children("ul").stop(true, true).slideDown(s, function () { this.style.display = ""; t.after_open(obj); }); }
                                                                                                                                                                          else { t.after_open(obj); }
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 664..665

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 82.

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

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

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

                                                                                                                                                      See codeclimate-duplication's documentation for more 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(!!s.save_opened) {
                                                                                                                                                                      tmp = $.cookie(s.save_opened);
                                                                                                                                                                      if(tmp && tmp.length) { this.data.core.to_open = tmp.split(","); }
                                                                                                                                                                  }
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 2062..2065

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 76.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                  lock : function () {
                                                                                                                                                                      this.data.core.locked = true;
                                                                                                                                                                      this.get_container().children("ul").addClass("jstree-locked").css("opacity","0.7");
                                                                                                                                                                      this.__callback({});
                                                                                                                                                                  },
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 460..464

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 76.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                  unlock : function () {
                                                                                                                                                                      this.data.core.locked = false;
                                                                                                                                                                      this.get_container().children("ul").removeClass("jstree-locked").css("opacity","1");
                                                                                                                                                                      this.__callback({});
                                                                                                                                                                  },
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 455..459

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 76.

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

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

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

                                                                                                                                                      See codeclimate-duplication's documentation for more 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(!!s.save_loaded) {
                                                                                                                                                                      tmp = $.cookie(s.save_loaded);
                                                                                                                                                                      if(tmp && tmp.length) { this.data.core.to_load = tmp.split(","); }
                                                                                                                                                                  }
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 2066..2069

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 76.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                  "shift+space" : function (event) { 
                                                                                                                                                                      event.type = "click";
                                                                                                                                                                      if(this.data.ui.hovered) { this.data.ui.hovered.children("a:eq(0)").trigger(event); } 
                                                                                                                                                                      return false; 
                                                                                                                                                                  },
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1605..1609

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 75.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                  "ctrl+space" : function (event) { 
                                                                                                                                                                      event.type = "click";
                                                                                                                                                                      if(this.data.ui.hovered) { this.data.ui.hovered.children("a:eq(0)").trigger(event); } 
                                                                                                                                                                      return false; 
                                                                                                                                                                  },
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1610..1614

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 75.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                              $.expr[':'].jstree_contains = function(a,i,m){
                                                                                                                                                                  return (a.textContent || a.innerText || "").toLowerCase().indexOf(m[3].toLowerCase())>=0;
                                                                                                                                                              };
                                                                                                                                                      public/javascripts/chat.js on lines 953..955

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 75.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                              data.rslt.obj
                                                                                                                                                                                  .children("ins.jstree-icon").removeClass(s.opened + " " + s.closed + " ui-icon").end()
                                                                                                                                                                                  .find("> a > ins.ui-icon")
                                                                                                                                                                                      .filter(function() { 
                                                                                                                                                                                          return this.className.toString()
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 4235..4244
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 4235..4257
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 4235..4270

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                                  load_node : function (obj, s_call, e_call) { var _this = this; this.load_node_html(obj, function () { _this.__callback({ "obj" : _this._get_node(obj) }); s_call.call(this); }, e_call); },
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1655..1655
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 3181..3181

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                                      obj
                                                                                                                                                                          .find("li.jstree-closed")
                                                                                                                                                                              .children("ins.jstree-icon").removeClass(s.opened).addClass("ui-icon " + s.closed).end()
                                                                                                                                                                              .children("a").addClass(s.item)
                                                                                                                                                                                  .children("ins.jstree-icon").addClass("ui-icon")
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 4189..4196
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 4235..4257
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 4235..4270

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                                  load_node : function (obj, s_call, e_call) { var _this = this; this.load_node_xml(obj, function () { _this.__callback({ "obj" : _this._get_node(obj) }); s_call.call(this); }, e_call); },
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1655..1655
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 4023..4023

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                                  load_node : function (obj, s_call, e_call) { var _this = this; this.load_node_json(obj, function () { _this.__callback({ "obj" : _this._get_node(obj) }); s_call.call(this); }, e_call); },
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 3181..3181
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 4023..4023

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                                  "ctrl+up" : function () { 
                                                                                                                                                                      var o = this.data.ui.hovered || this.data.ui.last_selected || -1;
                                                                                                                                                                      this.hover_node(this._get_prev(o));
                                                                                                                                                                      return false; 
                                                                                                                                                                  },
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1523..1527
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1533..1537
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1538..1542
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1543..1547
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1548..1552

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 73.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                  "ctrl+down" : function () { 
                                                                                                                                                                      var o = this.data.ui.hovered || this.data.ui.last_selected || -1;
                                                                                                                                                                      this.hover_node(this._get_next(o));
                                                                                                                                                                      return false;
                                                                                                                                                                  },
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1523..1527
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1528..1532
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1533..1537
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1538..1542
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1548..1552

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 73.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                  "shift+down" : function () { 
                                                                                                                                                                      var o = this.data.ui.hovered || this.data.ui.last_selected || -1;
                                                                                                                                                                      this.hover_node(this._get_next(o));
                                                                                                                                                                      return false;
                                                                                                                                                                  },
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1523..1527
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1528..1532
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1533..1537
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1538..1542
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1543..1547

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 73.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                  "down" : function () { 
                                                                                                                                                                      var o = this.data.ui.hovered || this.data.ui.last_selected || -1;
                                                                                                                                                                      this.hover_node(this._get_next(o));
                                                                                                                                                                      return false;
                                                                                                                                                                  },
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1523..1527
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1528..1532
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1533..1537
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1543..1547
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1548..1552

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 73.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                  "up" : function () { 
                                                                                                                                                                      var o = this.data.ui.hovered || this.data.ui.last_selected || -1;
                                                                                                                                                                      this.hover_node(this._get_prev(o));
                                                                                                                                                                      return false; 
                                                                                                                                                                  },
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1528..1532
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1533..1537
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1538..1542
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1543..1547
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1548..1552

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 73.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                  "shift+up" : function () { 
                                                                                                                                                                      var o = this.data.ui.hovered || this.data.ui.last_selected || -1;
                                                                                                                                                                      this.hover_node(this._get_prev(o));
                                                                                                                                                                      return false; 
                                                                                                                                                                  },
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1523..1527
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1528..1532
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1538..1542
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1543..1547
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1548..1552

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 73.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                              'nest' : '<' + '?xml version="1.0" encoding="utf-8" ?>' + 
                                                                                                                                                                  '<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >' + 
                                                                                                                                                                  '<xsl:output method="html" encoding="utf-8" omit-xml-declaration="yes" standalone="no" indent="no" media-type="text/html" />' + 
                                                                                                                                                                  '<xsl:template match="/">' + 
                                                                                                                                                                  '    <xsl:call-template name="nodes">' + 
                                                                                                                                                      plugins/orders/public/javascripts/daterangepicker.js on lines 47..64

                                                                                                                                                      Duplicated Code

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

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

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

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

                                                                                                                                                                      if(this.data.core.to_open.length) {
                                                                                                                                                                          $.each(this.data.core.to_open, function (i, val) {
                                                                                                                                                                              _this.open_node(val, false, true); 
                                                                                                                                                                          });
                                                                                                                                                                      }
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 520..524

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 67.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                      if(this.data.core.to_open.length) {
                                                                                                                                                                          $.each(this.data.core.to_open, function (i, val) {
                                                                                                                                                                              _this.open_node(val, false, true); 
                                                                                                                                                                          });
                                                                                                                                                                      }
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 505..509

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 67.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                              if(!!s.save_opened) { 
                                                                                                                                                                                  this.save_opened(); 
                                                                                                                                                                                  $.cookie(s.save_opened, this.data.core.to_open.join(","), s.cookie_options); 
                                                                                                                                                                              }
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 2115..2118

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 66.

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

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

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

                                                                                                                                                      See codeclimate-duplication's documentation for more 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(!!s.save_loaded) { 
                                                                                                                                                                                  this.save_loaded(); 
                                                                                                                                                                                  $.cookie(s.save_loaded, this.data.core.to_load.join(","), s.cookie_options); 
                                                                                                                                                                              }
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 2111..2114

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 66.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                              $(document).bind("drag_start.vakata", function (e, data) {
                                                                                                                                                                  if(data.data.jstree) { m.show(); if(ml) { ml.show(); } }
                                                                                                                                                              });
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 2739..2741

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                              $(document).bind("drag_stop.vakata", function (e, data) {
                                                                                                                                                                  if(data.data.jstree) { m.hide(); if(ml) { ml.hide(); } }
                                                                                                                                                              });
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 2736..2738

                                                                                                                                                      Duplicated Code

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

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

                                                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 "first" :
                                                                                                                                                                              if(!obj.children("ul").length) { obj.append("<ul />"); }
                                                                                                                                                                              obj.children("ul").prepend(d);
                                                                                                                                                                              tmp = obj;
                                                                                                                                                                              break;
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 778..782

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 63.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                          case "last":
                                                                                                                                                                              if(!obj.children("ul").length) { obj.append("<ul />"); }
                                                                                                                                                                              obj.children("ul").append(d);
                                                                                                                                                                              tmp = obj;
                                                                                                                                                                              break;
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 773..777

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 63.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                                  if(d === "" || (d && d.toString && d.toString().replace(/^[\s\n]+$/,"") === "")) {
                                                                                                                                                                                      return error_func.call(this, x, t, "");
                                                                                                                                                                                  }
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 4108..4110

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                                                  if(d === "" || (d && d.toString && d.toString().replace(/^[\s\n]+$/,"") === "")) {
                                                                                                                                                                                      return error_func.call(this, x, t, "");
                                                                                                                                                                                  }
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 3270..3272

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 61.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                          case (!!s.data && !s.ajax) || (!!s.data && !!s.ajax && (!obj || obj === -1)):
                                                                                                                                                                              if(!obj || obj == -1) {
                                                                                                                                                                                  d = this._parse_json(s.data, obj);
                                                                                                                                                                                  if(d) {
                                                                                                                                                                                      this.get_container().children("ul").empty().append(d.children());
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 3231..3251
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 4078..4089

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                                          case (!!s.data && !s.ajax) || (!!s.data && !!s.ajax && (!obj || obj === -1)):
                                                                                                                                                                              if(!obj || obj == -1) {
                                                                                                                                                                                  d = $(s.data);
                                                                                                                                                                                  if(!d.is("ul")) { d = $("<ul />").append(d); }
                                                                                                                                                                                  this.get_container()
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1715..1727
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 3231..3251

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                                          case (!!s.data && !s.ajax) || (!!s.data && !!s.ajax && (!obj || obj === -1)):
                                                                                                                                                                              if(!obj || obj == -1) {
                                                                                                                                                                                  this.parse_xml(s.data, $.proxy(function (d) {
                                                                                                                                                                                      if(d) {
                                                                                                                                                                                          d = d.replace(/ ?xmlns="[^"]*"/ig, "");
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1715..1727
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 4078..4089

                                                                                                                                                      Duplicated Code

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

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

                                                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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(!$.isArray(js.data)) { tmp = js.data; js.data = []; js.data.push(tmp); }
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1808..1808

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 59.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                          if(!$.isArray(js.data)) { tmp = js.data; js.data = []; js.data.push(tmp); }
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 744..744

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 59.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                  this.get_container()
                                                                                                                                                                      .delegate("a", "click.jstree", $.proxy(function (event) {
                                                                                                                                                                              event.preventDefault();
                                                                                                                                                                              event.currentTarget.blur();
                                                                                                                                                                              if(!$(event.currentTarget).hasClass("jstree-loading")) {
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1008..1025

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 59.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                              this.get_container().find(" > .jstree-wholerow .jstree-hovered").removeClass("jstree-hovered " + (this.data.themeroller ? this._get_settings().themeroller.item_h : "" ));
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 4398..4398

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 59.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                              this.get_container().find(" > .jstree-wholerow .jstree-clicked").removeClass("jstree-clicked " + (this.data.themeroller ? this._get_settings().themeroller.item_a : "" ));
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 4408..4408

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 59.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                          case (!s.data && !!s.ajax) || (!!s.data && !!s.ajax && obj && obj !== -1):
                                                                                                                                                                              obj = this._get_node(obj);
                                                                                                                                                                              error_func = function (x, t, e) {
                                                                                                                                                                                  var ef = this.get_settings().html_data.ajax.error; 
                                                                                                                                                                                  if(ef) { ef.call(this, x, t, e); }
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1728..1779
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 3252..3309

                                                                                                                                                      Duplicated Code

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

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

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

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

                                                                                                                                                                          case (!s.data && !!s.ajax) || (!!s.data && !!s.ajax && obj && obj !== -1):
                                                                                                                                                                              error_func = function (x, t, e) {
                                                                                                                                                                                  var ef = this.get_settings().json_data.ajax.error; 
                                                                                                                                                                                  if(ef) { ef.call(this, x, t, e); }
                                                                                                                                                                                  if(obj != -1 && obj.length) {
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 3252..3309
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 4090..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 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

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

                                                                                                                                                                          case (!s.data && !!s.ajax) || (!!s.data && !!s.ajax && obj && obj !== -1):
                                                                                                                                                                              error_func = function (x, t, e) {
                                                                                                                                                                                  var ef = this.get_settings().xml_data.ajax.error; 
                                                                                                                                                                                  if(ef) { ef.call(this, x, t, e); }
                                                                                                                                                                                  if(obj !== -1 && obj.length) {
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1728..1779
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 4090..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 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

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

                                                                                                                                                                      if(this.data.dnd.mto) { 
                                                                                                                                                                          clearTimeout(this.data.dnd.mto);
                                                                                                                                                                          this.data.dnd.mto = false;
                                                                                                                                                                      }
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 2661..2664
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 2665..2668

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 57.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                          if(this.data.dnd.to1) {
                                                                                                                                                                              clearTimeout(this.data.dnd.to1);
                                                                                                                                                                              this.data.dnd.to1 = false;
                                                                                                                                                                          }
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 2625..2628
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 2665..2668

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 57.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                          if(this.data.dnd.to2) {
                                                                                                                                                                              clearTimeout(this.data.dnd.to2);
                                                                                                                                                                              this.data.dnd.to2 = false;
                                                                                                                                                                          }
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 2625..2628
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 2661..2664

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 57.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                                      tmp2.icon = t.children("ins").get(0).className.replace(/jstree[^ ]*|$/ig,'').replace(/\s+$/ig," ").replace(/^ /,"").replace(/ $/,"");
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 3369..3369

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 57.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                                  result += ' icon="' + escape_xml(tmp1.children("ins").get(0).className.replace(/jstree[^ ]*|$/ig,'').replace(/\s+$/ig," ").replace(/^ /,"").replace(/ $/,"")) + '"';
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1904..1904

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 57.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                              if($.isFunction(s.ajax.url)) { s.ajax.url = s.ajax.url.call(this, obj); }
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1777..1777
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 3306..3306
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 3307..3307
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 3463..3463
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 3464..3464
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 4140..4140
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 4141..4141

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 55.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                              if($.isFunction(s.ajax.data)) { s.ajax.data = s.ajax.data.call(this, obj); }
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1776..1776
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 3306..3306
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 3307..3307
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 3463..3463
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 3464..3464
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 4140..4140
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 4141..4141

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 55.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                          if($.isFunction(s.ajax.url)) { s.ajax.url = s.ajax.url.call(this, str); }
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1776..1776
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1777..1777
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 3306..3306
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 3307..3307
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 3464..3464
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 4140..4140
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 4141..4141

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 55.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                          if($.isFunction(s.ajax.data)) { s.ajax.data = s.ajax.data.call(this, str); }
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1776..1776
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1777..1777
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 3306..3306
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 3307..3307
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 3463..3463
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 4140..4140
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 4141..4141

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 55.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                  show_dots    : function () { this.data.themes.dots = true; this.get_container().children("ul").removeClass("jstree-no-dots"); },
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1464..1464
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1467..1467
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1468..1468

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 55.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                              if($.isFunction(s.ajax.url)) { s.ajax.url = s.ajax.url.call(this, obj); }
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1776..1776
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1777..1777
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 3307..3307
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 3463..3463
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 3464..3464
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 4140..4140
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 4141..4141

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 55.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                  hide_icons    : function () { this.data.themes.icons = false; this.get_container().children("ul").addClass("jstree-no-icons"); },
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1463..1463
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1464..1464
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1467..1467

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 55.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                              if($.isFunction(s.ajax.data)) { s.ajax.data = s.ajax.data.call(this, obj); }
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1776..1776
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1777..1777
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 3306..3306
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 3307..3307
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 3463..3463
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 3464..3464
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 4140..4140

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 55.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                  show_icons    : function () { this.data.themes.icons = true; this.get_container().children("ul").removeClass("jstree-no-icons"); },
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1463..1463
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1464..1464
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1468..1468

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 55.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                              if($.isFunction(s.ajax.data)) { s.ajax.data = s.ajax.data.call(this, obj); }
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1776..1776
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1777..1777
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 3306..3306
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 3463..3463
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 3464..3464
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 4140..4140
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 4141..4141

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 55.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                              if($.isFunction(s.ajax.url)) { s.ajax.url = s.ajax.url.call(this, obj); }
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1776..1776
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1777..1777
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 3306..3306
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 3307..3307
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 3463..3463
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 3464..3464
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 4141..4141

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 55.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                  hide_dots    : function () { this.data.themes.dots = false; this.get_container().children("ul").addClass("jstree-no-dots"); },
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1463..1463
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1467..1467
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1468..1468

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 55.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                                          dc = tr._get_settings().dnd.drag_check.call(this, { "o" : o, "r" : tr.get_container(), is_root : true });
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 2330..2330

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 54.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                                      dc = tr._get_settings().dnd.drag_check.call(this, { "o" : o, "r" : tr.get_container(), is_root : true });
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 2311..2311

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 54.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                  toggle_dots    : function () { if(this.data.themes.dots) { this.hide_dots(); } else { this.show_dots(); } },
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1469..1469

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                                  toggle_icons: function () { if(this.data.themes.icons) { this.hide_icons(); } else { this.show_icons(); } }
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1465..1465

                                                                                                                                                      Duplicated Code

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

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

                                                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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(val.icon && val.icon.indexOf("/") !== -1) { str += " style='background:url(" + val.icon + ") center center no-repeat;' "; }
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 3588..3588

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 52.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                              $.vakata.context.cnt.find(".vakata-hover").children("ul").hide().children(".vakata-separator").removeClass("vakata-hover");
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 3668..3668

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 52.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                      if(val.icon && val.icon.indexOf("/") === -1) { str += " class='" + val.icon + "' "; }
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 3589..3589

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 52.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                              $.vakata.context.cnt.find(".vakata-hover").children("ul").show().children("li:not(.vakata-separator)").removeClass("vakata-hover").first().addClass("vakata-hover");
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 3675..3675

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 52.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                  is_closed    : function (obj) { obj = this._get_node(obj); return obj && obj !== -1 && obj.hasClass("jstree-closed"); },
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 622..622
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 624..624

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 51.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                  is_leaf        : function (obj) { obj = this._get_node(obj); return obj && obj !== -1 && obj.hasClass("jstree-leaf"); },
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 622..622
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 623..623

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 51.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                  is_open        : function (obj) { obj = this._get_node(obj); return obj && obj !== -1 && obj.hasClass("jstree-open"); },
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 623..623
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 624..624

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 51.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                              var css_string = '' + 
                                                                                                                                                                  '#vakata-dragged ins { display:block; text-decoration:none; width:16px; height:16px; margin:0 0 0 0; padding:0; position:absolute; top:4px; left:4px; ' + 
                                                                                                                                                                  ' -moz-border-radius:4px; border-radius:4px; -webkit-border-radius:4px; ' +
                                                                                                                                                                  '} ' + 
                                                                                                                                                                  '#vakata-dragged .jstree-ok { background:green; } ' + 
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 3620..3631

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 51.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                              var css_string = '' + 
                                                                                                                                                                  '#vakata-contextmenu { display:block; visibility:hidden; left:0; top:-200px; position:absolute; margin:0; padding:0; min-width:180px; background:#ebebeb; border:1px solid silver; z-index:10000; *width:180px; } ' + 
                                                                                                                                                                  '#vakata-contextmenu ul { min-width:180px; *width:180px; } ' + 
                                                                                                                                                                  '#vakata-contextmenu ul, #vakata-contextmenu li { margin:0; padding:0; list-style-type:none; display:block; } ' + 
                                                                                                                                                                  '#vakata-contextmenu li { line-height:20px; min-height:20px; position:relative; padding:0px; } ' + 
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 2691..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 51.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

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

                                                                                                                                                                  this.get_container()
                                                                                                                                                                      .addClass("ui-widget-content")
                                                                                                                                                                      .addClass("jstree-themeroller")
                                                                                                                                                                      .delegate("a","mouseenter.jstree", function (e) {
                                                                                                                                                                          if(!$(e.currentTarget).hasClass("jstree-loading")) {
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 4161..4208

                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 50.

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

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

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

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

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

                                                                                                                                                      Identical blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                      Open

                                                                                                                                                                      if(obj && obj !== -1) {
                                                                                                                                                                          if(obj.data("jstree_is_loading")) { return; }
                                                                                                                                                                          else { obj.data("jstree_is_loading",true); }
                                                                                                                                                                      }
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1686..1689
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 3193..3196

                                                                                                                                                      Duplicated Code

                                                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 2 locations. Consider refactoring.
                                                                                                                                                      Open

                                                                                                                                                                                  if($.inArray("languages", s.plugins) !== -1 && $.isArray(s.languages) && s.languages.length) {
                                                                                                                                                                                      $.each(s.languages, function (l, lv) {
                                                                                                                                                                                          if(t.hasClass(lv)) {
                                                                                                                                                                                              lang = lv;
                                                                                                                                                                                              return false;
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1898..1902

                                                                                                                                                      Duplicated Code

                                                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 2 locations. Consider refactoring.
                                                                                                                                                      Open

                                                                                                                                                                                  if($.inArray("languages", s.plugins) !== -1 && $.isArray(s.languages) && s.languages.length) {
                                                                                                                                                                                      $.each(s.languages, function (k, z) {
                                                                                                                                                                                          if(t.hasClass(z)) { tmp2.language = z; return true; }
                                                                                                                                                                                      });
                                                                                                                                                                                  }
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1886..1893

                                                                                                                                                      Duplicated Code

                                                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 3 locations. Consider refactoring.
                                                                                                                                                      Open

                                                                                                                                                                      if(obj && obj !== -1) {
                                                                                                                                                                          if(obj.data("jstree_is_loading")) { return; }
                                                                                                                                                                          else { obj.data("jstree_is_loading",true); }
                                                                                                                                                                      }
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 3193..3196
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 4034..4037

                                                                                                                                                      Duplicated Code

                                                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 3 locations. Consider refactoring.
                                                                                                                                                      Open

                                                                                                                                                                      if(obj && obj !== -1) {
                                                                                                                                                                          if(obj.data("jstree_is_loading")) { return; }
                                                                                                                                                                          else { obj.data("jstree_is_loading",true); }
                                                                                                                                                                      }
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1686..1689
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 4034..4037

                                                                                                                                                      Duplicated Code

                                                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

                                                                                                                                                                                      this._get_settings().dnd.drop_finish.call(this, { "o" : o, "r" : $(e.target), "e" : e });
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 2507..2507

                                                                                                                                                      Duplicated Code

                                                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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(this.data.dnd.active && this._get_settings().dnd.drop_check.call(this, { "o" : o, "r" : $(e.target), "e" : e })) {
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 2518..2518

                                                                                                                                                      Duplicated Code

                                                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

                                                                                                                                                          $(function() {
                                                                                                                                                              var css_string = '#vakata-dragged { display:block; margin:0 0 0 0; padding:4px 4px 4px 24px; position:absolute; top:-2000px; line-height:16px; z-index:10000; } ';
                                                                                                                                                              $.vakata.css.add_sheet({ str : css_string, title : "vakata" });
                                                                                                                                                          });
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 2982..2985

                                                                                                                                                      Duplicated Code

                                                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

                                                                                                                                                          $(function() {
                                                                                                                                                              var css_string = '.jstree .jstree-real-checkbox { display:none; } ';
                                                                                                                                                              $.vakata.css.add_sheet({ str : css_string, title : "jstree" });
                                                                                                                                                          });
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 2275..2278

                                                                                                                                                      Duplicated Code

                                                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 2 locations. Consider refactoring.
                                                                                                                                                      Open

                                                                                                                                                                      obj = !obj || obj == -1 ? this.get_container().find("> ul > li") : this._get_node(obj);
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 4443..4443

                                                                                                                                                      Duplicated Code

                                                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 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

                                                                                                                                                                      obj = !obj || obj == -1 ? this.get_container().find("> ul > li") : this._get_node(obj);
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 2801..2801

                                                                                                                                                      Duplicated Code

                                                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

                                                                                                                                                                              "copy" : {
                                                                                                                                                                                  "separator_before"    : false,
                                                                                                                                                                                  "icon"                : false,
                                                                                                                                                                                  "separator_after"    : false,
                                                                                                                                                                                  "label"                : "Copy",
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 3756..3762

                                                                                                                                                      Duplicated Code

                                                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

                                                                                                                                                                              "paste" : {
                                                                                                                                                                                  "separator_before"    : false,
                                                                                                                                                                                  "icon"                : false,
                                                                                                                                                                                  "separator_after"    : false,
                                                                                                                                                                                  "label"                : "Paste",
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 3749..3755

                                                                                                                                                      Duplicated Code

                                                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

                                                                                                                                                                                  ref.children("a").attr("class",data.rslt.obj.children(".jstree-hovered").attr("class"));
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 4404..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 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

                                                                                                                                                                                  ref.children("a").attr("class",data.rslt.obj.children("a").attr("class"));
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 4412..4412

                                                                                                                                                      Duplicated Code

                                                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 3 locations. Consider refactoring.
                                                                                                                                                      Open

                                                                                                                                                                      if(!this.data.themes.icons) { this.hide_icons(); }
                                                                                                                                                                      else { this.show_icons(); }
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1432..1433
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1455..1456

                                                                                                                                                      Duplicated Code

                                                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 45.

                                                                                                                                                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

                                                                                                                                                      Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                      Open

                                                                                                                                                                      if(!this.data.themes.dots) { this.hide_dots(); }
                                                                                                                                                                      else { this.show_dots(); }
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1432..1433
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1457..1458

                                                                                                                                                      Duplicated Code

                                                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                      Tuning

                                                                                                                                                      This issue has a mass of 45.

                                                                                                                                                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                      Refactorings

                                                                                                                                                      Further Reading

                                                                                                                                                      Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                      Open

                                                                                                                                                                              if(!this.data.themes.icons) { this.hide_icons(); }
                                                                                                                                                                              else { this.show_icons(); }
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1455..1456
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 1457..1458

                                                                                                                                                      Duplicated Code

                                                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

                                                                                                                                                                  e1 = $('<textarea cols="10" rows="2"></textarea>').css({ position: 'absolute', top: -1000, left: 0 }).appendTo('body');
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 990..990

                                                                                                                                                      Duplicated Code

                                                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

                                                                                                                                                                              m.css({ "left" : pos + "px", "top" : (this.data.dnd.off.top + this.data.core.li_height - 6) + "px" }).show();
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 2591..2591

                                                                                                                                                      Duplicated Code

                                                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

                                                                                                                                                                              if(ml) { ml.css({ "left" : (pos + 8) + "px", "top" : (this.data.dnd.off.top + this.data.core.li_height - 1) + "px" }).show(); }
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 2590..2590

                                                                                                                                                      Duplicated Code

                                                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

                                                                                                                                                                  e2 = $('<textarea cols="10" rows="2" style="overflow: hidden;"></textarea>').css({ position: 'absolute', top: -1000, left: 0 }).appendTo('body');
                                                                                                                                                      plugins/display_content/public/javascripts/jstree-v.pre1.0/jquery.jstree.js on lines 989..989

                                                                                                                                                      Duplicated Code

                                                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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