adobe/brackets

View on GitHub
src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js

Summary

Maintainability
F
2 mos
Test Coverage

File jquery-1.7.2.js has 6474 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*!
 * jQuery JavaScript Library v1.7.2
 * http://jquery.com/
 *
 * Copyright 2011, John Resig

    Function jQuery has 614 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    var jQuery = (function() {
    
    // Define a local copy of jQuery
    var jQuery = function( selector, context ) {
            // The jQuery object is actually just the init constructor 'enhanced'

      Function ajax has 242 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          ajax: function( url, options ) {
      
              // If url is an object, simulate pre-1.5 signature
              if ( typeof url === "object" ) {
                  options = url;

        Function support has 172 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        jQuery.support = (function() {
        
            var support,
                all,
                a,

          Function Callbacks has 150 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          jQuery.Callbacks = function( flags ) {
          
              // Convert flags from String-formatted to Object-formatted
              // (we check in cache first)
              flags = flags ? ( flagsCache[ flags ] || createFlags( flags ) ) : {};

            Consider simplifying this complex logical expression.
            Open

                        if ( event.pageX == null && original.clientX != null ) {
                            eventDoc = event.target.ownerDocument || document;
                            doc = eventDoc.documentElement;
                            body = eventDoc.body;
            
            

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

              var Sizzle = function( selector, context, results, seed ) {
                  results = results || [];
                  context = context || document;
              
                  var origContext = context;

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

                    clean: function( elems, context, fragment, scripts ) {
                        var checkScriptType, script, j,
                                ret = [];
                
                        context = context || document;

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

                      trigger: function( event, data, elem, onlyHandlers ) {
                          // Don't do events on text and comment nodes
                          if ( elem && (elem.nodeType === 3 || elem.nodeType === 8) ) {
                              return;
                          }

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

                        animate: function( prop, speed, easing, callback ) {
                            var optall = jQuery.speed( speed, easing, callback );
                    
                            if ( jQuery.isEmptyObject( prop ) ) {
                                return this.each( optall.complete, [ false ] );

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

                                      send: function( headers, complete ) {
                      
                                          // Get a new xhr
                                          var xhr = s.xhr(),
                                              handle,

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

                                function doAnimation() {
                                    // XXX 'this' does not always have a nodeName when running the
                                    // test suite
                        
                                    if ( optall.queue === false ) {

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

                              Deferred: function( func ) {
                                  var doneList = jQuery.Callbacks( "once memory" ),
                                      failList = jQuery.Callbacks( "once memory" ),
                                      progressList = jQuery.Callbacks( "memory" ),
                                      state = "pending",

                            Consider simplifying this complex logical expression.
                            Open

                            if ( "getBoundingClientRect" in document.documentElement ) {
                                getOffset = function( elem, doc, docElem, box ) {
                                    try {
                                        box = elem.getBoundingClientRect();
                                    } catch(e) {}

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

                                  add: function( elem, types, handler, data, selector ) {
                              
                                      var elemData, eventHandle, events,
                                          t, tns, type, namespaces, handleObj,
                                          handleObjIn, quick, handlers, special;

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

                                        function done( status, nativeStatusText, responses, headers ) {
                                
                                            // Called once
                                            if ( state === 2 ) {
                                                return;

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

                                  Sizzle.filter = function( expr, set, inplace, not ) {
                                      var match, anyFound,
                                          type, found, item, filter, left,
                                          i, pass,
                                          old = expr,

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

                                        dispatch: function( event ) {
                                    
                                            // Make a writable jQuery.Event from the native event object
                                            event = jQuery.event.fix( event || window.event );
                                    
                                    

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

                                          init: function( selector, context, rootjQuery ) {
                                              var match, elem, ret, doc;
                                      
                                              // Handle $(""), $(null), or $(undefined)
                                              if ( !selector ) {

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

                                            domManip: function( args, table, callback ) {
                                                var results, first, fragment, parent,
                                                    value = args[0],
                                                    scripts = [];
                                        
                                        

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

                                          function ajaxConvert( s, response ) {
                                          
                                              // Apply the dataFilter if provided
                                              if ( s.dataFilter ) {
                                                  response = s.dataFilter( response, s.dataType );

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

                                                data: function( elem, name, data, pvt /* Internal Use Only */ ) {
                                                    if ( !jQuery.acceptData( elem ) ) {
                                                        return;
                                                    }
                                            
                                            

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

                                                  removeData: function( elem, name, pvt /* Internal Use Only */ ) {
                                                      if ( !jQuery.acceptData( elem ) ) {
                                                          return;
                                                      }
                                              
                                              

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

                                                    remove: function( elem, types, handler, selector, mappedTypes ) {
                                                
                                                        var elemData = jQuery.hasData( elem ) && jQuery._data( elem ),
                                                            t, tns, type, origType, namespaces, origCount,
                                                            j, events, special, handle, eventType, handleObj;

                                                  Consider simplifying this complex logical expression.
                                                  Open

                                                      if ( args.length === 1 && typeof first === "string" && first.length < 512 && doc === document &&
                                                          first.charAt(0) === "<" && !rnocache.test( first ) &&
                                                          (jQuery.support.checkClone || !rchecked.test( first )) &&
                                                          (jQuery.support.html5Clone || !rnoshimcache.test( first )) ) {
                                                  
                                                  

                                                    Consider simplifying this complex logical expression.
                                                    Open

                                                                    if ( ( mappedTypes || origType === handleObj.origType ) &&
                                                                         ( !handler || handler.guid === handleObj.guid ) &&
                                                                         ( !namespaces || namespaces.test( handleObj.namespace ) ) &&
                                                                         ( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) {
                                                                        eventType.splice( j--, 1 );

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

                                                          step: function( gotoEnd ) {
                                                              var p, n, complete,
                                                                  t = fxNow || createFxNow(),
                                                                  done = true,
                                                                  elem = this.elem,

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

                                                            data: function( key, value ) {
                                                                var parts, part, attr, name, l,
                                                                    elem = this[0],
                                                                    i = 0,
                                                                    data = null;

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

                                                                  CHILD: function( elem, match ) {
                                                                      var first, last,
                                                                          doneName, parent, cache,
                                                                          count, diff,
                                                                          type = match[1],

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

                                                            function ajaxHandleResponses( s, jqXHR, responses ) {
                                                            
                                                                var contents = s.contents,
                                                                    dataTypes = s.dataTypes,
                                                                    responseFields = s.responseFields,

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

                                                                  stop: function( type, clearQueue, gotoEnd ) {
                                                                      if ( typeof type !== "string" ) {
                                                                          gotoEnd = clearQueue;
                                                                          clearQueue = type;
                                                                          type = undefined;

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

                                                                    load: function( url, params, callback ) {
                                                                        if ( typeof url !== "string" && _load ) {
                                                                            return _load.apply( this, arguments );
                                                                
                                                                        // Don't do a request if no elements are being requested

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

                                                                  jQuery.extend = jQuery.fn.extend = function() {
                                                                      var options, name, src, copy, copyIsArray, clone,
                                                                          target = arguments[0] || {},
                                                                          i = 1,
                                                                          length = arguments.length,

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

                                                                        on: function( types, selector, data, fn, /*INTERNAL*/ one ) {
                                                                            var origFn, type;
                                                                    
                                                                            // Types can be a map of types/handlers
                                                                            if ( typeof types === "object" ) {

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

                                                                          val: function( value ) {
                                                                              var hooks, ret, isFunction,
                                                                                  elem = this[0];
                                                                      
                                                                              if ( !arguments.length ) {

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

                                                                            when: function( firstParam ) {
                                                                                var args = sliceDeferred.call( arguments, 0 ),
                                                                                    i = 0,
                                                                                    length = args.length,
                                                                                    pValues = new Array( length ),

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

                                                                          function getWidthOrHeight( elem, name, extra ) {
                                                                          
                                                                              // Start with offset property
                                                                              var val = name === "width" ? elem.offsetWidth : elem.offsetHeight,
                                                                                  i = name === "width" ? 1 : 0,

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

                                                                                access: function( elems, fn, key, value, chainable, emptyGet, pass ) {
                                                                                    var exec,
                                                                                        bulk = key == null,
                                                                                        i = 0,
                                                                                        length = elems.length;

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

                                                                                  attr: function( elem, name, value, pass ) {
                                                                                      var ret, hooks, notxml,
                                                                                          nType = elem.nodeType;
                                                                              
                                                                                      // don't get/set attributes on text, comment and attribute nodes

                                                                                Consider simplifying this complex logical expression.
                                                                                Open

                                                                                            if ( match[1] === "nth" ) {
                                                                                                if ( !match[2] ) {
                                                                                                    Sizzle.error( match[0] );
                                                                                                }
                                                                                
                                                                                

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

                                                                                      each: function( object, callback, args ) {
                                                                                          var name, i = 0,
                                                                                              length = object.length,
                                                                                              isObj = length === undefined || jQuery.isFunction( object );
                                                                                  
                                                                                  

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

                                                                                        closest: function( selectors, context ) {
                                                                                            var ret = [], i, l, cur = this[0];
                                                                                    
                                                                                            // Array (deprecated as of jQuery 1.7)
                                                                                            if ( jQuery.isArray( selectors ) ) {

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

                                                                                              ATTR: function( elem, match ) {
                                                                                                  var name = match[1],
                                                                                                      result = Sizzle.attr ?
                                                                                                          Sizzle.attr( elem, name ) :
                                                                                                          Expr.attrHandle[ name ] ?

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

                                                                                            setOffset: function( elem, options, i ) {
                                                                                                var position = jQuery.css( elem, "position" );
                                                                                        
                                                                                                // set position first, in-case top/left are set even on static elem
                                                                                                if ( position === "static" ) {

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

                                                                                              cleanData: function( elems ) {
                                                                                                  var data, id,
                                                                                                      cache = jQuery.cache,
                                                                                                      special = jQuery.event.special,
                                                                                                      deleteExpando = jQuery.support.deleteExpando;

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

                                                                                            function cloneFixAttributes( src, dest ) {
                                                                                                var nodeName;
                                                                                            
                                                                                                // We do not need to do anything for non-Elements
                                                                                                if ( dest.nodeType !== 1 ) {

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

                                                                                              function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
                                                                                                  for ( var i = 0, l = checkSet.length; i < l; i++ ) {
                                                                                                      var elem = checkSet[i];
                                                                                              
                                                                                                      if ( elem ) {

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

                                                                                                    promise: function( type, object ) {
                                                                                                        if ( typeof type !== "string" ) {
                                                                                                            object = type;
                                                                                                            type = undefined;
                                                                                                        }

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

                                                                                                      clone: function( elem, dataAndEvents, deepDataAndEvents ) {
                                                                                                          var srcElements,
                                                                                                              destElements,
                                                                                                              i,
                                                                                                              // IE<=8 does not properly clone detached, unknown element nodes

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

                                                                                                        style: function( elem, name, value, extra ) {
                                                                                                            // Don't set styles on text and comment nodes
                                                                                                            if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
                                                                                                                return;
                                                                                                            }

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

                                                                                                          html: function( value ) {
                                                                                                              return jQuery.access( this, function( value ) {
                                                                                                                  var elem = this[0] || {},
                                                                                                                      i = 0,
                                                                                                                      l = this.length;

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

                                                                                                            find: function( selector ) {
                                                                                                                var self = this,
                                                                                                                    i, l;
                                                                                                        
                                                                                                                if ( typeof selector !== "string" ) {

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

                                                                                                              show: function( speed, easing, callback ) {
                                                                                                                  var elem, display;
                                                                                                          
                                                                                                                  if ( speed || speed === 0 ) {
                                                                                                                      return this.animate( genFx("show", 3), speed, easing, callback );

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

                                                                                                                    setup: function() {
                                                                                                            
                                                                                                                        if ( rformElems.test( this.nodeName ) ) {
                                                                                                                            // IE doesn't fire change on a check/radio until blur; trigger it on click
                                                                                                                            // after a propertychange. Eat the blur-change in special.change.handle.

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

                                                                                                                  addClass: function( value ) {
                                                                                                                      var classNames, i, l, elem,
                                                                                                                          setClass, c, cl;
                                                                                                              
                                                                                                                      if ( jQuery.isFunction( value ) ) {

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

                                                                                                                        ">": function( checkSet, part ) {
                                                                                                                            var elem,
                                                                                                                                isPartStr = typeof part === "string",
                                                                                                                                i = 0,
                                                                                                                                l = checkSet.length;

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

                                                                                                                  jQuery.buildFragment = function( args, nodes, scripts ) {
                                                                                                                      var fragment, cacheable, cacheresults, doc,
                                                                                                                      first = args[ 0 ];
                                                                                                                  
                                                                                                                      // nodes may contain either an explicit document object,

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

                                                                                                                            fire = function( context, args ) {
                                                                                                                                args = args || [];
                                                                                                                                memory = !flags.memory || [ context, args ];
                                                                                                                                fired = true;
                                                                                                                                firing = true;

                                                                                                                      Consider simplifying this complex logical expression.
                                                                                                                      Open

                                                                                                                                      if ( run_all || (!event.namespace && !handleObj.namespace) || event.namespace_re && event.namespace_re.test( handleObj.namespace ) ) {
                                                                                                                      
                                                                                                                                          event.data = handleObj.data;
                                                                                                                                          event.handleObj = handleObj;
                                                                                                                      
                                                                                                                      

                                                                                                                        Consider simplifying this complex logical expression.
                                                                                                                        Open

                                                                                                                        if ( jQuery.expr && jQuery.expr.filters ) {
                                                                                                                            jQuery.expr.filters.hidden = function( elem ) {
                                                                                                                                var width = elem.offsetWidth,
                                                                                                                                    height = elem.offsetHeight;
                                                                                                                        
                                                                                                                        

                                                                                                                          Consider simplifying this complex logical expression.
                                                                                                                          Open

                                                                                                                                  if ( (!id || !cache[id] || (!isEvents && !pvt && !cache[id].data)) && getByName && data === undefined ) {
                                                                                                                                      return;
                                                                                                                                  }

                                                                                                                            Consider simplifying this complex logical expression.
                                                                                                                            Open

                                                                                                                                        if ( typeof value === "string" && !rnoInnerhtml.test( value ) &&
                                                                                                                                            ( jQuery.support.leadingWhitespace || !rleadingWhitespace.test( value ) ) &&
                                                                                                                                            !wrapMap[ ( rtagName.exec( value ) || ["", ""] )[1].toLowerCase() ] ) {
                                                                                                                            
                                                                                                                                            value = value.replace( rxhtmlTag, "<$1></$2>" );

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

                                                                                                                                  access: function( elems, fn, key, value, chainable, emptyGet, pass ) {

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

                                                                                                                                function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {

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

                                                                                                                                  function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR,
                                                                                                                                          dataType /* internal */, inspected /* internal */ ) {

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

                                                                                                                                            ATTR: function( match, curLoop, inplace, result, not, isXML ) {

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

                                                                                                                                              CLASS: function( match, curLoop, inplace, result, not, isXML ) {

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

                                                                                                                                        function dirNodeCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {

                                                                                                                                          Avoid deeply nested control flow statements.
                                                                                                                                          Open

                                                                                                                                                                  for ( c = 0, cl = classNames.length; c < cl; c++ ) {
                                                                                                                                                                      if ( !~setClass.indexOf( " " + classNames[ c ] + " " ) ) {
                                                                                                                                                                          setClass += classNames[ c ] + " ";
                                                                                                                                                                      }
                                                                                                                                                                  }

                                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                                            Open

                                                                                                                                                                    if ( ret[r] === ret[n] ) {
                                                                                                                                                                        ret.splice(n--, 1);
                                                                                                                                                                        break;
                                                                                                                                                                    }

                                                                                                                                              Avoid deeply nested control flow statements.
                                                                                                                                              Open

                                                                                                                                                                                  if ( xhr.readyState !== 4 ) {
                                                                                                                                                                                      xhr.abort();
                                                                                                                                                                                  }

                                                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                                                Open

                                                                                                                                                                                    if ( !status && s.isLocal && !s.crossDomain ) {
                                                                                                                                                                                        status = responses.text ? 200 : 404;
                                                                                                                                                                                    // IE - #1450: sometimes returns 1223 when it should be 204
                                                                                                                                                                                    } else if ( status === 1223 ) {
                                                                                                                                                                                        status = 204;

                                                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                                                  Open

                                                                                                                                                                                  if ( flags.unique ) {
                                                                                                                                                                                      break;
                                                                                                                                                                                  }

                                                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                                                    Open

                                                                                                                                                                        if ( !anyFound ) {
                                                                                                                                                                            return [];
                                                                                                                                                                        }

                                                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                                                      Open

                                                                                                                                                                              if ( !relativeHierarchySelector || hasParent ) {
                                                                                                                                                                                  return makeArray( context.querySelectorAll( "[id='" + nid + "'] " + query ), extra );
                                                                                                                                                                              }

                                                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                                                        Open

                                                                                                                                                                                    if ( !xhrCallbacks ) {
                                                                                                                                                                                        xhrCallbacks = {};
                                                                                                                                                                                        jQuery( window ).unload( xhrOnUnloadAbort );
                                                                                                                                                                                    }

                                                                                                                                                          Avoid deeply nested control flow statements.
                                                                                                                                                          Open

                                                                                                                                                                                  if ( jQuery.isPlainObject( context ) ) {
                                                                                                                                                                                      selector = [ document.createElement( ret[1] ) ];
                                                                                                                                                                                      jQuery.fn.attr.call( selector, context, true );
                                                                                                                                                          
                                                                                                                                                                                  } else {

                                                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                                                            Open

                                                                                                                                                                                    if ( !old ) {
                                                                                                                                                                                        oldContext.removeAttribute( "id" );
                                                                                                                                                                                    }

                                                                                                                                                              Avoid deeply nested control flow statements.
                                                                                                                                                              Open

                                                                                                                                                                                  if ( !isXML ) {
                                                                                                                                                                                      elem[ expando ] = doneName;
                                                                                                                                                                                      elem.sizset = i;
                                                                                                                                                                                  }

                                                                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                                                                Open

                                                                                                                                                                                        if ( safeChildNodes.length > 0 ) {
                                                                                                                                                                                            remove = safeChildNodes[ safeChildNodes.length - 1 ];
                                                                                                                                                                
                                                                                                                                                                                            if ( remove && remove.parentNode ) {
                                                                                                                                                                                                remove.parentNode.removeChild( remove );

                                                                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                                                                  Open

                                                                                                                                                                                          if ( selMatch[ sel ] ) {
                                                                                                                                                                                              matches.push( handleObj );
                                                                                                                                                                                          }

                                                                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                                                                    Open

                                                                                                                                                                                        if ( typeof cur !== "string" ) {
                                                                                                                                                                                            if ( elem === cur ) {
                                                                                                                                                                                                match = true;
                                                                                                                                                                                                break;
                                                                                                                                                                                            }

                                                                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                                                                      Open

                                                                                                                                                                                              if ( elem.id !== match[2] ) {
                                                                                                                                                                                                  return rootjQuery.find( selector );
                                                                                                                                                                                              }

                                                                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                                                                        Open

                                                                                                                                                                                                if ( selMatch[ sel ] === undefined ) {
                                                                                                                                                                                                    selMatch[ sel ] = (
                                                                                                                                                                                                        handleObj.quick ? quickIs( cur, handleObj.quick ) : jqcur.is( sel )
                                                                                                                                                                                                    );
                                                                                                                                                                                                }

                                                                                                                                                                          Avoid deeply nested control flow statements.
                                                                                                                                                                          Open

                                                                                                                                                                                              if ( relativeHierarchySelector && hasParent ) {
                                                                                                                                                                                                  context = context.parentNode;
                                                                                                                                                                                              }

                                                                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                                                                            Open

                                                                                                                                                                                            } else if ( copy !== undefined ) {
                                                                                                                                                                                                target[ name ] = copy;
                                                                                                                                                                                            }

                                                                                                                                                                              Avoid deeply nested control flow statements.
                                                                                                                                                                              Open

                                                                                                                                                                                                      if ( name in thisCache ) {
                                                                                                                                                                                                          name = [ name ];
                                                                                                                                                                                                      } else {
                                                                                                                                                                                                          name = name.split( " " );
                                                                                                                                                                                                      }

                                                                                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                                                                                Open

                                                                                                                                                                                                        if ( elem && elem.parentNode ) {
                                                                                                                                                                                                            // Handle the case where IE and Opera return items
                                                                                                                                                                                                            // by name instead of ID
                                                                                                                                                                                                            if ( elem.id === match[3] ) {
                                                                                                                                                                                                                return makeArray( [ elem ], extra );

                                                                                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                                                                                  Open

                                                                                                                                                                                                          for ( c = 0, cl = classNames.length; c < cl; c++ ) {
                                                                                                                                                                                                              className = className.replace(" " + classNames[ c ] + " ", " ");
                                                                                                                                                                                                          }

                                                                                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                                                                                    Open

                                                                                                                                                                                                        if ( !match ) {
                                                                                                                                                                                                            anyFound = found = true;
                                                                                                                                                                                    
                                                                                                                                                                                                        } else if ( match === true ) {
                                                                                                                                                                                                            continue;

                                                                                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                                                                                      Open

                                                                                                                                                                                                          if ( copyIsArray ) {
                                                                                                                                                                                                              copyIsArray = false;
                                                                                                                                                                                                              clone = src && jQuery.isArray(src) ? src : [];
                                                                                                                                                                                      
                                                                                                                                                                                                          } else {

                                                                                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                                                                                        Open

                                                                                                                                                                                                                        if ( firing ) {
                                                                                                                                                                                                                            if ( i <= firingLength ) {
                                                                                                                                                                                                                                firingLength--;
                                                                                                                                                                                                                                if ( i <= firingIndex ) {
                                                                                                                                                                                                                                    firingIndex--;

                                                                                                                                                                                          Avoid deeply nested control flow statements.
                                                                                                                                                                                          Open

                                                                                                                                                                                                              for ( i = 0; (item = curLoop[i]) != null; i++ ) {
                                                                                                                                                                                                                  if ( item ) {
                                                                                                                                                                                                                      found = filter( item, match, i, curLoop );
                                                                                                                                                                                                                      pass = not ^ found;
                                                                                                                                                                                          
                                                                                                                                                                                          

                                                                                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                                                                                            Open

                                                                                                                                                                                                                    if ( name.indexOf( "data-" ) === 0 ) {
                                                                                                                                                                                                                        name = jQuery.camelCase( name.substring(5) );
                                                                                                                                                                                            
                                                                                                                                                                                                                        dataAttr( elem, name, data[ name ] );
                                                                                                                                                                                                                    }

                                                                                                                                                                                              Avoid deeply nested control flow statements.
                                                                                                                                                                                              Open

                                                                                                                                                                                                                                  if ( xhrOnUnloadAbort ) {
                                                                                                                                                                                                                                      delete xhrCallbacks[ handle ];
                                                                                                                                                                                                                                  }

                                                                                                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                                                                                                Open

                                                                                                                                                                                                                                    if ( xml && xml.documentElement /* #4958 */ ) {
                                                                                                                                                                                                                                        responses.xml = xml;
                                                                                                                                                                                                                                    }

                                                                                                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                                                                                                  Open

                                                                                                                                                                                                                          if ( ret === false ) {
                                                                                                                                                                                                                              event.preventDefault();
                                                                                                                                                                                                                              event.stopPropagation();
                                                                                                                                                                                                                          }

                                                                                                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                                        if ( !inplace ) {
                                                                                                                                                                                                                            curLoop = result;
                                                                                                                                                                                                                        }

                                                                                                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                                                                                                      Open

                                                                                                                                                                                                                          if ( !old ) {
                                                                                                                                                                                                                              context.setAttribute( "id", nid );
                                                                                                                                                                                                                          } else {
                                                                                                                                                                                                                              nid = nid.replace( /'/g, "\\$&" );
                                                                                                                                                                                                                          }

                                                                                                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                for ( j = tbody.length - 1; j >= 0 ; --j ) {
                                                                                                                                                                                                                                    if ( jQuery.nodeName( tbody[ j ], "tbody" ) && !tbody[ j ].childNodes.length ) {
                                                                                                                                                                                                                                        tbody[ j ].parentNode.removeChild( tbody[ j ] );
                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                }

                                                                                                                                                                                                          Avoid deeply nested control flow statements.
                                                                                                                                                                                                          Open

                                                                                                                                                                                                                              if ( tmp[ 0 ] === prev || tmp[ 0 ] === "*" ) {
                                                                                                                                                                                                                                  conv2 = converters[ tmp[1] + " " + current ];
                                                                                                                                                                                                                                  if ( conv2 ) {
                                                                                                                                                                                                                                      conv1 = converters[ conv1 ];
                                                                                                                                                                                                                                      if ( conv1 === true ) {

                                                                                                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                    if ( special[ type ] ) {
                                                                                                                                                                                                                                        jQuery.event.remove( elem, type );
                                                                                                                                                                                                            
                                                                                                                                                                                                                                    // This is a shortcut to avoid jQuery.event.remove's overhead
                                                                                                                                                                                                                                    } else {

                                                                                                                                                                                                              Consider simplifying this complex logical expression.
                                                                                                                                                                                                              Open

                                                                                                                                                                                                                      if ( !seed && parts.length > 1 && context.nodeType === 9 && !contextXML &&
                                                                                                                                                                                                                              Expr.match.ID.test(parts[0]) && !Expr.match.ID.test(parts[parts.length - 1]) ) {
                                                                                                                                                                                                              
                                                                                                                                                                                                                          ret = Sizzle.find( parts.shift(), context, contextXML );
                                                                                                                                                                                                                          context = ret.expr ?

                                                                                                                                                                                                                Consider simplifying this complex logical expression.
                                                                                                                                                                                                                Open

                                                                                                                                                                                                                        if ( s.crossDomain == null ) {
                                                                                                                                                                                                                            parts = rurl.exec( s.url.toLowerCase() );
                                                                                                                                                                                                                            s.crossDomain = !!( parts &&
                                                                                                                                                                                                                                ( parts[ 1 ] != ajaxLocParts[ 1 ] || parts[ 2 ] != ajaxLocParts[ 2 ] ||
                                                                                                                                                                                                                                    ( parts[ 3 ] || ( parts[ 1 ] === "http:" ? 80 : 443 ) ) !=

                                                                                                                                                                                                                  Consider simplifying this complex logical expression.
                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                  if ( ontype && elem[ type ] && ((type !== "focus" && type !== "blur") || event.target.offsetWidth !== 0) && !jQuery.isWindow( elem ) ) {
                                                                                                                                                                                                                  
                                                                                                                                                                                                                                      // Don't re-trigger an onFOO event when we call its FOO() method
                                                                                                                                                                                                                                      old = elem[ ontype ];
                                                                                                                                                                                                                  
                                                                                                                                                                                                                  

                                                                                                                                                                                                                    Consider simplifying this complex logical expression.
                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                    if ( !jQuery.support.opacity ) {
                                                                                                                                                                                                                        jQuery.cssHooks.opacity = {
                                                                                                                                                                                                                            get: function( elem, computed ) {
                                                                                                                                                                                                                                // IE uses filters for opacity
                                                                                                                                                                                                                                return ropacity.test( (computed && elem.currentStyle ? elem.currentStyle.filter : elem.style.filter) || "" ) ?

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

                                                                                                                                                                                                                          on: function( types, selector, data, fn, /*INTERNAL*/ one ) {

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

                                                                                                                                                                                                                            remove: function( elem, types, handler, selector, mappedTypes ) {

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

                                                                                                                                                                                                                                  PSEUDO: function( match, curLoop, inplace, result, not ) {

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

                                                                                                                                                                                                                                add: function( elem, types, handler, data, selector ) {

                                                                                                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                      return i === al ?
                                                                                                                                                                                                                                          siblingCheck( a, bp[i], -1 ) :
                                                                                                                                                                                                                                          siblingCheck( ap[i], b, 1 );

                                                                                                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                                                                                                Open

                                                                                                                                                                                                                                                        return makeArray( context.querySelectorAll(query), extra );

                                                                                                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                                          return true;

                                                                                                                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                    return this.constructor( context ).find( selector );

                                                                                                                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                                  return ret === null ?
                                                                                                                                                                                                                                                      undefined :
                                                                                                                                                                                                                                                      ret;

                                                                                                                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                    return oldSizzle(query, context, extra, seed);

                                                                                                                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                          return ( context || rootjQuery ).find( selector );

                                                                                                                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                            return elem[ name ];

                                                                                                                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                                              return ret;

                                                                                                                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                                                                                                                Open

                                                                                                                                                                                                                                                                return siblingCheck( ap[i], bp[i] );

                                                                                                                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                                              return ret;

                                                                                                                                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                            return event.result;

                                                                                                                                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                                                              return diff === 0;

                                                                                                                                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                    return makeArray( [], extra );

                                                                                                                                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                      return 1;

                                                                                                                                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                                                        return makeArray( context.querySelectorAll( "[id='" + nid + "'] " + query ), extra );

                                                                                                                                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                                                                          return rootjQuery.find( selector );

                                                                                                                                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                Open

                                                                                                                                                                                                                                                                                    return this;

                                                                                                                                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                                                          return jQuery.makeArray( selector, this );

                                                                                                                                                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                return;

                                                                                                                                                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                                                                              return ( diff % first === 0 && diff / first >= 0 );

                                                                                                                                                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                    return rootjQuery.ready( selector );

                                                                                                                                                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                          return value;

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

                                                                                                                                                                                                                                                                                for ( ; i < length; i++ ) {
                                                                                                                                                                                                                                                                                    // Only deal with non-null/undefined values
                                                                                                                                                                                                                                                                                    if ( (options = arguments[ i ]) != null ) {
                                                                                                                                                                                                                                                                                        // Extend the base object
                                                                                                                                                                                                                                                                                        for ( name in options ) {
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 204..236

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 250.

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

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

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

                                                                                                                                                                                                                                                                            See codeclimate-duplication's documentation for more 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 ( event.pageX == null && original.clientX != null ) {
                                                                                                                                                                                                                                                                                            eventDoc = event.target.ownerDocument || document;
                                                                                                                                                                                                                                                                                            doc = eventDoc.documentElement;
                                                                                                                                                                                                                                                                                            body = eventDoc.body;
                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 4521..4528

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

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

                                                                                                                                                                                                                                                                                    if ( !transport ) {
                                                                                                                                                                                                                                                                                        done( -1, "No Transport" );
                                                                                                                                                                                                                                                                                    } else {
                                                                                                                                                                                                                                                                                        jqXHR.readyState = 1;
                                                                                                                                                                                                                                                                                        // Send global event
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 8143..8171

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 165.

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

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

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

                                                                                                                                                                                                                                                                            See codeclimate-duplication's documentation for more 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 ( !arguments.length ) {
                                                                                                                                                                                                                                                                                        if ( elem ) {
                                                                                                                                                                                                                                                                                            hooks = jQuery.valHooks[ elem.type ] || jQuery.valHooks[ elem.nodeName.toLowerCase() ];
                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                            if ( hooks && "get" in hooks && (ret = hooks.get( elem, "value" )) !== undefined ) {
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 7321..7339

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 151.

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

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

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

                                                                                                                                                                                                                                                                                wrapInner: function( html ) {
                                                                                                                                                                                                                                                                                    if ( jQuery.isFunction( html ) ) {
                                                                                                                                                                                                                                                                                        return this.each(function(i) {
                                                                                                                                                                                                                                                                                            jQuery(this).wrapInner( html.call(this, i) );
                                                                                                                                                                                                                                                                                        });
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 8362..8380

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 143.

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

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

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

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

                                                                                                                                                                                                                                                                            Refactorings

                                                                                                                                                                                                                                                                            Further Reading

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

                                                                                                                                                                                                                                                                                queue: function( elem, type, data ) {
                                                                                                                                                                                                                                                                                    var q;
                                                                                                                                                                                                                                                                                    if ( elem ) {
                                                                                                                                                                                                                                                                                        type = ( type || "fx" ) + "queue";
                                                                                                                                                                                                                                                                                        q = jQuery._data( elem, type );
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 3878..3895

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 136.

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

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

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

                                                                                                                                                                                                                                                                                simulate: function( type, elem, event, bubble ) {
                                                                                                                                                                                                                                                                                    // Piggyback on a donor event to simulate a different one.
                                                                                                                                                                                                                                                                                    // Fake originalEvent to avoid donor's stopPropagation, but if the
                                                                                                                                                                                                                                                                                    // simulated event prevents default then we do the same on the donor.
                                                                                                                                                                                                                                                                                    var e = jQuery.extend(
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 4633..4654

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 131.

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

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

                                                                                                                                                                                                                                                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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 ( dataTypes[ 0 ] in responses ) {
                                                                                                                                                                                                                                                                                    finalDataType = dataTypes[ 0 ];
                                                                                                                                                                                                                                                                                } else {
                                                                                                                                                                                                                                                                                    // Try convertible dataTypes
                                                                                                                                                                                                                                                                                    for ( type in responses ) {
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 7685..7700

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 123.

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

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

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

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

                                                                                                                                                                                                                                                                            Refactorings

                                                                                                                                                                                                                                                                            Further Reading

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

                                                                                                                                                                                                                                                                            jQuery.each( [ "get", "post" ], function( i, method ) {
                                                                                                                                                                                                                                                                                jQuery[ method ] = function( url, data, callback, type ) {
                                                                                                                                                                                                                                                                                    // shift arguments if data argument was omitted
                                                                                                                                                                                                                                                                                    if ( jQuery.isFunction( data ) ) {
                                                                                                                                                                                                                                                                                        type = type || callback;
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 8297..8314

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 121.

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

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

                                                                                                                                                                                                                                                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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 ( data == null && fn == null ) {
                                                                                                                                                                                                                                                                                        // ( types, fn )
                                                                                                                                                                                                                                                                                        fn = selector;
                                                                                                                                                                                                                                                                                        data = selector = undefined;
                                                                                                                                                                                                                                                                                    } else if ( fn == null ) {
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 4823..4838

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 107.

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

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

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

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

                                                                                                                                                                                                                                                                            Refactorings

                                                                                                                                                                                                                                                                            Further Reading

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

                                                                                                                                                                                                                                                                                delay: function( time, type ) {
                                                                                                                                                                                                                                                                                    time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;
                                                                                                                                                                                                                                                                                    type = type || "fx";
                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                    return this.queue( type, function( next, hooks ) {
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 6896..6906

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 106.

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

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

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

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

                                                                                                                                                                                                                                                                            Refactorings

                                                                                                                                                                                                                                                                            Further Reading

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

                                                                                                                                                                                                                                                                                    jqXHR.setRequestHeader(
                                                                                                                                                                                                                                                                                        "Accept",
                                                                                                                                                                                                                                                                                        s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[0] ] ?
                                                                                                                                                                                                                                                                                            s.accepts[ s.dataTypes[0] ] + ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) :
                                                                                                                                                                                                                                                                                            s.accepts[ "*" ]
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 8113..8118

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                    var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : {
                                                                                                                                                                                                                                                                                        complete: fn || !fn && easing ||
                                                                                                                                                                                                                                                                                            jQuery.isFunction( speed ) && speed,
                                                                                                                                                                                                                                                                                        duration: speed,
                                                                                                                                                                                                                                                                                        easing: fn && easing || easing && !jQuery.isFunction( easing ) && easing
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 6668..6673

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 101.

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

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

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

                                                                                                                                                                                                                                                                            See codeclimate-duplication's documentation for more 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( checkSet, part, isXML ) {
                                                                                                                                                                                                                                                                                        var nodeCheck,
                                                                                                                                                                                                                                                                                            doneName = done++,
                                                                                                                                                                                                                                                                                            checkFn = dirCheck;
                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                            src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 4399..4411

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                    "": function(checkSet, part, isXML){
                                                                                                                                                                                                                                                                                        var nodeCheck,
                                                                                                                                                                                                                                                                                            doneName = done++,
                                                                                                                                                                                                                                                                                            checkFn = dirCheck;
                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                            src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 4413..4425

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 97.

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

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

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

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

                                                                                                                                                                                                                                                                            Refactorings

                                                                                                                                                                                                                                                                            Further Reading

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

                                                                                                                                                                                                                                                                                            if ( ontype && elem[ type ] && ((type !== "focus" && type !== "blur") || event.target.offsetWidth !== 0) && !jQuery.isWindow( elem ) ) {
                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                // Don't re-trigger an onFOO event when we call its FOO() method
                                                                                                                                                                                                                                                                                                old = elem[ ontype ];
                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 4367..4384

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                    opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration :
                                                                                                                                                                                                                                                                                        opt.duration in jQuery.fx.speeds ? jQuery.fx.speeds[ opt.duration ] : jQuery.fx.speeds._default;
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 6675..6676

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                        if ( val == null ) {
                                                                                                                                                                                                                                                                                            val = "";
                                                                                                                                                                                                                                                                                        } else if ( typeof val === "number" ) {
                                                                                                                                                                                                                                                                                            val += "";
                                                                                                                                                                                                                                                                                        } else if ( jQuery.isArray( val ) ) {
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 7357..7367

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                    if ( one === 1 ) {
                                                                                                                                                                                                                                                                                        origFn = fn;
                                                                                                                                                                                                                                                                                        fn = function( event ) {
                                                                                                                                                                                                                                                                                            // Can use an empty set, since event contains the info
                                                                                                                                                                                                                                                                                            jQuery().off( event );
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 4845..4854

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                if ( events ) {
                                                                                                                                                                                                                                                                                    delete curData.handle;
                                                                                                                                                                                                                                                                                    curData.events = {};
                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                    for ( type in events ) {
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 4992..5001

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

                                                                                                                                                                                                                                                                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 ( ( mappedTypes || origType === handleObj.origType ) &&
                                                                                                                                                                                                                                                                                                 ( !handler || handler.guid === handleObj.guid ) &&
                                                                                                                                                                                                                                                                                                 ( !namespaces || namespaces.test( handleObj.namespace ) ) &&
                                                                                                                                                                                                                                                                                                 ( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) {
                                                                                                                                                                                                                                                                                                eventType.splice( j--, 1 );
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 4226..4238

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 92.

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

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

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

                                                                                                                                                                                                                                                                            See codeclimate-duplication's documentation for more 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 === 2 ) {
                                                                                                                                                                                                                                                                                                    if ( !responseHeaders ) {
                                                                                                                                                                                                                                                                                                        responseHeaders = {};
                                                                                                                                                                                                                                                                                                        while( ( match = rheaders.exec( responseHeadersString ) ) ) {
                                                                                                                                                                                                                                                                                                            responseHeaders[ match[1].toLowerCase() ] = match[ 2 ];
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 7952..7960

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 91.

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

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

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

                                                                                                                                                                                                                                                                                keyHooks: {
                                                                                                                                                                                                                                                                                    props: "char charCode key keyCode".split(" "),
                                                                                                                                                                                                                                                                                    filter: function( event, original ) {
                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                        // Add which for key events
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 4501..4512

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 84.

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

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

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

                                                                                                                                                                                                                                                                            See codeclimate-duplication's documentation for more 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 ( !related || (related !== target && !jQuery.contains( target, related )) ) {
                                                                                                                                                                                                                                                                                            event.type = handleObj.origType;
                                                                                                                                                                                                                                                                                            ret = handleObj.handler.apply( this, arguments );
                                                                                                                                                                                                                                                                                            event.type = fix;
                                                                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 4758..4762

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 81.

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

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

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

                                                                                                                                                                                                                                                                                unwrap: function() {
                                                                                                                                                                                                                                                                                    return this.parent().each(function() {
                                                                                                                                                                                                                                                                                        if ( !jQuery.nodeName( this, "body" ) ) {
                                                                                                                                                                                                                                                                                            jQuery( this ).replaceWith( this.childNodes );
                                                                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 8390..8396

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 77.

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

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

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

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

                                                                                                                                                                                                                                                                            Refactorings

                                                                                                                                                                                                                                                                            Further Reading

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

                                                                                                                                                                                                                                                                                clone: function( dataAndEvents, deepDataAndEvents ) {
                                                                                                                                                                                                                                                                                    dataAndEvents = dataAndEvents == null ? false : dataAndEvents;
                                                                                                                                                                                                                                                                                    deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;
                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                    return this.map( function () {
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 5285..5292

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                sibling: function( n, elem ) {
                                                                                                                                                                                                                                                                                    var r = [];
                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                    for ( ; n; n = n.nextSibling ) {
                                                                                                                                                                                                                                                                                        if ( n.nodeType === 1 && n !== elem ) {
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 2861..2871

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 74.

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

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

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

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

                                                                                                                                                                                                                                                                            Refactorings

                                                                                                                                                                                                                                                                            Further Reading

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

                                                                                                                                                                                                                                                                                wrap: function( html ) {
                                                                                                                                                                                                                                                                                    var isFunction = jQuery.isFunction( html );
                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                    return this.each(function(i) {
                                                                                                                                                                                                                                                                                        jQuery( this ).wrapAll( isFunction ? html.call(this, i) : html );
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 8382..8388

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                                for ( l = attr.length; i < l; i++ ) {
                                                                                                                                                                                                                                                                                                    name = attr[i].name;
                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                    if ( name.indexOf( "data-" ) === 0 ) {
                                                                                                                                                                                                                                                                                                        name = jQuery.camelCase( name.substring(5) );
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 3791..3797

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

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

                                                                                                                                                                                                                                                                                    for ( ; i < timers.length; i++ ) {
                                                                                                                                                                                                                                                                                        timer = timers[ i ];
                                                                                                                                                                                                                                                                                        // Checks the timer has not already been removed
                                                                                                                                                                                                                                                                                        if ( !timer() && timers[ i ] === timer ) {
                                                                                                                                                                                                                                                                                            timers.splice( i--, 1 );
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 6850..6856

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 72.

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

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

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

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

                                                                                                                                                                                                                                                                            Refactorings

                                                                                                                                                                                                                                                                            Further Reading

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

                                                                                                                                                                                                                                                                            jQuery.ajaxSetup({
                                                                                                                                                                                                                                                                                accepts: {
                                                                                                                                                                                                                                                                                    script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"
                                                                                                                                                                                                                                                                                },
                                                                                                                                                                                                                                                                                contents: {
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 8647..8660

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                noConflict: function( deep ) {
                                                                                                                                                                                                                                                                                    if ( window.$ === jQuery ) {
                                                                                                                                                                                                                                                                                        window.$ = _$;
                                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 9181..9191

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

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

                                                                                                                                                                                                                                                                                    if ( s.data && s.processData && typeof s.data !== "string" ) {
                                                                                                                                                                                                                                                                                        s.data = jQuery.param( s.data, s.traditional );
                                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 8044..8046

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

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

                                                                                                                                                                                                                                                                                        if ( special.add ) {
                                                                                                                                                                                                                                                                                            special.add.call( elem, handleObj );
                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                            if ( !handleObj.handler.guid ) {
                                                                                                                                                                                                                                                                                                handleObj.handler.guid = handler.guid;
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 4167..4173

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                        if ( !event.which && button !== undefined ) {
                                                                                                                                                                                                                                                                                            event.which = ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) );
                                                                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 4532..4534

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                jQuery.valHooks[ this ] = jQuery.extend( jQuery.valHooks[ this ], {
                                                                                                                                                                                                                                                                                    set: function( elem, value ) {
                                                                                                                                                                                                                                                                                        if ( jQuery.isArray( value ) ) {
                                                                                                                                                                                                                                                                                            return ( elem.checked = jQuery.inArray( jQuery(elem).val(), value ) >= 0 );
                                                                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 7454..7460

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 64.

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

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

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

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

                                                                                                                                                                                                                                                                            Refactorings

                                                                                                                                                                                                                                                                            Further Reading

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

                                                                                                                                                                                                                                                                                    if ( jQuery.isFunction( value ) ) {
                                                                                                                                                                                                                                                                                        return this.each(function( i ) {
                                                                                                                                                                                                                                                                                            jQuery( this ).toggleClass( value.call(this, i, this.className, stateVal), stateVal );
                                                                                                                                                                                                                                                                                        });
                                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 7258..7262

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                while( dataTypes[ 0 ] === "*" ) {
                                                                                                                                                                                                                                                                                    dataTypes.shift();
                                                                                                                                                                                                                                                                                    if ( ct === undefined ) {
                                                                                                                                                                                                                                                                                        ct = s.mimeType || jqXHR.getResponseHeader( "content-type" );
                                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 7667..7672

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

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

                                                                                                                                                                                                                                                                                jQuery.expr.filters.animated = function( elem ) {
                                                                                                                                                                                                                                                                                    return jQuery.grep(jQuery.timers, function( fn ) {
                                                                                                                                                                                                                                                                                        return elem === fn.elem;
                                                                                                                                                                                                                                                                                    }).length;
                                                                                                                                                                                                                                                                                };
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 8898..8902

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 62.

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

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

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

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

                                                                                                                                                                                                                                                                            Refactorings

                                                                                                                                                                                                                                                                            Further Reading

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

                                                                                                                                                                                                                                                                                    if ( jQuery.isFunction( value ) ) {
                                                                                                                                                                                                                                                                                        return this.each(function( j ) {
                                                                                                                                                                                                                                                                                            jQuery( this ).addClass( value.call(this, j, this.className) );
                                                                                                                                                                                                                                                                                        });
                                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 7171..7175
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 7214..7218
                                                                                                                                                                                                                                                                            src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 2291..2295

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                    if ( jQuery.isFunction( value ) ) {
                                                                                                                                                                                                                                                                                        return this.each(function( j ) {
                                                                                                                                                                                                                                                                                            jQuery( this ).removeClass( value.call(this, j, this.className) );
                                                                                                                                                                                                                                                                                        });
                                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 7171..7175
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 7214..7218
                                                                                                                                                                                                                                                                            src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 2255..2259

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

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

                                                                                                                                                                                                                                                                                    if ( type.indexOf( "." ) >= 0 ) {
                                                                                                                                                                                                                                                                                        // Namespaced trigger; create a regexp to match event type in handle()
                                                                                                                                                                                                                                                                                        namespaces = type.split(".");
                                                                                                                                                                                                                                                                                        type = namespaces.shift();
                                                                                                                                                                                                                                                                                        namespaces.sort();
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 4278..4283

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

                                                                                                                                                                                                                                                                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 ( ct ) {
                                                                                                                                                                                                                                                                                    for ( type in contents ) {
                                                                                                                                                                                                                                                                                        if ( contents[ type ] && contents[ type ].test( ct ) ) {
                                                                                                                                                                                                                                                                                            dataTypes.unshift( type );
                                                                                                                                                                                                                                                                                            break;
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 7675..7682

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                        jQuery( types.delegateTarget ).off(
                                                                                                                                                                                                                                                                                            handleObj.namespace ? handleObj.origType + "." + handleObj.namespace : handleObj.origType,
                                                                                                                                                                                                                                                                                            handleObj.selector,
                                                                                                                                                                                                                                                                                            handleObj.handler
                                                                                                                                                                                                                                                                                        );
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 4867..4871

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 59.

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

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

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

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

                                                                                                                                                                                                                                                                            Refactorings

                                                                                                                                                                                                                                                                            Further Reading

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

                                                                                                                                                                                                                                                                                        if ( match && (match[1] || !context) ) {
                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                            // HANDLE: $(html) -> $(array)
                                                                                                                                                                                                                                                                                            if ( match[1] ) {
                                                                                                                                                                                                                                                                                                context = context instanceof jQuery ? context[0] : context;
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 2749..2804

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 59.

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

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

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

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

                                                                                                                                                                                                                                                                            Refactorings

                                                                                                                                                                                                                                                                            Further Reading

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

                                                                                                                                                                                                                                                                                    if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) {
                                                                                                                                                                                                                                                                                        jqXHR.setRequestHeader( "Content-Type", s.contentType );
                                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 8108..8110

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                for ( key in src ) {
                                                                                                                                                                                                                                                                                    if ( src[ key ] !== undefined ) {
                                                                                                                                                                                                                                                                                        ( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ];
                                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 7644..7648

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                    if ( value !== undefined ) {
                                                                                                                                                                                                                                                                                        type = typeof value;
                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                        // convert relative number strings (+= or -=) to relative numbers. #7345
                                                                                                                                                                                                                                                                                        if ( type === "string" && (ret = rrelNum.exec( value )) ) {
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 5963..6002

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                    submit: function( elem ) {
                                                                                                                                                                                                                                                                                        var name = elem.nodeName.toLowerCase();
                                                                                                                                                                                                                                                                                        return (name === "input" || name === "button") && "submit" === elem.type;
                                                                                                                                                                                                                                                                                    },
                                                                                                                                                                                                                                                                            src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 4636..4639

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 56.

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

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

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

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

                                                                                                                                                                                                                                                                            Refactorings

                                                                                                                                                                                                                                                                            Further Reading

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

                                                                                                                                                                                                                                                                                    reset: function( elem ) {
                                                                                                                                                                                                                                                                                        var name = elem.nodeName.toLowerCase();
                                                                                                                                                                                                                                                                                        return (name === "input" || name === "button") && "reset" === elem.type;
                                                                                                                                                                                                                                                                                    },
                                                                                                                                                                                                                                                                            src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 4627..4630

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 56.

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

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

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

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

                                                                                                                                                                                                                                                                            Refactorings

                                                                                                                                                                                                                                                                            Further Reading

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

                                                                                                                                                                                                                                                                                        if ( fireGlobals ) {
                                                                                                                                                                                                                                                                                            globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] );
                                                                                                                                                                                                                                                                                            // Handle the global AJAX counter
                                                                                                                                                                                                                                                                                            if ( !( --jQuery.active ) ) {
                                                                                                                                                                                                                                                                                                jQuery.event.trigger( "ajaxStop" );
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 8276..8282

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 56.

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

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

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

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

                                                                                                                                                                                                                                                                            Refactorings

                                                                                                                                                                                                                                                                            Further Reading

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

                                                                                                                                                                                                                                                                                var options, name, src, copy, copyIsArray, clone,
                                                                                                                                                                                                                                                                                    target = arguments[0] || {},
                                                                                                                                                                                                                                                                                    i = 1,
                                                                                                                                                                                                                                                                                    length = arguments.length,
                                                                                                                                                                                                                                                                                    deep = false;
                                                                                                                                                                                                                                                                            src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/external/globalize.js on lines 299..303
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 178..182

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                if ( arguments.length ) {
                                                                                                                                                                                                                                                                                    return options === undefined ?
                                                                                                                                                                                                                                                                                        this :
                                                                                                                                                                                                                                                                                        this.each(function( i ) {
                                                                                                                                                                                                                                                                                            jQuery.offset.setOffset( this, options, i );
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 8968..8974

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 55.

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

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

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

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

                                                                                                                                                                                                                                                                            Refactorings

                                                                                                                                                                                                                                                                            Further Reading

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

                                                                                                                                                                                                                                                                            jQuery.each("Boolean Number String Function Array Date RegExp Object".split(" "), function(i, name) {
                                                                                                                                                                                                                                                                                class2type[ "[object " + name + "]" ] = name.toLowerCase();
                                                                                                                                                                                                                                                                            });
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 529..531

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 55.

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

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

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

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

                                                                                                                                                                                                                                                                            Refactorings

                                                                                                                                                                                                                                                                            Further Reading

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

                                                                                                                                                                                                                                                                                    s.converters["script json"] = function() {
                                                                                                                                                                                                                                                                                        if ( !responseContainer ) {
                                                                                                                                                                                                                                                                                            jQuery.error( jsonpCallback + " was not called" );
                                                                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                                                                        return responseContainer[ 0 ];
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 8745..8750

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                                for ( var type in data.events ) {
                                                                                                                                                                                                                                                                                                    if ( special[ type ] ) {
                                                                                                                                                                                                                                                                                                        jQuery.event.remove( elem, type );
                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                    // This is a shortcut to avoid jQuery.event.remove's overhead
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 5177..5185

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                                if ( option.selected && (jQuery.support.optDisabled ? !option.disabled : option.getAttribute("disabled") === null) &&
                                                                                                                                                                                                                                                                                                        (!option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" )) ) {
                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                    // Get the specific value for the option
                                                                                                                                                                                                                                                                                                    value = jQuery( option ).val();
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 7408..7423

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                                ret = ( (jQuery.event.special[ handleObj.origType ] || {}).handle || handleObj.handler )
                                                                                                                                                                                                                                                                                                        .apply( matched.elem, args );
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 4429..4430

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

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

                                                                                                                                                                                                                                                                                        for ( i = 0; i < 4; i++ ) {
                                                                                                                                                                                                                                                                                            expanded[ prefix + cssExpand[ i ] + suffix ] =
                                                                                                                                                                                                                                                                                                parts[ i ] || parts[ i - 2 ] || parts[ 0 ];
                                                                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 6093..6096

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

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

                                                                                                                                                                                                                                                                                map: function( callback ) {
                                                                                                                                                                                                                                                                                    return this.pushStack( jQuery.map(this, function( elem, i ) {
                                                                                                                                                                                                                                                                                        return callback.call( elem, i, elem );
                                                                                                                                                                                                                                                                                    }));
                                                                                                                                                                                                                                                                                },
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 142..146

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

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

                                                                                                                                                                                                                                                                                if ( typeof target === "boolean" ) {
                                                                                                                                                                                                                                                                                    deep = target;
                                                                                                                                                                                                                                                                                    target = arguments[1] || {};
                                                                                                                                                                                                                                                                                    // skip the boolean and the target
                                                                                                                                                                                                                                                                                    i = 2;
                                                                                                                                                                                                                                                                            src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/external/globalize.js on lines 306..311

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                        if ( !hooks || !("set" in hooks) || hooks.set( this, val, "value" ) === undefined ) {
                                                                                                                                                                                                                                                                                            this.value = val;
                                                                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 7372..7374

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                    for ( name in options ) {
                                                                                                                                                                                                                                                                                        old[ name ] = elem.style[ name ];
                                                                                                                                                                                                                                                                                        elem.style[ name ] = options[ name ];
                                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 5709..5712

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

                                                                                                                                                                                                                                                                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 ( !type ) {
                                                                                                                                                                                                                                                                                            for ( type in events ) {
                                                                                                                                                                                                                                                                                                jQuery.event.remove( elem, type + types[ t ], handler, selector, true );
                                                                                                                                                                                                                                                                                            }
                                                                                                                                                                                                                                                                                            continue;
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 4209..4214

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                    if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
                                                                                                                                                                                                                                                                                        return;
                                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 5948..5950

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                        if ( isSuccess ) {
                                                                                                                                                                                                                                                                                            deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] );
                                                                                                                                                                                                                                                                                        } else {
                                                                                                                                                                                                                                                                                            deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] );
                                                                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 8258..8262

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 47.

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

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

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

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

                                                                                                                                                                                                                                                                            Refactorings

                                                                                                                                                                                                                                                                            Further Reading

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

                                                                                                                                                                                                                                                                                        for ( key in elems ) {
                                                                                                                                                                                                                                                                                            value = callback( elems[ key ], key, arg );
                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                            if ( value != null ) {
                                                                                                                                                                                                                                                                                                ret[ ret.length ] = value;
                                                                                                                                                                                                                                                                            src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 772..778

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 47.

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

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

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

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

                                                                                                                                                                                                                                                                            Refactorings

                                                                                                                                                                                                                                                                            Further Reading

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

                                                                                                                                                                                                                                                                                                if ( s.xhrFields ) {
                                                                                                                                                                                                                                                                                                    for ( i in s.xhrFields ) {
                                                                                                                                                                                                                                                                                                        xhr[ i ] = s.xhrFields[ i ];
                                                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 8559..8563

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 47.

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

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

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

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

                                                                                                                                                                                                                                                                            Refactorings

                                                                                                                                                                                                                                                                            Further Reading

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

                                                                                                                                                                                                                                                                                        for ( ; i < length; i++ ) {
                                                                                                                                                                                                                                                                                            value = callback( elems[ i ], i, arg );
                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                            if ( value != null ) {
                                                                                                                                                                                                                                                                                                ret[ ret.length ] = value;
                                                                                                                                                                                                                                                                            src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 782..788

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 47.

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

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

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

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

                                                                                                                                                                                                                                                                            Refactorings

                                                                                                                                                                                                                                                                            Further Reading

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

                                                                                                                                                                                                                                                                                jQuery.expr.filters.visible = function( elem ) {
                                                                                                                                                                                                                                                                                    return !jQuery.expr.filters.hidden( elem );
                                                                                                                                                                                                                                                                                };
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 8405..8407

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 46.

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

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

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

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

                                                                                                                                                                                                                                                                            Refactorings

                                                                                                                                                                                                                                                                            Further Reading

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

                                                                                                                                                                                                                                                                                        handler = function( event ) {
                                                                                                                                                                                                                                                                                            jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ), true );
                                                                                                                                                                                                                                                                                        };
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 4774..4776

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 45.

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

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

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

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

                                                                                                                                                                                                                                                                            Refactorings

                                                                                                                                                                                                                                                                            Further Reading

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

                                                                                                                                                                                                                                                                                        if ( selector ) {
                                                                                                                                                                                                                                                                                            handlers.splice( handlers.delegateCount++, 0, handleObj );
                                                                                                                                                                                                                                                                                        } else {
                                                                                                                                                                                                                                                                                            handlers.push( handleObj );
                                                                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 4176..4180

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 45.

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

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

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

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

                                                                                                                                                                                                                                                                            Refactorings

                                                                                                                                                                                                                                                                            Further Reading

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

                                                                                                                                                                                                                                                                            }, function( name, props ) {
                                                                                                                                                                                                                                                                                jQuery.fn[ name ] = function( speed, easing, callback ) {
                                                                                                                                                                                                                                                                                    return this.animate( props, speed, easing, callback );
                                                                                                                                                                                                                                                                                };
                                                                                                                                                                                                                                                                            });
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 6836..6840

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 45.

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

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

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

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

                                                                                                                                                                                                                                                                            Refactorings

                                                                                                                                                                                                                                                                            Further Reading

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

                                                                                                                                                                                                                                                                                trigger: function( type, data ) {
                                                                                                                                                                                                                                                                                    return this.each(function() {
                                                                                                                                                                                                                                                                                        jQuery.event.trigger( type, data, this );
                                                                                                                                                                                                                                                                                    });
                                                                                                                                                                                                                                                                                },
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 4894..4898

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 45.

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

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

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

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

                                                                                                                                                                                                                                                                            Refactorings

                                                                                                                                                                                                                                                                            Further Reading

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

                                                                                                                                                                                                                                                                                    if ( selector.selector !== undefined ) {
                                                                                                                                                                                                                                                                                        this.selector = selector.selector;
                                                                                                                                                                                                                                                                                        this.context = selector.context;
                                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 2821..2824

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                nodeName: function( elem, name ) {
                                                                                                                                                                                                                                                                                    return elem.nodeName && elem.nodeName.toUpperCase() === name.toUpperCase();
                                                                                                                                                                                                                                                                                },
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 340..342

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                            type === "$=" ?
                                                                                                                                                                                                                                                                                            value.substr(value.length - check.length) === check :
                                                                                                                                                                                                                                                                                            type === "|=" ?
                                                                                                                                                                                                                                                                                            value === check || value.substr(0, check.length + 1) === check + "-" :
                                                                                                                                                                                                                                                                                            false;
                                                                                                                                                                                                                                                                            src/thirdparty/jquery-2.1.3.js on lines 1658..1660

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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