amtgard/ORK3

View on GitHub
orkui/template/default/script/development-bundle/ui/jquery-ui-1.8.18.custom.js

Summary

Maintainability
F
2 yrs
Test Coverage

File jquery-ui-1.8.18.custom.js has 8844 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*!
 * jQuery UI 1.8.18
 *
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.

    Function _tabify has 229 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        _tabify: function( init ) {
            var self = this,
                o = this.options,
                fragmentId = /^#.+/; // Safari 2 reports '#' for an empty hash
    
    

      Function _generateHTML has 167 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          _generateHTML: function(inst) {
              var today = new Date();
              today = this._daylightSavingAdjust(
                  new Date(today.getFullYear(), today.getMonth(), today.getDate())); // clear time
              var isRTL = this._get(inst, 'isRTL');

        Function _create has 151 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            _create: function() {
                var self = this,
                    doc = this.element[ 0 ].ownerDocument,
                    suppressKeyPress;
        
        

          Function _create has 142 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              _create: function() {
                  var self = this,
                      o = this.options,
                      existingHandles = this.element.find( ".ui-slider-handle" ).addClass( "ui-state-default ui-corner-all" ),
                      handle = "<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>",

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

                _create: function() {
                    this.element.closest( "form" )
                        .unbind( "reset.button" )
                        .bind( "reset.button", formResetHandler );
            
            

              Function parseDate has 131 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  parseDate: function (format, value, settings) {
                      if (format == null || value == null)
                          throw 'Invalid arguments';
                      value = (typeof value == 'object' ? value.toString() : value + '');
                      if (value == '')

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

                $.fn.position = function( options ) {
                    if ( !options || !options.of ) {
                        return _position.apply( this, arguments );
                    }
                
                

                  Consider simplifying this complex logical expression.
                  Open

                              if(!((l-d < x1 && x1 < r+d && t-d < y1 && y1 < b+d) || (l-d < x1 && x1 < r+d && t-d < y2 && y2 < b+d) || (l-d < x2 && x2 < r+d && t-d < y1 && y1 < b+d) || (l-d < x2 && x2 < r+d && t-d < y2 && y2 < b+d))) {
                                  if(inst.snapElements[i].snapping) (inst.options.snap.release && inst.options.snap.release.call(inst.element, event, $.extend(inst._uiHash(), { snapItem: inst.snapElements[i].item })));
                                  inst.snapElements[i].snapping = false;
                                  continue;
                              }

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

                        _create: function() {
                            this.originalTitle = this.element.attr('title');
                            // #5742 - .attr() might return a DOMElement
                            if ( typeof this.originalTitle !== "string" ) {
                                this.originalTitle = "";

                      Function _create has 93 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          _create: function() {
                      
                              var self = this, o = this.options;
                              this.element.addClass("ui-resizable");
                      
                      

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

                            _create: function() {
                                var self = this,
                                    options = self.options;
                        
                                self.running = 0;

                          Function _toggle has 82 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              _toggle: function( toShow, toHide, data, clickedIsActive, down ) {
                                  var self = this,
                                      options = self.options;
                          
                                  self.toShow = toShow;

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

                            $.effects.size = function(o) {
                            
                                return this.queue(function() {
                            
                                    // Create element

                              Function Datepicker has 75 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              function Datepicker() {
                                  this.debug = false; // Change this to true to start debugging
                                  this._curInst = null; // The current instance in use
                                  this._keyEvent = false; // If the last event was a key event
                                  this._disabledInputs = []; // List of date picker inputs that have been disabled

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

                                    formatDate: function (format, date, settings) {
                                        if (!date)
                                            return '';
                                        var dayNamesShort = (settings ? settings.dayNamesShort : null) || this._defaults.dayNamesShort;
                                        var dayNames = (settings ? settings.dayNames : null) || this._defaults.dayNames;

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

                                          slide: function( options, additions ) {
                                              options = $.extend({
                                                  easing: "swing",
                                                  duration: 300
                                              }, options, additions );

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

                                        _showDatepicker: function(input) {
                                            input = input.target || input;
                                            if (input.nodeName.toLowerCase() != 'input') // find from button/image trigger
                                                input = $('input', input.parentNode)[0];
                                            if ($.datepicker._isDisabledDatepicker(input) || $.datepicker._lastInput == input) // already here

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

                                          _mouseDrag: function(event) {
                                              var self = this;
                                              this.dragged = true;
                                      
                                              if (this.options.disabled)

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

                                            _doKeyDown: function(event) {
                                                var inst = $.datepicker._getInst(event.target);
                                                var handled = true;
                                                var isRTL = inst.dpDiv.is('.ui-datepicker-rtl');
                                                inst._keyEvent = true;

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

                                              _clickHandler: function( event, target ) {
                                                  var options = this.options;
                                                  if ( options.disabled ) {
                                                      return;
                                                  }

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

                                                _mouseStart: function(event, overrideHandle, noActivation) {
                                            
                                                    var o = this.options, self = this;
                                                    this.currentContainer = this;
                                            
                                            

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

                                                  _mouseCapture: function( event ) {
                                                      var o = this.options,
                                                          position,
                                                          normValue,
                                                          distance,

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

                                                    _generateMonthYearHeader: function(inst, drawMonth, drawYear, minDate, maxDate,
                                                            secondary, monthNames, monthNamesShort) {
                                                        var changeMonth = this._get(inst, 'changeMonth');
                                                        var changeYear = this._get(inst, 'changeYear');
                                                        var showMonthAfterYear = this._get(inst, 'showMonthAfterYear');

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

                                                      _refreshValue: function() {
                                                          var oRange = this.options.range,
                                                              o = this.options,
                                                              self = this,
                                                              animate = ( !this._animateOff ) ? o.animate : false,

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

                                                        _mouseDrag: function(event) {
                                                    
                                                            //Compute the helpers position
                                                            this.position = this._generatePosition(event);
                                                            this.positionAbs = this._convertPositionTo("absolute");

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

                                                          _setOption: function(key, value){
                                                              var self = this,
                                                                  uiDialog = self.uiDialog;
                                                      
                                                              switch (key) {

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

                                                            _mouseStart: function(event) {
                                                                var self = this;
                                                        
                                                                this.opos = [event.pageX, event.pageY];
                                                        
                                                        

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

                                                              _clear: function(event, noPropagation) {
                                                          
                                                                  this.reverting = false;
                                                                  // We delay all events that have to be triggered to after the point where the placeholder has been removed and
                                                                  // everything else normalized again

                                                            Consider simplifying this complex logical expression.
                                                            Open

                                                                    if(!(/^(document|window|parent)$/).test(o.containment) && o.containment.constructor != Array) {
                                                                            var c = $(o.containment);
                                                                        var ce = c[0]; if(!ce) return;
                                                                        var co = c.offset();
                                                                        var over = ($(ce).css("overflow") != 'hidden');

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

                                                              $.effects.bounce = function(o) {
                                                              
                                                                  return this.queue(function() {
                                                              
                                                                      // Create element

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

                                                                    _determineDate: function(inst, date, defaultDate) {
                                                                        var offsetNumeric = function(offset) {
                                                                            var date = new Date();
                                                                            date.setDate(date.getDate() + offset);
                                                                            return date;

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

                                                                      drag: function(event, ui) {
                                                                  
                                                                          var inst = $(this).data("draggable"), self = this;
                                                                  
                                                                          var checkPos = function(o) {

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

                                                                    $.effects.explode = function(o) {
                                                                    
                                                                        return this.queue(function() {
                                                                    
                                                                        var rows = o.options.pieces ? Math.round(Math.sqrt(o.options.pieces)) : 3;

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

                                                                          _generatePosition: function(event) {
                                                                      
                                                                              var o = this.options, scroll = this.cssPosition == 'absolute' && !(this.scrollParent[0] != document && $.ui.contains(this.scrollParent[0], this.offsetParent[0])) ? this.offsetParent : this.scrollParent, scrollIsRootNode = (/(html|body)/i).test(scroll[0].tagName);
                                                                              var pageX = event.pageX;
                                                                              var pageY = event.pageY;

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

                                                                            _createButtons: function(buttons) {
                                                                                var self = this,
                                                                                    hasButtons = false,
                                                                                    uiDialogButtonPane = $('<div></div>')
                                                                                        .addClass(

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

                                                                              _makeResizable: function(handles) {
                                                                                  handles = (handles === undefined ? this.options.resizable : handles);
                                                                                  var self = this,
                                                                                      options = self.options,
                                                                                      // .ui-resizable has position: relative defined in the stylesheet

                                                                            Consider simplifying this complex logical expression.
                                                                            Open

                                                                                    if (this.floating && horizontalDirection) {
                                                                                        return ((horizontalDirection == "right" && isOverRightHalf) || (horizontalDirection == "left" && !isOverRightHalf));
                                                                                    } else {
                                                                                        return verticalDirection && ((verticalDirection == "down" && isOverBottomHalf) || (verticalDirection == "up" && !isOverBottomHalf));
                                                                                    }

                                                                              Consider simplifying this complex logical expression.
                                                                              Open

                                                                                      if(!(/^(document|window|parent)$/).test(o.containment)) {
                                                                                          var ce = $(o.containment)[0];
                                                                                          var co = $(o.containment).offset();
                                                                                          var over = ($(ce).css("overflow") != 'hidden');
                                                                              
                                                                              

                                                                                Consider simplifying this complex logical expression.
                                                                                Open

                                                                                        if ( ( ( $target[0].id != $.datepicker._mainDivId &&
                                                                                                $target.parents('#' + $.datepicker._mainDivId).length == 0 &&
                                                                                                !$target.hasClass($.datepicker.markerClassName) &&
                                                                                                !$target.closest("." + $.datepicker._triggerClass).length &&
                                                                                                $.datepicker._datepickerShowing && !($.datepicker._inDialog && $.blockUI) ) ) ||

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

                                                                                      _setOption: function( key, value ) {
                                                                                          var i,
                                                                                              valsLength = 0;
                                                                                  
                                                                                          if ( $.isArray( this.options.values ) ) {

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

                                                                                        destroy: function() {
                                                                                            var o = this.options;
                                                                                    
                                                                                            this.abort();
                                                                                    
                                                                                    

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

                                                                                          createWrapper: function(element) {
                                                                                      
                                                                                              // if the element is already wrapped, return it
                                                                                              if (element.parent().is('.ui-effects-wrapper')) {
                                                                                                  return element.parent();

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

                                                                                            load: function( index ) {
                                                                                                index = this._getIndex( index );
                                                                                                var self = this,
                                                                                                    o = this.options,
                                                                                                    a = this.anchors.eq( index )[ 0 ],

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

                                                                                              _contactContainers: function(event) {
                                                                                                  
                                                                                                  // get innermost container that intersects with item 
                                                                                                  var innermostContainer = null, innermostIndex = null;        
                                                                                                  

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

                                                                                                _size: function() {
                                                                                                    /* If the user has resized the dialog, the .ui-dialog and .ui-dialog-content
                                                                                                     * divs will both have width and height set, so we need to reset them
                                                                                                     */
                                                                                                    var options = this.options,

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

                                                                                                  _mouseStart: function(event) {
                                                                                              
                                                                                                      var o = this.options;
                                                                                              
                                                                                                      //Create and append the visible helper

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

                                                                                                    add: function( url, label, index ) {
                                                                                                        if ( index === undefined ) {
                                                                                                            index = this.anchors.length;
                                                                                                        }
                                                                                                
                                                                                                

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

                                                                                                      drag: function(event, ui) {
                                                                                                  
                                                                                                          var inst = $(this).data("draggable"), o = inst.options;
                                                                                                          var d = o.snapTolerance;
                                                                                                  
                                                                                                  

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

                                                                                                        _mouseDown: function(event) {
                                                                                                            // don't let more than one widget handle mouseStart
                                                                                                            if( mouseHandled ) { return };
                                                                                                    
                                                                                                            // we may have missed mouseup (out of window)

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

                                                                                                      $.ui.intersect = function(draggable, droppable, toleranceMode) {
                                                                                                      
                                                                                                          if (!droppable.offset) return false;
                                                                                                      
                                                                                                          var x1 = (draggable.positionAbs || draggable.position.absolute).left, x2 = x1 + draggable.helperProportions.width,

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

                                                                                                            _initSource: function() {
                                                                                                                var self = this,
                                                                                                                    array,
                                                                                                                    url;
                                                                                                                if ( $.isArray(this.options.source) ) {

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

                                                                                                          $.effects.animateClass = function(value, duration, easing, callback) {
                                                                                                              if ($.isFunction(easing)) {
                                                                                                                  callback = easing;
                                                                                                                  easing = null;
                                                                                                              }

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

                                                                                                                _generatePosition: function(event) {
                                                                                                            
                                                                                                                    var o = this.options, scroll = this.cssPosition == 'absolute' && !(this.scrollParent[0] != document && $.ui.contains(this.scrollParent[0], this.offsetParent[0])) ? this.offsetParent : this.scrollParent, scrollIsRootNode = (/(html|body)/i).test(scroll[0].tagName);
                                                                                                            
                                                                                                                    // This is another very weird special case that only happens for relative elements:

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

                                                                                                                  _resetButton: function() {
                                                                                                                      if ( this.type === "input" ) {
                                                                                                                          if ( this.options.label ) {
                                                                                                                              this.element.val( this.options.label );
                                                                                                                          }

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

                                                                                                                    _attachments: function(input, inst) {
                                                                                                                        var appendText = this._get(inst, 'appendText');
                                                                                                                        var isRTL = this._get(inst, 'isRTL');
                                                                                                                        if (inst.append)
                                                                                                                            inst.append.remove();

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

                                                                                                                      _position: function(position) {
                                                                                                                          var myAt = [],
                                                                                                                              offset = [0, 0],
                                                                                                                              isVisible;
                                                                                                                  
                                                                                                                  

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

                                                                                                                        rotate: function( ms, continuing ) {
                                                                                                                            var self = this,
                                                                                                                                o = this.options;
                                                                                                                    
                                                                                                                            var rotate = self._rotate || ( self._rotate = function( e ) {

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

                                                                                                                          _slide: function( event, index, newVal ) {
                                                                                                                              var otherVal,
                                                                                                                                  newValues,
                                                                                                                                  allowed;
                                                                                                                      
                                                                                                                      

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

                                                                                                                            _dialogDatepicker: function(input, date, onSelect, settings, pos) {
                                                                                                                                var inst = this._dialogInst; // internal instance
                                                                                                                                if (!inst) {
                                                                                                                                    this.uuid += 1;
                                                                                                                                    var id = 'dp' + this.uuid;

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

                                                                                                                          $.widget.bridge = function( name, object ) {
                                                                                                                              $.fn[ name ] = function( options ) {
                                                                                                                                  var isMethodCall = typeof options === "string",
                                                                                                                                      args = Array.prototype.slice.call( arguments, 1 ),
                                                                                                                                      returnValue = this;

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

                                                                                                                                _hideDatepicker: function(input) {
                                                                                                                                    var inst = this._curInst;
                                                                                                                                    if (!inst || (input && inst != $.data(input, PROP_NAME)))
                                                                                                                                        return;
                                                                                                                                    if (this._datepickerShowing) {

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

                                                                                                                                  open: function() {
                                                                                                                                      if (this._isOpen) { return; }
                                                                                                                              
                                                                                                                                      var self = this,
                                                                                                                                          options = self.options,

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

                                                                                                                                    close: function(event) {
                                                                                                                                        var self = this,
                                                                                                                                            maxZ, thisZ;
                                                                                                                                        
                                                                                                                                        if (false === self._trigger('beforeClose', event)) {

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

                                                                                                                                      _updateDatepicker: function(inst) {
                                                                                                                                          var self = this;
                                                                                                                                          self.maxRows = 4; //Reset the max number of rows being displayed (see #7043)
                                                                                                                                          var borders = $.datepicker._getBorders(inst.dpDiv);
                                                                                                                                          instActive = inst; // for delegate hover events

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

                                                                                                                                        _refreshItems: function(event) {
                                                                                                                                    
                                                                                                                                            this.items = [];
                                                                                                                                            this.containers = [this];
                                                                                                                                            var items = this.items;

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

                                                                                                                                          $.fn[ name ] = function( options ) {
                                                                                                                                              var isMethodCall = typeof options === "string",
                                                                                                                                                  args = Array.prototype.slice.call( arguments, 1 ),
                                                                                                                                                  returnValue = this;
                                                                                                                                      
                                                                                                                                      

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

                                                                                                                                            cancel: function() {
                                                                                                                                        
                                                                                                                                                var self = this;
                                                                                                                                        
                                                                                                                                                if(this.dragging) {

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

                                                                                                                                              _possibleChars: function (format) {
                                                                                                                                                  var chars = '';
                                                                                                                                                  var literal = false;
                                                                                                                                                  // Check whether a format character is doubled
                                                                                                                                                  var lookAhead = function(match) {

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

                                                                                                                                                    var offsetString = function(offset) {
                                                                                                                                                        try {
                                                                                                                                                            return $.datepicker.parseDate($.datepicker._get(inst, 'dateFormat'),
                                                                                                                                                                offset, $.datepicker._getFormatConfig(inst));
                                                                                                                                                        }

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

                                                                                                                                                  create: function(dialog) {
                                                                                                                                                      if (this.instances.length === 0) {
                                                                                                                                                          // prevent use of anchors and inputs
                                                                                                                                                          // we use a setTimeout in case the overlay is created from an
                                                                                                                                                          // event that we're going to be cancelling (see #2804)

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

                                                                                                                                                    drag: function(event, ui) {
                                                                                                                                                
                                                                                                                                                        var i = $(this).data("draggable"), o = i.options, scrolled = false;
                                                                                                                                                
                                                                                                                                                        if(i.scrollParent[0] != document && i.scrollParent[0].tagName != 'HTML') {

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

                                                                                                                                                  $.effects.highlight = function(o) {
                                                                                                                                                      return this.queue(function() {
                                                                                                                                                          var elem = $(this),
                                                                                                                                                              props = ['backgroundImage', 'backgroundColor', 'opacity'],
                                                                                                                                                              mode = $.effects.setMode(elem, o.options.mode || 'show'),

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

                                                                                                                                                        _makeDraggable: function() {
                                                                                                                                                            var self = this,
                                                                                                                                                                options = self.options,
                                                                                                                                                                doc = $(document),
                                                                                                                                                                heightBeforeDrag;

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

                                                                                                                                                          resize: function() {
                                                                                                                                                              var options = this.options,
                                                                                                                                                                  maxHeight;
                                                                                                                                                      
                                                                                                                                                              if ( options.fillSpace ) {

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

                                                                                                                                                            _optionDatepicker: function(target, name, value) {
                                                                                                                                                                var inst = this._getInst(target);
                                                                                                                                                                if (arguments.length == 2 && typeof name == 'string') {
                                                                                                                                                                    return (name == 'defaults' ? $.extend({}, $.datepicker._defaults) :
                                                                                                                                                                        (inst ? (name == 'all' ? $.extend({}, inst.settings) :

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

                                                                                                                                                              _determineButtonType: function() {
                                                                                                                                                          
                                                                                                                                                                  if ( this.element.is(":checkbox") ) {
                                                                                                                                                                      this.type = "checkbox";
                                                                                                                                                                  } else if ( this.element.is(":radio") ) {

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

                                                                                                                                                                resize: function(event, ui) {
                                                                                                                                                                    var self = $(this).data("resizable"), o = self.options,
                                                                                                                                                                            ps = self.containerSize, co = self.containerOffset, cs = self.size, cp = self.position,
                                                                                                                                                                            pRatio = self._aspectRatio || event.shiftKey, cop = { top:0, left:0 }, ce = self.containerElement;
                                                                                                                                                            
                                                                                                                                                            

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

                                                                                                                                                                  values: function( index, newValue ) {
                                                                                                                                                                      var vals,
                                                                                                                                                                          newValues,
                                                                                                                                                                          i;
                                                                                                                                                              
                                                                                                                                                              

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

                                                                                                                                                                $.effects.pulsate = function(o) {
                                                                                                                                                                    return this.queue(function() {
                                                                                                                                                                        var elem = $(this),
                                                                                                                                                                            mode = $.effects.setMode(elem, o.options.mode || 'show');
                                                                                                                                                                            times = ((o.options.times || 5) * 2) - 1;

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

                                                                                                                                                                      _keydown: function( event ) {
                                                                                                                                                                          if ( this.options.disabled || event.altKey || event.ctrlKey ) {
                                                                                                                                                                              return;
                                                                                                                                                                          }
                                                                                                                                                                  
                                                                                                                                                                  

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

                                                                                                                                                                        refreshPositions: function(fast) {
                                                                                                                                                                    
                                                                                                                                                                            //This has to be redone because due to the item being moved out/into the offsetParent, the offsetParent's position will change
                                                                                                                                                                            if(this.offsetParent && this.helper) {
                                                                                                                                                                                this.offset.parent = this._getParentOffset();

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

                                                                                                                                                                          _create: function() {
                                                                                                                                                                              var self = this;
                                                                                                                                                                      
                                                                                                                                                                              this.element.addClass("ui-selectable");
                                                                                                                                                                      
                                                                                                                                                                      

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

                                                                                                                                                                            drag: function(draggable, event) {
                                                                                                                                                                        
                                                                                                                                                                                //If you have a highly dynamic page, you might try this option. It renders positions every time you move the mouse.
                                                                                                                                                                                if(draggable.options.refreshPositions) $.ui.ddmanager.prepareOffsets(draggable, event);
                                                                                                                                                                        
                                                                                                                                                                        

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

                                                                                                                                                                              refresh: function() {
                                                                                                                                                                                  var isDisabled = this.element.is( ":disabled" );
                                                                                                                                                                                  if ( isDisabled !== this.options.disabled ) {
                                                                                                                                                                                      this._setOption( "disabled", isDisabled );
                                                                                                                                                                                  }

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

                                                                                                                                                                            $.effects.shake = function(o) {
                                                                                                                                                                            
                                                                                                                                                                                return this.queue(function() {
                                                                                                                                                                            
                                                                                                                                                                                    // Create element

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

                                                                                                                                                                              $.effects.transfer = function(o) {
                                                                                                                                                                                  return this.queue(function() {
                                                                                                                                                                                      var elem = $(this),
                                                                                                                                                                                          target = $(o.options.to),
                                                                                                                                                                                          endPosition = target.offset(),

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

                                                                                                                                                                                $.widget = function( name, base, prototype ) {
                                                                                                                                                                                    var namespace = name.split( "." )[ 0 ],
                                                                                                                                                                                        fullName;
                                                                                                                                                                                    name = name.split( "." )[ 1 ];
                                                                                                                                                                                    fullName = namespace + "-" + name;

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

                                                                                                                                                                                  $.effects.scale = function(o) {
                                                                                                                                                                                  
                                                                                                                                                                                      return this.queue(function() {
                                                                                                                                                                                  
                                                                                                                                                                                          // Create element

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

                                                                                                                                                                                    function _normalizeArguments(effect, options, speed, callback) {
                                                                                                                                                                                        // shift params for method overloading
                                                                                                                                                                                        if (typeof effect == 'object') {
                                                                                                                                                                                            callback = options;
                                                                                                                                                                                            speed = null;

                                                                                                                                                                                      Consider simplifying this complex logical expression.
                                                                                                                                                                                      Open

                                                                                                                                                                                                  if(!inst.snapElements[i].snapping && (ts || bs || ls || rs || first))
                                                                                                                                                                                                      (inst.options.snap.snap && inst.options.snap.snap.call(inst.element, event, $.extend(inst._uiHash(), { snapItem: inst.snapElements[i].item })));

                                                                                                                                                                                        Consider simplifying this complex logical expression.
                                                                                                                                                                                        Open

                                                                                                                                                                                                if(       this.options.tolerance == "pointer"
                                                                                                                                                                                                    || this.options.forcePointerForContainers
                                                                                                                                                                                                    || (this.options.tolerance != "pointer" && this.helperProportions[this.floating ? 'width' : 'height'] > item[this.floating ? 'width' : 'height'])
                                                                                                                                                                                                ) {
                                                                                                                                                                                                    return isOverElement;

                                                                                                                                                                                          Consider simplifying this complex logical expression.
                                                                                                                                                                                          Open

                                                                                                                                                                                                  if ($.datepicker._datepickerShowing)
                                                                                                                                                                                                      switch (event.keyCode) {
                                                                                                                                                                                                          case 9: $.datepicker._hideDatepicker();
                                                                                                                                                                                                                  handled = false;
                                                                                                                                                                                                                  break; // hide on tab out

                                                                                                                                                                                            Consider simplifying this complex logical expression.
                                                                                                                                                                                            Open

                                                                                                                                                                                                    if((this.options.revert == "invalid" && !dropped) || (this.options.revert == "valid" && dropped) || this.options.revert === true || ($.isFunction(this.options.revert) && this.options.revert.call(this.element, dropped))) {
                                                                                                                                                                                                        var self = this;
                                                                                                                                                                                                        $(this.helper).animate(this.originalPosition, parseInt(this.options.revertDuration, 10), function() {
                                                                                                                                                                                                            if(self._trigger("stop", event) !== false) {
                                                                                                                                                                                                                self._clear();

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

                                                                                                                                                                                                  _generateMonthYearHeader: function(inst, drawMonth, drawYear, minDate, maxDate,
                                                                                                                                                                                                          secondary, monthNames, monthNamesShort) {

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

                                                                                                                                                                                                    isOver: function( y, x, top, left, height, width ) {

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

                                                                                                                                                                                                      easeInBack: function (x, t, b, c, d, s) {

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

                                                                                                                                                                                                        easeOutBack: function (x, t, b, c, d, s) {

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

                                                                                                                                                                                                          easeInOutBack: function (x, t, b, c, d, s) {

                                                                                                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                    if (lookAhead("'"))
                                                                                                                                                                                                                                        output += "'";
                                                                                                                                                                                                                                    else
                                                                                                                                                                                                                                        literal = true;

                                                                                                                                                                                                          Avoid deeply nested control flow statements.
                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                  switch (col) {
                                                                                                                                                                                                                                      case 0: calender += ' ui-datepicker-group-first';
                                                                                                                                                                                                                                          cornerClass = ' ui-corner-' + (isRTL ? 'right' : 'left'); break;
                                                                                                                                                                                                                                      case numMonths[1]-1: calender += ' ui-datepicker-group-last';
                                                                                                                                                                                                                                          cornerClass = ' ui-corner-' + (isRTL ? 'left' : 'right'); break;

                                                                                                                                                                                                            Consider simplifying this complex logical expression.
                                                                                                                                                                                                            Open

                                                                                                                                                                                                                        if(
                                                                                                                                                                                                                            inst.options.greedy
                                                                                                                                                                                                                            && !inst.options.disabled
                                                                                                                                                                                                                            && inst.options.scope == draggable.options.scope
                                                                                                                                                                                                                            && inst.accept.call(inst.element[0], (draggable.currentItem || draggable.element))

                                                                                                                                                                                                              Consider simplifying this complex logical expression.
                                                                                                                                                                                                              Open

                                                                                                                                                                                                                          if ( ( this.options.values.length === 2 && this.options.range === true ) && 
                                                                                                                                                                                                                                  ( ( index === 0 && newVal > otherVal) || ( index === 1 && newVal < otherVal ) )
                                                                                                                                                                                                                              ) {
                                                                                                                                                                                                                              newVal = otherVal;
                                                                                                                                                                                                                          }

                                                                                                                                                                                                                Consider simplifying this complex logical expression.
                                                                                                                                                                                                                Open

                                                                                                                                                                                                                            if ( ( $li.hasClass( "ui-tabs-selected" ) && !o.collapsible) ||
                                                                                                                                                                                                                                $li.hasClass( "ui-state-disabled" ) ||
                                                                                                                                                                                                                                $li.hasClass( "ui-state-processing" ) ||
                                                                                                                                                                                                                                self.panels.filter( ":animated" ).length ||
                                                                                                                                                                                                                                self._trigger( "select", null, self._ui( this, $show[ 0 ] ) ) === false ) {

                                                                                                                                                                                                                  Consider simplifying this complex logical expression.
                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                          if (inst == $.datepicker._curInst && $.datepicker._datepickerShowing && inst.input &&
                                                                                                                                                                                                                                  // #6694 - don't focus the input if it's already focused
                                                                                                                                                                                                                                  // this breaks the change event in IE
                                                                                                                                                                                                                                  inst.input.is(':visible') && !inst.input.is(':disabled') && inst.input[0] != document.activeElement)
                                                                                                                                                                                                                              inst.input.focus();

                                                                                                                                                                                                                    Consider simplifying this complex logical expression.
                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                            if (
                                                                                                                                                                                                                                // ignore null and undefined values
                                                                                                                                                                                                                                value == null ||
                                                                                                                                                                                                                                // ignore functions (when does this occur?)
                                                                                                                                                                                                                                $.isFunction(value) ||

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

                                                                                                                                                                                                                          easeInOutSine: function (x, t, b, c, d) {

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

                                                                                                                                                                                                                            easeOutElastic: function (x, t, b, c, d) {

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

                                                                                                                                                                                                                              easeOutQuad: function (x, t, b, c, d) {

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

                                                                                                                                                                                                                                easeInQuad: function (x, t, b, c, d) {

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

                                                                                                                                                                                                                                  easeOutQuint: function (x, t, b, c, d) {

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

                                                                                                                                                                                                                                    easeOutExpo: function (x, t, b, c, d) {

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

                                                                                                                                                                                                                                      switchClass: function(remove,add,speed,easing,callback) {

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

                                                                                                                                                                                                                                        easeInCirc: function (x, t, b, c, d) {

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

                                                                                                                                                                                                                                          easeInCubic: function (x, t, b, c, d) {

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

                                                                                                                                                                                                                                            easeInOutCirc: function (x, t, b, c, d) {

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

                                                                                                                                                                                                                                              easeInOutQuart: function (x, t, b, c, d) {

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

                                                                                                                                                                                                                                                easeInOutBounce: function (x, t, b, c, d) {

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

                                                                                                                                                                                                                                                  easeInElastic: function (x, t, b, c, d) {

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

                                                                                                                                                                                                                                                    swing: function (x, t, b, c, d) {

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

                                                                                                                                                                                                                                                      easeInQuart: function (x, t, b, c, d) {

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

                                                                                                                                                                                                                                                        toggleClass: function(classNames, force, speed, easing, callback) {

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

                                                                                                                                                                                                                                                          easeInOutQuad: function (x, t, b, c, d) {

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

                                                                                                                                                                                                                                                            easeOutCubic: function (x, t, b, c, d) {

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

                                                                                                                                                                                                                                                              easeInOutCubic: function (x, t, b, c, d) {

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

                                                                                                                                                                                                                                                                easeOutQuart: function (x, t, b, c, d) {

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

                                                                                                                                                                                                                                                                  easeOutSine: function (x, t, b, c, d) {

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

                                                                                                                                                                                                                                                                    _toggle: function( toShow, toHide, data, clickedIsActive, down ) {

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

                                                                                                                                                                                                                                                                      easeInOutExpo: function (x, t, b, c, d) {

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

                                                                                                                                                                                                                                                                        easeInBounce: function (x, t, b, c, d) {

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

                                                                                                                                                                                                                                                                          _dialogDatepicker: function(input, date, onSelect, settings, pos) {

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

                                                                                                                                                                                                                                                                            easeInOutQuint: function (x, t, b, c, d) {

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

                                                                                                                                                                                                                                                                              easeInOutElastic: function (x, t, b, c, d) {

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

                                                                                                                                                                                                                                                                                easeOutCirc: function (x, t, b, c, d) {

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

                                                                                                                                                                                                                                                                                  easeInQuint: function (x, t, b, c, d) {

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

                                                                                                                                                                                                                                                                                    easeInExpo: function (x, t, b, c, d) {

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

                                                                                                                                                                                                                                                                                      easeOutBounce: function (x, t, b, c, d) {

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

                                                                                                                                                                                                                                                                                        easeInSine: function (x, t, b, c, d) {

                                                                                                                                                                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                                                                              return colors[$.trim(color).toLowerCase()];

                                                                                                                                                                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                                return;

                                                                                                                                                                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                                          return colors['transparent'];

                                                                                                                                                                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                                                                            return [parseInt(result[1]+result[1],16), parseInt(result[2]+result[2],16), parseInt(result[3]+result[3],16)];

                                                                                                                                                                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                                                                                      return true;

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

                                                                                                                                                                                                                                                                                                (function( $, undefined ) {
                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                $.extend($.ui, { datepicker: { version: "1.8.18" } });
                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                var PROP_NAME = 'datepicker';
                                                                                                                                                                                                                                                                                                orkui/template/default/script/development-bundle/ui/jquery.ui.datepicker.js on lines 13..1826

                                                                                                                                                                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                                Tuning

                                                                                                                                                                                                                                                                                                This issue has a mass of 21050.

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

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

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

                                                                                                                                                                                                                                                                                                See codeclimate-duplication's documentation for more 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( $, undefined ) {
                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                $.widget("ui.sortable", $.ui.mouse, {
                                                                                                                                                                                                                                                                                                    widgetEventPrefix: "sort",
                                                                                                                                                                                                                                                                                                    ready: false,
                                                                                                                                                                                                                                                                                                orkui/template/default/script/development-bundle/ui/jquery.ui.sortable.js on lines 15..1081

                                                                                                                                                                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                                Tuning

                                                                                                                                                                                                                                                                                                This issue has a mass of 14226.

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

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

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

                                                                                                                                                                                                                                                                                                See codeclimate-duplication's documentation for more 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( $, undefined ) {
                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                $.widget("ui.draggable", $.ui.mouse, {
                                                                                                                                                                                                                                                                                                    widgetEventPrefix: "drag",
                                                                                                                                                                                                                                                                                                    options: {
                                                                                                                                                                                                                                                                                                orkui/template/default/script/development-bundle/ui/jquery.ui.draggable.js on lines 15..825

                                                                                                                                                                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                                Tuning

                                                                                                                                                                                                                                                                                                This issue has a mass of 11340.

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

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

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

                                                                                                                                                                                                                                                                                                See codeclimate-duplication's documentation for more 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( $, undefined ) {
                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                $.widget("ui.resizable", $.ui.mouse, {
                                                                                                                                                                                                                                                                                                    widgetEventPrefix: "resize",
                                                                                                                                                                                                                                                                                                    options: {
                                                                                                                                                                                                                                                                                                orkui/template/default/script/development-bundle/ui/jquery.ui.resizable.js on lines 15..808

                                                                                                                                                                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                                Tuning

                                                                                                                                                                                                                                                                                                This issue has a mass of 10662.

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

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

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

                                                                                                                                                                                                                                                                                                See codeclimate-duplication's documentation for more 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.effects || (function($, undefined) {
                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                $.effects = {};
                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                orkui/template/default/script/development-bundle/ui/jquery.effects.core.js on lines 10..763

                                                                                                                                                                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                                Tuning

                                                                                                                                                                                                                                                                                                This issue has a mass of 7500.

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

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

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

                                                                                                                                                                                                                                                                                                See codeclimate-duplication's documentation for more 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( $, undefined ) {
                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                var tabId = 0,
                                                                                                                                                                                                                                                                                                    listId = 0;
                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                orkui/template/default/script/development-bundle/ui/jquery.ui.tabs.js on lines 14..758

                                                                                                                                                                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                                Tuning

                                                                                                                                                                                                                                                                                                This issue has a mass of 6692.

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

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

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

                                                                                                                                                                                                                                                                                                See codeclimate-duplication's documentation for more 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( $, undefined ) {
                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                var uiDialogClasses =
                                                                                                                                                                                                                                                                                                        'ui-dialog ' +
                                                                                                                                                                                                                                                                                                        'ui-widget ' +
                                                                                                                                                                                                                                                                                                orkui/template/default/script/development-bundle/ui/jquery.ui.dialog.js on lines 19..878

                                                                                                                                                                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                                Tuning

                                                                                                                                                                                                                                                                                                This issue has a mass of 6680.

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

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

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

                                                                                                                                                                                                                                                                                                See codeclimate-duplication's documentation for more 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( $, undefined ) {
                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                // number of pages in a slider
                                                                                                                                                                                                                                                                                                // (how many times can you page up/down to go through the whole range)
                                                                                                                                                                                                                                                                                                var numPages = 5;
                                                                                                                                                                                                                                                                                                orkui/template/default/script/development-bundle/ui/jquery.ui.slider.js on lines 15..662

                                                                                                                                                                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                                Tuning

                                                                                                                                                                                                                                                                                                This issue has a mass of 5975.

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

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

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

                                                                                                                                                                                                                                                                                                See codeclimate-duplication's documentation for more 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( $, undefined ) {
                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                $.widget( "ui.accordion", {
                                                                                                                                                                                                                                                                                                    options: {
                                                                                                                                                                                                                                                                                                        active: 0,
                                                                                                                                                                                                                                                                                                orkui/template/default/script/development-bundle/ui/jquery.ui.accordion.js on lines 14..611

                                                                                                                                                                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                                Tuning

                                                                                                                                                                                                                                                                                                This issue has a mass of 4915.

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

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

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

                                                                                                                                                                                                                                                                                                See codeclimate-duplication's documentation for more 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( $, undefined ) {
                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                // used to prevent race conditions with remote data sources
                                                                                                                                                                                                                                                                                                var requestIndex = 0;
                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                orkui/template/default/script/development-bundle/ui/jquery.ui.autocomplete.js on lines 15..440

                                                                                                                                                                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                                Tuning

                                                                                                                                                                                                                                                                                                This issue has a mass of 3577.

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

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

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

                                                                                                                                                                                                                                                                                                See codeclimate-duplication's documentation for more 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( $, undefined ) {
                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                $.widget("ui.droppable", {
                                                                                                                                                                                                                                                                                                    widgetEventPrefix: "drop",
                                                                                                                                                                                                                                                                                                    options: {
                                                                                                                                                                                                                                                                                                orkui/template/default/script/development-bundle/ui/jquery.ui.droppable.js on lines 16..296

                                                                                                                                                                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                                Tuning

                                                                                                                                                                                                                                                                                                This issue has a mass of 3560.

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

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

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

                                                                                                                                                                                                                                                                                                See codeclimate-duplication's documentation for more 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( $, undefined ) {
                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                var lastActive, startXPos, startYPos, clickDragged,
                                                                                                                                                                                                                                                                                                    baseClasses = "ui-button ui-widget ui-state-default ui-corner-all",
                                                                                                                                                                                                                                                                                                    stateClasses = "ui-state-hover ui-state-active ",
                                                                                                                                                                                                                                                                                                orkui/template/default/script/development-bundle/ui/jquery.ui.button.js on lines 14..414

                                                                                                                                                                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                                Tuning

                                                                                                                                                                                                                                                                                                This issue has a mass of 3427.

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

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

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

                                                                                                                                                                                                                                                                                                See codeclimate-duplication's documentation for more 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( $, undefined ) {
                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                $.ui = $.ui || {};
                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                var horizontalPositions = /left|center|right/,
                                                                                                                                                                                                                                                                                                orkui/template/default/script/development-bundle/ui/jquery.ui.position.js on lines 10..298

                                                                                                                                                                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                                Tuning

                                                                                                                                                                                                                                                                                                This issue has a mass of 3036.

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

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

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

                                                                                                                                                                                                                                                                                                See codeclimate-duplication's documentation for more 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( $, undefined ) {
                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                $.effects.puff = function(o) {
                                                                                                                                                                                                                                                                                                    return this.queue(function() {
                                                                                                                                                                                                                                                                                                        var elem = $(this),
                                                                                                                                                                                                                                                                                                orkui/template/default/script/development-bundle/ui/jquery.effects.scale.js on lines 13..178

                                                                                                                                                                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                                Tuning

                                                                                                                                                                                                                                                                                                This issue has a mass of 2797.

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

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

                                                                                                                                                                                                                                                                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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( $, undefined ) {
                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                // prevent duplicate loading
                                                                                                                                                                                                                                                                                                // this is only a problem because we proxy existing functions
                                                                                                                                                                                                                                                                                                // and we don't want to double proxy them
                                                                                                                                                                                                                                                                                                orkui/template/default/script/development-bundle/ui/jquery.ui.core.js on lines 10..319

                                                                                                                                                                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                                Tuning

                                                                                                                                                                                                                                                                                                This issue has a mass of 2579.

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

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

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

                                                                                                                                                                                                                                                                                                See codeclimate-duplication's documentation for more 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( $, undefined ) {
                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                $.widget("ui.selectable", $.ui.mouse, {
                                                                                                                                                                                                                                                                                                    options: {
                                                                                                                                                                                                                                                                                                        appendTo: 'body',
                                                                                                                                                                                                                                                                                                orkui/template/default/script/development-bundle/ui/jquery.ui.selectable.js on lines 15..267

                                                                                                                                                                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                                Tuning

                                                                                                                                                                                                                                                                                                This issue has a mass of 2265.

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

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

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

                                                                                                                                                                                                                                                                                                See codeclimate-duplication's documentation for more 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( $, undefined ) {
                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                // jQuery 1.4+
                                                                                                                                                                                                                                                                                                if ( $.cleanData ) {
                                                                                                                                                                                                                                                                                                    var _cleanData = $.cleanData;
                                                                                                                                                                                                                                                                                                orkui/template/default/script/development-bundle/ui/jquery.ui.widget.js on lines 10..272

                                                                                                                                                                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                                Tuning

                                                                                                                                                                                                                                                                                                This issue has a mass of 2027.

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

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

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

                                                                                                                                                                                                                                                                                                See codeclimate-duplication's documentation for more 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($) {
                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                $.widget("ui.menu", {
                                                                                                                                                                                                                                                                                                    _create: function() {
                                                                                                                                                                                                                                                                                                        var self = this;
                                                                                                                                                                                                                                                                                                orkui/template/default/script/development-bundle/ui/jquery.ui.autocomplete.js on lines 459..624

                                                                                                                                                                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                                Tuning

                                                                                                                                                                                                                                                                                                This issue has a mass of 1621.

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

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

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

                                                                                                                                                                                                                                                                                                See codeclimate-duplication's documentation for more 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( $, undefined ) {
                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                var mouseHandled = false;
                                                                                                                                                                                                                                                                                                $( document ).mouseup( function( e ) {
                                                                                                                                                                                                                                                                                                    mouseHandled = false;
                                                                                                                                                                                                                                                                                                orkui/template/default/script/development-bundle/ui/jquery.ui.mouse.js on lines 13..162

                                                                                                                                                                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                                Tuning

                                                                                                                                                                                                                                                                                                This issue has a mass of 1274.

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

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

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

                                                                                                                                                                                                                                                                                                See codeclimate-duplication's documentation for more 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( $, undefined ) {
                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                $.effects.bounce = function(o) {
                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                    return this.queue(function() {
                                                                                                                                                                                                                                                                                                orkui/template/default/script/development-bundle/ui/jquery.effects.bounce.js on lines 13..78

                                                                                                                                                                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                                Tuning

                                                                                                                                                                                                                                                                                                This issue has a mass of 1112.

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

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

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

                                                                                                                                                                                                                                                                                                See codeclimate-duplication's documentation for more 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( $, undefined ) {
                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                $.effects.explode = function(o) {
                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                    return this.queue(function() {
                                                                                                                                                                                                                                                                                                orkui/template/default/script/development-bundle/ui/jquery.effects.explode.js on lines 13..79

                                                                                                                                                                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                                Tuning

                                                                                                                                                                                                                                                                                                This issue has a mass of 975.

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

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

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

                                                                                                                                                                                                                                                                                                See codeclimate-duplication's documentation for more 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( $, undefined ) {
                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                $.widget( "ui.progressbar", {
                                                                                                                                                                                                                                                                                                    options: {
                                                                                                                                                                                                                                                                                                        value: 0,
                                                                                                                                                                                                                                                                                                orkui/template/default/script/development-bundle/ui/jquery.ui.progressbar.js on lines 14..109

                                                                                                                                                                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                                Tuning

                                                                                                                                                                                                                                                                                                This issue has a mass of 725.

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

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

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

                                                                                                                                                                                                                                                                                                See codeclimate-duplication's documentation for more 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( $, undefined ) {
                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                $.effects.fold = function(o) {
                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                    return this.queue(function() {
                                                                                                                                                                                                                                                                                                orkui/template/default/script/development-bundle/ui/jquery.effects.fold.js on lines 13..56

                                                                                                                                                                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                                Tuning

                                                                                                                                                                                                                                                                                                This issue has a mass of 683.

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

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

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

                                                                                                                                                                                                                                                                                                See codeclimate-duplication's documentation for more 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( $, undefined ) {
                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                $.effects.shake = function(o) {
                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                    return this.queue(function() {
                                                                                                                                                                                                                                                                                                orkui/template/default/script/development-bundle/ui/jquery.effects.shake.js on lines 13..57

                                                                                                                                                                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                                Tuning

                                                                                                                                                                                                                                                                                                This issue has a mass of 661.

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

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

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

                                                                                                                                                                                                                                                                                                See codeclimate-duplication's documentation for more 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( $, undefined ) {
                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                $.effects.clip = function(o) {
                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                    return this.queue(function() {
                                                                                                                                                                                                                                                                                                orkui/template/default/script/development-bundle/ui/jquery.effects.clip.js on lines 13..54

                                                                                                                                                                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                                Tuning

                                                                                                                                                                                                                                                                                                This issue has a mass of 570.

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

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

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

                                                                                                                                                                                                                                                                                                See codeclimate-duplication's documentation for more 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( $, undefined ) {
                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                $.effects.drop = function(o) {
                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                    return this.queue(function() {
                                                                                                                                                                                                                                                                                                orkui/template/default/script/development-bundle/ui/jquery.effects.drop.js on lines 13..50

                                                                                                                                                                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                                Tuning

                                                                                                                                                                                                                                                                                                This issue has a mass of 568.

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

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

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

                                                                                                                                                                                                                                                                                                See codeclimate-duplication's documentation for more 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( $, undefined ) {
                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                $.effects.slide = function(o) {
                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                    return this.queue(function() {
                                                                                                                                                                                                                                                                                                orkui/template/default/script/development-bundle/ui/jquery.effects.slide.js on lines 13..50

                                                                                                                                                                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                                Tuning

                                                                                                                                                                                                                                                                                                This issue has a mass of 563.

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

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

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

                                                                                                                                                                                                                                                                                                See codeclimate-duplication's documentation for more 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( $, undefined ) {
                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                $.effects.blind = function(o) {
                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                    return this.queue(function() {
                                                                                                                                                                                                                                                                                                orkui/template/default/script/development-bundle/ui/jquery.effects.blind.js on lines 13..49

                                                                                                                                                                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                                Tuning

                                                                                                                                                                                                                                                                                                This issue has a mass of 443.

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

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

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

                                                                                                                                                                                                                                                                                                See codeclimate-duplication's documentation for more 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( $, undefined ) {
                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                $.effects.pulsate = function(o) {
                                                                                                                                                                                                                                                                                                    return this.queue(function() {
                                                                                                                                                                                                                                                                                                        var elem = $(this),
                                                                                                                                                                                                                                                                                                orkui/template/default/script/development-bundle/ui/jquery.effects.pulsate.js on lines 13..51

                                                                                                                                                                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                                Tuning

                                                                                                                                                                                                                                                                                                This issue has a mass of 425.

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

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

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

                                                                                                                                                                                                                                                                                                See codeclimate-duplication's documentation for more 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( $, undefined ) {
                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                $.effects.highlight = function(o) {
                                                                                                                                                                                                                                                                                                    return this.queue(function() {
                                                                                                                                                                                                                                                                                                        var elem = $(this),
                                                                                                                                                                                                                                                                                                orkui/template/default/script/development-bundle/ui/jquery.effects.highlight.js on lines 13..50

                                                                                                                                                                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                                Tuning

                                                                                                                                                                                                                                                                                                This issue has a mass of 350.

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

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

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

                                                                                                                                                                                                                                                                                                See codeclimate-duplication's documentation for more 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( $, undefined ) {
                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                $.effects.transfer = function(o) {
                                                                                                                                                                                                                                                                                                    return this.queue(function() {
                                                                                                                                                                                                                                                                                                        var elem = $(this),
                                                                                                                                                                                                                                                                                                orkui/template/default/script/development-bundle/ui/jquery.effects.transfer.js on lines 13..45

                                                                                                                                                                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                                Tuning

                                                                                                                                                                                                                                                                                                This issue has a mass of 322.

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

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

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

                                                                                                                                                                                                                                                                                                See codeclimate-duplication's documentation for more 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( $, undefined ) {
                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                $.effects.fade = function(o) {
                                                                                                                                                                                                                                                                                                    return this.queue(function() {
                                                                                                                                                                                                                                                                                                        var elem = $(this),
                                                                                                                                                                                                                                                                                                orkui/template/default/script/development-bundle/ui/jquery.effects.fade.js on lines 13..32

                                                                                                                                                                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                                Tuning

                                                                                                                                                                                                                                                                                                This issue has a mass of 181.

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

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

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