antimalware/manul

View on GitHub
src/log_analyzer/js/analyzer.table.js

Summary

Maintainability
F
1 mo
Test Coverage

File analyzer.table.js has 4498 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/* ../../libs/bem-core/node_modules/ym/modules.js begin */
/**
 * Modules
 *
 * Copyright (c) 2013 Filatov Dmitry (dfilatov@yandex-team.ru)
Severity: Major
Found in src/log_analyzer/js/analyzer.table.js - About 1 wk to fix

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

        create = function() {
            var curOptions = {
                    trackCircularDependencies : true,
                    allowMultipleDeclarations : true,
                    onError                   : function(e) {
    Severity: Major
    Found in src/log_analyzer/js/analyzer.table.js - About 1 day to fix

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

              _buildDatepickerGridBEMJSON: function (dateCtx) {
                  var self = this,
                      grid = [],
                      gridMap = this._buildGridMap(dateCtx);
      
      
      Severity: Major
      Found in src/log_analyzer/js/analyzer.table.js - About 4 hrs to fix

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

            nextTick = (function() {
                var fns = [],
                    enqueueFn = function(fn) {
                        return fns.push(fn) === 1;
                    },
        Severity: Major
        Found in src/log_analyzer/js/analyzer.table.js - About 2 hrs to fix

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

          function FastClick(layer) {
              'use strict';
              var oldOnClick, self = this;
          
          
          
          Severity: Major
          Found in src/log_analyzer/js/analyzer.table.js - About 2 hrs to fix

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

                decl : function(decl, props, staticProps) {
                    // string as block
                    typeof decl === 'string' && (decl = { block : decl });
                    // inherit from itself
                    if(arguments.length <= 2 &&
            Severity: Major
            Found in src/log_analyzer/js/analyzer.table.js - About 2 hrs to fix

              Consider simplifying this complex logical expression.
              Open

                   var __$ref={};function apply(ctx){try{return applyc(ctx||this,__$ref)}catch(e){(ctx||this).xjstContext=e;throw e}}exports.apply=apply;function applyc(__$ctx,__$ref){var __$t=__$ctx._mode;if(__$t==="content"){__$ctx.__$a=0;return __$ctx.ctx.content}else if(__$t==="mix"){__$ctx.__$a=0;return undefined}else if(__$t==="bem"){__$ctx.__$a=0;return undefined}else if(__$t==="js"){__$ctx.__$a=0;return undefined}else if(__$t==="cls"){__$ctx.__$a=0;return undefined}else if(__$t==="attrs"){__$ctx.__$a=0;return undefined}else if(__$t==="tag"){__$ctx.__$a=0;return undefined}else if(__$t==="default"){__$ctx.__$a=0;var __$r=__$b8(__$ctx,__$ref);if(__$r!==__$ref)return __$r}else if(__$t===""){if(__$ctx.ctx&&__$ctx.ctx._vow&&__$ctx.__$a!==1){__$ctx.__$a=0;var __$r=__$b9(__$ctx,__$ref);if(__$r!==__$ref)return __$r}if(__$ctx._.isSimple(__$ctx.ctx)){__$ctx.__$a=0;var __$r=__$b10(__$ctx,__$ref);if(__$r!==__$ref)return __$r}if(!__$ctx.ctx){__$ctx.__$a=0;var __$r=__$b11(__$ctx,__$ref);if(__$r!==__$ref)return __$r}if(__$ctx._.isArray(__$ctx.ctx)){__$ctx.__$a=0;var __$r=__$b12(__$ctx,__$ref);if(__$r!==__$ref)return __$r}__$ctx.__$a=0;var __$r=__$b13(__$ctx,__$ref);if(__$r!==__$ref)return __$r}__$ctx.__$a=0}[function(exports){var BEM_={},toString=Object.prototype.toString,isArray=Array.isArray||function(obj){return toString.call(obj)==="[object Array]"},SHORT_TAGS={area:1,base:1,br:1,col:1,command:1,embed:1,hr:1,img:1,input:1,keygen:1,link:1,meta:1,param:1,source:1,wbr:1};!function(BEM,undefined){var MOD_DELIM="_",ELEM_DELIM="__",NAME_PATTERN="[a-zA-Z0-9-]+";function buildModPostfix(modName,modVal){var res=MOD_DELIM+modName;if(modVal!==true)res+=MOD_DELIM+modVal;return res}function buildBlockClass(name,modName,modVal){var res=name;if(modVal)res+=buildModPostfix(modName,modVal);return res}function buildElemClass(block,name,modName,modVal){var res=buildBlockClass(block)+ELEM_DELIM+name;if(modVal)res+=buildModPostfix(modName,modVal);return res}BEM.INTERNAL={NAME_PATTERN:NAME_PATTERN,MOD_DELIM:MOD_DELIM,ELEM_DELIM:ELEM_DELIM,buildModPostfix:buildModPostfix,buildClass:function(block,elem,modName,modVal){var typeOfModName=typeof modName;if(typeOfModName==="string"||typeOfModName==="boolean"){var typeOfModVal=typeof modVal;if(typeOfModVal!=="string"&&typeOfModVal!=="boolean"){modVal=modName;modName=elem;elem=undefined}}else if(typeOfModName!=="undefined"){modName=undefined}else if(elem&&typeof elem!=="string"){elem=undefined}if(!(elem||modName)){return block}if(elem)return buildElemClass(block,elem,modName,modVal);else return buildBlockClass(block,modName,modVal)},buildModsClasses:function(block,elem,mods){var res="";if(mods){var modName;for(modName in mods){if(!mods.hasOwnProperty(modName))continue;var modVal=mods[modName];if(!modVal&&modVal!==0)continue;typeof modVal!=="boolean"&&(modVal+="");res+=" "+(elem?buildElemClass(block,elem,modName,modVal):buildBlockClass(block,modName,modVal))}}return res},buildClasses:function(block,elem,mods){var res="";if(elem)res+=buildElemClass(block,elem);else res+=buildBlockClass(block);res+=this.buildModsClasses(block,elem,mods);return res}}}(BEM_);var ts={'"':"&quot;","&":"&amp;","<":"&lt;",">":"&gt;"},f=function(t){return ts[t]||t};var buildEscape=function(r){r=new RegExp(r,"g");return function(s){return(""+s).replace(r,f)}};function BEMContext(context,apply_){this.ctx=typeof context===null?"":context;this.apply=apply_;this._str="";var self=this;this._buf={push:function(){var chunks=Array.prototype.slice.call(arguments).join("");self._str+=chunks},join:function(){return this._str}};this._=this;this._start=true;this._mode="";this._listLength=0;this._notNewList=false;this.position=0;this.block=undefined;this.elem=undefined;this.mods=undefined;this.elemMods=undefined}BEMContext.prototype.isArray=isArray;BEMContext.prototype.isSimple=function isSimple(obj){var t=typeof obj;return t==="string"||t==="number"||t==="boolean"};BEMContext.prototype.isShortTag=function isShortTag(t){return SHORT_TAGS.hasOwnProperty(t)};BEMContext.prototype.extend=function extend(o1,o2){if(!o1||!o2)return o1||o2;var res={},n;for(n in o1)o1.hasOwnProperty(n)&&(res[n]=o1[n]);for(n in o2)o2.hasOwnProperty(n)&&(res[n]=o2[n]);return res};var cnt=0,id=+new Date,expando="__"+id,get=function(){return"uniq"+id+ ++cnt};BEMContext.prototype.identify=function(obj,onlyGet){if(!obj)return get();if(onlyGet||obj[expando]){return obj[expando]}else{return obj[expando]=get()}};BEMContext.prototype.xmlEscape=buildEscape("[&<>]");BEMContext.prototype.attrEscape=buildEscape('["&<>]');BEMContext.prototype.BEM=BEM_;BEMContext.prototype.isFirst=function isFirst(){return this.position===1};BEMContext.prototype.isLast=function isLast(){return this.position===this._listLength};BEMContext.prototype.generateId=function generateId(){return this.identify(this.ctx)};var oldApply=exports.apply;exports.apply=BEMContext.apply=function _apply(context){var ctx=new BEMContext(context||this,oldApply);ctx.apply();return ctx._str};BEMContext.prototype.reapply=BEMContext.apply}].forEach(function(fn){fn(exports,this)},{recordExtensions:function(ctx){ctx._str=undefined;ctx._mode=undefined;ctx.block=undefined;ctx.elem=undefined;ctx._notNewList=undefined;ctx.position=undefined;ctx._listLength=undefined;ctx.ctx=undefined;ctx.__$a=0;ctx._currBlock=undefined;ctx.mods=undefined;ctx.elemMods=undefined}});function __$b8(__$ctx,__$ref){__$ctx.__$a=0;var _this__$0=__$ctx,BEM___$1=_this__$0.BEM,v__$2=__$ctx.ctx,isBEM__$3,tag__$4,result__$5;var __$r__$6;var __$l0__$7=__$ctx._str;__$ctx._str="";var __$r__$8;var __$l1__$9=__$ctx._mode;__$ctx._mode="tag";__$r__$8=applyc(__$ctx,__$ref);__$ctx._mode=__$l1__$9;tag__$4=__$r__$8;typeof tag__$4!=="undefined"||(tag__$4=v__$2.tag);typeof tag__$4!=="undefined"||(tag__$4="div");if(tag__$4){var jsParams__$10,js__$11;if(__$ctx.block&&v__$2.js!==false){var __$r__$12;var __$l2__$13=__$ctx._mode;__$ctx._mode="js";__$r__$12=applyc(__$ctx,__$ref);__$ctx._mode=__$l2__$13;js__$11=__$r__$12;js__$11=js__$11?__$ctx._.extend(v__$2.js,js__$11===true?{}:js__$11):v__$2.js===true?{}:v__$2.js;js__$11&&((jsParams__$10={})[BEM___$1.INTERNAL.buildClass(__$ctx.block,v__$2.elem)]=js__$11)}__$ctx._str+="<"+tag__$4;var __$r__$14;var __$l3__$15=__$ctx._mode;__$ctx._mode="bem";__$r__$14=applyc(__$ctx,__$ref);__$ctx._mode=__$l3__$15;isBEM__$3=__$r__$14;typeof isBEM__$3!=="undefined"||(isBEM__$3=typeof v__$2.bem!=="undefined"?v__$2.bem:v__$2.block||v__$2.elem);var __$r__$17;var __$l4__$18=__$ctx._mode;__$ctx._mode="cls";__$r__$17=applyc(__$ctx,__$ref);__$ctx._mode=__$l4__$18;var cls__$16=__$r__$17;cls__$16||(cls__$16=v__$2.cls);var addJSInitClass__$19=v__$2.block&&jsParams__$10;if(isBEM__$3||cls__$16){__$ctx._str+=' class="';if(isBEM__$3){__$ctx._str+=BEM___$1.INTERNAL.buildClasses(__$ctx.block,v__$2.elem,v__$2.elemMods||v__$2.mods);var __$r__$21;var __$l5__$22=__$ctx._mode;__$ctx._mode="mix";__$r__$21=applyc(__$ctx,__$ref);__$ctx._mode=__$l5__$22;var mix__$20=__$r__$21;v__$2.mix&&(mix__$20=mix__$20?mix__$20.concat(v__$2.mix):v__$2.mix);if(mix__$20){var visited__$23={},visitedKey__$24=function(block,elem){return(block||"")+"__"+(elem||"")};visited__$23[visitedKey__$24(__$ctx.block,__$ctx.elem)]=true;if(!__$ctx._.isArray(mix__$20))mix__$20=[mix__$20];for(var i__$25=0;i__$25<mix__$20.length;i__$25++){var mixItem__$26=mix__$20[i__$25],hasItem__$27=mixItem__$26.block||mixItem__$26.elem,block__$28=mixItem__$26.block||mixItem__$26._block||_this__$0.block,elem__$29=mixItem__$26.elem||mixItem__$26._elem||_this__$0.elem;if(hasItem__$27)__$ctx._str+=" ";__$ctx._str+=BEM___$1.INTERNAL[hasItem__$27?"buildClasses":"buildModsClasses"](block__$28,mixItem__$26.elem||mixItem__$26._elem||(mixItem__$26.block?undefined:_this__$0.elem),mixItem__$26.elemMods||mixItem__$26.mods);if(mixItem__$26.js){(jsParams__$10||(jsParams__$10={}))[BEM___$1.INTERNAL.buildClass(block__$28,mixItem__$26.elem)]=mixItem__$26.js===true?{}:mixItem__$26.js;addJSInitClass__$19||(addJSInitClass__$19=block__$28&&!mixItem__$26.elem)}if(hasItem__$27&&!visited__$23[visitedKey__$24(block__$28,elem__$29)]){visited__$23[visitedKey__$24(block__$28,elem__$29)]=true;var __$r__$31;var __$l6__$32=__$ctx._mode;__$ctx._mode="mix";var __$l7__$33=__$ctx.block;__$ctx.block=block__$28;var __$l8__$34=__$ctx.elem;__$ctx.elem=elem__$29;__$r__$31=applyc(__$ctx,__$ref);__$ctx._mode=__$l6__$32;__$ctx.block=__$l7__$33;__$ctx.elem=__$l8__$34;var nestedMix__$30=__$r__$31;if(nestedMix__$30){for(var j__$35=0;j__$35<nestedMix__$30.length;j__$35++){var nestedItem__$36=nestedMix__$30[j__$35];if(!nestedItem__$36.block&&!nestedItem__$36.elem||!visited__$23[visitedKey__$24(nestedItem__$36.block,nestedItem__$36.elem)]){nestedItem__$36._block=block__$28;nestedItem__$36._elem=elem__$29;mix__$20.splice(i__$25+1,0,nestedItem__$36)}}}}}}}if(cls__$16)__$ctx._str+=isBEM__$3?" "+cls__$16:cls__$16;if(addJSInitClass__$19)__$ctx._str+=' i-bem"';else __$ctx._str+='"'}if(isBEM__$3&&jsParams__$10){__$ctx._str+=' data-bem="'+__$ctx._.attrEscape(JSON.stringify(jsParams__$10))+'"'}var __$r__$38;var __$l9__$39=__$ctx._mode;__$ctx._mode="attrs";__$r__$38=applyc(__$ctx,__$ref);__$ctx._mode=__$l9__$39;var attrs__$37=__$r__$38;attrs__$37=__$ctx._.extend(attrs__$37,v__$2.attrs);if(attrs__$37){var name__$40,attr__$41;for(name__$40 in attrs__$37){attr__$41=attrs__$37[name__$40];if(attr__$41===undefined)continue;__$ctx._str+=" "+name__$40+'="'+__$ctx._.attrEscape(__$ctx._.isSimple(attr__$41)?attr__$41:__$ctx.reapply(attr__$41))+'"'}}}if(__$ctx._.isShortTag(tag__$4)){__$ctx._str+="/>"}else{if(tag__$4)__$ctx._str+=">";var __$r__$43;var __$l10__$44=__$ctx._mode;__$ctx._mode="content";__$r__$43=applyc(__$ctx,__$ref);__$ctx._mode=__$l10__$44;var content__$42=__$r__$43;if(content__$42||content__$42===0){isBEM__$3=__$ctx.block||__$ctx.elem;var __$r__$45;var __$l11__$46=__$ctx._mode;__$ctx._mode="";var __$l12__$47=__$ctx._notNewList;__$ctx._notNewList=false;var __$l13__$48=__$ctx.position;__$ctx.position=isBEM__$3?1:__$ctx.position;var __$l14__$49=__$ctx._listLength;__$ctx._listLength=isBEM__$3?1:__$ctx._listLength;var __$l15__$50=__$ctx.ctx;__$ctx.ctx=content__$42;__$r__$45=applyc(__$ctx,__$ref);__$ctx._mode=__$l11__$46;__$ctx._notNewList=__$l12__$47;__$ctx.position=__$l13__$48;__$ctx._listLength=__$l14__$49;__$ctx.ctx=__$l15__$50}if(tag__$4)__$ctx._str+="</"+tag__$4+">"}result__$5=__$ctx._str;__$r__$6=undefined;__$ctx._str=__$l0__$7;__$ctx._buf.push(result__$5);return}function __$b9(__$ctx,__$ref){__$ctx.__$a=0;var __$r__$51;var __$l0__$52=__$ctx._mode;__$ctx._mode="";var __$l1__$53=__$ctx.ctx;__$ctx.ctx=__$ctx.ctx._value;var __$r__$54;__$ctx.__$a=1;__$r__$54=applyc(__$ctx,__$ref);__$r__$51=__$r__$54;__$ctx._mode=__$l0__$52;__$ctx.ctx=__$l1__$53;return}function __$b10(__$ctx,__$ref){__$ctx.__$a=0;__$ctx._listLength--;var ctx__$55=__$ctx.ctx;if(ctx__$55&&ctx__$55!==true||ctx__$55===0){__$ctx._buf.push(ctx__$55+"")}return}function __$b11(__$ctx,__$ref){__$ctx.__$a=0;__$ctx._listLength--;return}function __$b12(__$ctx,__$ref){__$ctx.__$a=0;var v__$56=__$ctx.ctx,l__$57=v__$56.length,i__$58=0,prevPos__$59=__$ctx.position,prevNotNewList__$60=__$ctx._notNewList;if(prevNotNewList__$60){__$ctx._listLength+=l__$57-1}else{__$ctx.position=0;__$ctx._listLength=l__$57}__$ctx._notNewList=true;while(i__$58<l__$57)!function(){var __$r__$61;var __$l0__$62=__$ctx.ctx;__$ctx.ctx=v__$56[i__$58++];__$r__$61=applyc(__$ctx,__$ref);__$ctx.ctx=__$l0__$62;return __$r__$61}();prevNotNewList__$60||(__$ctx.position=prevPos__$59);return}function __$b13(__$ctx,__$ref){__$ctx.__$a=0;var vBlock__$63=__$ctx.ctx.block,vElem__$64=__$ctx.ctx.elem,block__$65=__$ctx._currBlock||__$ctx.block;__$ctx.ctx||(__$ctx.ctx={});var __$r__$66;var __$l0__$67=__$ctx._mode;__$ctx._mode="default";var __$l1__$68=__$ctx.block;__$ctx.block=vBlock__$63||(vElem__$64?block__$65:undefined);var __$l2__$69=__$ctx._currBlock;__$ctx._currBlock=vBlock__$63||vElem__$64?undefined:block__$65;var __$l3__$70=__$ctx.elem;__$ctx.elem=__$ctx.ctx.elem;var __$l4__$71=__$ctx.mods;__$ctx.mods=(vBlock__$63?__$ctx.ctx.mods:__$ctx.mods)||{};var __$l5__$72=__$ctx.elemMods;__$ctx.elemMods=__$ctx.ctx.elemMods||{};__$ctx.block||__$ctx.elem?__$ctx.position=(__$ctx.position||0)+1:__$ctx._listLength--;applyc(__$ctx,__$ref);__$r__$66=undefined;__$ctx._mode=__$l0__$67;__$ctx.block=__$l1__$68;__$ctx._currBlock=__$l2__$69;__$ctx.elem=__$l3__$70;__$ctx.mods=__$l4__$71;__$ctx.elemMods=__$l5__$72;return};
              Severity: Critical
              Found in src/log_analyzer/js/analyzer.table.js - About 2 hrs to fix

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

                                content: (function () {
                                    var dates = [];
                
                                    for (var i = 0; i < gridMap.length; i++) {
                                        dates.push({
                Severity: Major
                Found in src/log_analyzer/js/analyzer.table.js - About 2 hrs to fix

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

                          _buildGreatChooserBEMJSON: function () {
                              var self = this;
                              return [
                                  {
                                      elem: 'choose-year',
                  Severity: Major
                  Found in src/log_analyzer/js/analyzer.table.js - About 2 hrs to fix

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

                    FastClick.prototype.onTouchEnd = function(event) {
                        'use strict';
                        var forElement, trackingClickStart, targetTagName, scrollParent, touch, targetElement = this.targetElement;
                    
                        if (!this.trackingClick) {
                    Severity: Major
                    Found in src/log_analyzer/js/analyzer.table.js - About 2 hrs to fix

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

                                                  content: (function () { //TODO: move to separate methods
                                                      var dayBEMJSON,
                                                          currentDayISO,
                                                          currentDateISO,
                                                          currentMonthISO,
                      Severity: Minor
                      Found in src/log_analyzer/js/analyzer.table.js - About 1 hr to fix

                        Function inited has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                        'inited': function () {
                                            if (this.hasMod('type', 'setting')) {
                                                var popup = this.findBlockOutside('page').findBlockInside({block: 'popup', modName: 'name', modVal: 'setting'});
                                                this.bindTo('click', function () {
                                                    popup.toggle()
                        Severity: Minor
                        Found in src/log_analyzer/js/analyzer.table.js - About 1 hr to fix

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

                              setMod : function(elem, modName, modVal) {
                                  if(typeof modVal === 'undefined') {
                                      if(typeof elem === 'string') { // if no elem
                                          modVal = typeof modName === 'undefined'?
                                              true :  // e.g. setMod('focused')
                          Severity: Minor
                          Found in src/log_analyzer/js/analyzer.table.js - About 1 hr to fix

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

                                    _getDatePickerBEMJSON: function () {
                                        
                                        var clearBEMJSON,
                                            datePickerBEMJSON = [
                                                {
                            Severity: Minor
                            Found in src/log_analyzer/js/analyzer.table.js - About 1 hr to fix

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

                                      _getDatePickerHeadBEMJSON: function () {
                                          var datePickerHeadBEMJSON,
                                              titleClickContent = this.months[this._dates.current.month + 1] + ' ' + this._dates.current.year;
                              
                              //            if (!this.changeDisabled) {
                              Severity: Minor
                              Found in src/log_analyzer/js/analyzer.table.js - About 1 hr to fix

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

                                function addPointerEvent(type, toExtend) {
                                
                                    var eventName = 'pointer' + type,
                                        pointerevent,
                                
                                
                                Severity: Minor
                                Found in src/log_analyzer/js/analyzer.table.js - About 1 hr to fix

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

                                          un : function(e, fn, ctx) {
                                              if(typeof e === 'string' || typeof e === 'undefined') {
                                                  var storage = this[storageExpando];
                                                  if(storage) {
                                                      if(e) { // if event type was passed
                                  Severity: Minor
                                  Found in src/log_analyzer/js/analyzer.table.js - About 1 hr to fix

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

                                            _onDateChoose: function (e) {
                                                var target = $(e.target)
                                                var first,
                                                    last;
                                    
                                    
                                    Severity: Minor
                                    Found in src/log_analyzer/js/analyzer.table.js - About 1 hr to fix

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

                                          _liveCtxBind : function(ctx, e, data, fn, fnCtx) {
                                              if(typeof e === 'object') {
                                                  if(functions.isFunction(data) || functions.isFunction(fn)) { // mod change event
                                                      e = this._buildModEventName(e);
                                                  } else {
                                      Severity: Minor
                                      Found in src/log_analyzer/js/analyzer.table.js - About 1 hr to fix

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

                                        function addPointerEvent(type, toExtend) {
                                        
                                            var eventName = 'pointer' + type,
                                        
                                                eventSpecial = $.event.special[eventName] = {
                                        Severity: Minor
                                        Found in src/log_analyzer/js/analyzer.table.js - About 1 hr to fix

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

                                          function extendPointerRelease(params) {
                                          
                                              var data = params.event.data;
                                          
                                              return {
                                          Severity: Minor
                                          Found in src/log_analyzer/js/analyzer.table.js - About 1 hr to fix

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

                                                    emit : function(e, data) {
                                                        var storage = this[storageExpando],
                                                            eventInstantiated = false;
                                            
                                                        if(storage) {
                                            Severity: Minor
                                            Found in src/log_analyzer/js/analyzer.table.js - About 1 hr to fix

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

                                                              'inited': function () {
                                                                  var self = this;
                                                                  this.bindTo('timeslot', 'click tap', function () {
                                                                      this.toggleMod(this.elem('timeslot'), 'open', 'yes');
                                                                     
                                              Severity: Minor
                                              Found in src/log_analyzer/js/analyzer.table.js - About 1 hr to fix

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

                                                        _changeMonth: function (direction) {
                                                
                                                            var self = this,
                                                                titleClickContent = this.months[this._dates[direction].month + 1] + ' ' + this._dates[direction].year,
                                                                backCalendar = this.findElem('body', 'position', 'back'),
                                                Severity: Minor
                                                Found in src/log_analyzer/js/analyzer.table.js - About 1 hr to fix

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

                                                  function extendPointerPress(params) {
                                                  
                                                      var data = params.event.data;
                                                  
                                                      return {
                                                  Severity: Minor
                                                  Found in src/log_analyzer/js/analyzer.table.js - About 1 hr to fix

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

                                                            on : function(e, data, fn, ctx, _special) {
                                                                if(typeof e === 'string') {
                                                                    if(functions.isFunction(data)) {
                                                                        ctx = fn;
                                                                        fn = data;
                                                    Severity: Minor
                                                    Found in src/log_analyzer/js/analyzer.table.js - About 1 hr to fix

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

                                                      FastClick.prototype.onTouchStart = function(event) {
                                                          'use strict';
                                                          var targetElement, touch, selection;
                                                      
                                                          // Ignore multiple touches, otherwise pinch-to-zoom is prevented if both fingers are on the FastClick element (issue #111).
                                                      Severity: Minor
                                                      Found in src/log_analyzer/js/analyzer.table.js - About 1 hr to fix

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

                                                            _calcPos : function(direction, dimensions) {
                                                                var res = {},
                                                                    offsets = this.params.offsets,
                                                                    owner = dimensions.owner,
                                                                    popup = dimensions.popup;
                                                        Severity: Minor
                                                        Found in src/log_analyzer/js/analyzer.table.js - About 1 hr to fix

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

                                                              _findBlocks : function(select, elem, block, onlyFirst) {
                                                                  if(!block) {
                                                                      block = elem;
                                                                      elem = undef;
                                                                  }
                                                          Severity: Minor
                                                          Found in src/log_analyzer/js/analyzer.table.js - About 1 hr to fix

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

                                                                _calcDimensions : function() {
                                                                    var pos = this._pos,
                                                                        owner = this._owner,
                                                                        popupWidth = this.domElem.outerWidth(),
                                                                        popupHeight = this.domElem.outerHeight(),
                                                            Severity: Minor
                                                            Found in src/log_analyzer/js/analyzer.table.js - About 1 hr to fix

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

                                                              function touchmoveBased(params) {
                                                              
                                                                  var event = params.event,
                                                                      type = params.type;
                                                              
                                                              
                                                              Severity: Minor
                                                              Found in src/log_analyzer/js/analyzer.table.js - About 1 hr to fix

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

                                                                            define = function(name, deps, declFn) {
                                                                                if(!declFn) {
                                                                                    declFn = deps;
                                                                                    deps = [];
                                                                                }
                                                                Severity: Minor
                                                                Found in src/log_analyzer/js/analyzer.table.js - About 1 hr to fix

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

                                                                          getHumanStringFromDate: function (params) {
                                                                              var humanString,
                                                                                  date = params.date,
                                                                                  year = date.getFullYear(),
                                                                                  month = (date.getMonth() + 1).toString(),
                                                                  Severity: Minor
                                                                  Found in src/log_analyzer/js/analyzer.table.js - About 1 hr to fix

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

                                                                    function initBlock(blockName, domElem, params, forceLive, callback) {
                                                                        if(typeof params === 'boolean') {
                                                                            callback = forceLive;
                                                                            forceLive = params;
                                                                            params = undef;
                                                                    Severity: Minor
                                                                    Found in src/log_analyzer/js/analyzer.table.js - About 1 hr to fix

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

                                                                          _ctxEmit : function(e, data) {
                                                                              this.__base.apply(this, arguments);
                                                                      
                                                                              var _this = this,
                                                                                  storage = liveEventCtxStorage[_this.__self._buildCtxEventName(e.type)],
                                                                      Severity: Minor
                                                                      Found in src/log_analyzer/js/analyzer.table.js - About 1 hr to fix

                                                                        Consider simplifying this complex logical expression.
                                                                        Open

                                                                                if(modName !== 'js' || modVal !== '') {
                                                                                    var _self = this.__self,
                                                                                        classPrefix = _self._buildModClassPrefix(modName, elemName),
                                                                                        classRE = _self._buildModValRE(modName, elemName),
                                                                                        needDel = modVal === '' || modVal === false;
                                                                        Severity: Major
                                                                        Found in src/log_analyzer/js/analyzer.table.js - About 1 hr to fix

                                                                          Avoid deeply nested control flow statements.
                                                                          Open

                                                                                                  if(stopPropagationAndPreventDefault || e.isPropagationStopped()) return;
                                                                          Severity: Major
                                                                          Found in src/log_analyzer/js/analyzer.table.js - About 45 mins to fix

                                                                            Avoid deeply nested control flow statements.
                                                                            Open

                                                                                                        if(typeof res !== 'undefined') {
                                                                                                            e.result = res;
                                                                                                            if(res === false) {
                                                                                                                e.preventDefault();
                                                                                                                e.stopPropagation();
                                                                            Severity: Major
                                                                            Found in src/log_analyzer/js/analyzer.table.js - About 45 mins to fix

                                                                              Avoid deeply nested control flow statements.
                                                                              Open

                                                                                                      while(fn = fns[j++])
                                                                                                          if(fn.fn.call($(node), e) === false) stopPropagationAndPreventDefault = true;
                                                                              Severity: Major
                                                                              Found in src/log_analyzer/js/analyzer.table.js - About 45 mins to fix

                                                                                Avoid deeply nested control flow statements.
                                                                                Open

                                                                                                        while(i < len) storage.uniqIds[storage.fns[i++].uniqId] = i - 1;
                                                                                Severity: Major
                                                                                Found in src/log_analyzer/js/analyzer.table.js - About 45 mins to fix

                                                                                  Avoid deeply nested control flow statements.
                                                                                  Open

                                                                                       var __$ref={};function apply(ctx){try{return applyc(ctx||this,__$ref)}catch(e){(ctx||this).xjstContext=e;throw e}}exports.apply=apply;function applyc(__$ctx,__$ref){var __$t=__$ctx._mode;if(__$t==="content"){__$ctx.__$a=0;return __$ctx.ctx.content}else if(__$t==="mix"){__$ctx.__$a=0;return undefined}else if(__$t==="bem"){__$ctx.__$a=0;return undefined}else if(__$t==="js"){__$ctx.__$a=0;return undefined}else if(__$t==="cls"){__$ctx.__$a=0;return undefined}else if(__$t==="attrs"){__$ctx.__$a=0;return undefined}else if(__$t==="tag"){__$ctx.__$a=0;return undefined}else if(__$t==="default"){__$ctx.__$a=0;var __$r=__$b8(__$ctx,__$ref);if(__$r!==__$ref)return __$r}else if(__$t===""){if(__$ctx.ctx&&__$ctx.ctx._vow&&__$ctx.__$a!==1){__$ctx.__$a=0;var __$r=__$b9(__$ctx,__$ref);if(__$r!==__$ref)return __$r}if(__$ctx._.isSimple(__$ctx.ctx)){__$ctx.__$a=0;var __$r=__$b10(__$ctx,__$ref);if(__$r!==__$ref)return __$r}if(!__$ctx.ctx){__$ctx.__$a=0;var __$r=__$b11(__$ctx,__$ref);if(__$r!==__$ref)return __$r}if(__$ctx._.isArray(__$ctx.ctx)){__$ctx.__$a=0;var __$r=__$b12(__$ctx,__$ref);if(__$r!==__$ref)return __$r}__$ctx.__$a=0;var __$r=__$b13(__$ctx,__$ref);if(__$r!==__$ref)return __$r}__$ctx.__$a=0}[function(exports){var BEM_={},toString=Object.prototype.toString,isArray=Array.isArray||function(obj){return toString.call(obj)==="[object Array]"},SHORT_TAGS={area:1,base:1,br:1,col:1,command:1,embed:1,hr:1,img:1,input:1,keygen:1,link:1,meta:1,param:1,source:1,wbr:1};!function(BEM,undefined){var MOD_DELIM="_",ELEM_DELIM="__",NAME_PATTERN="[a-zA-Z0-9-]+";function buildModPostfix(modName,modVal){var res=MOD_DELIM+modName;if(modVal!==true)res+=MOD_DELIM+modVal;return res}function buildBlockClass(name,modName,modVal){var res=name;if(modVal)res+=buildModPostfix(modName,modVal);return res}function buildElemClass(block,name,modName,modVal){var res=buildBlockClass(block)+ELEM_DELIM+name;if(modVal)res+=buildModPostfix(modName,modVal);return res}BEM.INTERNAL={NAME_PATTERN:NAME_PATTERN,MOD_DELIM:MOD_DELIM,ELEM_DELIM:ELEM_DELIM,buildModPostfix:buildModPostfix,buildClass:function(block,elem,modName,modVal){var typeOfModName=typeof modName;if(typeOfModName==="string"||typeOfModName==="boolean"){var typeOfModVal=typeof modVal;if(typeOfModVal!=="string"&&typeOfModVal!=="boolean"){modVal=modName;modName=elem;elem=undefined}}else if(typeOfModName!=="undefined"){modName=undefined}else if(elem&&typeof elem!=="string"){elem=undefined}if(!(elem||modName)){return block}if(elem)return buildElemClass(block,elem,modName,modVal);else return buildBlockClass(block,modName,modVal)},buildModsClasses:function(block,elem,mods){var res="";if(mods){var modName;for(modName in mods){if(!mods.hasOwnProperty(modName))continue;var modVal=mods[modName];if(!modVal&&modVal!==0)continue;typeof modVal!=="boolean"&&(modVal+="");res+=" "+(elem?buildElemClass(block,elem,modName,modVal):buildBlockClass(block,modName,modVal))}}return res},buildClasses:function(block,elem,mods){var res="";if(elem)res+=buildElemClass(block,elem);else res+=buildBlockClass(block);res+=this.buildModsClasses(block,elem,mods);return res}}}(BEM_);var ts={'"':"&quot;","&":"&amp;","<":"&lt;",">":"&gt;"},f=function(t){return ts[t]||t};var buildEscape=function(r){r=new RegExp(r,"g");return function(s){return(""+s).replace(r,f)}};function BEMContext(context,apply_){this.ctx=typeof context===null?"":context;this.apply=apply_;this._str="";var self=this;this._buf={push:function(){var chunks=Array.prototype.slice.call(arguments).join("");self._str+=chunks},join:function(){return this._str}};this._=this;this._start=true;this._mode="";this._listLength=0;this._notNewList=false;this.position=0;this.block=undefined;this.elem=undefined;this.mods=undefined;this.elemMods=undefined}BEMContext.prototype.isArray=isArray;BEMContext.prototype.isSimple=function isSimple(obj){var t=typeof obj;return t==="string"||t==="number"||t==="boolean"};BEMContext.prototype.isShortTag=function isShortTag(t){return SHORT_TAGS.hasOwnProperty(t)};BEMContext.prototype.extend=function extend(o1,o2){if(!o1||!o2)return o1||o2;var res={},n;for(n in o1)o1.hasOwnProperty(n)&&(res[n]=o1[n]);for(n in o2)o2.hasOwnProperty(n)&&(res[n]=o2[n]);return res};var cnt=0,id=+new Date,expando="__"+id,get=function(){return"uniq"+id+ ++cnt};BEMContext.prototype.identify=function(obj,onlyGet){if(!obj)return get();if(onlyGet||obj[expando]){return obj[expando]}else{return obj[expando]=get()}};BEMContext.prototype.xmlEscape=buildEscape("[&<>]");BEMContext.prototype.attrEscape=buildEscape('["&<>]');BEMContext.prototype.BEM=BEM_;BEMContext.prototype.isFirst=function isFirst(){return this.position===1};BEMContext.prototype.isLast=function isLast(){return this.position===this._listLength};BEMContext.prototype.generateId=function generateId(){return this.identify(this.ctx)};var oldApply=exports.apply;exports.apply=BEMContext.apply=function _apply(context){var ctx=new BEMContext(context||this,oldApply);ctx.apply();return ctx._str};BEMContext.prototype.reapply=BEMContext.apply}].forEach(function(fn){fn(exports,this)},{recordExtensions:function(ctx){ctx._str=undefined;ctx._mode=undefined;ctx.block=undefined;ctx.elem=undefined;ctx._notNewList=undefined;ctx.position=undefined;ctx._listLength=undefined;ctx.ctx=undefined;ctx.__$a=0;ctx._currBlock=undefined;ctx.mods=undefined;ctx.elemMods=undefined}});function __$b8(__$ctx,__$ref){__$ctx.__$a=0;var _this__$0=__$ctx,BEM___$1=_this__$0.BEM,v__$2=__$ctx.ctx,isBEM__$3,tag__$4,result__$5;var __$r__$6;var __$l0__$7=__$ctx._str;__$ctx._str="";var __$r__$8;var __$l1__$9=__$ctx._mode;__$ctx._mode="tag";__$r__$8=applyc(__$ctx,__$ref);__$ctx._mode=__$l1__$9;tag__$4=__$r__$8;typeof tag__$4!=="undefined"||(tag__$4=v__$2.tag);typeof tag__$4!=="undefined"||(tag__$4="div");if(tag__$4){var jsParams__$10,js__$11;if(__$ctx.block&&v__$2.js!==false){var __$r__$12;var __$l2__$13=__$ctx._mode;__$ctx._mode="js";__$r__$12=applyc(__$ctx,__$ref);__$ctx._mode=__$l2__$13;js__$11=__$r__$12;js__$11=js__$11?__$ctx._.extend(v__$2.js,js__$11===true?{}:js__$11):v__$2.js===true?{}:v__$2.js;js__$11&&((jsParams__$10={})[BEM___$1.INTERNAL.buildClass(__$ctx.block,v__$2.elem)]=js__$11)}__$ctx._str+="<"+tag__$4;var __$r__$14;var __$l3__$15=__$ctx._mode;__$ctx._mode="bem";__$r__$14=applyc(__$ctx,__$ref);__$ctx._mode=__$l3__$15;isBEM__$3=__$r__$14;typeof isBEM__$3!=="undefined"||(isBEM__$3=typeof v__$2.bem!=="undefined"?v__$2.bem:v__$2.block||v__$2.elem);var __$r__$17;var __$l4__$18=__$ctx._mode;__$ctx._mode="cls";__$r__$17=applyc(__$ctx,__$ref);__$ctx._mode=__$l4__$18;var cls__$16=__$r__$17;cls__$16||(cls__$16=v__$2.cls);var addJSInitClass__$19=v__$2.block&&jsParams__$10;if(isBEM__$3||cls__$16){__$ctx._str+=' class="';if(isBEM__$3){__$ctx._str+=BEM___$1.INTERNAL.buildClasses(__$ctx.block,v__$2.elem,v__$2.elemMods||v__$2.mods);var __$r__$21;var __$l5__$22=__$ctx._mode;__$ctx._mode="mix";__$r__$21=applyc(__$ctx,__$ref);__$ctx._mode=__$l5__$22;var mix__$20=__$r__$21;v__$2.mix&&(mix__$20=mix__$20?mix__$20.concat(v__$2.mix):v__$2.mix);if(mix__$20){var visited__$23={},visitedKey__$24=function(block,elem){return(block||"")+"__"+(elem||"")};visited__$23[visitedKey__$24(__$ctx.block,__$ctx.elem)]=true;if(!__$ctx._.isArray(mix__$20))mix__$20=[mix__$20];for(var i__$25=0;i__$25<mix__$20.length;i__$25++){var mixItem__$26=mix__$20[i__$25],hasItem__$27=mixItem__$26.block||mixItem__$26.elem,block__$28=mixItem__$26.block||mixItem__$26._block||_this__$0.block,elem__$29=mixItem__$26.elem||mixItem__$26._elem||_this__$0.elem;if(hasItem__$27)__$ctx._str+=" ";__$ctx._str+=BEM___$1.INTERNAL[hasItem__$27?"buildClasses":"buildModsClasses"](block__$28,mixItem__$26.elem||mixItem__$26._elem||(mixItem__$26.block?undefined:_this__$0.elem),mixItem__$26.elemMods||mixItem__$26.mods);if(mixItem__$26.js){(jsParams__$10||(jsParams__$10={}))[BEM___$1.INTERNAL.buildClass(block__$28,mixItem__$26.elem)]=mixItem__$26.js===true?{}:mixItem__$26.js;addJSInitClass__$19||(addJSInitClass__$19=block__$28&&!mixItem__$26.elem)}if(hasItem__$27&&!visited__$23[visitedKey__$24(block__$28,elem__$29)]){visited__$23[visitedKey__$24(block__$28,elem__$29)]=true;var __$r__$31;var __$l6__$32=__$ctx._mode;__$ctx._mode="mix";var __$l7__$33=__$ctx.block;__$ctx.block=block__$28;var __$l8__$34=__$ctx.elem;__$ctx.elem=elem__$29;__$r__$31=applyc(__$ctx,__$ref);__$ctx._mode=__$l6__$32;__$ctx.block=__$l7__$33;__$ctx.elem=__$l8__$34;var nestedMix__$30=__$r__$31;if(nestedMix__$30){for(var j__$35=0;j__$35<nestedMix__$30.length;j__$35++){var nestedItem__$36=nestedMix__$30[j__$35];if(!nestedItem__$36.block&&!nestedItem__$36.elem||!visited__$23[visitedKey__$24(nestedItem__$36.block,nestedItem__$36.elem)]){nestedItem__$36._block=block__$28;nestedItem__$36._elem=elem__$29;mix__$20.splice(i__$25+1,0,nestedItem__$36)}}}}}}}if(cls__$16)__$ctx._str+=isBEM__$3?" "+cls__$16:cls__$16;if(addJSInitClass__$19)__$ctx._str+=' i-bem"';else __$ctx._str+='"'}if(isBEM__$3&&jsParams__$10){__$ctx._str+=' data-bem="'+__$ctx._.attrEscape(JSON.stringify(jsParams__$10))+'"'}var __$r__$38;var __$l9__$39=__$ctx._mode;__$ctx._mode="attrs";__$r__$38=applyc(__$ctx,__$ref);__$ctx._mode=__$l9__$39;var attrs__$37=__$r__$38;attrs__$37=__$ctx._.extend(attrs__$37,v__$2.attrs);if(attrs__$37){var name__$40,attr__$41;for(name__$40 in attrs__$37){attr__$41=attrs__$37[name__$40];if(attr__$41===undefined)continue;__$ctx._str+=" "+name__$40+'="'+__$ctx._.attrEscape(__$ctx._.isSimple(attr__$41)?attr__$41:__$ctx.reapply(attr__$41))+'"'}}}if(__$ctx._.isShortTag(tag__$4)){__$ctx._str+="/>"}else{if(tag__$4)__$ctx._str+=">";var __$r__$43;var __$l10__$44=__$ctx._mode;__$ctx._mode="content";__$r__$43=applyc(__$ctx,__$ref);__$ctx._mode=__$l10__$44;var content__$42=__$r__$43;if(content__$42||content__$42===0){isBEM__$3=__$ctx.block||__$ctx.elem;var __$r__$45;var __$l11__$46=__$ctx._mode;__$ctx._mode="";var __$l12__$47=__$ctx._notNewList;__$ctx._notNewList=false;var __$l13__$48=__$ctx.position;__$ctx.position=isBEM__$3?1:__$ctx.position;var __$l14__$49=__$ctx._listLength;__$ctx._listLength=isBEM__$3?1:__$ctx._listLength;var __$l15__$50=__$ctx.ctx;__$ctx.ctx=content__$42;__$r__$45=applyc(__$ctx,__$ref);__$ctx._mode=__$l11__$46;__$ctx._notNewList=__$l12__$47;__$ctx.position=__$l13__$48;__$ctx._listLength=__$l14__$49;__$ctx.ctx=__$l15__$50}if(tag__$4)__$ctx._str+="</"+tag__$4+">"}result__$5=__$ctx._str;__$r__$6=undefined;__$ctx._str=__$l0__$7;__$ctx._buf.push(result__$5);return}function __$b9(__$ctx,__$ref){__$ctx.__$a=0;var __$r__$51;var __$l0__$52=__$ctx._mode;__$ctx._mode="";var __$l1__$53=__$ctx.ctx;__$ctx.ctx=__$ctx.ctx._value;var __$r__$54;__$ctx.__$a=1;__$r__$54=applyc(__$ctx,__$ref);__$r__$51=__$r__$54;__$ctx._mode=__$l0__$52;__$ctx.ctx=__$l1__$53;return}function __$b10(__$ctx,__$ref){__$ctx.__$a=0;__$ctx._listLength--;var ctx__$55=__$ctx.ctx;if(ctx__$55&&ctx__$55!==true||ctx__$55===0){__$ctx._buf.push(ctx__$55+"")}return}function __$b11(__$ctx,__$ref){__$ctx.__$a=0;__$ctx._listLength--;return}function __$b12(__$ctx,__$ref){__$ctx.__$a=0;var v__$56=__$ctx.ctx,l__$57=v__$56.length,i__$58=0,prevPos__$59=__$ctx.position,prevNotNewList__$60=__$ctx._notNewList;if(prevNotNewList__$60){__$ctx._listLength+=l__$57-1}else{__$ctx.position=0;__$ctx._listLength=l__$57}__$ctx._notNewList=true;while(i__$58<l__$57)!function(){var __$r__$61;var __$l0__$62=__$ctx.ctx;__$ctx.ctx=v__$56[i__$58++];__$r__$61=applyc(__$ctx,__$ref);__$ctx.ctx=__$l0__$62;return __$r__$61}();prevNotNewList__$60||(__$ctx.position=prevPos__$59);return}function __$b13(__$ctx,__$ref){__$ctx.__$a=0;var vBlock__$63=__$ctx.ctx.block,vElem__$64=__$ctx.ctx.elem,block__$65=__$ctx._currBlock||__$ctx.block;__$ctx.ctx||(__$ctx.ctx={});var __$r__$66;var __$l0__$67=__$ctx._mode;__$ctx._mode="default";var __$l1__$68=__$ctx.block;__$ctx.block=vBlock__$63||(vElem__$64?block__$65:undefined);var __$l2__$69=__$ctx._currBlock;__$ctx._currBlock=vBlock__$63||vElem__$64?undefined:block__$65;var __$l3__$70=__$ctx.elem;__$ctx.elem=__$ctx.ctx.elem;var __$l4__$71=__$ctx.mods;__$ctx.mods=(vBlock__$63?__$ctx.ctx.mods:__$ctx.mods)||{};var __$l5__$72=__$ctx.elemMods;__$ctx.elemMods=__$ctx.ctx.elemMods||{};__$ctx.block||__$ctx.elem?__$ctx.position=(__$ctx.position||0)+1:__$ctx._listLength--;applyc(__$ctx,__$ref);__$r__$66=undefined;__$ctx._mode=__$l0__$67;__$ctx.block=__$l1__$68;__$ctx._currBlock=__$l2__$69;__$ctx.elem=__$l3__$70;__$ctx.mods=__$l4__$71;__$ctx.elemMods=__$l5__$72;return};
                                                                                  Severity: Major
                                                                                  Found in src/log_analyzer/js/analyzer.table.js - About 45 mins to fix

                                                                                    Avoid deeply nested control flow statements.
                                                                                    Open

                                                                                                                if(eventStorage = storage[e]) {
                                                                                                                    if(fn) {  // if specific handler was passed
                                                                                                                        var id = getFnId(fn, ctx),
                                                                                                                            ids = eventStorage.ids;
                                                                                                                        if(id in ids) {
                                                                                    Severity: Major
                                                                                    Found in src/log_analyzer/js/analyzer.table.js - About 45 mins to fix

                                                                                      Avoid deeply nested control flow statements.
                                                                                      Open

                                                                                                                                  if (self._specialDays[currentDateISO]) {
                                                                                                                                      dayBEMJSON.attrs.style = 'background: ' + self._specialDays[currentDateISO].background + '; ';
                                                                                                                                      if (self._specialDays[currentDateISO].color) {
                                                                                                                                          dayBEMJSON.attrs.style = dayBEMJSON.attrs.style + 'color: ' + self._specialDays[currentDateISO].color;
                                                                                                                                      }
                                                                                      Severity: Major
                                                                                      Found in src/log_analyzer/js/analyzer.table.js - About 45 mins to fix

                                                                                        Avoid deeply nested control flow statements.
                                                                                        Open

                                                                                             var __$ref={};function apply(ctx){try{return applyc(ctx||this,__$ref)}catch(e){(ctx||this).xjstContext=e;throw e}}exports.apply=apply;function applyc(__$ctx,__$ref){var __$t=__$ctx._mode;if(__$t==="content"){__$ctx.__$a=0;return __$ctx.ctx.content}else if(__$t==="mix"){__$ctx.__$a=0;return undefined}else if(__$t==="bem"){__$ctx.__$a=0;return undefined}else if(__$t==="js"){__$ctx.__$a=0;return undefined}else if(__$t==="cls"){__$ctx.__$a=0;return undefined}else if(__$t==="attrs"){__$ctx.__$a=0;return undefined}else if(__$t==="tag"){__$ctx.__$a=0;return undefined}else if(__$t==="default"){__$ctx.__$a=0;var __$r=__$b8(__$ctx,__$ref);if(__$r!==__$ref)return __$r}else if(__$t===""){if(__$ctx.ctx&&__$ctx.ctx._vow&&__$ctx.__$a!==1){__$ctx.__$a=0;var __$r=__$b9(__$ctx,__$ref);if(__$r!==__$ref)return __$r}if(__$ctx._.isSimple(__$ctx.ctx)){__$ctx.__$a=0;var __$r=__$b10(__$ctx,__$ref);if(__$r!==__$ref)return __$r}if(!__$ctx.ctx){__$ctx.__$a=0;var __$r=__$b11(__$ctx,__$ref);if(__$r!==__$ref)return __$r}if(__$ctx._.isArray(__$ctx.ctx)){__$ctx.__$a=0;var __$r=__$b12(__$ctx,__$ref);if(__$r!==__$ref)return __$r}__$ctx.__$a=0;var __$r=__$b13(__$ctx,__$ref);if(__$r!==__$ref)return __$r}__$ctx.__$a=0}[function(exports){var BEM_={},toString=Object.prototype.toString,isArray=Array.isArray||function(obj){return toString.call(obj)==="[object Array]"},SHORT_TAGS={area:1,base:1,br:1,col:1,command:1,embed:1,hr:1,img:1,input:1,keygen:1,link:1,meta:1,param:1,source:1,wbr:1};!function(BEM,undefined){var MOD_DELIM="_",ELEM_DELIM="__",NAME_PATTERN="[a-zA-Z0-9-]+";function buildModPostfix(modName,modVal){var res=MOD_DELIM+modName;if(modVal!==true)res+=MOD_DELIM+modVal;return res}function buildBlockClass(name,modName,modVal){var res=name;if(modVal)res+=buildModPostfix(modName,modVal);return res}function buildElemClass(block,name,modName,modVal){var res=buildBlockClass(block)+ELEM_DELIM+name;if(modVal)res+=buildModPostfix(modName,modVal);return res}BEM.INTERNAL={NAME_PATTERN:NAME_PATTERN,MOD_DELIM:MOD_DELIM,ELEM_DELIM:ELEM_DELIM,buildModPostfix:buildModPostfix,buildClass:function(block,elem,modName,modVal){var typeOfModName=typeof modName;if(typeOfModName==="string"||typeOfModName==="boolean"){var typeOfModVal=typeof modVal;if(typeOfModVal!=="string"&&typeOfModVal!=="boolean"){modVal=modName;modName=elem;elem=undefined}}else if(typeOfModName!=="undefined"){modName=undefined}else if(elem&&typeof elem!=="string"){elem=undefined}if(!(elem||modName)){return block}if(elem)return buildElemClass(block,elem,modName,modVal);else return buildBlockClass(block,modName,modVal)},buildModsClasses:function(block,elem,mods){var res="";if(mods){var modName;for(modName in mods){if(!mods.hasOwnProperty(modName))continue;var modVal=mods[modName];if(!modVal&&modVal!==0)continue;typeof modVal!=="boolean"&&(modVal+="");res+=" "+(elem?buildElemClass(block,elem,modName,modVal):buildBlockClass(block,modName,modVal))}}return res},buildClasses:function(block,elem,mods){var res="";if(elem)res+=buildElemClass(block,elem);else res+=buildBlockClass(block);res+=this.buildModsClasses(block,elem,mods);return res}}}(BEM_);var ts={'"':"&quot;","&":"&amp;","<":"&lt;",">":"&gt;"},f=function(t){return ts[t]||t};var buildEscape=function(r){r=new RegExp(r,"g");return function(s){return(""+s).replace(r,f)}};function BEMContext(context,apply_){this.ctx=typeof context===null?"":context;this.apply=apply_;this._str="";var self=this;this._buf={push:function(){var chunks=Array.prototype.slice.call(arguments).join("");self._str+=chunks},join:function(){return this._str}};this._=this;this._start=true;this._mode="";this._listLength=0;this._notNewList=false;this.position=0;this.block=undefined;this.elem=undefined;this.mods=undefined;this.elemMods=undefined}BEMContext.prototype.isArray=isArray;BEMContext.prototype.isSimple=function isSimple(obj){var t=typeof obj;return t==="string"||t==="number"||t==="boolean"};BEMContext.prototype.isShortTag=function isShortTag(t){return SHORT_TAGS.hasOwnProperty(t)};BEMContext.prototype.extend=function extend(o1,o2){if(!o1||!o2)return o1||o2;var res={},n;for(n in o1)o1.hasOwnProperty(n)&&(res[n]=o1[n]);for(n in o2)o2.hasOwnProperty(n)&&(res[n]=o2[n]);return res};var cnt=0,id=+new Date,expando="__"+id,get=function(){return"uniq"+id+ ++cnt};BEMContext.prototype.identify=function(obj,onlyGet){if(!obj)return get();if(onlyGet||obj[expando]){return obj[expando]}else{return obj[expando]=get()}};BEMContext.prototype.xmlEscape=buildEscape("[&<>]");BEMContext.prototype.attrEscape=buildEscape('["&<>]');BEMContext.prototype.BEM=BEM_;BEMContext.prototype.isFirst=function isFirst(){return this.position===1};BEMContext.prototype.isLast=function isLast(){return this.position===this._listLength};BEMContext.prototype.generateId=function generateId(){return this.identify(this.ctx)};var oldApply=exports.apply;exports.apply=BEMContext.apply=function _apply(context){var ctx=new BEMContext(context||this,oldApply);ctx.apply();return ctx._str};BEMContext.prototype.reapply=BEMContext.apply}].forEach(function(fn){fn(exports,this)},{recordExtensions:function(ctx){ctx._str=undefined;ctx._mode=undefined;ctx.block=undefined;ctx.elem=undefined;ctx._notNewList=undefined;ctx.position=undefined;ctx._listLength=undefined;ctx.ctx=undefined;ctx.__$a=0;ctx._currBlock=undefined;ctx.mods=undefined;ctx.elemMods=undefined}});function __$b8(__$ctx,__$ref){__$ctx.__$a=0;var _this__$0=__$ctx,BEM___$1=_this__$0.BEM,v__$2=__$ctx.ctx,isBEM__$3,tag__$4,result__$5;var __$r__$6;var __$l0__$7=__$ctx._str;__$ctx._str="";var __$r__$8;var __$l1__$9=__$ctx._mode;__$ctx._mode="tag";__$r__$8=applyc(__$ctx,__$ref);__$ctx._mode=__$l1__$9;tag__$4=__$r__$8;typeof tag__$4!=="undefined"||(tag__$4=v__$2.tag);typeof tag__$4!=="undefined"||(tag__$4="div");if(tag__$4){var jsParams__$10,js__$11;if(__$ctx.block&&v__$2.js!==false){var __$r__$12;var __$l2__$13=__$ctx._mode;__$ctx._mode="js";__$r__$12=applyc(__$ctx,__$ref);__$ctx._mode=__$l2__$13;js__$11=__$r__$12;js__$11=js__$11?__$ctx._.extend(v__$2.js,js__$11===true?{}:js__$11):v__$2.js===true?{}:v__$2.js;js__$11&&((jsParams__$10={})[BEM___$1.INTERNAL.buildClass(__$ctx.block,v__$2.elem)]=js__$11)}__$ctx._str+="<"+tag__$4;var __$r__$14;var __$l3__$15=__$ctx._mode;__$ctx._mode="bem";__$r__$14=applyc(__$ctx,__$ref);__$ctx._mode=__$l3__$15;isBEM__$3=__$r__$14;typeof isBEM__$3!=="undefined"||(isBEM__$3=typeof v__$2.bem!=="undefined"?v__$2.bem:v__$2.block||v__$2.elem);var __$r__$17;var __$l4__$18=__$ctx._mode;__$ctx._mode="cls";__$r__$17=applyc(__$ctx,__$ref);__$ctx._mode=__$l4__$18;var cls__$16=__$r__$17;cls__$16||(cls__$16=v__$2.cls);var addJSInitClass__$19=v__$2.block&&jsParams__$10;if(isBEM__$3||cls__$16){__$ctx._str+=' class="';if(isBEM__$3){__$ctx._str+=BEM___$1.INTERNAL.buildClasses(__$ctx.block,v__$2.elem,v__$2.elemMods||v__$2.mods);var __$r__$21;var __$l5__$22=__$ctx._mode;__$ctx._mode="mix";__$r__$21=applyc(__$ctx,__$ref);__$ctx._mode=__$l5__$22;var mix__$20=__$r__$21;v__$2.mix&&(mix__$20=mix__$20?mix__$20.concat(v__$2.mix):v__$2.mix);if(mix__$20){var visited__$23={},visitedKey__$24=function(block,elem){return(block||"")+"__"+(elem||"")};visited__$23[visitedKey__$24(__$ctx.block,__$ctx.elem)]=true;if(!__$ctx._.isArray(mix__$20))mix__$20=[mix__$20];for(var i__$25=0;i__$25<mix__$20.length;i__$25++){var mixItem__$26=mix__$20[i__$25],hasItem__$27=mixItem__$26.block||mixItem__$26.elem,block__$28=mixItem__$26.block||mixItem__$26._block||_this__$0.block,elem__$29=mixItem__$26.elem||mixItem__$26._elem||_this__$0.elem;if(hasItem__$27)__$ctx._str+=" ";__$ctx._str+=BEM___$1.INTERNAL[hasItem__$27?"buildClasses":"buildModsClasses"](block__$28,mixItem__$26.elem||mixItem__$26._elem||(mixItem__$26.block?undefined:_this__$0.elem),mixItem__$26.elemMods||mixItem__$26.mods);if(mixItem__$26.js){(jsParams__$10||(jsParams__$10={}))[BEM___$1.INTERNAL.buildClass(block__$28,mixItem__$26.elem)]=mixItem__$26.js===true?{}:mixItem__$26.js;addJSInitClass__$19||(addJSInitClass__$19=block__$28&&!mixItem__$26.elem)}if(hasItem__$27&&!visited__$23[visitedKey__$24(block__$28,elem__$29)]){visited__$23[visitedKey__$24(block__$28,elem__$29)]=true;var __$r__$31;var __$l6__$32=__$ctx._mode;__$ctx._mode="mix";var __$l7__$33=__$ctx.block;__$ctx.block=block__$28;var __$l8__$34=__$ctx.elem;__$ctx.elem=elem__$29;__$r__$31=applyc(__$ctx,__$ref);__$ctx._mode=__$l6__$32;__$ctx.block=__$l7__$33;__$ctx.elem=__$l8__$34;var nestedMix__$30=__$r__$31;if(nestedMix__$30){for(var j__$35=0;j__$35<nestedMix__$30.length;j__$35++){var nestedItem__$36=nestedMix__$30[j__$35];if(!nestedItem__$36.block&&!nestedItem__$36.elem||!visited__$23[visitedKey__$24(nestedItem__$36.block,nestedItem__$36.elem)]){nestedItem__$36._block=block__$28;nestedItem__$36._elem=elem__$29;mix__$20.splice(i__$25+1,0,nestedItem__$36)}}}}}}}if(cls__$16)__$ctx._str+=isBEM__$3?" "+cls__$16:cls__$16;if(addJSInitClass__$19)__$ctx._str+=' i-bem"';else __$ctx._str+='"'}if(isBEM__$3&&jsParams__$10){__$ctx._str+=' data-bem="'+__$ctx._.attrEscape(JSON.stringify(jsParams__$10))+'"'}var __$r__$38;var __$l9__$39=__$ctx._mode;__$ctx._mode="attrs";__$r__$38=applyc(__$ctx,__$ref);__$ctx._mode=__$l9__$39;var attrs__$37=__$r__$38;attrs__$37=__$ctx._.extend(attrs__$37,v__$2.attrs);if(attrs__$37){var name__$40,attr__$41;for(name__$40 in attrs__$37){attr__$41=attrs__$37[name__$40];if(attr__$41===undefined)continue;__$ctx._str+=" "+name__$40+'="'+__$ctx._.attrEscape(__$ctx._.isSimple(attr__$41)?attr__$41:__$ctx.reapply(attr__$41))+'"'}}}if(__$ctx._.isShortTag(tag__$4)){__$ctx._str+="/>"}else{if(tag__$4)__$ctx._str+=">";var __$r__$43;var __$l10__$44=__$ctx._mode;__$ctx._mode="content";__$r__$43=applyc(__$ctx,__$ref);__$ctx._mode=__$l10__$44;var content__$42=__$r__$43;if(content__$42||content__$42===0){isBEM__$3=__$ctx.block||__$ctx.elem;var __$r__$45;var __$l11__$46=__$ctx._mode;__$ctx._mode="";var __$l12__$47=__$ctx._notNewList;__$ctx._notNewList=false;var __$l13__$48=__$ctx.position;__$ctx.position=isBEM__$3?1:__$ctx.position;var __$l14__$49=__$ctx._listLength;__$ctx._listLength=isBEM__$3?1:__$ctx._listLength;var __$l15__$50=__$ctx.ctx;__$ctx.ctx=content__$42;__$r__$45=applyc(__$ctx,__$ref);__$ctx._mode=__$l11__$46;__$ctx._notNewList=__$l12__$47;__$ctx.position=__$l13__$48;__$ctx._listLength=__$l14__$49;__$ctx.ctx=__$l15__$50}if(tag__$4)__$ctx._str+="</"+tag__$4+">"}result__$5=__$ctx._str;__$r__$6=undefined;__$ctx._str=__$l0__$7;__$ctx._buf.push(result__$5);return}function __$b9(__$ctx,__$ref){__$ctx.__$a=0;var __$r__$51;var __$l0__$52=__$ctx._mode;__$ctx._mode="";var __$l1__$53=__$ctx.ctx;__$ctx.ctx=__$ctx.ctx._value;var __$r__$54;__$ctx.__$a=1;__$r__$54=applyc(__$ctx,__$ref);__$r__$51=__$r__$54;__$ctx._mode=__$l0__$52;__$ctx.ctx=__$l1__$53;return}function __$b10(__$ctx,__$ref){__$ctx.__$a=0;__$ctx._listLength--;var ctx__$55=__$ctx.ctx;if(ctx__$55&&ctx__$55!==true||ctx__$55===0){__$ctx._buf.push(ctx__$55+"")}return}function __$b11(__$ctx,__$ref){__$ctx.__$a=0;__$ctx._listLength--;return}function __$b12(__$ctx,__$ref){__$ctx.__$a=0;var v__$56=__$ctx.ctx,l__$57=v__$56.length,i__$58=0,prevPos__$59=__$ctx.position,prevNotNewList__$60=__$ctx._notNewList;if(prevNotNewList__$60){__$ctx._listLength+=l__$57-1}else{__$ctx.position=0;__$ctx._listLength=l__$57}__$ctx._notNewList=true;while(i__$58<l__$57)!function(){var __$r__$61;var __$l0__$62=__$ctx.ctx;__$ctx.ctx=v__$56[i__$58++];__$r__$61=applyc(__$ctx,__$ref);__$ctx.ctx=__$l0__$62;return __$r__$61}();prevNotNewList__$60||(__$ctx.position=prevPos__$59);return}function __$b13(__$ctx,__$ref){__$ctx.__$a=0;var vBlock__$63=__$ctx.ctx.block,vElem__$64=__$ctx.ctx.elem,block__$65=__$ctx._currBlock||__$ctx.block;__$ctx.ctx||(__$ctx.ctx={});var __$r__$66;var __$l0__$67=__$ctx._mode;__$ctx._mode="default";var __$l1__$68=__$ctx.block;__$ctx.block=vBlock__$63||(vElem__$64?block__$65:undefined);var __$l2__$69=__$ctx._currBlock;__$ctx._currBlock=vBlock__$63||vElem__$64?undefined:block__$65;var __$l3__$70=__$ctx.elem;__$ctx.elem=__$ctx.ctx.elem;var __$l4__$71=__$ctx.mods;__$ctx.mods=(vBlock__$63?__$ctx.ctx.mods:__$ctx.mods)||{};var __$l5__$72=__$ctx.elemMods;__$ctx.elemMods=__$ctx.ctx.elemMods||{};__$ctx.block||__$ctx.elem?__$ctx.position=(__$ctx.position||0)+1:__$ctx._listLength--;applyc(__$ctx,__$ref);__$r__$66=undefined;__$ctx._mode=__$l0__$67;__$ctx.block=__$l1__$68;__$ctx._currBlock=__$l2__$69;__$ctx.elem=__$l3__$70;__$ctx.mods=__$l4__$71;__$ctx.elemMods=__$l5__$72;return};
                                                                                        Severity: Major
                                                                                        Found in src/log_analyzer/js/analyzer.table.js - About 45 mins to fix

                                                                                          Avoid deeply nested control flow statements.
                                                                                          Open

                                                                                                              for(modVal in modFn) {
                                                                                                                  if(modFn.hasOwnProperty(modVal)) {
                                                                                                                      props[buildModFnName(prefix, modName, modVal, elemName)] = modFn[modVal];
                                                                                                                  }
                                                                                                              }
                                                                                          Severity: Major
                                                                                          Found in src/log_analyzer/js/analyzer.table.js - About 45 mins to fix

                                                                                            Avoid deeply nested control flow statements.
                                                                                            Open

                                                                                                                        if(!eventInstantiated) { // instantiate Event only on demand
                                                                                                                            eventInstantiated = true;
                                                                                                                            typeof e === 'string' && (e = new Event(e));
                                                                                                                            e.target || (e.target = this);
                                                                                                                        }
                                                                                            Severity: Major
                                                                                            Found in src/log_analyzer/js/analyzer.table.js - About 45 mins to fix

                                                                                              Avoid deeply nested control flow statements.
                                                                                              Open

                                                                                                                          if(item === lastItem) {
                                                                                                                              break;
                                                                                                                          }
                                                                                              Severity: Major
                                                                                              Found in src/log_analyzer/js/analyzer.table.js - About 45 mins to fix

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

                                                                                                    toggleMod : function(elem, modName, modVal1, modVal2, condition) {
                                                                                                Severity: Minor
                                                                                                Found in src/log_analyzer/js/analyzer.table.js - About 35 mins to fix

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

                                                                                                          on : function(e, data, fn, ctx, _special) {
                                                                                                  Severity: Minor
                                                                                                  Found in src/log_analyzer/js/analyzer.table.js - About 35 mins to fix

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

                                                                                                        _liveCtxBind : function(ctx, e, data, fn, fnCtx) {
                                                                                                    Severity: Minor
                                                                                                    Found in src/log_analyzer/js/analyzer.table.js - About 35 mins to fix

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

                                                                                                      function initBlock(blockName, domElem, params, forceLive, callback) {
                                                                                                      Severity: Minor
                                                                                                      Found in src/log_analyzer/js/analyzer.table.js - About 35 mins to fix

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

                                                                                                            findElem : function(ctx, names, modName, modVal, strictMode) {
                                                                                                        Severity: Minor
                                                                                                        Found in src/log_analyzer/js/analyzer.table.js - About 35 mins to fix

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

                                                                                                              _onSetMod : function(modName, modVal, oldModVal, elem, elemName) {
                                                                                                          Severity: Minor
                                                                                                          Found in src/log_analyzer/js/analyzer.table.js - About 35 mins to fix

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

                                                                                                                _onSetMod : function(modName, modVal, oldModVal, elem, elemName) {
                                                                                                            Severity: Minor
                                                                                                            Found in src/log_analyzer/js/analyzer.table.js - About 35 mins to fix

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

                                                                                                                  _callModFn : function(prefix, elemName, modName, modVal, modFnParams) {
                                                                                                              Severity: Minor
                                                                                                              Found in src/log_analyzer/js/analyzer.table.js - About 35 mins to fix

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

                                                                                                                    on : function(ctx, e, data, fn, fnCtx) {
                                                                                                                Severity: Minor
                                                                                                                Found in src/log_analyzer/js/analyzer.table.js - About 35 mins to fix

                                                                                                                  Avoid too many return statements within this function.
                                                                                                                  Open

                                                                                                                       var __$ref={};function apply(ctx){try{return applyc(ctx||this,__$ref)}catch(e){(ctx||this).xjstContext=e;throw e}}exports.apply=apply;function applyc(__$ctx,__$ref){var __$t=__$ctx._mode;if(__$t==="content"){__$ctx.__$a=0;return __$ctx.ctx.content}else if(__$t==="mix"){__$ctx.__$a=0;return undefined}else if(__$t==="bem"){__$ctx.__$a=0;return undefined}else if(__$t==="js"){__$ctx.__$a=0;return undefined}else if(__$t==="cls"){__$ctx.__$a=0;return undefined}else if(__$t==="attrs"){__$ctx.__$a=0;return undefined}else if(__$t==="tag"){__$ctx.__$a=0;return undefined}else if(__$t==="default"){__$ctx.__$a=0;var __$r=__$b8(__$ctx,__$ref);if(__$r!==__$ref)return __$r}else if(__$t===""){if(__$ctx.ctx&&__$ctx.ctx._vow&&__$ctx.__$a!==1){__$ctx.__$a=0;var __$r=__$b9(__$ctx,__$ref);if(__$r!==__$ref)return __$r}if(__$ctx._.isSimple(__$ctx.ctx)){__$ctx.__$a=0;var __$r=__$b10(__$ctx,__$ref);if(__$r!==__$ref)return __$r}if(!__$ctx.ctx){__$ctx.__$a=0;var __$r=__$b11(__$ctx,__$ref);if(__$r!==__$ref)return __$r}if(__$ctx._.isArray(__$ctx.ctx)){__$ctx.__$a=0;var __$r=__$b12(__$ctx,__$ref);if(__$r!==__$ref)return __$r}__$ctx.__$a=0;var __$r=__$b13(__$ctx,__$ref);if(__$r!==__$ref)return __$r}__$ctx.__$a=0}[function(exports){var BEM_={},toString=Object.prototype.toString,isArray=Array.isArray||function(obj){return toString.call(obj)==="[object Array]"},SHORT_TAGS={area:1,base:1,br:1,col:1,command:1,embed:1,hr:1,img:1,input:1,keygen:1,link:1,meta:1,param:1,source:1,wbr:1};!function(BEM,undefined){var MOD_DELIM="_",ELEM_DELIM="__",NAME_PATTERN="[a-zA-Z0-9-]+";function buildModPostfix(modName,modVal){var res=MOD_DELIM+modName;if(modVal!==true)res+=MOD_DELIM+modVal;return res}function buildBlockClass(name,modName,modVal){var res=name;if(modVal)res+=buildModPostfix(modName,modVal);return res}function buildElemClass(block,name,modName,modVal){var res=buildBlockClass(block)+ELEM_DELIM+name;if(modVal)res+=buildModPostfix(modName,modVal);return res}BEM.INTERNAL={NAME_PATTERN:NAME_PATTERN,MOD_DELIM:MOD_DELIM,ELEM_DELIM:ELEM_DELIM,buildModPostfix:buildModPostfix,buildClass:function(block,elem,modName,modVal){var typeOfModName=typeof modName;if(typeOfModName==="string"||typeOfModName==="boolean"){var typeOfModVal=typeof modVal;if(typeOfModVal!=="string"&&typeOfModVal!=="boolean"){modVal=modName;modName=elem;elem=undefined}}else if(typeOfModName!=="undefined"){modName=undefined}else if(elem&&typeof elem!=="string"){elem=undefined}if(!(elem||modName)){return block}if(elem)return buildElemClass(block,elem,modName,modVal);else return buildBlockClass(block,modName,modVal)},buildModsClasses:function(block,elem,mods){var res="";if(mods){var modName;for(modName in mods){if(!mods.hasOwnProperty(modName))continue;var modVal=mods[modName];if(!modVal&&modVal!==0)continue;typeof modVal!=="boolean"&&(modVal+="");res+=" "+(elem?buildElemClass(block,elem,modName,modVal):buildBlockClass(block,modName,modVal))}}return res},buildClasses:function(block,elem,mods){var res="";if(elem)res+=buildElemClass(block,elem);else res+=buildBlockClass(block);res+=this.buildModsClasses(block,elem,mods);return res}}}(BEM_);var ts={'"':"&quot;","&":"&amp;","<":"&lt;",">":"&gt;"},f=function(t){return ts[t]||t};var buildEscape=function(r){r=new RegExp(r,"g");return function(s){return(""+s).replace(r,f)}};function BEMContext(context,apply_){this.ctx=typeof context===null?"":context;this.apply=apply_;this._str="";var self=this;this._buf={push:function(){var chunks=Array.prototype.slice.call(arguments).join("");self._str+=chunks},join:function(){return this._str}};this._=this;this._start=true;this._mode="";this._listLength=0;this._notNewList=false;this.position=0;this.block=undefined;this.elem=undefined;this.mods=undefined;this.elemMods=undefined}BEMContext.prototype.isArray=isArray;BEMContext.prototype.isSimple=function isSimple(obj){var t=typeof obj;return t==="string"||t==="number"||t==="boolean"};BEMContext.prototype.isShortTag=function isShortTag(t){return SHORT_TAGS.hasOwnProperty(t)};BEMContext.prototype.extend=function extend(o1,o2){if(!o1||!o2)return o1||o2;var res={},n;for(n in o1)o1.hasOwnProperty(n)&&(res[n]=o1[n]);for(n in o2)o2.hasOwnProperty(n)&&(res[n]=o2[n]);return res};var cnt=0,id=+new Date,expando="__"+id,get=function(){return"uniq"+id+ ++cnt};BEMContext.prototype.identify=function(obj,onlyGet){if(!obj)return get();if(onlyGet||obj[expando]){return obj[expando]}else{return obj[expando]=get()}};BEMContext.prototype.xmlEscape=buildEscape("[&<>]");BEMContext.prototype.attrEscape=buildEscape('["&<>]');BEMContext.prototype.BEM=BEM_;BEMContext.prototype.isFirst=function isFirst(){return this.position===1};BEMContext.prototype.isLast=function isLast(){return this.position===this._listLength};BEMContext.prototype.generateId=function generateId(){return this.identify(this.ctx)};var oldApply=exports.apply;exports.apply=BEMContext.apply=function _apply(context){var ctx=new BEMContext(context||this,oldApply);ctx.apply();return ctx._str};BEMContext.prototype.reapply=BEMContext.apply}].forEach(function(fn){fn(exports,this)},{recordExtensions:function(ctx){ctx._str=undefined;ctx._mode=undefined;ctx.block=undefined;ctx.elem=undefined;ctx._notNewList=undefined;ctx.position=undefined;ctx._listLength=undefined;ctx.ctx=undefined;ctx.__$a=0;ctx._currBlock=undefined;ctx.mods=undefined;ctx.elemMods=undefined}});function __$b8(__$ctx,__$ref){__$ctx.__$a=0;var _this__$0=__$ctx,BEM___$1=_this__$0.BEM,v__$2=__$ctx.ctx,isBEM__$3,tag__$4,result__$5;var __$r__$6;var __$l0__$7=__$ctx._str;__$ctx._str="";var __$r__$8;var __$l1__$9=__$ctx._mode;__$ctx._mode="tag";__$r__$8=applyc(__$ctx,__$ref);__$ctx._mode=__$l1__$9;tag__$4=__$r__$8;typeof tag__$4!=="undefined"||(tag__$4=v__$2.tag);typeof tag__$4!=="undefined"||(tag__$4="div");if(tag__$4){var jsParams__$10,js__$11;if(__$ctx.block&&v__$2.js!==false){var __$r__$12;var __$l2__$13=__$ctx._mode;__$ctx._mode="js";__$r__$12=applyc(__$ctx,__$ref);__$ctx._mode=__$l2__$13;js__$11=__$r__$12;js__$11=js__$11?__$ctx._.extend(v__$2.js,js__$11===true?{}:js__$11):v__$2.js===true?{}:v__$2.js;js__$11&&((jsParams__$10={})[BEM___$1.INTERNAL.buildClass(__$ctx.block,v__$2.elem)]=js__$11)}__$ctx._str+="<"+tag__$4;var __$r__$14;var __$l3__$15=__$ctx._mode;__$ctx._mode="bem";__$r__$14=applyc(__$ctx,__$ref);__$ctx._mode=__$l3__$15;isBEM__$3=__$r__$14;typeof isBEM__$3!=="undefined"||(isBEM__$3=typeof v__$2.bem!=="undefined"?v__$2.bem:v__$2.block||v__$2.elem);var __$r__$17;var __$l4__$18=__$ctx._mode;__$ctx._mode="cls";__$r__$17=applyc(__$ctx,__$ref);__$ctx._mode=__$l4__$18;var cls__$16=__$r__$17;cls__$16||(cls__$16=v__$2.cls);var addJSInitClass__$19=v__$2.block&&jsParams__$10;if(isBEM__$3||cls__$16){__$ctx._str+=' class="';if(isBEM__$3){__$ctx._str+=BEM___$1.INTERNAL.buildClasses(__$ctx.block,v__$2.elem,v__$2.elemMods||v__$2.mods);var __$r__$21;var __$l5__$22=__$ctx._mode;__$ctx._mode="mix";__$r__$21=applyc(__$ctx,__$ref);__$ctx._mode=__$l5__$22;var mix__$20=__$r__$21;v__$2.mix&&(mix__$20=mix__$20?mix__$20.concat(v__$2.mix):v__$2.mix);if(mix__$20){var visited__$23={},visitedKey__$24=function(block,elem){return(block||"")+"__"+(elem||"")};visited__$23[visitedKey__$24(__$ctx.block,__$ctx.elem)]=true;if(!__$ctx._.isArray(mix__$20))mix__$20=[mix__$20];for(var i__$25=0;i__$25<mix__$20.length;i__$25++){var mixItem__$26=mix__$20[i__$25],hasItem__$27=mixItem__$26.block||mixItem__$26.elem,block__$28=mixItem__$26.block||mixItem__$26._block||_this__$0.block,elem__$29=mixItem__$26.elem||mixItem__$26._elem||_this__$0.elem;if(hasItem__$27)__$ctx._str+=" ";__$ctx._str+=BEM___$1.INTERNAL[hasItem__$27?"buildClasses":"buildModsClasses"](block__$28,mixItem__$26.elem||mixItem__$26._elem||(mixItem__$26.block?undefined:_this__$0.elem),mixItem__$26.elemMods||mixItem__$26.mods);if(mixItem__$26.js){(jsParams__$10||(jsParams__$10={}))[BEM___$1.INTERNAL.buildClass(block__$28,mixItem__$26.elem)]=mixItem__$26.js===true?{}:mixItem__$26.js;addJSInitClass__$19||(addJSInitClass__$19=block__$28&&!mixItem__$26.elem)}if(hasItem__$27&&!visited__$23[visitedKey__$24(block__$28,elem__$29)]){visited__$23[visitedKey__$24(block__$28,elem__$29)]=true;var __$r__$31;var __$l6__$32=__$ctx._mode;__$ctx._mode="mix";var __$l7__$33=__$ctx.block;__$ctx.block=block__$28;var __$l8__$34=__$ctx.elem;__$ctx.elem=elem__$29;__$r__$31=applyc(__$ctx,__$ref);__$ctx._mode=__$l6__$32;__$ctx.block=__$l7__$33;__$ctx.elem=__$l8__$34;var nestedMix__$30=__$r__$31;if(nestedMix__$30){for(var j__$35=0;j__$35<nestedMix__$30.length;j__$35++){var nestedItem__$36=nestedMix__$30[j__$35];if(!nestedItem__$36.block&&!nestedItem__$36.elem||!visited__$23[visitedKey__$24(nestedItem__$36.block,nestedItem__$36.elem)]){nestedItem__$36._block=block__$28;nestedItem__$36._elem=elem__$29;mix__$20.splice(i__$25+1,0,nestedItem__$36)}}}}}}}if(cls__$16)__$ctx._str+=isBEM__$3?" "+cls__$16:cls__$16;if(addJSInitClass__$19)__$ctx._str+=' i-bem"';else __$ctx._str+='"'}if(isBEM__$3&&jsParams__$10){__$ctx._str+=' data-bem="'+__$ctx._.attrEscape(JSON.stringify(jsParams__$10))+'"'}var __$r__$38;var __$l9__$39=__$ctx._mode;__$ctx._mode="attrs";__$r__$38=applyc(__$ctx,__$ref);__$ctx._mode=__$l9__$39;var attrs__$37=__$r__$38;attrs__$37=__$ctx._.extend(attrs__$37,v__$2.attrs);if(attrs__$37){var name__$40,attr__$41;for(name__$40 in attrs__$37){attr__$41=attrs__$37[name__$40];if(attr__$41===undefined)continue;__$ctx._str+=" "+name__$40+'="'+__$ctx._.attrEscape(__$ctx._.isSimple(attr__$41)?attr__$41:__$ctx.reapply(attr__$41))+'"'}}}if(__$ctx._.isShortTag(tag__$4)){__$ctx._str+="/>"}else{if(tag__$4)__$ctx._str+=">";var __$r__$43;var __$l10__$44=__$ctx._mode;__$ctx._mode="content";__$r__$43=applyc(__$ctx,__$ref);__$ctx._mode=__$l10__$44;var content__$42=__$r__$43;if(content__$42||content__$42===0){isBEM__$3=__$ctx.block||__$ctx.elem;var __$r__$45;var __$l11__$46=__$ctx._mode;__$ctx._mode="";var __$l12__$47=__$ctx._notNewList;__$ctx._notNewList=false;var __$l13__$48=__$ctx.position;__$ctx.position=isBEM__$3?1:__$ctx.position;var __$l14__$49=__$ctx._listLength;__$ctx._listLength=isBEM__$3?1:__$ctx._listLength;var __$l15__$50=__$ctx.ctx;__$ctx.ctx=content__$42;__$r__$45=applyc(__$ctx,__$ref);__$ctx._mode=__$l11__$46;__$ctx._notNewList=__$l12__$47;__$ctx.position=__$l13__$48;__$ctx._listLength=__$l14__$49;__$ctx.ctx=__$l15__$50}if(tag__$4)__$ctx._str+="</"+tag__$4+">"}result__$5=__$ctx._str;__$r__$6=undefined;__$ctx._str=__$l0__$7;__$ctx._buf.push(result__$5);return}function __$b9(__$ctx,__$ref){__$ctx.__$a=0;var __$r__$51;var __$l0__$52=__$ctx._mode;__$ctx._mode="";var __$l1__$53=__$ctx.ctx;__$ctx.ctx=__$ctx.ctx._value;var __$r__$54;__$ctx.__$a=1;__$r__$54=applyc(__$ctx,__$ref);__$r__$51=__$r__$54;__$ctx._mode=__$l0__$52;__$ctx.ctx=__$l1__$53;return}function __$b10(__$ctx,__$ref){__$ctx.__$a=0;__$ctx._listLength--;var ctx__$55=__$ctx.ctx;if(ctx__$55&&ctx__$55!==true||ctx__$55===0){__$ctx._buf.push(ctx__$55+"")}return}function __$b11(__$ctx,__$ref){__$ctx.__$a=0;__$ctx._listLength--;return}function __$b12(__$ctx,__$ref){__$ctx.__$a=0;var v__$56=__$ctx.ctx,l__$57=v__$56.length,i__$58=0,prevPos__$59=__$ctx.position,prevNotNewList__$60=__$ctx._notNewList;if(prevNotNewList__$60){__$ctx._listLength+=l__$57-1}else{__$ctx.position=0;__$ctx._listLength=l__$57}__$ctx._notNewList=true;while(i__$58<l__$57)!function(){var __$r__$61;var __$l0__$62=__$ctx.ctx;__$ctx.ctx=v__$56[i__$58++];__$r__$61=applyc(__$ctx,__$ref);__$ctx.ctx=__$l0__$62;return __$r__$61}();prevNotNewList__$60||(__$ctx.position=prevPos__$59);return}function __$b13(__$ctx,__$ref){__$ctx.__$a=0;var vBlock__$63=__$ctx.ctx.block,vElem__$64=__$ctx.ctx.elem,block__$65=__$ctx._currBlock||__$ctx.block;__$ctx.ctx||(__$ctx.ctx={});var __$r__$66;var __$l0__$67=__$ctx._mode;__$ctx._mode="default";var __$l1__$68=__$ctx.block;__$ctx.block=vBlock__$63||(vElem__$64?block__$65:undefined);var __$l2__$69=__$ctx._currBlock;__$ctx._currBlock=vBlock__$63||vElem__$64?undefined:block__$65;var __$l3__$70=__$ctx.elem;__$ctx.elem=__$ctx.ctx.elem;var __$l4__$71=__$ctx.mods;__$ctx.mods=(vBlock__$63?__$ctx.ctx.mods:__$ctx.mods)||{};var __$l5__$72=__$ctx.elemMods;__$ctx.elemMods=__$ctx.ctx.elemMods||{};__$ctx.block||__$ctx.elem?__$ctx.position=(__$ctx.position||0)+1:__$ctx._listLength--;applyc(__$ctx,__$ref);__$r__$66=undefined;__$ctx._mode=__$l0__$67;__$ctx.block=__$l1__$68;__$ctx._currBlock=__$l2__$69;__$ctx.elem=__$l3__$70;__$ctx.mods=__$l4__$71;__$ctx.elemMods=__$l5__$72;return};
                                                                                                                  Severity: Major
                                                                                                                  Found in src/log_analyzer/js/analyzer.table.js - About 30 mins to fix

                                                                                                                    Avoid too many return statements within this function.
                                                                                                                    Open

                                                                                                                        return false;
                                                                                                                    Severity: Major
                                                                                                                    Found in src/log_analyzer/js/analyzer.table.js - About 30 mins to fix

                                                                                                                      Avoid too many return statements within this function.
                                                                                                                      Open

                                                                                                                           var __$ref={};function apply(ctx){try{return applyc(ctx||this,__$ref)}catch(e){(ctx||this).xjstContext=e;throw e}}exports.apply=apply;function applyc(__$ctx,__$ref){var __$t=__$ctx._mode;if(__$t==="content"){__$ctx.__$a=0;return __$ctx.ctx.content}else if(__$t==="mix"){__$ctx.__$a=0;return undefined}else if(__$t==="bem"){__$ctx.__$a=0;return undefined}else if(__$t==="js"){__$ctx.__$a=0;return undefined}else if(__$t==="cls"){__$ctx.__$a=0;return undefined}else if(__$t==="attrs"){__$ctx.__$a=0;return undefined}else if(__$t==="tag"){__$ctx.__$a=0;return undefined}else if(__$t==="default"){__$ctx.__$a=0;var __$r=__$b8(__$ctx,__$ref);if(__$r!==__$ref)return __$r}else if(__$t===""){if(__$ctx.ctx&&__$ctx.ctx._vow&&__$ctx.__$a!==1){__$ctx.__$a=0;var __$r=__$b9(__$ctx,__$ref);if(__$r!==__$ref)return __$r}if(__$ctx._.isSimple(__$ctx.ctx)){__$ctx.__$a=0;var __$r=__$b10(__$ctx,__$ref);if(__$r!==__$ref)return __$r}if(!__$ctx.ctx){__$ctx.__$a=0;var __$r=__$b11(__$ctx,__$ref);if(__$r!==__$ref)return __$r}if(__$ctx._.isArray(__$ctx.ctx)){__$ctx.__$a=0;var __$r=__$b12(__$ctx,__$ref);if(__$r!==__$ref)return __$r}__$ctx.__$a=0;var __$r=__$b13(__$ctx,__$ref);if(__$r!==__$ref)return __$r}__$ctx.__$a=0}[function(exports){var BEM_={},toString=Object.prototype.toString,isArray=Array.isArray||function(obj){return toString.call(obj)==="[object Array]"},SHORT_TAGS={area:1,base:1,br:1,col:1,command:1,embed:1,hr:1,img:1,input:1,keygen:1,link:1,meta:1,param:1,source:1,wbr:1};!function(BEM,undefined){var MOD_DELIM="_",ELEM_DELIM="__",NAME_PATTERN="[a-zA-Z0-9-]+";function buildModPostfix(modName,modVal){var res=MOD_DELIM+modName;if(modVal!==true)res+=MOD_DELIM+modVal;return res}function buildBlockClass(name,modName,modVal){var res=name;if(modVal)res+=buildModPostfix(modName,modVal);return res}function buildElemClass(block,name,modName,modVal){var res=buildBlockClass(block)+ELEM_DELIM+name;if(modVal)res+=buildModPostfix(modName,modVal);return res}BEM.INTERNAL={NAME_PATTERN:NAME_PATTERN,MOD_DELIM:MOD_DELIM,ELEM_DELIM:ELEM_DELIM,buildModPostfix:buildModPostfix,buildClass:function(block,elem,modName,modVal){var typeOfModName=typeof modName;if(typeOfModName==="string"||typeOfModName==="boolean"){var typeOfModVal=typeof modVal;if(typeOfModVal!=="string"&&typeOfModVal!=="boolean"){modVal=modName;modName=elem;elem=undefined}}else if(typeOfModName!=="undefined"){modName=undefined}else if(elem&&typeof elem!=="string"){elem=undefined}if(!(elem||modName)){return block}if(elem)return buildElemClass(block,elem,modName,modVal);else return buildBlockClass(block,modName,modVal)},buildModsClasses:function(block,elem,mods){var res="";if(mods){var modName;for(modName in mods){if(!mods.hasOwnProperty(modName))continue;var modVal=mods[modName];if(!modVal&&modVal!==0)continue;typeof modVal!=="boolean"&&(modVal+="");res+=" "+(elem?buildElemClass(block,elem,modName,modVal):buildBlockClass(block,modName,modVal))}}return res},buildClasses:function(block,elem,mods){var res="";if(elem)res+=buildElemClass(block,elem);else res+=buildBlockClass(block);res+=this.buildModsClasses(block,elem,mods);return res}}}(BEM_);var ts={'"':"&quot;","&":"&amp;","<":"&lt;",">":"&gt;"},f=function(t){return ts[t]||t};var buildEscape=function(r){r=new RegExp(r,"g");return function(s){return(""+s).replace(r,f)}};function BEMContext(context,apply_){this.ctx=typeof context===null?"":context;this.apply=apply_;this._str="";var self=this;this._buf={push:function(){var chunks=Array.prototype.slice.call(arguments).join("");self._str+=chunks},join:function(){return this._str}};this._=this;this._start=true;this._mode="";this._listLength=0;this._notNewList=false;this.position=0;this.block=undefined;this.elem=undefined;this.mods=undefined;this.elemMods=undefined}BEMContext.prototype.isArray=isArray;BEMContext.prototype.isSimple=function isSimple(obj){var t=typeof obj;return t==="string"||t==="number"||t==="boolean"};BEMContext.prototype.isShortTag=function isShortTag(t){return SHORT_TAGS.hasOwnProperty(t)};BEMContext.prototype.extend=function extend(o1,o2){if(!o1||!o2)return o1||o2;var res={},n;for(n in o1)o1.hasOwnProperty(n)&&(res[n]=o1[n]);for(n in o2)o2.hasOwnProperty(n)&&(res[n]=o2[n]);return res};var cnt=0,id=+new Date,expando="__"+id,get=function(){return"uniq"+id+ ++cnt};BEMContext.prototype.identify=function(obj,onlyGet){if(!obj)return get();if(onlyGet||obj[expando]){return obj[expando]}else{return obj[expando]=get()}};BEMContext.prototype.xmlEscape=buildEscape("[&<>]");BEMContext.prototype.attrEscape=buildEscape('["&<>]');BEMContext.prototype.BEM=BEM_;BEMContext.prototype.isFirst=function isFirst(){return this.position===1};BEMContext.prototype.isLast=function isLast(){return this.position===this._listLength};BEMContext.prototype.generateId=function generateId(){return this.identify(this.ctx)};var oldApply=exports.apply;exports.apply=BEMContext.apply=function _apply(context){var ctx=new BEMContext(context||this,oldApply);ctx.apply();return ctx._str};BEMContext.prototype.reapply=BEMContext.apply}].forEach(function(fn){fn(exports,this)},{recordExtensions:function(ctx){ctx._str=undefined;ctx._mode=undefined;ctx.block=undefined;ctx.elem=undefined;ctx._notNewList=undefined;ctx.position=undefined;ctx._listLength=undefined;ctx.ctx=undefined;ctx.__$a=0;ctx._currBlock=undefined;ctx.mods=undefined;ctx.elemMods=undefined}});function __$b8(__$ctx,__$ref){__$ctx.__$a=0;var _this__$0=__$ctx,BEM___$1=_this__$0.BEM,v__$2=__$ctx.ctx,isBEM__$3,tag__$4,result__$5;var __$r__$6;var __$l0__$7=__$ctx._str;__$ctx._str="";var __$r__$8;var __$l1__$9=__$ctx._mode;__$ctx._mode="tag";__$r__$8=applyc(__$ctx,__$ref);__$ctx._mode=__$l1__$9;tag__$4=__$r__$8;typeof tag__$4!=="undefined"||(tag__$4=v__$2.tag);typeof tag__$4!=="undefined"||(tag__$4="div");if(tag__$4){var jsParams__$10,js__$11;if(__$ctx.block&&v__$2.js!==false){var __$r__$12;var __$l2__$13=__$ctx._mode;__$ctx._mode="js";__$r__$12=applyc(__$ctx,__$ref);__$ctx._mode=__$l2__$13;js__$11=__$r__$12;js__$11=js__$11?__$ctx._.extend(v__$2.js,js__$11===true?{}:js__$11):v__$2.js===true?{}:v__$2.js;js__$11&&((jsParams__$10={})[BEM___$1.INTERNAL.buildClass(__$ctx.block,v__$2.elem)]=js__$11)}__$ctx._str+="<"+tag__$4;var __$r__$14;var __$l3__$15=__$ctx._mode;__$ctx._mode="bem";__$r__$14=applyc(__$ctx,__$ref);__$ctx._mode=__$l3__$15;isBEM__$3=__$r__$14;typeof isBEM__$3!=="undefined"||(isBEM__$3=typeof v__$2.bem!=="undefined"?v__$2.bem:v__$2.block||v__$2.elem);var __$r__$17;var __$l4__$18=__$ctx._mode;__$ctx._mode="cls";__$r__$17=applyc(__$ctx,__$ref);__$ctx._mode=__$l4__$18;var cls__$16=__$r__$17;cls__$16||(cls__$16=v__$2.cls);var addJSInitClass__$19=v__$2.block&&jsParams__$10;if(isBEM__$3||cls__$16){__$ctx._str+=' class="';if(isBEM__$3){__$ctx._str+=BEM___$1.INTERNAL.buildClasses(__$ctx.block,v__$2.elem,v__$2.elemMods||v__$2.mods);var __$r__$21;var __$l5__$22=__$ctx._mode;__$ctx._mode="mix";__$r__$21=applyc(__$ctx,__$ref);__$ctx._mode=__$l5__$22;var mix__$20=__$r__$21;v__$2.mix&&(mix__$20=mix__$20?mix__$20.concat(v__$2.mix):v__$2.mix);if(mix__$20){var visited__$23={},visitedKey__$24=function(block,elem){return(block||"")+"__"+(elem||"")};visited__$23[visitedKey__$24(__$ctx.block,__$ctx.elem)]=true;if(!__$ctx._.isArray(mix__$20))mix__$20=[mix__$20];for(var i__$25=0;i__$25<mix__$20.length;i__$25++){var mixItem__$26=mix__$20[i__$25],hasItem__$27=mixItem__$26.block||mixItem__$26.elem,block__$28=mixItem__$26.block||mixItem__$26._block||_this__$0.block,elem__$29=mixItem__$26.elem||mixItem__$26._elem||_this__$0.elem;if(hasItem__$27)__$ctx._str+=" ";__$ctx._str+=BEM___$1.INTERNAL[hasItem__$27?"buildClasses":"buildModsClasses"](block__$28,mixItem__$26.elem||mixItem__$26._elem||(mixItem__$26.block?undefined:_this__$0.elem),mixItem__$26.elemMods||mixItem__$26.mods);if(mixItem__$26.js){(jsParams__$10||(jsParams__$10={}))[BEM___$1.INTERNAL.buildClass(block__$28,mixItem__$26.elem)]=mixItem__$26.js===true?{}:mixItem__$26.js;addJSInitClass__$19||(addJSInitClass__$19=block__$28&&!mixItem__$26.elem)}if(hasItem__$27&&!visited__$23[visitedKey__$24(block__$28,elem__$29)]){visited__$23[visitedKey__$24(block__$28,elem__$29)]=true;var __$r__$31;var __$l6__$32=__$ctx._mode;__$ctx._mode="mix";var __$l7__$33=__$ctx.block;__$ctx.block=block__$28;var __$l8__$34=__$ctx.elem;__$ctx.elem=elem__$29;__$r__$31=applyc(__$ctx,__$ref);__$ctx._mode=__$l6__$32;__$ctx.block=__$l7__$33;__$ctx.elem=__$l8__$34;var nestedMix__$30=__$r__$31;if(nestedMix__$30){for(var j__$35=0;j__$35<nestedMix__$30.length;j__$35++){var nestedItem__$36=nestedMix__$30[j__$35];if(!nestedItem__$36.block&&!nestedItem__$36.elem||!visited__$23[visitedKey__$24(nestedItem__$36.block,nestedItem__$36.elem)]){nestedItem__$36._block=block__$28;nestedItem__$36._elem=elem__$29;mix__$20.splice(i__$25+1,0,nestedItem__$36)}}}}}}}if(cls__$16)__$ctx._str+=isBEM__$3?" "+cls__$16:cls__$16;if(addJSInitClass__$19)__$ctx._str+=' i-bem"';else __$ctx._str+='"'}if(isBEM__$3&&jsParams__$10){__$ctx._str+=' data-bem="'+__$ctx._.attrEscape(JSON.stringify(jsParams__$10))+'"'}var __$r__$38;var __$l9__$39=__$ctx._mode;__$ctx._mode="attrs";__$r__$38=applyc(__$ctx,__$ref);__$ctx._mode=__$l9__$39;var attrs__$37=__$r__$38;attrs__$37=__$ctx._.extend(attrs__$37,v__$2.attrs);if(attrs__$37){var name__$40,attr__$41;for(name__$40 in attrs__$37){attr__$41=attrs__$37[name__$40];if(attr__$41===undefined)continue;__$ctx._str+=" "+name__$40+'="'+__$ctx._.attrEscape(__$ctx._.isSimple(attr__$41)?attr__$41:__$ctx.reapply(attr__$41))+'"'}}}if(__$ctx._.isShortTag(tag__$4)){__$ctx._str+="/>"}else{if(tag__$4)__$ctx._str+=">";var __$r__$43;var __$l10__$44=__$ctx._mode;__$ctx._mode="content";__$r__$43=applyc(__$ctx,__$ref);__$ctx._mode=__$l10__$44;var content__$42=__$r__$43;if(content__$42||content__$42===0){isBEM__$3=__$ctx.block||__$ctx.elem;var __$r__$45;var __$l11__$46=__$ctx._mode;__$ctx._mode="";var __$l12__$47=__$ctx._notNewList;__$ctx._notNewList=false;var __$l13__$48=__$ctx.position;__$ctx.position=isBEM__$3?1:__$ctx.position;var __$l14__$49=__$ctx._listLength;__$ctx._listLength=isBEM__$3?1:__$ctx._listLength;var __$l15__$50=__$ctx.ctx;__$ctx.ctx=content__$42;__$r__$45=applyc(__$ctx,__$ref);__$ctx._mode=__$l11__$46;__$ctx._notNewList=__$l12__$47;__$ctx.position=__$l13__$48;__$ctx._listLength=__$l14__$49;__$ctx.ctx=__$l15__$50}if(tag__$4)__$ctx._str+="</"+tag__$4+">"}result__$5=__$ctx._str;__$r__$6=undefined;__$ctx._str=__$l0__$7;__$ctx._buf.push(result__$5);return}function __$b9(__$ctx,__$ref){__$ctx.__$a=0;var __$r__$51;var __$l0__$52=__$ctx._mode;__$ctx._mode="";var __$l1__$53=__$ctx.ctx;__$ctx.ctx=__$ctx.ctx._value;var __$r__$54;__$ctx.__$a=1;__$r__$54=applyc(__$ctx,__$ref);__$r__$51=__$r__$54;__$ctx._mode=__$l0__$52;__$ctx.ctx=__$l1__$53;return}function __$b10(__$ctx,__$ref){__$ctx.__$a=0;__$ctx._listLength--;var ctx__$55=__$ctx.ctx;if(ctx__$55&&ctx__$55!==true||ctx__$55===0){__$ctx._buf.push(ctx__$55+"")}return}function __$b11(__$ctx,__$ref){__$ctx.__$a=0;__$ctx._listLength--;return}function __$b12(__$ctx,__$ref){__$ctx.__$a=0;var v__$56=__$ctx.ctx,l__$57=v__$56.length,i__$58=0,prevPos__$59=__$ctx.position,prevNotNewList__$60=__$ctx._notNewList;if(prevNotNewList__$60){__$ctx._listLength+=l__$57-1}else{__$ctx.position=0;__$ctx._listLength=l__$57}__$ctx._notNewList=true;while(i__$58<l__$57)!function(){var __$r__$61;var __$l0__$62=__$ctx.ctx;__$ctx.ctx=v__$56[i__$58++];__$r__$61=applyc(__$ctx,__$ref);__$ctx.ctx=__$l0__$62;return __$r__$61}();prevNotNewList__$60||(__$ctx.position=prevPos__$59);return}function __$b13(__$ctx,__$ref){__$ctx.__$a=0;var vBlock__$63=__$ctx.ctx.block,vElem__$64=__$ctx.ctx.elem,block__$65=__$ctx._currBlock||__$ctx.block;__$ctx.ctx||(__$ctx.ctx={});var __$r__$66;var __$l0__$67=__$ctx._mode;__$ctx._mode="default";var __$l1__$68=__$ctx.block;__$ctx.block=vBlock__$63||(vElem__$64?block__$65:undefined);var __$l2__$69=__$ctx._currBlock;__$ctx._currBlock=vBlock__$63||vElem__$64?undefined:block__$65;var __$l3__$70=__$ctx.elem;__$ctx.elem=__$ctx.ctx.elem;var __$l4__$71=__$ctx.mods;__$ctx.mods=(vBlock__$63?__$ctx.ctx.mods:__$ctx.mods)||{};var __$l5__$72=__$ctx.elemMods;__$ctx.elemMods=__$ctx.ctx.elemMods||{};__$ctx.block||__$ctx.elem?__$ctx.position=(__$ctx.position||0)+1:__$ctx._listLength--;applyc(__$ctx,__$ref);__$r__$66=undefined;__$ctx._mode=__$l0__$67;__$ctx.block=__$l1__$68;__$ctx._currBlock=__$l2__$69;__$ctx.elem=__$l3__$70;__$ctx.mods=__$l4__$71;__$ctx.elemMods=__$l5__$72;return};
                                                                                                                      Severity: Major
                                                                                                                      Found in src/log_analyzer/js/analyzer.table.js - About 30 mins to fix

                                                                                                                        Avoid too many return statements within this function.
                                                                                                                        Open

                                                                                                                             var __$ref={};function apply(ctx){try{return applyc(ctx||this,__$ref)}catch(e){(ctx||this).xjstContext=e;throw e}}exports.apply=apply;function applyc(__$ctx,__$ref){var __$t=__$ctx._mode;if(__$t==="content"){__$ctx.__$a=0;return __$ctx.ctx.content}else if(__$t==="mix"){__$ctx.__$a=0;return undefined}else if(__$t==="bem"){__$ctx.__$a=0;return undefined}else if(__$t==="js"){__$ctx.__$a=0;return undefined}else if(__$t==="cls"){__$ctx.__$a=0;return undefined}else if(__$t==="attrs"){__$ctx.__$a=0;return undefined}else if(__$t==="tag"){__$ctx.__$a=0;return undefined}else if(__$t==="default"){__$ctx.__$a=0;var __$r=__$b8(__$ctx,__$ref);if(__$r!==__$ref)return __$r}else if(__$t===""){if(__$ctx.ctx&&__$ctx.ctx._vow&&__$ctx.__$a!==1){__$ctx.__$a=0;var __$r=__$b9(__$ctx,__$ref);if(__$r!==__$ref)return __$r}if(__$ctx._.isSimple(__$ctx.ctx)){__$ctx.__$a=0;var __$r=__$b10(__$ctx,__$ref);if(__$r!==__$ref)return __$r}if(!__$ctx.ctx){__$ctx.__$a=0;var __$r=__$b11(__$ctx,__$ref);if(__$r!==__$ref)return __$r}if(__$ctx._.isArray(__$ctx.ctx)){__$ctx.__$a=0;var __$r=__$b12(__$ctx,__$ref);if(__$r!==__$ref)return __$r}__$ctx.__$a=0;var __$r=__$b13(__$ctx,__$ref);if(__$r!==__$ref)return __$r}__$ctx.__$a=0}[function(exports){var BEM_={},toString=Object.prototype.toString,isArray=Array.isArray||function(obj){return toString.call(obj)==="[object Array]"},SHORT_TAGS={area:1,base:1,br:1,col:1,command:1,embed:1,hr:1,img:1,input:1,keygen:1,link:1,meta:1,param:1,source:1,wbr:1};!function(BEM,undefined){var MOD_DELIM="_",ELEM_DELIM="__",NAME_PATTERN="[a-zA-Z0-9-]+";function buildModPostfix(modName,modVal){var res=MOD_DELIM+modName;if(modVal!==true)res+=MOD_DELIM+modVal;return res}function buildBlockClass(name,modName,modVal){var res=name;if(modVal)res+=buildModPostfix(modName,modVal);return res}function buildElemClass(block,name,modName,modVal){var res=buildBlockClass(block)+ELEM_DELIM+name;if(modVal)res+=buildModPostfix(modName,modVal);return res}BEM.INTERNAL={NAME_PATTERN:NAME_PATTERN,MOD_DELIM:MOD_DELIM,ELEM_DELIM:ELEM_DELIM,buildModPostfix:buildModPostfix,buildClass:function(block,elem,modName,modVal){var typeOfModName=typeof modName;if(typeOfModName==="string"||typeOfModName==="boolean"){var typeOfModVal=typeof modVal;if(typeOfModVal!=="string"&&typeOfModVal!=="boolean"){modVal=modName;modName=elem;elem=undefined}}else if(typeOfModName!=="undefined"){modName=undefined}else if(elem&&typeof elem!=="string"){elem=undefined}if(!(elem||modName)){return block}if(elem)return buildElemClass(block,elem,modName,modVal);else return buildBlockClass(block,modName,modVal)},buildModsClasses:function(block,elem,mods){var res="";if(mods){var modName;for(modName in mods){if(!mods.hasOwnProperty(modName))continue;var modVal=mods[modName];if(!modVal&&modVal!==0)continue;typeof modVal!=="boolean"&&(modVal+="");res+=" "+(elem?buildElemClass(block,elem,modName,modVal):buildBlockClass(block,modName,modVal))}}return res},buildClasses:function(block,elem,mods){var res="";if(elem)res+=buildElemClass(block,elem);else res+=buildBlockClass(block);res+=this.buildModsClasses(block,elem,mods);return res}}}(BEM_);var ts={'"':"&quot;","&":"&amp;","<":"&lt;",">":"&gt;"},f=function(t){return ts[t]||t};var buildEscape=function(r){r=new RegExp(r,"g");return function(s){return(""+s).replace(r,f)}};function BEMContext(context,apply_){this.ctx=typeof context===null?"":context;this.apply=apply_;this._str="";var self=this;this._buf={push:function(){var chunks=Array.prototype.slice.call(arguments).join("");self._str+=chunks},join:function(){return this._str}};this._=this;this._start=true;this._mode="";this._listLength=0;this._notNewList=false;this.position=0;this.block=undefined;this.elem=undefined;this.mods=undefined;this.elemMods=undefined}BEMContext.prototype.isArray=isArray;BEMContext.prototype.isSimple=function isSimple(obj){var t=typeof obj;return t==="string"||t==="number"||t==="boolean"};BEMContext.prototype.isShortTag=function isShortTag(t){return SHORT_TAGS.hasOwnProperty(t)};BEMContext.prototype.extend=function extend(o1,o2){if(!o1||!o2)return o1||o2;var res={},n;for(n in o1)o1.hasOwnProperty(n)&&(res[n]=o1[n]);for(n in o2)o2.hasOwnProperty(n)&&(res[n]=o2[n]);return res};var cnt=0,id=+new Date,expando="__"+id,get=function(){return"uniq"+id+ ++cnt};BEMContext.prototype.identify=function(obj,onlyGet){if(!obj)return get();if(onlyGet||obj[expando]){return obj[expando]}else{return obj[expando]=get()}};BEMContext.prototype.xmlEscape=buildEscape("[&<>]");BEMContext.prototype.attrEscape=buildEscape('["&<>]');BEMContext.prototype.BEM=BEM_;BEMContext.prototype.isFirst=function isFirst(){return this.position===1};BEMContext.prototype.isLast=function isLast(){return this.position===this._listLength};BEMContext.prototype.generateId=function generateId(){return this.identify(this.ctx)};var oldApply=exports.apply;exports.apply=BEMContext.apply=function _apply(context){var ctx=new BEMContext(context||this,oldApply);ctx.apply();return ctx._str};BEMContext.prototype.reapply=BEMContext.apply}].forEach(function(fn){fn(exports,this)},{recordExtensions:function(ctx){ctx._str=undefined;ctx._mode=undefined;ctx.block=undefined;ctx.elem=undefined;ctx._notNewList=undefined;ctx.position=undefined;ctx._listLength=undefined;ctx.ctx=undefined;ctx.__$a=0;ctx._currBlock=undefined;ctx.mods=undefined;ctx.elemMods=undefined}});function __$b8(__$ctx,__$ref){__$ctx.__$a=0;var _this__$0=__$ctx,BEM___$1=_this__$0.BEM,v__$2=__$ctx.ctx,isBEM__$3,tag__$4,result__$5;var __$r__$6;var __$l0__$7=__$ctx._str;__$ctx._str="";var __$r__$8;var __$l1__$9=__$ctx._mode;__$ctx._mode="tag";__$r__$8=applyc(__$ctx,__$ref);__$ctx._mode=__$l1__$9;tag__$4=__$r__$8;typeof tag__$4!=="undefined"||(tag__$4=v__$2.tag);typeof tag__$4!=="undefined"||(tag__$4="div");if(tag__$4){var jsParams__$10,js__$11;if(__$ctx.block&&v__$2.js!==false){var __$r__$12;var __$l2__$13=__$ctx._mode;__$ctx._mode="js";__$r__$12=applyc(__$ctx,__$ref);__$ctx._mode=__$l2__$13;js__$11=__$r__$12;js__$11=js__$11?__$ctx._.extend(v__$2.js,js__$11===true?{}:js__$11):v__$2.js===true?{}:v__$2.js;js__$11&&((jsParams__$10={})[BEM___$1.INTERNAL.buildClass(__$ctx.block,v__$2.elem)]=js__$11)}__$ctx._str+="<"+tag__$4;var __$r__$14;var __$l3__$15=__$ctx._mode;__$ctx._mode="bem";__$r__$14=applyc(__$ctx,__$ref);__$ctx._mode=__$l3__$15;isBEM__$3=__$r__$14;typeof isBEM__$3!=="undefined"||(isBEM__$3=typeof v__$2.bem!=="undefined"?v__$2.bem:v__$2.block||v__$2.elem);var __$r__$17;var __$l4__$18=__$ctx._mode;__$ctx._mode="cls";__$r__$17=applyc(__$ctx,__$ref);__$ctx._mode=__$l4__$18;var cls__$16=__$r__$17;cls__$16||(cls__$16=v__$2.cls);var addJSInitClass__$19=v__$2.block&&jsParams__$10;if(isBEM__$3||cls__$16){__$ctx._str+=' class="';if(isBEM__$3){__$ctx._str+=BEM___$1.INTERNAL.buildClasses(__$ctx.block,v__$2.elem,v__$2.elemMods||v__$2.mods);var __$r__$21;var __$l5__$22=__$ctx._mode;__$ctx._mode="mix";__$r__$21=applyc(__$ctx,__$ref);__$ctx._mode=__$l5__$22;var mix__$20=__$r__$21;v__$2.mix&&(mix__$20=mix__$20?mix__$20.concat(v__$2.mix):v__$2.mix);if(mix__$20){var visited__$23={},visitedKey__$24=function(block,elem){return(block||"")+"__"+(elem||"")};visited__$23[visitedKey__$24(__$ctx.block,__$ctx.elem)]=true;if(!__$ctx._.isArray(mix__$20))mix__$20=[mix__$20];for(var i__$25=0;i__$25<mix__$20.length;i__$25++){var mixItem__$26=mix__$20[i__$25],hasItem__$27=mixItem__$26.block||mixItem__$26.elem,block__$28=mixItem__$26.block||mixItem__$26._block||_this__$0.block,elem__$29=mixItem__$26.elem||mixItem__$26._elem||_this__$0.elem;if(hasItem__$27)__$ctx._str+=" ";__$ctx._str+=BEM___$1.INTERNAL[hasItem__$27?"buildClasses":"buildModsClasses"](block__$28,mixItem__$26.elem||mixItem__$26._elem||(mixItem__$26.block?undefined:_this__$0.elem),mixItem__$26.elemMods||mixItem__$26.mods);if(mixItem__$26.js){(jsParams__$10||(jsParams__$10={}))[BEM___$1.INTERNAL.buildClass(block__$28,mixItem__$26.elem)]=mixItem__$26.js===true?{}:mixItem__$26.js;addJSInitClass__$19||(addJSInitClass__$19=block__$28&&!mixItem__$26.elem)}if(hasItem__$27&&!visited__$23[visitedKey__$24(block__$28,elem__$29)]){visited__$23[visitedKey__$24(block__$28,elem__$29)]=true;var __$r__$31;var __$l6__$32=__$ctx._mode;__$ctx._mode="mix";var __$l7__$33=__$ctx.block;__$ctx.block=block__$28;var __$l8__$34=__$ctx.elem;__$ctx.elem=elem__$29;__$r__$31=applyc(__$ctx,__$ref);__$ctx._mode=__$l6__$32;__$ctx.block=__$l7__$33;__$ctx.elem=__$l8__$34;var nestedMix__$30=__$r__$31;if(nestedMix__$30){for(var j__$35=0;j__$35<nestedMix__$30.length;j__$35++){var nestedItem__$36=nestedMix__$30[j__$35];if(!nestedItem__$36.block&&!nestedItem__$36.elem||!visited__$23[visitedKey__$24(nestedItem__$36.block,nestedItem__$36.elem)]){nestedItem__$36._block=block__$28;nestedItem__$36._elem=elem__$29;mix__$20.splice(i__$25+1,0,nestedItem__$36)}}}}}}}if(cls__$16)__$ctx._str+=isBEM__$3?" "+cls__$16:cls__$16;if(addJSInitClass__$19)__$ctx._str+=' i-bem"';else __$ctx._str+='"'}if(isBEM__$3&&jsParams__$10){__$ctx._str+=' data-bem="'+__$ctx._.attrEscape(JSON.stringify(jsParams__$10))+'"'}var __$r__$38;var __$l9__$39=__$ctx._mode;__$ctx._mode="attrs";__$r__$38=applyc(__$ctx,__$ref);__$ctx._mode=__$l9__$39;var attrs__$37=__$r__$38;attrs__$37=__$ctx._.extend(attrs__$37,v__$2.attrs);if(attrs__$37){var name__$40,attr__$41;for(name__$40 in attrs__$37){attr__$41=attrs__$37[name__$40];if(attr__$41===undefined)continue;__$ctx._str+=" "+name__$40+'="'+__$ctx._.attrEscape(__$ctx._.isSimple(attr__$41)?attr__$41:__$ctx.reapply(attr__$41))+'"'}}}if(__$ctx._.isShortTag(tag__$4)){__$ctx._str+="/>"}else{if(tag__$4)__$ctx._str+=">";var __$r__$43;var __$l10__$44=__$ctx._mode;__$ctx._mode="content";__$r__$43=applyc(__$ctx,__$ref);__$ctx._mode=__$l10__$44;var content__$42=__$r__$43;if(content__$42||content__$42===0){isBEM__$3=__$ctx.block||__$ctx.elem;var __$r__$45;var __$l11__$46=__$ctx._mode;__$ctx._mode="";var __$l12__$47=__$ctx._notNewList;__$ctx._notNewList=false;var __$l13__$48=__$ctx.position;__$ctx.position=isBEM__$3?1:__$ctx.position;var __$l14__$49=__$ctx._listLength;__$ctx._listLength=isBEM__$3?1:__$ctx._listLength;var __$l15__$50=__$ctx.ctx;__$ctx.ctx=content__$42;__$r__$45=applyc(__$ctx,__$ref);__$ctx._mode=__$l11__$46;__$ctx._notNewList=__$l12__$47;__$ctx.position=__$l13__$48;__$ctx._listLength=__$l14__$49;__$ctx.ctx=__$l15__$50}if(tag__$4)__$ctx._str+="</"+tag__$4+">"}result__$5=__$ctx._str;__$r__$6=undefined;__$ctx._str=__$l0__$7;__$ctx._buf.push(result__$5);return}function __$b9(__$ctx,__$ref){__$ctx.__$a=0;var __$r__$51;var __$l0__$52=__$ctx._mode;__$ctx._mode="";var __$l1__$53=__$ctx.ctx;__$ctx.ctx=__$ctx.ctx._value;var __$r__$54;__$ctx.__$a=1;__$r__$54=applyc(__$ctx,__$ref);__$r__$51=__$r__$54;__$ctx._mode=__$l0__$52;__$ctx.ctx=__$l1__$53;return}function __$b10(__$ctx,__$ref){__$ctx.__$a=0;__$ctx._listLength--;var ctx__$55=__$ctx.ctx;if(ctx__$55&&ctx__$55!==true||ctx__$55===0){__$ctx._buf.push(ctx__$55+"")}return}function __$b11(__$ctx,__$ref){__$ctx.__$a=0;__$ctx._listLength--;return}function __$b12(__$ctx,__$ref){__$ctx.__$a=0;var v__$56=__$ctx.ctx,l__$57=v__$56.length,i__$58=0,prevPos__$59=__$ctx.position,prevNotNewList__$60=__$ctx._notNewList;if(prevNotNewList__$60){__$ctx._listLength+=l__$57-1}else{__$ctx.position=0;__$ctx._listLength=l__$57}__$ctx._notNewList=true;while(i__$58<l__$57)!function(){var __$r__$61;var __$l0__$62=__$ctx.ctx;__$ctx.ctx=v__$56[i__$58++];__$r__$61=applyc(__$ctx,__$ref);__$ctx.ctx=__$l0__$62;return __$r__$61}();prevNotNewList__$60||(__$ctx.position=prevPos__$59);return}function __$b13(__$ctx,__$ref){__$ctx.__$a=0;var vBlock__$63=__$ctx.ctx.block,vElem__$64=__$ctx.ctx.elem,block__$65=__$ctx._currBlock||__$ctx.block;__$ctx.ctx||(__$ctx.ctx={});var __$r__$66;var __$l0__$67=__$ctx._mode;__$ctx._mode="default";var __$l1__$68=__$ctx.block;__$ctx.block=vBlock__$63||(vElem__$64?block__$65:undefined);var __$l2__$69=__$ctx._currBlock;__$ctx._currBlock=vBlock__$63||vElem__$64?undefined:block__$65;var __$l3__$70=__$ctx.elem;__$ctx.elem=__$ctx.ctx.elem;var __$l4__$71=__$ctx.mods;__$ctx.mods=(vBlock__$63?__$ctx.ctx.mods:__$ctx.mods)||{};var __$l5__$72=__$ctx.elemMods;__$ctx.elemMods=__$ctx.ctx.elemMods||{};__$ctx.block||__$ctx.elem?__$ctx.position=(__$ctx.position||0)+1:__$ctx._listLength--;applyc(__$ctx,__$ref);__$r__$66=undefined;__$ctx._mode=__$l0__$67;__$ctx.block=__$l1__$68;__$ctx._currBlock=__$l2__$69;__$ctx.elem=__$l3__$70;__$ctx.mods=__$l4__$71;__$ctx.elemMods=__$l5__$72;return};
                                                                                                                        Severity: Major
                                                                                                                        Found in src/log_analyzer/js/analyzer.table.js - About 30 mins to fix

                                                                                                                          Avoid too many return statements within this function.
                                                                                                                          Open

                                                                                                                                  return false;
                                                                                                                          Severity: Major
                                                                                                                          Found in src/log_analyzer/js/analyzer.table.js - About 30 mins to fix

                                                                                                                            Avoid too many return statements within this function.
                                                                                                                            Open

                                                                                                                                return false;
                                                                                                                            Severity: Major
                                                                                                                            Found in src/log_analyzer/js/analyzer.table.js - About 30 mins to fix

                                                                                                                              Avoid too many return statements within this function.
                                                                                                                              Open

                                                                                                                                   var __$ref={};function apply(ctx){try{return applyc(ctx||this,__$ref)}catch(e){(ctx||this).xjstContext=e;throw e}}exports.apply=apply;function applyc(__$ctx,__$ref){var __$t=__$ctx._mode;if(__$t==="content"){__$ctx.__$a=0;return __$ctx.ctx.content}else if(__$t==="mix"){__$ctx.__$a=0;return undefined}else if(__$t==="bem"){__$ctx.__$a=0;return undefined}else if(__$t==="js"){__$ctx.__$a=0;return undefined}else if(__$t==="cls"){__$ctx.__$a=0;return undefined}else if(__$t==="attrs"){__$ctx.__$a=0;return undefined}else if(__$t==="tag"){__$ctx.__$a=0;return undefined}else if(__$t==="default"){__$ctx.__$a=0;var __$r=__$b8(__$ctx,__$ref);if(__$r!==__$ref)return __$r}else if(__$t===""){if(__$ctx.ctx&&__$ctx.ctx._vow&&__$ctx.__$a!==1){__$ctx.__$a=0;var __$r=__$b9(__$ctx,__$ref);if(__$r!==__$ref)return __$r}if(__$ctx._.isSimple(__$ctx.ctx)){__$ctx.__$a=0;var __$r=__$b10(__$ctx,__$ref);if(__$r!==__$ref)return __$r}if(!__$ctx.ctx){__$ctx.__$a=0;var __$r=__$b11(__$ctx,__$ref);if(__$r!==__$ref)return __$r}if(__$ctx._.isArray(__$ctx.ctx)){__$ctx.__$a=0;var __$r=__$b12(__$ctx,__$ref);if(__$r!==__$ref)return __$r}__$ctx.__$a=0;var __$r=__$b13(__$ctx,__$ref);if(__$r!==__$ref)return __$r}__$ctx.__$a=0}[function(exports){var BEM_={},toString=Object.prototype.toString,isArray=Array.isArray||function(obj){return toString.call(obj)==="[object Array]"},SHORT_TAGS={area:1,base:1,br:1,col:1,command:1,embed:1,hr:1,img:1,input:1,keygen:1,link:1,meta:1,param:1,source:1,wbr:1};!function(BEM,undefined){var MOD_DELIM="_",ELEM_DELIM="__",NAME_PATTERN="[a-zA-Z0-9-]+";function buildModPostfix(modName,modVal){var res=MOD_DELIM+modName;if(modVal!==true)res+=MOD_DELIM+modVal;return res}function buildBlockClass(name,modName,modVal){var res=name;if(modVal)res+=buildModPostfix(modName,modVal);return res}function buildElemClass(block,name,modName,modVal){var res=buildBlockClass(block)+ELEM_DELIM+name;if(modVal)res+=buildModPostfix(modName,modVal);return res}BEM.INTERNAL={NAME_PATTERN:NAME_PATTERN,MOD_DELIM:MOD_DELIM,ELEM_DELIM:ELEM_DELIM,buildModPostfix:buildModPostfix,buildClass:function(block,elem,modName,modVal){var typeOfModName=typeof modName;if(typeOfModName==="string"||typeOfModName==="boolean"){var typeOfModVal=typeof modVal;if(typeOfModVal!=="string"&&typeOfModVal!=="boolean"){modVal=modName;modName=elem;elem=undefined}}else if(typeOfModName!=="undefined"){modName=undefined}else if(elem&&typeof elem!=="string"){elem=undefined}if(!(elem||modName)){return block}if(elem)return buildElemClass(block,elem,modName,modVal);else return buildBlockClass(block,modName,modVal)},buildModsClasses:function(block,elem,mods){var res="";if(mods){var modName;for(modName in mods){if(!mods.hasOwnProperty(modName))continue;var modVal=mods[modName];if(!modVal&&modVal!==0)continue;typeof modVal!=="boolean"&&(modVal+="");res+=" "+(elem?buildElemClass(block,elem,modName,modVal):buildBlockClass(block,modName,modVal))}}return res},buildClasses:function(block,elem,mods){var res="";if(elem)res+=buildElemClass(block,elem);else res+=buildBlockClass(block);res+=this.buildModsClasses(block,elem,mods);return res}}}(BEM_);var ts={'"':"&quot;","&":"&amp;","<":"&lt;",">":"&gt;"},f=function(t){return ts[t]||t};var buildEscape=function(r){r=new RegExp(r,"g");return function(s){return(""+s).replace(r,f)}};function BEMContext(context,apply_){this.ctx=typeof context===null?"":context;this.apply=apply_;this._str="";var self=this;this._buf={push:function(){var chunks=Array.prototype.slice.call(arguments).join("");self._str+=chunks},join:function(){return this._str}};this._=this;this._start=true;this._mode="";this._listLength=0;this._notNewList=false;this.position=0;this.block=undefined;this.elem=undefined;this.mods=undefined;this.elemMods=undefined}BEMContext.prototype.isArray=isArray;BEMContext.prototype.isSimple=function isSimple(obj){var t=typeof obj;return t==="string"||t==="number"||t==="boolean"};BEMContext.prototype.isShortTag=function isShortTag(t){return SHORT_TAGS.hasOwnProperty(t)};BEMContext.prototype.extend=function extend(o1,o2){if(!o1||!o2)return o1||o2;var res={},n;for(n in o1)o1.hasOwnProperty(n)&&(res[n]=o1[n]);for(n in o2)o2.hasOwnProperty(n)&&(res[n]=o2[n]);return res};var cnt=0,id=+new Date,expando="__"+id,get=function(){return"uniq"+id+ ++cnt};BEMContext.prototype.identify=function(obj,onlyGet){if(!obj)return get();if(onlyGet||obj[expando]){return obj[expando]}else{return obj[expando]=get()}};BEMContext.prototype.xmlEscape=buildEscape("[&<>]");BEMContext.prototype.attrEscape=buildEscape('["&<>]');BEMContext.prototype.BEM=BEM_;BEMContext.prototype.isFirst=function isFirst(){return this.position===1};BEMContext.prototype.isLast=function isLast(){return this.position===this._listLength};BEMContext.prototype.generateId=function generateId(){return this.identify(this.ctx)};var oldApply=exports.apply;exports.apply=BEMContext.apply=function _apply(context){var ctx=new BEMContext(context||this,oldApply);ctx.apply();return ctx._str};BEMContext.prototype.reapply=BEMContext.apply}].forEach(function(fn){fn(exports,this)},{recordExtensions:function(ctx){ctx._str=undefined;ctx._mode=undefined;ctx.block=undefined;ctx.elem=undefined;ctx._notNewList=undefined;ctx.position=undefined;ctx._listLength=undefined;ctx.ctx=undefined;ctx.__$a=0;ctx._currBlock=undefined;ctx.mods=undefined;ctx.elemMods=undefined}});function __$b8(__$ctx,__$ref){__$ctx.__$a=0;var _this__$0=__$ctx,BEM___$1=_this__$0.BEM,v__$2=__$ctx.ctx,isBEM__$3,tag__$4,result__$5;var __$r__$6;var __$l0__$7=__$ctx._str;__$ctx._str="";var __$r__$8;var __$l1__$9=__$ctx._mode;__$ctx._mode="tag";__$r__$8=applyc(__$ctx,__$ref);__$ctx._mode=__$l1__$9;tag__$4=__$r__$8;typeof tag__$4!=="undefined"||(tag__$4=v__$2.tag);typeof tag__$4!=="undefined"||(tag__$4="div");if(tag__$4){var jsParams__$10,js__$11;if(__$ctx.block&&v__$2.js!==false){var __$r__$12;var __$l2__$13=__$ctx._mode;__$ctx._mode="js";__$r__$12=applyc(__$ctx,__$ref);__$ctx._mode=__$l2__$13;js__$11=__$r__$12;js__$11=js__$11?__$ctx._.extend(v__$2.js,js__$11===true?{}:js__$11):v__$2.js===true?{}:v__$2.js;js__$11&&((jsParams__$10={})[BEM___$1.INTERNAL.buildClass(__$ctx.block,v__$2.elem)]=js__$11)}__$ctx._str+="<"+tag__$4;var __$r__$14;var __$l3__$15=__$ctx._mode;__$ctx._mode="bem";__$r__$14=applyc(__$ctx,__$ref);__$ctx._mode=__$l3__$15;isBEM__$3=__$r__$14;typeof isBEM__$3!=="undefined"||(isBEM__$3=typeof v__$2.bem!=="undefined"?v__$2.bem:v__$2.block||v__$2.elem);var __$r__$17;var __$l4__$18=__$ctx._mode;__$ctx._mode="cls";__$r__$17=applyc(__$ctx,__$ref);__$ctx._mode=__$l4__$18;var cls__$16=__$r__$17;cls__$16||(cls__$16=v__$2.cls);var addJSInitClass__$19=v__$2.block&&jsParams__$10;if(isBEM__$3||cls__$16){__$ctx._str+=' class="';if(isBEM__$3){__$ctx._str+=BEM___$1.INTERNAL.buildClasses(__$ctx.block,v__$2.elem,v__$2.elemMods||v__$2.mods);var __$r__$21;var __$l5__$22=__$ctx._mode;__$ctx._mode="mix";__$r__$21=applyc(__$ctx,__$ref);__$ctx._mode=__$l5__$22;var mix__$20=__$r__$21;v__$2.mix&&(mix__$20=mix__$20?mix__$20.concat(v__$2.mix):v__$2.mix);if(mix__$20){var visited__$23={},visitedKey__$24=function(block,elem){return(block||"")+"__"+(elem||"")};visited__$23[visitedKey__$24(__$ctx.block,__$ctx.elem)]=true;if(!__$ctx._.isArray(mix__$20))mix__$20=[mix__$20];for(var i__$25=0;i__$25<mix__$20.length;i__$25++){var mixItem__$26=mix__$20[i__$25],hasItem__$27=mixItem__$26.block||mixItem__$26.elem,block__$28=mixItem__$26.block||mixItem__$26._block||_this__$0.block,elem__$29=mixItem__$26.elem||mixItem__$26._elem||_this__$0.elem;if(hasItem__$27)__$ctx._str+=" ";__$ctx._str+=BEM___$1.INTERNAL[hasItem__$27?"buildClasses":"buildModsClasses"](block__$28,mixItem__$26.elem||mixItem__$26._elem||(mixItem__$26.block?undefined:_this__$0.elem),mixItem__$26.elemMods||mixItem__$26.mods);if(mixItem__$26.js){(jsParams__$10||(jsParams__$10={}))[BEM___$1.INTERNAL.buildClass(block__$28,mixItem__$26.elem)]=mixItem__$26.js===true?{}:mixItem__$26.js;addJSInitClass__$19||(addJSInitClass__$19=block__$28&&!mixItem__$26.elem)}if(hasItem__$27&&!visited__$23[visitedKey__$24(block__$28,elem__$29)]){visited__$23[visitedKey__$24(block__$28,elem__$29)]=true;var __$r__$31;var __$l6__$32=__$ctx._mode;__$ctx._mode="mix";var __$l7__$33=__$ctx.block;__$ctx.block=block__$28;var __$l8__$34=__$ctx.elem;__$ctx.elem=elem__$29;__$r__$31=applyc(__$ctx,__$ref);__$ctx._mode=__$l6__$32;__$ctx.block=__$l7__$33;__$ctx.elem=__$l8__$34;var nestedMix__$30=__$r__$31;if(nestedMix__$30){for(var j__$35=0;j__$35<nestedMix__$30.length;j__$35++){var nestedItem__$36=nestedMix__$30[j__$35];if(!nestedItem__$36.block&&!nestedItem__$36.elem||!visited__$23[visitedKey__$24(nestedItem__$36.block,nestedItem__$36.elem)]){nestedItem__$36._block=block__$28;nestedItem__$36._elem=elem__$29;mix__$20.splice(i__$25+1,0,nestedItem__$36)}}}}}}}if(cls__$16)__$ctx._str+=isBEM__$3?" "+cls__$16:cls__$16;if(addJSInitClass__$19)__$ctx._str+=' i-bem"';else __$ctx._str+='"'}if(isBEM__$3&&jsParams__$10){__$ctx._str+=' data-bem="'+__$ctx._.attrEscape(JSON.stringify(jsParams__$10))+'"'}var __$r__$38;var __$l9__$39=__$ctx._mode;__$ctx._mode="attrs";__$r__$38=applyc(__$ctx,__$ref);__$ctx._mode=__$l9__$39;var attrs__$37=__$r__$38;attrs__$37=__$ctx._.extend(attrs__$37,v__$2.attrs);if(attrs__$37){var name__$40,attr__$41;for(name__$40 in attrs__$37){attr__$41=attrs__$37[name__$40];if(attr__$41===undefined)continue;__$ctx._str+=" "+name__$40+'="'+__$ctx._.attrEscape(__$ctx._.isSimple(attr__$41)?attr__$41:__$ctx.reapply(attr__$41))+'"'}}}if(__$ctx._.isShortTag(tag__$4)){__$ctx._str+="/>"}else{if(tag__$4)__$ctx._str+=">";var __$r__$43;var __$l10__$44=__$ctx._mode;__$ctx._mode="content";__$r__$43=applyc(__$ctx,__$ref);__$ctx._mode=__$l10__$44;var content__$42=__$r__$43;if(content__$42||content__$42===0){isBEM__$3=__$ctx.block||__$ctx.elem;var __$r__$45;var __$l11__$46=__$ctx._mode;__$ctx._mode="";var __$l12__$47=__$ctx._notNewList;__$ctx._notNewList=false;var __$l13__$48=__$ctx.position;__$ctx.position=isBEM__$3?1:__$ctx.position;var __$l14__$49=__$ctx._listLength;__$ctx._listLength=isBEM__$3?1:__$ctx._listLength;var __$l15__$50=__$ctx.ctx;__$ctx.ctx=content__$42;__$r__$45=applyc(__$ctx,__$ref);__$ctx._mode=__$l11__$46;__$ctx._notNewList=__$l12__$47;__$ctx.position=__$l13__$48;__$ctx._listLength=__$l14__$49;__$ctx.ctx=__$l15__$50}if(tag__$4)__$ctx._str+="</"+tag__$4+">"}result__$5=__$ctx._str;__$r__$6=undefined;__$ctx._str=__$l0__$7;__$ctx._buf.push(result__$5);return}function __$b9(__$ctx,__$ref){__$ctx.__$a=0;var __$r__$51;var __$l0__$52=__$ctx._mode;__$ctx._mode="";var __$l1__$53=__$ctx.ctx;__$ctx.ctx=__$ctx.ctx._value;var __$r__$54;__$ctx.__$a=1;__$r__$54=applyc(__$ctx,__$ref);__$r__$51=__$r__$54;__$ctx._mode=__$l0__$52;__$ctx.ctx=__$l1__$53;return}function __$b10(__$ctx,__$ref){__$ctx.__$a=0;__$ctx._listLength--;var ctx__$55=__$ctx.ctx;if(ctx__$55&&ctx__$55!==true||ctx__$55===0){__$ctx._buf.push(ctx__$55+"")}return}function __$b11(__$ctx,__$ref){__$ctx.__$a=0;__$ctx._listLength--;return}function __$b12(__$ctx,__$ref){__$ctx.__$a=0;var v__$56=__$ctx.ctx,l__$57=v__$56.length,i__$58=0,prevPos__$59=__$ctx.position,prevNotNewList__$60=__$ctx._notNewList;if(prevNotNewList__$60){__$ctx._listLength+=l__$57-1}else{__$ctx.position=0;__$ctx._listLength=l__$57}__$ctx._notNewList=true;while(i__$58<l__$57)!function(){var __$r__$61;var __$l0__$62=__$ctx.ctx;__$ctx.ctx=v__$56[i__$58++];__$r__$61=applyc(__$ctx,__$ref);__$ctx.ctx=__$l0__$62;return __$r__$61}();prevNotNewList__$60||(__$ctx.position=prevPos__$59);return}function __$b13(__$ctx,__$ref){__$ctx.__$a=0;var vBlock__$63=__$ctx.ctx.block,vElem__$64=__$ctx.ctx.elem,block__$65=__$ctx._currBlock||__$ctx.block;__$ctx.ctx||(__$ctx.ctx={});var __$r__$66;var __$l0__$67=__$ctx._mode;__$ctx._mode="default";var __$l1__$68=__$ctx.block;__$ctx.block=vBlock__$63||(vElem__$64?block__$65:undefined);var __$l2__$69=__$ctx._currBlock;__$ctx._currBlock=vBlock__$63||vElem__$64?undefined:block__$65;var __$l3__$70=__$ctx.elem;__$ctx.elem=__$ctx.ctx.elem;var __$l4__$71=__$ctx.mods;__$ctx.mods=(vBlock__$63?__$ctx.ctx.mods:__$ctx.mods)||{};var __$l5__$72=__$ctx.elemMods;__$ctx.elemMods=__$ctx.ctx.elemMods||{};__$ctx.block||__$ctx.elem?__$ctx.position=(__$ctx.position||0)+1:__$ctx._listLength--;applyc(__$ctx,__$ref);__$r__$66=undefined;__$ctx._mode=__$l0__$67;__$ctx.block=__$l1__$68;__$ctx._currBlock=__$l2__$69;__$ctx.elem=__$l3__$70;__$ctx.mods=__$l4__$71;__$ctx.elemMods=__$l5__$72;return};
                                                                                                                              Severity: Major
                                                                                                                              Found in src/log_analyzer/js/analyzer.table.js - About 30 mins to fix

                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                Open

                                                                                                                                     var __$ref={};function apply(ctx){try{return applyc(ctx||this,__$ref)}catch(e){(ctx||this).xjstContext=e;throw e}}exports.apply=apply;function applyc(__$ctx,__$ref){var __$t=__$ctx._mode;if(__$t==="content"){__$ctx.__$a=0;return __$ctx.ctx.content}else if(__$t==="mix"){__$ctx.__$a=0;return undefined}else if(__$t==="bem"){__$ctx.__$a=0;return undefined}else if(__$t==="js"){__$ctx.__$a=0;return undefined}else if(__$t==="cls"){__$ctx.__$a=0;return undefined}else if(__$t==="attrs"){__$ctx.__$a=0;return undefined}else if(__$t==="tag"){__$ctx.__$a=0;return undefined}else if(__$t==="default"){__$ctx.__$a=0;var __$r=__$b8(__$ctx,__$ref);if(__$r!==__$ref)return __$r}else if(__$t===""){if(__$ctx.ctx&&__$ctx.ctx._vow&&__$ctx.__$a!==1){__$ctx.__$a=0;var __$r=__$b9(__$ctx,__$ref);if(__$r!==__$ref)return __$r}if(__$ctx._.isSimple(__$ctx.ctx)){__$ctx.__$a=0;var __$r=__$b10(__$ctx,__$ref);if(__$r!==__$ref)return __$r}if(!__$ctx.ctx){__$ctx.__$a=0;var __$r=__$b11(__$ctx,__$ref);if(__$r!==__$ref)return __$r}if(__$ctx._.isArray(__$ctx.ctx)){__$ctx.__$a=0;var __$r=__$b12(__$ctx,__$ref);if(__$r!==__$ref)return __$r}__$ctx.__$a=0;var __$r=__$b13(__$ctx,__$ref);if(__$r!==__$ref)return __$r}__$ctx.__$a=0}[function(exports){var BEM_={},toString=Object.prototype.toString,isArray=Array.isArray||function(obj){return toString.call(obj)==="[object Array]"},SHORT_TAGS={area:1,base:1,br:1,col:1,command:1,embed:1,hr:1,img:1,input:1,keygen:1,link:1,meta:1,param:1,source:1,wbr:1};!function(BEM,undefined){var MOD_DELIM="_",ELEM_DELIM="__",NAME_PATTERN="[a-zA-Z0-9-]+";function buildModPostfix(modName,modVal){var res=MOD_DELIM+modName;if(modVal!==true)res+=MOD_DELIM+modVal;return res}function buildBlockClass(name,modName,modVal){var res=name;if(modVal)res+=buildModPostfix(modName,modVal);return res}function buildElemClass(block,name,modName,modVal){var res=buildBlockClass(block)+ELEM_DELIM+name;if(modVal)res+=buildModPostfix(modName,modVal);return res}BEM.INTERNAL={NAME_PATTERN:NAME_PATTERN,MOD_DELIM:MOD_DELIM,ELEM_DELIM:ELEM_DELIM,buildModPostfix:buildModPostfix,buildClass:function(block,elem,modName,modVal){var typeOfModName=typeof modName;if(typeOfModName==="string"||typeOfModName==="boolean"){var typeOfModVal=typeof modVal;if(typeOfModVal!=="string"&&typeOfModVal!=="boolean"){modVal=modName;modName=elem;elem=undefined}}else if(typeOfModName!=="undefined"){modName=undefined}else if(elem&&typeof elem!=="string"){elem=undefined}if(!(elem||modName)){return block}if(elem)return buildElemClass(block,elem,modName,modVal);else return buildBlockClass(block,modName,modVal)},buildModsClasses:function(block,elem,mods){var res="";if(mods){var modName;for(modName in mods){if(!mods.hasOwnProperty(modName))continue;var modVal=mods[modName];if(!modVal&&modVal!==0)continue;typeof modVal!=="boolean"&&(modVal+="");res+=" "+(elem?buildElemClass(block,elem,modName,modVal):buildBlockClass(block,modName,modVal))}}return res},buildClasses:function(block,elem,mods){var res="";if(elem)res+=buildElemClass(block,elem);else res+=buildBlockClass(block);res+=this.buildModsClasses(block,elem,mods);return res}}}(BEM_);var ts={'"':"&quot;","&":"&amp;","<":"&lt;",">":"&gt;"},f=function(t){return ts[t]||t};var buildEscape=function(r){r=new RegExp(r,"g");return function(s){return(""+s).replace(r,f)}};function BEMContext(context,apply_){this.ctx=typeof context===null?"":context;this.apply=apply_;this._str="";var self=this;this._buf={push:function(){var chunks=Array.prototype.slice.call(arguments).join("");self._str+=chunks},join:function(){return this._str}};this._=this;this._start=true;this._mode="";this._listLength=0;this._notNewList=false;this.position=0;this.block=undefined;this.elem=undefined;this.mods=undefined;this.elemMods=undefined}BEMContext.prototype.isArray=isArray;BEMContext.prototype.isSimple=function isSimple(obj){var t=typeof obj;return t==="string"||t==="number"||t==="boolean"};BEMContext.prototype.isShortTag=function isShortTag(t){return SHORT_TAGS.hasOwnProperty(t)};BEMContext.prototype.extend=function extend(o1,o2){if(!o1||!o2)return o1||o2;var res={},n;for(n in o1)o1.hasOwnProperty(n)&&(res[n]=o1[n]);for(n in o2)o2.hasOwnProperty(n)&&(res[n]=o2[n]);return res};var cnt=0,id=+new Date,expando="__"+id,get=function(){return"uniq"+id+ ++cnt};BEMContext.prototype.identify=function(obj,onlyGet){if(!obj)return get();if(onlyGet||obj[expando]){return obj[expando]}else{return obj[expando]=get()}};BEMContext.prototype.xmlEscape=buildEscape("[&<>]");BEMContext.prototype.attrEscape=buildEscape('["&<>]');BEMContext.prototype.BEM=BEM_;BEMContext.prototype.isFirst=function isFirst(){return this.position===1};BEMContext.prototype.isLast=function isLast(){return this.position===this._listLength};BEMContext.prototype.generateId=function generateId(){return this.identify(this.ctx)};var oldApply=exports.apply;exports.apply=BEMContext.apply=function _apply(context){var ctx=new BEMContext(context||this,oldApply);ctx.apply();return ctx._str};BEMContext.prototype.reapply=BEMContext.apply}].forEach(function(fn){fn(exports,this)},{recordExtensions:function(ctx){ctx._str=undefined;ctx._mode=undefined;ctx.block=undefined;ctx.elem=undefined;ctx._notNewList=undefined;ctx.position=undefined;ctx._listLength=undefined;ctx.ctx=undefined;ctx.__$a=0;ctx._currBlock=undefined;ctx.mods=undefined;ctx.elemMods=undefined}});function __$b8(__$ctx,__$ref){__$ctx.__$a=0;var _this__$0=__$ctx,BEM___$1=_this__$0.BEM,v__$2=__$ctx.ctx,isBEM__$3,tag__$4,result__$5;var __$r__$6;var __$l0__$7=__$ctx._str;__$ctx._str="";var __$r__$8;var __$l1__$9=__$ctx._mode;__$ctx._mode="tag";__$r__$8=applyc(__$ctx,__$ref);__$ctx._mode=__$l1__$9;tag__$4=__$r__$8;typeof tag__$4!=="undefined"||(tag__$4=v__$2.tag);typeof tag__$4!=="undefined"||(tag__$4="div");if(tag__$4){var jsParams__$10,js__$11;if(__$ctx.block&&v__$2.js!==false){var __$r__$12;var __$l2__$13=__$ctx._mode;__$ctx._mode="js";__$r__$12=applyc(__$ctx,__$ref);__$ctx._mode=__$l2__$13;js__$11=__$r__$12;js__$11=js__$11?__$ctx._.extend(v__$2.js,js__$11===true?{}:js__$11):v__$2.js===true?{}:v__$2.js;js__$11&&((jsParams__$10={})[BEM___$1.INTERNAL.buildClass(__$ctx.block,v__$2.elem)]=js__$11)}__$ctx._str+="<"+tag__$4;var __$r__$14;var __$l3__$15=__$ctx._mode;__$ctx._mode="bem";__$r__$14=applyc(__$ctx,__$ref);__$ctx._mode=__$l3__$15;isBEM__$3=__$r__$14;typeof isBEM__$3!=="undefined"||(isBEM__$3=typeof v__$2.bem!=="undefined"?v__$2.bem:v__$2.block||v__$2.elem);var __$r__$17;var __$l4__$18=__$ctx._mode;__$ctx._mode="cls";__$r__$17=applyc(__$ctx,__$ref);__$ctx._mode=__$l4__$18;var cls__$16=__$r__$17;cls__$16||(cls__$16=v__$2.cls);var addJSInitClass__$19=v__$2.block&&jsParams__$10;if(isBEM__$3||cls__$16){__$ctx._str+=' class="';if(isBEM__$3){__$ctx._str+=BEM___$1.INTERNAL.buildClasses(__$ctx.block,v__$2.elem,v__$2.elemMods||v__$2.mods);var __$r__$21;var __$l5__$22=__$ctx._mode;__$ctx._mode="mix";__$r__$21=applyc(__$ctx,__$ref);__$ctx._mode=__$l5__$22;var mix__$20=__$r__$21;v__$2.mix&&(mix__$20=mix__$20?mix__$20.concat(v__$2.mix):v__$2.mix);if(mix__$20){var visited__$23={},visitedKey__$24=function(block,elem){return(block||"")+"__"+(elem||"")};visited__$23[visitedKey__$24(__$ctx.block,__$ctx.elem)]=true;if(!__$ctx._.isArray(mix__$20))mix__$20=[mix__$20];for(var i__$25=0;i__$25<mix__$20.length;i__$25++){var mixItem__$26=mix__$20[i__$25],hasItem__$27=mixItem__$26.block||mixItem__$26.elem,block__$28=mixItem__$26.block||mixItem__$26._block||_this__$0.block,elem__$29=mixItem__$26.elem||mixItem__$26._elem||_this__$0.elem;if(hasItem__$27)__$ctx._str+=" ";__$ctx._str+=BEM___$1.INTERNAL[hasItem__$27?"buildClasses":"buildModsClasses"](block__$28,mixItem__$26.elem||mixItem__$26._elem||(mixItem__$26.block?undefined:_this__$0.elem),mixItem__$26.elemMods||mixItem__$26.mods);if(mixItem__$26.js){(jsParams__$10||(jsParams__$10={}))[BEM___$1.INTERNAL.buildClass(block__$28,mixItem__$26.elem)]=mixItem__$26.js===true?{}:mixItem__$26.js;addJSInitClass__$19||(addJSInitClass__$19=block__$28&&!mixItem__$26.elem)}if(hasItem__$27&&!visited__$23[visitedKey__$24(block__$28,elem__$29)]){visited__$23[visitedKey__$24(block__$28,elem__$29)]=true;var __$r__$31;var __$l6__$32=__$ctx._mode;__$ctx._mode="mix";var __$l7__$33=__$ctx.block;__$ctx.block=block__$28;var __$l8__$34=__$ctx.elem;__$ctx.elem=elem__$29;__$r__$31=applyc(__$ctx,__$ref);__$ctx._mode=__$l6__$32;__$ctx.block=__$l7__$33;__$ctx.elem=__$l8__$34;var nestedMix__$30=__$r__$31;if(nestedMix__$30){for(var j__$35=0;j__$35<nestedMix__$30.length;j__$35++){var nestedItem__$36=nestedMix__$30[j__$35];if(!nestedItem__$36.block&&!nestedItem__$36.elem||!visited__$23[visitedKey__$24(nestedItem__$36.block,nestedItem__$36.elem)]){nestedItem__$36._block=block__$28;nestedItem__$36._elem=elem__$29;mix__$20.splice(i__$25+1,0,nestedItem__$36)}}}}}}}if(cls__$16)__$ctx._str+=isBEM__$3?" "+cls__$16:cls__$16;if(addJSInitClass__$19)__$ctx._str+=' i-bem"';else __$ctx._str+='"'}if(isBEM__$3&&jsParams__$10){__$ctx._str+=' data-bem="'+__$ctx._.attrEscape(JSON.stringify(jsParams__$10))+'"'}var __$r__$38;var __$l9__$39=__$ctx._mode;__$ctx._mode="attrs";__$r__$38=applyc(__$ctx,__$ref);__$ctx._mode=__$l9__$39;var attrs__$37=__$r__$38;attrs__$37=__$ctx._.extend(attrs__$37,v__$2.attrs);if(attrs__$37){var name__$40,attr__$41;for(name__$40 in attrs__$37){attr__$41=attrs__$37[name__$40];if(attr__$41===undefined)continue;__$ctx._str+=" "+name__$40+'="'+__$ctx._.attrEscape(__$ctx._.isSimple(attr__$41)?attr__$41:__$ctx.reapply(attr__$41))+'"'}}}if(__$ctx._.isShortTag(tag__$4)){__$ctx._str+="/>"}else{if(tag__$4)__$ctx._str+=">";var __$r__$43;var __$l10__$44=__$ctx._mode;__$ctx._mode="content";__$r__$43=applyc(__$ctx,__$ref);__$ctx._mode=__$l10__$44;var content__$42=__$r__$43;if(content__$42||content__$42===0){isBEM__$3=__$ctx.block||__$ctx.elem;var __$r__$45;var __$l11__$46=__$ctx._mode;__$ctx._mode="";var __$l12__$47=__$ctx._notNewList;__$ctx._notNewList=false;var __$l13__$48=__$ctx.position;__$ctx.position=isBEM__$3?1:__$ctx.position;var __$l14__$49=__$ctx._listLength;__$ctx._listLength=isBEM__$3?1:__$ctx._listLength;var __$l15__$50=__$ctx.ctx;__$ctx.ctx=content__$42;__$r__$45=applyc(__$ctx,__$ref);__$ctx._mode=__$l11__$46;__$ctx._notNewList=__$l12__$47;__$ctx.position=__$l13__$48;__$ctx._listLength=__$l14__$49;__$ctx.ctx=__$l15__$50}if(tag__$4)__$ctx._str+="</"+tag__$4+">"}result__$5=__$ctx._str;__$r__$6=undefined;__$ctx._str=__$l0__$7;__$ctx._buf.push(result__$5);return}function __$b9(__$ctx,__$ref){__$ctx.__$a=0;var __$r__$51;var __$l0__$52=__$ctx._mode;__$ctx._mode="";var __$l1__$53=__$ctx.ctx;__$ctx.ctx=__$ctx.ctx._value;var __$r__$54;__$ctx.__$a=1;__$r__$54=applyc(__$ctx,__$ref);__$r__$51=__$r__$54;__$ctx._mode=__$l0__$52;__$ctx.ctx=__$l1__$53;return}function __$b10(__$ctx,__$ref){__$ctx.__$a=0;__$ctx._listLength--;var ctx__$55=__$ctx.ctx;if(ctx__$55&&ctx__$55!==true||ctx__$55===0){__$ctx._buf.push(ctx__$55+"")}return}function __$b11(__$ctx,__$ref){__$ctx.__$a=0;__$ctx._listLength--;return}function __$b12(__$ctx,__$ref){__$ctx.__$a=0;var v__$56=__$ctx.ctx,l__$57=v__$56.length,i__$58=0,prevPos__$59=__$ctx.position,prevNotNewList__$60=__$ctx._notNewList;if(prevNotNewList__$60){__$ctx._listLength+=l__$57-1}else{__$ctx.position=0;__$ctx._listLength=l__$57}__$ctx._notNewList=true;while(i__$58<l__$57)!function(){var __$r__$61;var __$l0__$62=__$ctx.ctx;__$ctx.ctx=v__$56[i__$58++];__$r__$61=applyc(__$ctx,__$ref);__$ctx.ctx=__$l0__$62;return __$r__$61}();prevNotNewList__$60||(__$ctx.position=prevPos__$59);return}function __$b13(__$ctx,__$ref){__$ctx.__$a=0;var vBlock__$63=__$ctx.ctx.block,vElem__$64=__$ctx.ctx.elem,block__$65=__$ctx._currBlock||__$ctx.block;__$ctx.ctx||(__$ctx.ctx={});var __$r__$66;var __$l0__$67=__$ctx._mode;__$ctx._mode="default";var __$l1__$68=__$ctx.block;__$ctx.block=vBlock__$63||(vElem__$64?block__$65:undefined);var __$l2__$69=__$ctx._currBlock;__$ctx._currBlock=vBlock__$63||vElem__$64?undefined:block__$65;var __$l3__$70=__$ctx.elem;__$ctx.elem=__$ctx.ctx.elem;var __$l4__$71=__$ctx.mods;__$ctx.mods=(vBlock__$63?__$ctx.ctx.mods:__$ctx.mods)||{};var __$l5__$72=__$ctx.elemMods;__$ctx.elemMods=__$ctx.ctx.elemMods||{};__$ctx.block||__$ctx.elem?__$ctx.position=(__$ctx.position||0)+1:__$ctx._listLength--;applyc(__$ctx,__$ref);__$r__$66=undefined;__$ctx._mode=__$l0__$67;__$ctx.block=__$l1__$68;__$ctx._currBlock=__$l2__$69;__$ctx.elem=__$l3__$70;__$ctx.mods=__$l4__$71;__$ctx.elemMods=__$l5__$72;return};
                                                                                                                                Severity: Major
                                                                                                                                Found in src/log_analyzer/js/analyzer.table.js - About 30 mins to fix

                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                  Open

                                                                                                                                              return true;
                                                                                                                                  Severity: Major
                                                                                                                                  Found in src/log_analyzer/js/analyzer.table.js - About 30 mins to fix

                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                    Open

                                                                                                                                         var __$ref={};function apply(ctx){try{return applyc(ctx||this,__$ref)}catch(e){(ctx||this).xjstContext=e;throw e}}exports.apply=apply;function applyc(__$ctx,__$ref){var __$t=__$ctx._mode;if(__$t==="content"){__$ctx.__$a=0;return __$ctx.ctx.content}else if(__$t==="mix"){__$ctx.__$a=0;return undefined}else if(__$t==="bem"){__$ctx.__$a=0;return undefined}else if(__$t==="js"){__$ctx.__$a=0;return undefined}else if(__$t==="cls"){__$ctx.__$a=0;return undefined}else if(__$t==="attrs"){__$ctx.__$a=0;return undefined}else if(__$t==="tag"){__$ctx.__$a=0;return undefined}else if(__$t==="default"){__$ctx.__$a=0;var __$r=__$b8(__$ctx,__$ref);if(__$r!==__$ref)return __$r}else if(__$t===""){if(__$ctx.ctx&&__$ctx.ctx._vow&&__$ctx.__$a!==1){__$ctx.__$a=0;var __$r=__$b9(__$ctx,__$ref);if(__$r!==__$ref)return __$r}if(__$ctx._.isSimple(__$ctx.ctx)){__$ctx.__$a=0;var __$r=__$b10(__$ctx,__$ref);if(__$r!==__$ref)return __$r}if(!__$ctx.ctx){__$ctx.__$a=0;var __$r=__$b11(__$ctx,__$ref);if(__$r!==__$ref)return __$r}if(__$ctx._.isArray(__$ctx.ctx)){__$ctx.__$a=0;var __$r=__$b12(__$ctx,__$ref);if(__$r!==__$ref)return __$r}__$ctx.__$a=0;var __$r=__$b13(__$ctx,__$ref);if(__$r!==__$ref)return __$r}__$ctx.__$a=0}[function(exports){var BEM_={},toString=Object.prototype.toString,isArray=Array.isArray||function(obj){return toString.call(obj)==="[object Array]"},SHORT_TAGS={area:1,base:1,br:1,col:1,command:1,embed:1,hr:1,img:1,input:1,keygen:1,link:1,meta:1,param:1,source:1,wbr:1};!function(BEM,undefined){var MOD_DELIM="_",ELEM_DELIM="__",NAME_PATTERN="[a-zA-Z0-9-]+";function buildModPostfix(modName,modVal){var res=MOD_DELIM+modName;if(modVal!==true)res+=MOD_DELIM+modVal;return res}function buildBlockClass(name,modName,modVal){var res=name;if(modVal)res+=buildModPostfix(modName,modVal);return res}function buildElemClass(block,name,modName,modVal){var res=buildBlockClass(block)+ELEM_DELIM+name;if(modVal)res+=buildModPostfix(modName,modVal);return res}BEM.INTERNAL={NAME_PATTERN:NAME_PATTERN,MOD_DELIM:MOD_DELIM,ELEM_DELIM:ELEM_DELIM,buildModPostfix:buildModPostfix,buildClass:function(block,elem,modName,modVal){var typeOfModName=typeof modName;if(typeOfModName==="string"||typeOfModName==="boolean"){var typeOfModVal=typeof modVal;if(typeOfModVal!=="string"&&typeOfModVal!=="boolean"){modVal=modName;modName=elem;elem=undefined}}else if(typeOfModName!=="undefined"){modName=undefined}else if(elem&&typeof elem!=="string"){elem=undefined}if(!(elem||modName)){return block}if(elem)return buildElemClass(block,elem,modName,modVal);else return buildBlockClass(block,modName,modVal)},buildModsClasses:function(block,elem,mods){var res="";if(mods){var modName;for(modName in mods){if(!mods.hasOwnProperty(modName))continue;var modVal=mods[modName];if(!modVal&&modVal!==0)continue;typeof modVal!=="boolean"&&(modVal+="");res+=" "+(elem?buildElemClass(block,elem,modName,modVal):buildBlockClass(block,modName,modVal))}}return res},buildClasses:function(block,elem,mods){var res="";if(elem)res+=buildElemClass(block,elem);else res+=buildBlockClass(block);res+=this.buildModsClasses(block,elem,mods);return res}}}(BEM_);var ts={'"':"&quot;","&":"&amp;","<":"&lt;",">":"&gt;"},f=function(t){return ts[t]||t};var buildEscape=function(r){r=new RegExp(r,"g");return function(s){return(""+s).replace(r,f)}};function BEMContext(context,apply_){this.ctx=typeof context===null?"":context;this.apply=apply_;this._str="";var self=this;this._buf={push:function(){var chunks=Array.prototype.slice.call(arguments).join("");self._str+=chunks},join:function(){return this._str}};this._=this;this._start=true;this._mode="";this._listLength=0;this._notNewList=false;this.position=0;this.block=undefined;this.elem=undefined;this.mods=undefined;this.elemMods=undefined}BEMContext.prototype.isArray=isArray;BEMContext.prototype.isSimple=function isSimple(obj){var t=typeof obj;return t==="string"||t==="number"||t==="boolean"};BEMContext.prototype.isShortTag=function isShortTag(t){return SHORT_TAGS.hasOwnProperty(t)};BEMContext.prototype.extend=function extend(o1,o2){if(!o1||!o2)return o1||o2;var res={},n;for(n in o1)o1.hasOwnProperty(n)&&(res[n]=o1[n]);for(n in o2)o2.hasOwnProperty(n)&&(res[n]=o2[n]);return res};var cnt=0,id=+new Date,expando="__"+id,get=function(){return"uniq"+id+ ++cnt};BEMContext.prototype.identify=function(obj,onlyGet){if(!obj)return get();if(onlyGet||obj[expando]){return obj[expando]}else{return obj[expando]=get()}};BEMContext.prototype.xmlEscape=buildEscape("[&<>]");BEMContext.prototype.attrEscape=buildEscape('["&<>]');BEMContext.prototype.BEM=BEM_;BEMContext.prototype.isFirst=function isFirst(){return this.position===1};BEMContext.prototype.isLast=function isLast(){return this.position===this._listLength};BEMContext.prototype.generateId=function generateId(){return this.identify(this.ctx)};var oldApply=exports.apply;exports.apply=BEMContext.apply=function _apply(context){var ctx=new BEMContext(context||this,oldApply);ctx.apply();return ctx._str};BEMContext.prototype.reapply=BEMContext.apply}].forEach(function(fn){fn(exports,this)},{recordExtensions:function(ctx){ctx._str=undefined;ctx._mode=undefined;ctx.block=undefined;ctx.elem=undefined;ctx._notNewList=undefined;ctx.position=undefined;ctx._listLength=undefined;ctx.ctx=undefined;ctx.__$a=0;ctx._currBlock=undefined;ctx.mods=undefined;ctx.elemMods=undefined}});function __$b8(__$ctx,__$ref){__$ctx.__$a=0;var _this__$0=__$ctx,BEM___$1=_this__$0.BEM,v__$2=__$ctx.ctx,isBEM__$3,tag__$4,result__$5;var __$r__$6;var __$l0__$7=__$ctx._str;__$ctx._str="";var __$r__$8;var __$l1__$9=__$ctx._mode;__$ctx._mode="tag";__$r__$8=applyc(__$ctx,__$ref);__$ctx._mode=__$l1__$9;tag__$4=__$r__$8;typeof tag__$4!=="undefined"||(tag__$4=v__$2.tag);typeof tag__$4!=="undefined"||(tag__$4="div");if(tag__$4){var jsParams__$10,js__$11;if(__$ctx.block&&v__$2.js!==false){var __$r__$12;var __$l2__$13=__$ctx._mode;__$ctx._mode="js";__$r__$12=applyc(__$ctx,__$ref);__$ctx._mode=__$l2__$13;js__$11=__$r__$12;js__$11=js__$11?__$ctx._.extend(v__$2.js,js__$11===true?{}:js__$11):v__$2.js===true?{}:v__$2.js;js__$11&&((jsParams__$10={})[BEM___$1.INTERNAL.buildClass(__$ctx.block,v__$2.elem)]=js__$11)}__$ctx._str+="<"+tag__$4;var __$r__$14;var __$l3__$15=__$ctx._mode;__$ctx._mode="bem";__$r__$14=applyc(__$ctx,__$ref);__$ctx._mode=__$l3__$15;isBEM__$3=__$r__$14;typeof isBEM__$3!=="undefined"||(isBEM__$3=typeof v__$2.bem!=="undefined"?v__$2.bem:v__$2.block||v__$2.elem);var __$r__$17;var __$l4__$18=__$ctx._mode;__$ctx._mode="cls";__$r__$17=applyc(__$ctx,__$ref);__$ctx._mode=__$l4__$18;var cls__$16=__$r__$17;cls__$16||(cls__$16=v__$2.cls);var addJSInitClass__$19=v__$2.block&&jsParams__$10;if(isBEM__$3||cls__$16){__$ctx._str+=' class="';if(isBEM__$3){__$ctx._str+=BEM___$1.INTERNAL.buildClasses(__$ctx.block,v__$2.elem,v__$2.elemMods||v__$2.mods);var __$r__$21;var __$l5__$22=__$ctx._mode;__$ctx._mode="mix";__$r__$21=applyc(__$ctx,__$ref);__$ctx._mode=__$l5__$22;var mix__$20=__$r__$21;v__$2.mix&&(mix__$20=mix__$20?mix__$20.concat(v__$2.mix):v__$2.mix);if(mix__$20){var visited__$23={},visitedKey__$24=function(block,elem){return(block||"")+"__"+(elem||"")};visited__$23[visitedKey__$24(__$ctx.block,__$ctx.elem)]=true;if(!__$ctx._.isArray(mix__$20))mix__$20=[mix__$20];for(var i__$25=0;i__$25<mix__$20.length;i__$25++){var mixItem__$26=mix__$20[i__$25],hasItem__$27=mixItem__$26.block||mixItem__$26.elem,block__$28=mixItem__$26.block||mixItem__$26._block||_this__$0.block,elem__$29=mixItem__$26.elem||mixItem__$26._elem||_this__$0.elem;if(hasItem__$27)__$ctx._str+=" ";__$ctx._str+=BEM___$1.INTERNAL[hasItem__$27?"buildClasses":"buildModsClasses"](block__$28,mixItem__$26.elem||mixItem__$26._elem||(mixItem__$26.block?undefined:_this__$0.elem),mixItem__$26.elemMods||mixItem__$26.mods);if(mixItem__$26.js){(jsParams__$10||(jsParams__$10={}))[BEM___$1.INTERNAL.buildClass(block__$28,mixItem__$26.elem)]=mixItem__$26.js===true?{}:mixItem__$26.js;addJSInitClass__$19||(addJSInitClass__$19=block__$28&&!mixItem__$26.elem)}if(hasItem__$27&&!visited__$23[visitedKey__$24(block__$28,elem__$29)]){visited__$23[visitedKey__$24(block__$28,elem__$29)]=true;var __$r__$31;var __$l6__$32=__$ctx._mode;__$ctx._mode="mix";var __$l7__$33=__$ctx.block;__$ctx.block=block__$28;var __$l8__$34=__$ctx.elem;__$ctx.elem=elem__$29;__$r__$31=applyc(__$ctx,__$ref);__$ctx._mode=__$l6__$32;__$ctx.block=__$l7__$33;__$ctx.elem=__$l8__$34;var nestedMix__$30=__$r__$31;if(nestedMix__$30){for(var j__$35=0;j__$35<nestedMix__$30.length;j__$35++){var nestedItem__$36=nestedMix__$30[j__$35];if(!nestedItem__$36.block&&!nestedItem__$36.elem||!visited__$23[visitedKey__$24(nestedItem__$36.block,nestedItem__$36.elem)]){nestedItem__$36._block=block__$28;nestedItem__$36._elem=elem__$29;mix__$20.splice(i__$25+1,0,nestedItem__$36)}}}}}}}if(cls__$16)__$ctx._str+=isBEM__$3?" "+cls__$16:cls__$16;if(addJSInitClass__$19)__$ctx._str+=' i-bem"';else __$ctx._str+='"'}if(isBEM__$3&&jsParams__$10){__$ctx._str+=' data-bem="'+__$ctx._.attrEscape(JSON.stringify(jsParams__$10))+'"'}var __$r__$38;var __$l9__$39=__$ctx._mode;__$ctx._mode="attrs";__$r__$38=applyc(__$ctx,__$ref);__$ctx._mode=__$l9__$39;var attrs__$37=__$r__$38;attrs__$37=__$ctx._.extend(attrs__$37,v__$2.attrs);if(attrs__$37){var name__$40,attr__$41;for(name__$40 in attrs__$37){attr__$41=attrs__$37[name__$40];if(attr__$41===undefined)continue;__$ctx._str+=" "+name__$40+'="'+__$ctx._.attrEscape(__$ctx._.isSimple(attr__$41)?attr__$41:__$ctx.reapply(attr__$41))+'"'}}}if(__$ctx._.isShortTag(tag__$4)){__$ctx._str+="/>"}else{if(tag__$4)__$ctx._str+=">";var __$r__$43;var __$l10__$44=__$ctx._mode;__$ctx._mode="content";__$r__$43=applyc(__$ctx,__$ref);__$ctx._mode=__$l10__$44;var content__$42=__$r__$43;if(content__$42||content__$42===0){isBEM__$3=__$ctx.block||__$ctx.elem;var __$r__$45;var __$l11__$46=__$ctx._mode;__$ctx._mode="";var __$l12__$47=__$ctx._notNewList;__$ctx._notNewList=false;var __$l13__$48=__$ctx.position;__$ctx.position=isBEM__$3?1:__$ctx.position;var __$l14__$49=__$ctx._listLength;__$ctx._listLength=isBEM__$3?1:__$ctx._listLength;var __$l15__$50=__$ctx.ctx;__$ctx.ctx=content__$42;__$r__$45=applyc(__$ctx,__$ref);__$ctx._mode=__$l11__$46;__$ctx._notNewList=__$l12__$47;__$ctx.position=__$l13__$48;__$ctx._listLength=__$l14__$49;__$ctx.ctx=__$l15__$50}if(tag__$4)__$ctx._str+="</"+tag__$4+">"}result__$5=__$ctx._str;__$r__$6=undefined;__$ctx._str=__$l0__$7;__$ctx._buf.push(result__$5);return}function __$b9(__$ctx,__$ref){__$ctx.__$a=0;var __$r__$51;var __$l0__$52=__$ctx._mode;__$ctx._mode="";var __$l1__$53=__$ctx.ctx;__$ctx.ctx=__$ctx.ctx._value;var __$r__$54;__$ctx.__$a=1;__$r__$54=applyc(__$ctx,__$ref);__$r__$51=__$r__$54;__$ctx._mode=__$l0__$52;__$ctx.ctx=__$l1__$53;return}function __$b10(__$ctx,__$ref){__$ctx.__$a=0;__$ctx._listLength--;var ctx__$55=__$ctx.ctx;if(ctx__$55&&ctx__$55!==true||ctx__$55===0){__$ctx._buf.push(ctx__$55+"")}return}function __$b11(__$ctx,__$ref){__$ctx.__$a=0;__$ctx._listLength--;return}function __$b12(__$ctx,__$ref){__$ctx.__$a=0;var v__$56=__$ctx.ctx,l__$57=v__$56.length,i__$58=0,prevPos__$59=__$ctx.position,prevNotNewList__$60=__$ctx._notNewList;if(prevNotNewList__$60){__$ctx._listLength+=l__$57-1}else{__$ctx.position=0;__$ctx._listLength=l__$57}__$ctx._notNewList=true;while(i__$58<l__$57)!function(){var __$r__$61;var __$l0__$62=__$ctx.ctx;__$ctx.ctx=v__$56[i__$58++];__$r__$61=applyc(__$ctx,__$ref);__$ctx.ctx=__$l0__$62;return __$r__$61}();prevNotNewList__$60||(__$ctx.position=prevPos__$59);return}function __$b13(__$ctx,__$ref){__$ctx.__$a=0;var vBlock__$63=__$ctx.ctx.block,vElem__$64=__$ctx.ctx.elem,block__$65=__$ctx._currBlock||__$ctx.block;__$ctx.ctx||(__$ctx.ctx={});var __$r__$66;var __$l0__$67=__$ctx._mode;__$ctx._mode="default";var __$l1__$68=__$ctx.block;__$ctx.block=vBlock__$63||(vElem__$64?block__$65:undefined);var __$l2__$69=__$ctx._currBlock;__$ctx._currBlock=vBlock__$63||vElem__$64?undefined:block__$65;var __$l3__$70=__$ctx.elem;__$ctx.elem=__$ctx.ctx.elem;var __$l4__$71=__$ctx.mods;__$ctx.mods=(vBlock__$63?__$ctx.ctx.mods:__$ctx.mods)||{};var __$l5__$72=__$ctx.elemMods;__$ctx.elemMods=__$ctx.ctx.elemMods||{};__$ctx.block||__$ctx.elem?__$ctx.position=(__$ctx.position||0)+1:__$ctx._listLength--;applyc(__$ctx,__$ref);__$r__$66=undefined;__$ctx._mode=__$l0__$67;__$ctx.block=__$l1__$68;__$ctx._currBlock=__$l2__$69;__$ctx.elem=__$l3__$70;__$ctx.mods=__$l4__$71;__$ctx.elemMods=__$l5__$72;return};
                                                                                                                                    Severity: Major
                                                                                                                                    Found in src/log_analyzer/js/analyzer.table.js - About 30 mins to fix

                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                      Open

                                                                                                                                              return function(fn) { // old browsers
                                                                                                                                                  enqueueFn(fn) && setTimeout(callFns, 0);
                                                                                                                                              };
                                                                                                                                      Severity: Major
                                                                                                                                      Found in src/log_analyzer/js/analyzer.table.js - About 30 mins to fix

                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                        Open

                                                                                                                                            return true;
                                                                                                                                        Severity: Major
                                                                                                                                        Found in src/log_analyzer/js/analyzer.table.js - About 30 mins to fix

                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                          Open

                                                                                                                                               var __$ref={};function apply(ctx){try{return applyc(ctx||this,__$ref)}catch(e){(ctx||this).xjstContext=e;throw e}}exports.apply=apply;function applyc(__$ctx,__$ref){var __$t=__$ctx._mode;if(__$t==="content"){__$ctx.__$a=0;return __$ctx.ctx.content}else if(__$t==="mix"){__$ctx.__$a=0;return undefined}else if(__$t==="bem"){__$ctx.__$a=0;return undefined}else if(__$t==="js"){__$ctx.__$a=0;return undefined}else if(__$t==="cls"){__$ctx.__$a=0;return undefined}else if(__$t==="attrs"){__$ctx.__$a=0;return undefined}else if(__$t==="tag"){__$ctx.__$a=0;return undefined}else if(__$t==="default"){__$ctx.__$a=0;var __$r=__$b8(__$ctx,__$ref);if(__$r!==__$ref)return __$r}else if(__$t===""){if(__$ctx.ctx&&__$ctx.ctx._vow&&__$ctx.__$a!==1){__$ctx.__$a=0;var __$r=__$b9(__$ctx,__$ref);if(__$r!==__$ref)return __$r}if(__$ctx._.isSimple(__$ctx.ctx)){__$ctx.__$a=0;var __$r=__$b10(__$ctx,__$ref);if(__$r!==__$ref)return __$r}if(!__$ctx.ctx){__$ctx.__$a=0;var __$r=__$b11(__$ctx,__$ref);if(__$r!==__$ref)return __$r}if(__$ctx._.isArray(__$ctx.ctx)){__$ctx.__$a=0;var __$r=__$b12(__$ctx,__$ref);if(__$r!==__$ref)return __$r}__$ctx.__$a=0;var __$r=__$b13(__$ctx,__$ref);if(__$r!==__$ref)return __$r}__$ctx.__$a=0}[function(exports){var BEM_={},toString=Object.prototype.toString,isArray=Array.isArray||function(obj){return toString.call(obj)==="[object Array]"},SHORT_TAGS={area:1,base:1,br:1,col:1,command:1,embed:1,hr:1,img:1,input:1,keygen:1,link:1,meta:1,param:1,source:1,wbr:1};!function(BEM,undefined){var MOD_DELIM="_",ELEM_DELIM="__",NAME_PATTERN="[a-zA-Z0-9-]+";function buildModPostfix(modName,modVal){var res=MOD_DELIM+modName;if(modVal!==true)res+=MOD_DELIM+modVal;return res}function buildBlockClass(name,modName,modVal){var res=name;if(modVal)res+=buildModPostfix(modName,modVal);return res}function buildElemClass(block,name,modName,modVal){var res=buildBlockClass(block)+ELEM_DELIM+name;if(modVal)res+=buildModPostfix(modName,modVal);return res}BEM.INTERNAL={NAME_PATTERN:NAME_PATTERN,MOD_DELIM:MOD_DELIM,ELEM_DELIM:ELEM_DELIM,buildModPostfix:buildModPostfix,buildClass:function(block,elem,modName,modVal){var typeOfModName=typeof modName;if(typeOfModName==="string"||typeOfModName==="boolean"){var typeOfModVal=typeof modVal;if(typeOfModVal!=="string"&&typeOfModVal!=="boolean"){modVal=modName;modName=elem;elem=undefined}}else if(typeOfModName!=="undefined"){modName=undefined}else if(elem&&typeof elem!=="string"){elem=undefined}if(!(elem||modName)){return block}if(elem)return buildElemClass(block,elem,modName,modVal);else return buildBlockClass(block,modName,modVal)},buildModsClasses:function(block,elem,mods){var res="";if(mods){var modName;for(modName in mods){if(!mods.hasOwnProperty(modName))continue;var modVal=mods[modName];if(!modVal&&modVal!==0)continue;typeof modVal!=="boolean"&&(modVal+="");res+=" "+(elem?buildElemClass(block,elem,modName,modVal):buildBlockClass(block,modName,modVal))}}return res},buildClasses:function(block,elem,mods){var res="";if(elem)res+=buildElemClass(block,elem);else res+=buildBlockClass(block);res+=this.buildModsClasses(block,elem,mods);return res}}}(BEM_);var ts={'"':"&quot;","&":"&amp;","<":"&lt;",">":"&gt;"},f=function(t){return ts[t]||t};var buildEscape=function(r){r=new RegExp(r,"g");return function(s){return(""+s).replace(r,f)}};function BEMContext(context,apply_){this.ctx=typeof context===null?"":context;this.apply=apply_;this._str="";var self=this;this._buf={push:function(){var chunks=Array.prototype.slice.call(arguments).join("");self._str+=chunks},join:function(){return this._str}};this._=this;this._start=true;this._mode="";this._listLength=0;this._notNewList=false;this.position=0;this.block=undefined;this.elem=undefined;this.mods=undefined;this.elemMods=undefined}BEMContext.prototype.isArray=isArray;BEMContext.prototype.isSimple=function isSimple(obj){var t=typeof obj;return t==="string"||t==="number"||t==="boolean"};BEMContext.prototype.isShortTag=function isShortTag(t){return SHORT_TAGS.hasOwnProperty(t)};BEMContext.prototype.extend=function extend(o1,o2){if(!o1||!o2)return o1||o2;var res={},n;for(n in o1)o1.hasOwnProperty(n)&&(res[n]=o1[n]);for(n in o2)o2.hasOwnProperty(n)&&(res[n]=o2[n]);return res};var cnt=0,id=+new Date,expando="__"+id,get=function(){return"uniq"+id+ ++cnt};BEMContext.prototype.identify=function(obj,onlyGet){if(!obj)return get();if(onlyGet||obj[expando]){return obj[expando]}else{return obj[expando]=get()}};BEMContext.prototype.xmlEscape=buildEscape("[&<>]");BEMContext.prototype.attrEscape=buildEscape('["&<>]');BEMContext.prototype.BEM=BEM_;BEMContext.prototype.isFirst=function isFirst(){return this.position===1};BEMContext.prototype.isLast=function isLast(){return this.position===this._listLength};BEMContext.prototype.generateId=function generateId(){return this.identify(this.ctx)};var oldApply=exports.apply;exports.apply=BEMContext.apply=function _apply(context){var ctx=new BEMContext(context||this,oldApply);ctx.apply();return ctx._str};BEMContext.prototype.reapply=BEMContext.apply}].forEach(function(fn){fn(exports,this)},{recordExtensions:function(ctx){ctx._str=undefined;ctx._mode=undefined;ctx.block=undefined;ctx.elem=undefined;ctx._notNewList=undefined;ctx.position=undefined;ctx._listLength=undefined;ctx.ctx=undefined;ctx.__$a=0;ctx._currBlock=undefined;ctx.mods=undefined;ctx.elemMods=undefined}});function __$b8(__$ctx,__$ref){__$ctx.__$a=0;var _this__$0=__$ctx,BEM___$1=_this__$0.BEM,v__$2=__$ctx.ctx,isBEM__$3,tag__$4,result__$5;var __$r__$6;var __$l0__$7=__$ctx._str;__$ctx._str="";var __$r__$8;var __$l1__$9=__$ctx._mode;__$ctx._mode="tag";__$r__$8=applyc(__$ctx,__$ref);__$ctx._mode=__$l1__$9;tag__$4=__$r__$8;typeof tag__$4!=="undefined"||(tag__$4=v__$2.tag);typeof tag__$4!=="undefined"||(tag__$4="div");if(tag__$4){var jsParams__$10,js__$11;if(__$ctx.block&&v__$2.js!==false){var __$r__$12;var __$l2__$13=__$ctx._mode;__$ctx._mode="js";__$r__$12=applyc(__$ctx,__$ref);__$ctx._mode=__$l2__$13;js__$11=__$r__$12;js__$11=js__$11?__$ctx._.extend(v__$2.js,js__$11===true?{}:js__$11):v__$2.js===true?{}:v__$2.js;js__$11&&((jsParams__$10={})[BEM___$1.INTERNAL.buildClass(__$ctx.block,v__$2.elem)]=js__$11)}__$ctx._str+="<"+tag__$4;var __$r__$14;var __$l3__$15=__$ctx._mode;__$ctx._mode="bem";__$r__$14=applyc(__$ctx,__$ref);__$ctx._mode=__$l3__$15;isBEM__$3=__$r__$14;typeof isBEM__$3!=="undefined"||(isBEM__$3=typeof v__$2.bem!=="undefined"?v__$2.bem:v__$2.block||v__$2.elem);var __$r__$17;var __$l4__$18=__$ctx._mode;__$ctx._mode="cls";__$r__$17=applyc(__$ctx,__$ref);__$ctx._mode=__$l4__$18;var cls__$16=__$r__$17;cls__$16||(cls__$16=v__$2.cls);var addJSInitClass__$19=v__$2.block&&jsParams__$10;if(isBEM__$3||cls__$16){__$ctx._str+=' class="';if(isBEM__$3){__$ctx._str+=BEM___$1.INTERNAL.buildClasses(__$ctx.block,v__$2.elem,v__$2.elemMods||v__$2.mods);var __$r__$21;var __$l5__$22=__$ctx._mode;__$ctx._mode="mix";__$r__$21=applyc(__$ctx,__$ref);__$ctx._mode=__$l5__$22;var mix__$20=__$r__$21;v__$2.mix&&(mix__$20=mix__$20?mix__$20.concat(v__$2.mix):v__$2.mix);if(mix__$20){var visited__$23={},visitedKey__$24=function(block,elem){return(block||"")+"__"+(elem||"")};visited__$23[visitedKey__$24(__$ctx.block,__$ctx.elem)]=true;if(!__$ctx._.isArray(mix__$20))mix__$20=[mix__$20];for(var i__$25=0;i__$25<mix__$20.length;i__$25++){var mixItem__$26=mix__$20[i__$25],hasItem__$27=mixItem__$26.block||mixItem__$26.elem,block__$28=mixItem__$26.block||mixItem__$26._block||_this__$0.block,elem__$29=mixItem__$26.elem||mixItem__$26._elem||_this__$0.elem;if(hasItem__$27)__$ctx._str+=" ";__$ctx._str+=BEM___$1.INTERNAL[hasItem__$27?"buildClasses":"buildModsClasses"](block__$28,mixItem__$26.elem||mixItem__$26._elem||(mixItem__$26.block?undefined:_this__$0.elem),mixItem__$26.elemMods||mixItem__$26.mods);if(mixItem__$26.js){(jsParams__$10||(jsParams__$10={}))[BEM___$1.INTERNAL.buildClass(block__$28,mixItem__$26.elem)]=mixItem__$26.js===true?{}:mixItem__$26.js;addJSInitClass__$19||(addJSInitClass__$19=block__$28&&!mixItem__$26.elem)}if(hasItem__$27&&!visited__$23[visitedKey__$24(block__$28,elem__$29)]){visited__$23[visitedKey__$24(block__$28,elem__$29)]=true;var __$r__$31;var __$l6__$32=__$ctx._mode;__$ctx._mode="mix";var __$l7__$33=__$ctx.block;__$ctx.block=block__$28;var __$l8__$34=__$ctx.elem;__$ctx.elem=elem__$29;__$r__$31=applyc(__$ctx,__$ref);__$ctx._mode=__$l6__$32;__$ctx.block=__$l7__$33;__$ctx.elem=__$l8__$34;var nestedMix__$30=__$r__$31;if(nestedMix__$30){for(var j__$35=0;j__$35<nestedMix__$30.length;j__$35++){var nestedItem__$36=nestedMix__$30[j__$35];if(!nestedItem__$36.block&&!nestedItem__$36.elem||!visited__$23[visitedKey__$24(nestedItem__$36.block,nestedItem__$36.elem)]){nestedItem__$36._block=block__$28;nestedItem__$36._elem=elem__$29;mix__$20.splice(i__$25+1,0,nestedItem__$36)}}}}}}}if(cls__$16)__$ctx._str+=isBEM__$3?" "+cls__$16:cls__$16;if(addJSInitClass__$19)__$ctx._str+=' i-bem"';else __$ctx._str+='"'}if(isBEM__$3&&jsParams__$10){__$ctx._str+=' data-bem="'+__$ctx._.attrEscape(JSON.stringify(jsParams__$10))+'"'}var __$r__$38;var __$l9__$39=__$ctx._mode;__$ctx._mode="attrs";__$r__$38=applyc(__$ctx,__$ref);__$ctx._mode=__$l9__$39;var attrs__$37=__$r__$38;attrs__$37=__$ctx._.extend(attrs__$37,v__$2.attrs);if(attrs__$37){var name__$40,attr__$41;for(name__$40 in attrs__$37){attr__$41=attrs__$37[name__$40];if(attr__$41===undefined)continue;__$ctx._str+=" "+name__$40+'="'+__$ctx._.attrEscape(__$ctx._.isSimple(attr__$41)?attr__$41:__$ctx.reapply(attr__$41))+'"'}}}if(__$ctx._.isShortTag(tag__$4)){__$ctx._str+="/>"}else{if(tag__$4)__$ctx._str+=">";var __$r__$43;var __$l10__$44=__$ctx._mode;__$ctx._mode="content";__$r__$43=applyc(__$ctx,__$ref);__$ctx._mode=__$l10__$44;var content__$42=__$r__$43;if(content__$42||content__$42===0){isBEM__$3=__$ctx.block||__$ctx.elem;var __$r__$45;var __$l11__$46=__$ctx._mode;__$ctx._mode="";var __$l12__$47=__$ctx._notNewList;__$ctx._notNewList=false;var __$l13__$48=__$ctx.position;__$ctx.position=isBEM__$3?1:__$ctx.position;var __$l14__$49=__$ctx._listLength;__$ctx._listLength=isBEM__$3?1:__$ctx._listLength;var __$l15__$50=__$ctx.ctx;__$ctx.ctx=content__$42;__$r__$45=applyc(__$ctx,__$ref);__$ctx._mode=__$l11__$46;__$ctx._notNewList=__$l12__$47;__$ctx.position=__$l13__$48;__$ctx._listLength=__$l14__$49;__$ctx.ctx=__$l15__$50}if(tag__$4)__$ctx._str+="</"+tag__$4+">"}result__$5=__$ctx._str;__$r__$6=undefined;__$ctx._str=__$l0__$7;__$ctx._buf.push(result__$5);return}function __$b9(__$ctx,__$ref){__$ctx.__$a=0;var __$r__$51;var __$l0__$52=__$ctx._mode;__$ctx._mode="";var __$l1__$53=__$ctx.ctx;__$ctx.ctx=__$ctx.ctx._value;var __$r__$54;__$ctx.__$a=1;__$r__$54=applyc(__$ctx,__$ref);__$r__$51=__$r__$54;__$ctx._mode=__$l0__$52;__$ctx.ctx=__$l1__$53;return}function __$b10(__$ctx,__$ref){__$ctx.__$a=0;__$ctx._listLength--;var ctx__$55=__$ctx.ctx;if(ctx__$55&&ctx__$55!==true||ctx__$55===0){__$ctx._buf.push(ctx__$55+"")}return}function __$b11(__$ctx,__$ref){__$ctx.__$a=0;__$ctx._listLength--;return}function __$b12(__$ctx,__$ref){__$ctx.__$a=0;var v__$56=__$ctx.ctx,l__$57=v__$56.length,i__$58=0,prevPos__$59=__$ctx.position,prevNotNewList__$60=__$ctx._notNewList;if(prevNotNewList__$60){__$ctx._listLength+=l__$57-1}else{__$ctx.position=0;__$ctx._listLength=l__$57}__$ctx._notNewList=true;while(i__$58<l__$57)!function(){var __$r__$61;var __$l0__$62=__$ctx.ctx;__$ctx.ctx=v__$56[i__$58++];__$r__$61=applyc(__$ctx,__$ref);__$ctx.ctx=__$l0__$62;return __$r__$61}();prevNotNewList__$60||(__$ctx.position=prevPos__$59);return}function __$b13(__$ctx,__$ref){__$ctx.__$a=0;var vBlock__$63=__$ctx.ctx.block,vElem__$64=__$ctx.ctx.elem,block__$65=__$ctx._currBlock||__$ctx.block;__$ctx.ctx||(__$ctx.ctx={});var __$r__$66;var __$l0__$67=__$ctx._mode;__$ctx._mode="default";var __$l1__$68=__$ctx.block;__$ctx.block=vBlock__$63||(vElem__$64?block__$65:undefined);var __$l2__$69=__$ctx._currBlock;__$ctx._currBlock=vBlock__$63||vElem__$64?undefined:block__$65;var __$l3__$70=__$ctx.elem;__$ctx.elem=__$ctx.ctx.elem;var __$l4__$71=__$ctx.mods;__$ctx.mods=(vBlock__$63?__$ctx.ctx.mods:__$ctx.mods)||{};var __$l5__$72=__$ctx.elemMods;__$ctx.elemMods=__$ctx.ctx.elemMods||{};__$ctx.block||__$ctx.elem?__$ctx.position=(__$ctx.position||0)+1:__$ctx._listLength--;applyc(__$ctx,__$ref);__$r__$66=undefined;__$ctx._mode=__$l0__$67;__$ctx.block=__$l1__$68;__$ctx._currBlock=__$l2__$69;__$ctx.elem=__$l3__$70;__$ctx.mods=__$l4__$71;__$ctx.elemMods=__$l5__$72;return};
                                                                                                                                          Severity: Major
                                                                                                                                          Found in src/log_analyzer/js/analyzer.table.js - About 30 mins to fix

                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                            Open

                                                                                                                                                 var __$ref={};function apply(ctx){try{return applyc(ctx||this,__$ref)}catch(e){(ctx||this).xjstContext=e;throw e}}exports.apply=apply;function applyc(__$ctx,__$ref){var __$t=__$ctx._mode;if(__$t==="content"){__$ctx.__$a=0;return __$ctx.ctx.content}else if(__$t==="mix"){__$ctx.__$a=0;return undefined}else if(__$t==="bem"){__$ctx.__$a=0;return undefined}else if(__$t==="js"){__$ctx.__$a=0;return undefined}else if(__$t==="cls"){__$ctx.__$a=0;return undefined}else if(__$t==="attrs"){__$ctx.__$a=0;return undefined}else if(__$t==="tag"){__$ctx.__$a=0;return undefined}else if(__$t==="default"){__$ctx.__$a=0;var __$r=__$b8(__$ctx,__$ref);if(__$r!==__$ref)return __$r}else if(__$t===""){if(__$ctx.ctx&&__$ctx.ctx._vow&&__$ctx.__$a!==1){__$ctx.__$a=0;var __$r=__$b9(__$ctx,__$ref);if(__$r!==__$ref)return __$r}if(__$ctx._.isSimple(__$ctx.ctx)){__$ctx.__$a=0;var __$r=__$b10(__$ctx,__$ref);if(__$r!==__$ref)return __$r}if(!__$ctx.ctx){__$ctx.__$a=0;var __$r=__$b11(__$ctx,__$ref);if(__$r!==__$ref)return __$r}if(__$ctx._.isArray(__$ctx.ctx)){__$ctx.__$a=0;var __$r=__$b12(__$ctx,__$ref);if(__$r!==__$ref)return __$r}__$ctx.__$a=0;var __$r=__$b13(__$ctx,__$ref);if(__$r!==__$ref)return __$r}__$ctx.__$a=0}[function(exports){var BEM_={},toString=Object.prototype.toString,isArray=Array.isArray||function(obj){return toString.call(obj)==="[object Array]"},SHORT_TAGS={area:1,base:1,br:1,col:1,command:1,embed:1,hr:1,img:1,input:1,keygen:1,link:1,meta:1,param:1,source:1,wbr:1};!function(BEM,undefined){var MOD_DELIM="_",ELEM_DELIM="__",NAME_PATTERN="[a-zA-Z0-9-]+";function buildModPostfix(modName,modVal){var res=MOD_DELIM+modName;if(modVal!==true)res+=MOD_DELIM+modVal;return res}function buildBlockClass(name,modName,modVal){var res=name;if(modVal)res+=buildModPostfix(modName,modVal);return res}function buildElemClass(block,name,modName,modVal){var res=buildBlockClass(block)+ELEM_DELIM+name;if(modVal)res+=buildModPostfix(modName,modVal);return res}BEM.INTERNAL={NAME_PATTERN:NAME_PATTERN,MOD_DELIM:MOD_DELIM,ELEM_DELIM:ELEM_DELIM,buildModPostfix:buildModPostfix,buildClass:function(block,elem,modName,modVal){var typeOfModName=typeof modName;if(typeOfModName==="string"||typeOfModName==="boolean"){var typeOfModVal=typeof modVal;if(typeOfModVal!=="string"&&typeOfModVal!=="boolean"){modVal=modName;modName=elem;elem=undefined}}else if(typeOfModName!=="undefined"){modName=undefined}else if(elem&&typeof elem!=="string"){elem=undefined}if(!(elem||modName)){return block}if(elem)return buildElemClass(block,elem,modName,modVal);else return buildBlockClass(block,modName,modVal)},buildModsClasses:function(block,elem,mods){var res="";if(mods){var modName;for(modName in mods){if(!mods.hasOwnProperty(modName))continue;var modVal=mods[modName];if(!modVal&&modVal!==0)continue;typeof modVal!=="boolean"&&(modVal+="");res+=" "+(elem?buildElemClass(block,elem,modName,modVal):buildBlockClass(block,modName,modVal))}}return res},buildClasses:function(block,elem,mods){var res="";if(elem)res+=buildElemClass(block,elem);else res+=buildBlockClass(block);res+=this.buildModsClasses(block,elem,mods);return res}}}(BEM_);var ts={'"':"&quot;","&":"&amp;","<":"&lt;",">":"&gt;"},f=function(t){return ts[t]||t};var buildEscape=function(r){r=new RegExp(r,"g");return function(s){return(""+s).replace(r,f)}};function BEMContext(context,apply_){this.ctx=typeof context===null?"":context;this.apply=apply_;this._str="";var self=this;this._buf={push:function(){var chunks=Array.prototype.slice.call(arguments).join("");self._str+=chunks},join:function(){return this._str}};this._=this;this._start=true;this._mode="";this._listLength=0;this._notNewList=false;this.position=0;this.block=undefined;this.elem=undefined;this.mods=undefined;this.elemMods=undefined}BEMContext.prototype.isArray=isArray;BEMContext.prototype.isSimple=function isSimple(obj){var t=typeof obj;return t==="string"||t==="number"||t==="boolean"};BEMContext.prototype.isShortTag=function isShortTag(t){return SHORT_TAGS.hasOwnProperty(t)};BEMContext.prototype.extend=function extend(o1,o2){if(!o1||!o2)return o1||o2;var res={},n;for(n in o1)o1.hasOwnProperty(n)&&(res[n]=o1[n]);for(n in o2)o2.hasOwnProperty(n)&&(res[n]=o2[n]);return res};var cnt=0,id=+new Date,expando="__"+id,get=function(){return"uniq"+id+ ++cnt};BEMContext.prototype.identify=function(obj,onlyGet){if(!obj)return get();if(onlyGet||obj[expando]){return obj[expando]}else{return obj[expando]=get()}};BEMContext.prototype.xmlEscape=buildEscape("[&<>]");BEMContext.prototype.attrEscape=buildEscape('["&<>]');BEMContext.prototype.BEM=BEM_;BEMContext.prototype.isFirst=function isFirst(){return this.position===1};BEMContext.prototype.isLast=function isLast(){return this.position===this._listLength};BEMContext.prototype.generateId=function generateId(){return this.identify(this.ctx)};var oldApply=exports.apply;exports.apply=BEMContext.apply=function _apply(context){var ctx=new BEMContext(context||this,oldApply);ctx.apply();return ctx._str};BEMContext.prototype.reapply=BEMContext.apply}].forEach(function(fn){fn(exports,this)},{recordExtensions:function(ctx){ctx._str=undefined;ctx._mode=undefined;ctx.block=undefined;ctx.elem=undefined;ctx._notNewList=undefined;ctx.position=undefined;ctx._listLength=undefined;ctx.ctx=undefined;ctx.__$a=0;ctx._currBlock=undefined;ctx.mods=undefined;ctx.elemMods=undefined}});function __$b8(__$ctx,__$ref){__$ctx.__$a=0;var _this__$0=__$ctx,BEM___$1=_this__$0.BEM,v__$2=__$ctx.ctx,isBEM__$3,tag__$4,result__$5;var __$r__$6;var __$l0__$7=__$ctx._str;__$ctx._str="";var __$r__$8;var __$l1__$9=__$ctx._mode;__$ctx._mode="tag";__$r__$8=applyc(__$ctx,__$ref);__$ctx._mode=__$l1__$9;tag__$4=__$r__$8;typeof tag__$4!=="undefined"||(tag__$4=v__$2.tag);typeof tag__$4!=="undefined"||(tag__$4="div");if(tag__$4){var jsParams__$10,js__$11;if(__$ctx.block&&v__$2.js!==false){var __$r__$12;var __$l2__$13=__$ctx._mode;__$ctx._mode="js";__$r__$12=applyc(__$ctx,__$ref);__$ctx._mode=__$l2__$13;js__$11=__$r__$12;js__$11=js__$11?__$ctx._.extend(v__$2.js,js__$11===true?{}:js__$11):v__$2.js===true?{}:v__$2.js;js__$11&&((jsParams__$10={})[BEM___$1.INTERNAL.buildClass(__$ctx.block,v__$2.elem)]=js__$11)}__$ctx._str+="<"+tag__$4;var __$r__$14;var __$l3__$15=__$ctx._mode;__$ctx._mode="bem";__$r__$14=applyc(__$ctx,__$ref);__$ctx._mode=__$l3__$15;isBEM__$3=__$r__$14;typeof isBEM__$3!=="undefined"||(isBEM__$3=typeof v__$2.bem!=="undefined"?v__$2.bem:v__$2.block||v__$2.elem);var __$r__$17;var __$l4__$18=__$ctx._mode;__$ctx._mode="cls";__$r__$17=applyc(__$ctx,__$ref);__$ctx._mode=__$l4__$18;var cls__$16=__$r__$17;cls__$16||(cls__$16=v__$2.cls);var addJSInitClass__$19=v__$2.block&&jsParams__$10;if(isBEM__$3||cls__$16){__$ctx._str+=' class="';if(isBEM__$3){__$ctx._str+=BEM___$1.INTERNAL.buildClasses(__$ctx.block,v__$2.elem,v__$2.elemMods||v__$2.mods);var __$r__$21;var __$l5__$22=__$ctx._mode;__$ctx._mode="mix";__$r__$21=applyc(__$ctx,__$ref);__$ctx._mode=__$l5__$22;var mix__$20=__$r__$21;v__$2.mix&&(mix__$20=mix__$20?mix__$20.concat(v__$2.mix):v__$2.mix);if(mix__$20){var visited__$23={},visitedKey__$24=function(block,elem){return(block||"")+"__"+(elem||"")};visited__$23[visitedKey__$24(__$ctx.block,__$ctx.elem)]=true;if(!__$ctx._.isArray(mix__$20))mix__$20=[mix__$20];for(var i__$25=0;i__$25<mix__$20.length;i__$25++){var mixItem__$26=mix__$20[i__$25],hasItem__$27=mixItem__$26.block||mixItem__$26.elem,block__$28=mixItem__$26.block||mixItem__$26._block||_this__$0.block,elem__$29=mixItem__$26.elem||mixItem__$26._elem||_this__$0.elem;if(hasItem__$27)__$ctx._str+=" ";__$ctx._str+=BEM___$1.INTERNAL[hasItem__$27?"buildClasses":"buildModsClasses"](block__$28,mixItem__$26.elem||mixItem__$26._elem||(mixItem__$26.block?undefined:_this__$0.elem),mixItem__$26.elemMods||mixItem__$26.mods);if(mixItem__$26.js){(jsParams__$10||(jsParams__$10={}))[BEM___$1.INTERNAL.buildClass(block__$28,mixItem__$26.elem)]=mixItem__$26.js===true?{}:mixItem__$26.js;addJSInitClass__$19||(addJSInitClass__$19=block__$28&&!mixItem__$26.elem)}if(hasItem__$27&&!visited__$23[visitedKey__$24(block__$28,elem__$29)]){visited__$23[visitedKey__$24(block__$28,elem__$29)]=true;var __$r__$31;var __$l6__$32=__$ctx._mode;__$ctx._mode="mix";var __$l7__$33=__$ctx.block;__$ctx.block=block__$28;var __$l8__$34=__$ctx.elem;__$ctx.elem=elem__$29;__$r__$31=applyc(__$ctx,__$ref);__$ctx._mode=__$l6__$32;__$ctx.block=__$l7__$33;__$ctx.elem=__$l8__$34;var nestedMix__$30=__$r__$31;if(nestedMix__$30){for(var j__$35=0;j__$35<nestedMix__$30.length;j__$35++){var nestedItem__$36=nestedMix__$30[j__$35];if(!nestedItem__$36.block&&!nestedItem__$36.elem||!visited__$23[visitedKey__$24(nestedItem__$36.block,nestedItem__$36.elem)]){nestedItem__$36._block=block__$28;nestedItem__$36._elem=elem__$29;mix__$20.splice(i__$25+1,0,nestedItem__$36)}}}}}}}if(cls__$16)__$ctx._str+=isBEM__$3?" "+cls__$16:cls__$16;if(addJSInitClass__$19)__$ctx._str+=' i-bem"';else __$ctx._str+='"'}if(isBEM__$3&&jsParams__$10){__$ctx._str+=' data-bem="'+__$ctx._.attrEscape(JSON.stringify(jsParams__$10))+'"'}var __$r__$38;var __$l9__$39=__$ctx._mode;__$ctx._mode="attrs";__$r__$38=applyc(__$ctx,__$ref);__$ctx._mode=__$l9__$39;var attrs__$37=__$r__$38;attrs__$37=__$ctx._.extend(attrs__$37,v__$2.attrs);if(attrs__$37){var name__$40,attr__$41;for(name__$40 in attrs__$37){attr__$41=attrs__$37[name__$40];if(attr__$41===undefined)continue;__$ctx._str+=" "+name__$40+'="'+__$ctx._.attrEscape(__$ctx._.isSimple(attr__$41)?attr__$41:__$ctx.reapply(attr__$41))+'"'}}}if(__$ctx._.isShortTag(tag__$4)){__$ctx._str+="/>"}else{if(tag__$4)__$ctx._str+=">";var __$r__$43;var __$l10__$44=__$ctx._mode;__$ctx._mode="content";__$r__$43=applyc(__$ctx,__$ref);__$ctx._mode=__$l10__$44;var content__$42=__$r__$43;if(content__$42||content__$42===0){isBEM__$3=__$ctx.block||__$ctx.elem;var __$r__$45;var __$l11__$46=__$ctx._mode;__$ctx._mode="";var __$l12__$47=__$ctx._notNewList;__$ctx._notNewList=false;var __$l13__$48=__$ctx.position;__$ctx.position=isBEM__$3?1:__$ctx.position;var __$l14__$49=__$ctx._listLength;__$ctx._listLength=isBEM__$3?1:__$ctx._listLength;var __$l15__$50=__$ctx.ctx;__$ctx.ctx=content__$42;__$r__$45=applyc(__$ctx,__$ref);__$ctx._mode=__$l11__$46;__$ctx._notNewList=__$l12__$47;__$ctx.position=__$l13__$48;__$ctx._listLength=__$l14__$49;__$ctx.ctx=__$l15__$50}if(tag__$4)__$ctx._str+="</"+tag__$4+">"}result__$5=__$ctx._str;__$r__$6=undefined;__$ctx._str=__$l0__$7;__$ctx._buf.push(result__$5);return}function __$b9(__$ctx,__$ref){__$ctx.__$a=0;var __$r__$51;var __$l0__$52=__$ctx._mode;__$ctx._mode="";var __$l1__$53=__$ctx.ctx;__$ctx.ctx=__$ctx.ctx._value;var __$r__$54;__$ctx.__$a=1;__$r__$54=applyc(__$ctx,__$ref);__$r__$51=__$r__$54;__$ctx._mode=__$l0__$52;__$ctx.ctx=__$l1__$53;return}function __$b10(__$ctx,__$ref){__$ctx.__$a=0;__$ctx._listLength--;var ctx__$55=__$ctx.ctx;if(ctx__$55&&ctx__$55!==true||ctx__$55===0){__$ctx._buf.push(ctx__$55+"")}return}function __$b11(__$ctx,__$ref){__$ctx.__$a=0;__$ctx._listLength--;return}function __$b12(__$ctx,__$ref){__$ctx.__$a=0;var v__$56=__$ctx.ctx,l__$57=v__$56.length,i__$58=0,prevPos__$59=__$ctx.position,prevNotNewList__$60=__$ctx._notNewList;if(prevNotNewList__$60){__$ctx._listLength+=l__$57-1}else{__$ctx.position=0;__$ctx._listLength=l__$57}__$ctx._notNewList=true;while(i__$58<l__$57)!function(){var __$r__$61;var __$l0__$62=__$ctx.ctx;__$ctx.ctx=v__$56[i__$58++];__$r__$61=applyc(__$ctx,__$ref);__$ctx.ctx=__$l0__$62;return __$r__$61}();prevNotNewList__$60||(__$ctx.position=prevPos__$59);return}function __$b13(__$ctx,__$ref){__$ctx.__$a=0;var vBlock__$63=__$ctx.ctx.block,vElem__$64=__$ctx.ctx.elem,block__$65=__$ctx._currBlock||__$ctx.block;__$ctx.ctx||(__$ctx.ctx={});var __$r__$66;var __$l0__$67=__$ctx._mode;__$ctx._mode="default";var __$l1__$68=__$ctx.block;__$ctx.block=vBlock__$63||(vElem__$64?block__$65:undefined);var __$l2__$69=__$ctx._currBlock;__$ctx._currBlock=vBlock__$63||vElem__$64?undefined:block__$65;var __$l3__$70=__$ctx.elem;__$ctx.elem=__$ctx.ctx.elem;var __$l4__$71=__$ctx.mods;__$ctx.mods=(vBlock__$63?__$ctx.ctx.mods:__$ctx.mods)||{};var __$l5__$72=__$ctx.elemMods;__$ctx.elemMods=__$ctx.ctx.elemMods||{};__$ctx.block||__$ctx.elem?__$ctx.position=(__$ctx.position||0)+1:__$ctx._listLength--;applyc(__$ctx,__$ref);__$r__$66=undefined;__$ctx._mode=__$l0__$67;__$ctx.block=__$l1__$68;__$ctx._currBlock=__$l2__$69;__$ctx.elem=__$l3__$70;__$ctx.mods=__$l4__$71;__$ctx.elemMods=__$l5__$72;return};
                                                                                                                                            Severity: Major
                                                                                                                                            Found in src/log_analyzer/js/analyzer.table.js - About 30 mins to fix

                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                              Open

                                                                                                                                                   var __$ref={};function apply(ctx){try{return applyc(ctx||this,__$ref)}catch(e){(ctx||this).xjstContext=e;throw e}}exports.apply=apply;function applyc(__$ctx,__$ref){var __$t=__$ctx._mode;if(__$t==="content"){__$ctx.__$a=0;return __$ctx.ctx.content}else if(__$t==="mix"){__$ctx.__$a=0;return undefined}else if(__$t==="bem"){__$ctx.__$a=0;return undefined}else if(__$t==="js"){__$ctx.__$a=0;return undefined}else if(__$t==="cls"){__$ctx.__$a=0;return undefined}else if(__$t==="attrs"){__$ctx.__$a=0;return undefined}else if(__$t==="tag"){__$ctx.__$a=0;return undefined}else if(__$t==="default"){__$ctx.__$a=0;var __$r=__$b8(__$ctx,__$ref);if(__$r!==__$ref)return __$r}else if(__$t===""){if(__$ctx.ctx&&__$ctx.ctx._vow&&__$ctx.__$a!==1){__$ctx.__$a=0;var __$r=__$b9(__$ctx,__$ref);if(__$r!==__$ref)return __$r}if(__$ctx._.isSimple(__$ctx.ctx)){__$ctx.__$a=0;var __$r=__$b10(__$ctx,__$ref);if(__$r!==__$ref)return __$r}if(!__$ctx.ctx){__$ctx.__$a=0;var __$r=__$b11(__$ctx,__$ref);if(__$r!==__$ref)return __$r}if(__$ctx._.isArray(__$ctx.ctx)){__$ctx.__$a=0;var __$r=__$b12(__$ctx,__$ref);if(__$r!==__$ref)return __$r}__$ctx.__$a=0;var __$r=__$b13(__$ctx,__$ref);if(__$r!==__$ref)return __$r}__$ctx.__$a=0}[function(exports){var BEM_={},toString=Object.prototype.toString,isArray=Array.isArray||function(obj){return toString.call(obj)==="[object Array]"},SHORT_TAGS={area:1,base:1,br:1,col:1,command:1,embed:1,hr:1,img:1,input:1,keygen:1,link:1,meta:1,param:1,source:1,wbr:1};!function(BEM,undefined){var MOD_DELIM="_",ELEM_DELIM="__",NAME_PATTERN="[a-zA-Z0-9-]+";function buildModPostfix(modName,modVal){var res=MOD_DELIM+modName;if(modVal!==true)res+=MOD_DELIM+modVal;return res}function buildBlockClass(name,modName,modVal){var res=name;if(modVal)res+=buildModPostfix(modName,modVal);return res}function buildElemClass(block,name,modName,modVal){var res=buildBlockClass(block)+ELEM_DELIM+name;if(modVal)res+=buildModPostfix(modName,modVal);return res}BEM.INTERNAL={NAME_PATTERN:NAME_PATTERN,MOD_DELIM:MOD_DELIM,ELEM_DELIM:ELEM_DELIM,buildModPostfix:buildModPostfix,buildClass:function(block,elem,modName,modVal){var typeOfModName=typeof modName;if(typeOfModName==="string"||typeOfModName==="boolean"){var typeOfModVal=typeof modVal;if(typeOfModVal!=="string"&&typeOfModVal!=="boolean"){modVal=modName;modName=elem;elem=undefined}}else if(typeOfModName!=="undefined"){modName=undefined}else if(elem&&typeof elem!=="string"){elem=undefined}if(!(elem||modName)){return block}if(elem)return buildElemClass(block,elem,modName,modVal);else return buildBlockClass(block,modName,modVal)},buildModsClasses:function(block,elem,mods){var res="";if(mods){var modName;for(modName in mods){if(!mods.hasOwnProperty(modName))continue;var modVal=mods[modName];if(!modVal&&modVal!==0)continue;typeof modVal!=="boolean"&&(modVal+="");res+=" "+(elem?buildElemClass(block,elem,modName,modVal):buildBlockClass(block,modName,modVal))}}return res},buildClasses:function(block,elem,mods){var res="";if(elem)res+=buildElemClass(block,elem);else res+=buildBlockClass(block);res+=this.buildModsClasses(block,elem,mods);return res}}}(BEM_);var ts={'"':"&quot;","&":"&amp;","<":"&lt;",">":"&gt;"},f=function(t){return ts[t]||t};var buildEscape=function(r){r=new RegExp(r,"g");return function(s){return(""+s).replace(r,f)}};function BEMContext(context,apply_){this.ctx=typeof context===null?"":context;this.apply=apply_;this._str="";var self=this;this._buf={push:function(){var chunks=Array.prototype.slice.call(arguments).join("");self._str+=chunks},join:function(){return this._str}};this._=this;this._start=true;this._mode="";this._listLength=0;this._notNewList=false;this.position=0;this.block=undefined;this.elem=undefined;this.mods=undefined;this.elemMods=undefined}BEMContext.prototype.isArray=isArray;BEMContext.prototype.isSimple=function isSimple(obj){var t=typeof obj;return t==="string"||t==="number"||t==="boolean"};BEMContext.prototype.isShortTag=function isShortTag(t){return SHORT_TAGS.hasOwnProperty(t)};BEMContext.prototype.extend=function extend(o1,o2){if(!o1||!o2)return o1||o2;var res={},n;for(n in o1)o1.hasOwnProperty(n)&&(res[n]=o1[n]);for(n in o2)o2.hasOwnProperty(n)&&(res[n]=o2[n]);return res};var cnt=0,id=+new Date,expando="__"+id,get=function(){return"uniq"+id+ ++cnt};BEMContext.prototype.identify=function(obj,onlyGet){if(!obj)return get();if(onlyGet||obj[expando]){return obj[expando]}else{return obj[expando]=get()}};BEMContext.prototype.xmlEscape=buildEscape("[&<>]");BEMContext.prototype.attrEscape=buildEscape('["&<>]');BEMContext.prototype.BEM=BEM_;BEMContext.prototype.isFirst=function isFirst(){return this.position===1};BEMContext.prototype.isLast=function isLast(){return this.position===this._listLength};BEMContext.prototype.generateId=function generateId(){return this.identify(this.ctx)};var oldApply=exports.apply;exports.apply=BEMContext.apply=function _apply(context){var ctx=new BEMContext(context||this,oldApply);ctx.apply();return ctx._str};BEMContext.prototype.reapply=BEMContext.apply}].forEach(function(fn){fn(exports,this)},{recordExtensions:function(ctx){ctx._str=undefined;ctx._mode=undefined;ctx.block=undefined;ctx.elem=undefined;ctx._notNewList=undefined;ctx.position=undefined;ctx._listLength=undefined;ctx.ctx=undefined;ctx.__$a=0;ctx._currBlock=undefined;ctx.mods=undefined;ctx.elemMods=undefined}});function __$b8(__$ctx,__$ref){__$ctx.__$a=0;var _this__$0=__$ctx,BEM___$1=_this__$0.BEM,v__$2=__$ctx.ctx,isBEM__$3,tag__$4,result__$5;var __$r__$6;var __$l0__$7=__$ctx._str;__$ctx._str="";var __$r__$8;var __$l1__$9=__$ctx._mode;__$ctx._mode="tag";__$r__$8=applyc(__$ctx,__$ref);__$ctx._mode=__$l1__$9;tag__$4=__$r__$8;typeof tag__$4!=="undefined"||(tag__$4=v__$2.tag);typeof tag__$4!=="undefined"||(tag__$4="div");if(tag__$4){var jsParams__$10,js__$11;if(__$ctx.block&&v__$2.js!==false){var __$r__$12;var __$l2__$13=__$ctx._mode;__$ctx._mode="js";__$r__$12=applyc(__$ctx,__$ref);__$ctx._mode=__$l2__$13;js__$11=__$r__$12;js__$11=js__$11?__$ctx._.extend(v__$2.js,js__$11===true?{}:js__$11):v__$2.js===true?{}:v__$2.js;js__$11&&((jsParams__$10={})[BEM___$1.INTERNAL.buildClass(__$ctx.block,v__$2.elem)]=js__$11)}__$ctx._str+="<"+tag__$4;var __$r__$14;var __$l3__$15=__$ctx._mode;__$ctx._mode="bem";__$r__$14=applyc(__$ctx,__$ref);__$ctx._mode=__$l3__$15;isBEM__$3=__$r__$14;typeof isBEM__$3!=="undefined"||(isBEM__$3=typeof v__$2.bem!=="undefined"?v__$2.bem:v__$2.block||v__$2.elem);var __$r__$17;var __$l4__$18=__$ctx._mode;__$ctx._mode="cls";__$r__$17=applyc(__$ctx,__$ref);__$ctx._mode=__$l4__$18;var cls__$16=__$r__$17;cls__$16||(cls__$16=v__$2.cls);var addJSInitClass__$19=v__$2.block&&jsParams__$10;if(isBEM__$3||cls__$16){__$ctx._str+=' class="';if(isBEM__$3){__$ctx._str+=BEM___$1.INTERNAL.buildClasses(__$ctx.block,v__$2.elem,v__$2.elemMods||v__$2.mods);var __$r__$21;var __$l5__$22=__$ctx._mode;__$ctx._mode="mix";__$r__$21=applyc(__$ctx,__$ref);__$ctx._mode=__$l5__$22;var mix__$20=__$r__$21;v__$2.mix&&(mix__$20=mix__$20?mix__$20.concat(v__$2.mix):v__$2.mix);if(mix__$20){var visited__$23={},visitedKey__$24=function(block,elem){return(block||"")+"__"+(elem||"")};visited__$23[visitedKey__$24(__$ctx.block,__$ctx.elem)]=true;if(!__$ctx._.isArray(mix__$20))mix__$20=[mix__$20];for(var i__$25=0;i__$25<mix__$20.length;i__$25++){var mixItem__$26=mix__$20[i__$25],hasItem__$27=mixItem__$26.block||mixItem__$26.elem,block__$28=mixItem__$26.block||mixItem__$26._block||_this__$0.block,elem__$29=mixItem__$26.elem||mixItem__$26._elem||_this__$0.elem;if(hasItem__$27)__$ctx._str+=" ";__$ctx._str+=BEM___$1.INTERNAL[hasItem__$27?"buildClasses":"buildModsClasses"](block__$28,mixItem__$26.elem||mixItem__$26._elem||(mixItem__$26.block?undefined:_this__$0.elem),mixItem__$26.elemMods||mixItem__$26.mods);if(mixItem__$26.js){(jsParams__$10||(jsParams__$10={}))[BEM___$1.INTERNAL.buildClass(block__$28,mixItem__$26.elem)]=mixItem__$26.js===true?{}:mixItem__$26.js;addJSInitClass__$19||(addJSInitClass__$19=block__$28&&!mixItem__$26.elem)}if(hasItem__$27&&!visited__$23[visitedKey__$24(block__$28,elem__$29)]){visited__$23[visitedKey__$24(block__$28,elem__$29)]=true;var __$r__$31;var __$l6__$32=__$ctx._mode;__$ctx._mode="mix";var __$l7__$33=__$ctx.block;__$ctx.block=block__$28;var __$l8__$34=__$ctx.elem;__$ctx.elem=elem__$29;__$r__$31=applyc(__$ctx,__$ref);__$ctx._mode=__$l6__$32;__$ctx.block=__$l7__$33;__$ctx.elem=__$l8__$34;var nestedMix__$30=__$r__$31;if(nestedMix__$30){for(var j__$35=0;j__$35<nestedMix__$30.length;j__$35++){var nestedItem__$36=nestedMix__$30[j__$35];if(!nestedItem__$36.block&&!nestedItem__$36.elem||!visited__$23[visitedKey__$24(nestedItem__$36.block,nestedItem__$36.elem)]){nestedItem__$36._block=block__$28;nestedItem__$36._elem=elem__$29;mix__$20.splice(i__$25+1,0,nestedItem__$36)}}}}}}}if(cls__$16)__$ctx._str+=isBEM__$3?" "+cls__$16:cls__$16;if(addJSInitClass__$19)__$ctx._str+=' i-bem"';else __$ctx._str+='"'}if(isBEM__$3&&jsParams__$10){__$ctx._str+=' data-bem="'+__$ctx._.attrEscape(JSON.stringify(jsParams__$10))+'"'}var __$r__$38;var __$l9__$39=__$ctx._mode;__$ctx._mode="attrs";__$r__$38=applyc(__$ctx,__$ref);__$ctx._mode=__$l9__$39;var attrs__$37=__$r__$38;attrs__$37=__$ctx._.extend(attrs__$37,v__$2.attrs);if(attrs__$37){var name__$40,attr__$41;for(name__$40 in attrs__$37){attr__$41=attrs__$37[name__$40];if(attr__$41===undefined)continue;__$ctx._str+=" "+name__$40+'="'+__$ctx._.attrEscape(__$ctx._.isSimple(attr__$41)?attr__$41:__$ctx.reapply(attr__$41))+'"'}}}if(__$ctx._.isShortTag(tag__$4)){__$ctx._str+="/>"}else{if(tag__$4)__$ctx._str+=">";var __$r__$43;var __$l10__$44=__$ctx._mode;__$ctx._mode="content";__$r__$43=applyc(__$ctx,__$ref);__$ctx._mode=__$l10__$44;var content__$42=__$r__$43;if(content__$42||content__$42===0){isBEM__$3=__$ctx.block||__$ctx.elem;var __$r__$45;var __$l11__$46=__$ctx._mode;__$ctx._mode="";var __$l12__$47=__$ctx._notNewList;__$ctx._notNewList=false;var __$l13__$48=__$ctx.position;__$ctx.position=isBEM__$3?1:__$ctx.position;var __$l14__$49=__$ctx._listLength;__$ctx._listLength=isBEM__$3?1:__$ctx._listLength;var __$l15__$50=__$ctx.ctx;__$ctx.ctx=content__$42;__$r__$45=applyc(__$ctx,__$ref);__$ctx._mode=__$l11__$46;__$ctx._notNewList=__$l12__$47;__$ctx.position=__$l13__$48;__$ctx._listLength=__$l14__$49;__$ctx.ctx=__$l15__$50}if(tag__$4)__$ctx._str+="</"+tag__$4+">"}result__$5=__$ctx._str;__$r__$6=undefined;__$ctx._str=__$l0__$7;__$ctx._buf.push(result__$5);return}function __$b9(__$ctx,__$ref){__$ctx.__$a=0;var __$r__$51;var __$l0__$52=__$ctx._mode;__$ctx._mode="";var __$l1__$53=__$ctx.ctx;__$ctx.ctx=__$ctx.ctx._value;var __$r__$54;__$ctx.__$a=1;__$r__$54=applyc(__$ctx,__$ref);__$r__$51=__$r__$54;__$ctx._mode=__$l0__$52;__$ctx.ctx=__$l1__$53;return}function __$b10(__$ctx,__$ref){__$ctx.__$a=0;__$ctx._listLength--;var ctx__$55=__$ctx.ctx;if(ctx__$55&&ctx__$55!==true||ctx__$55===0){__$ctx._buf.push(ctx__$55+"")}return}function __$b11(__$ctx,__$ref){__$ctx.__$a=0;__$ctx._listLength--;return}function __$b12(__$ctx,__$ref){__$ctx.__$a=0;var v__$56=__$ctx.ctx,l__$57=v__$56.length,i__$58=0,prevPos__$59=__$ctx.position,prevNotNewList__$60=__$ctx._notNewList;if(prevNotNewList__$60){__$ctx._listLength+=l__$57-1}else{__$ctx.position=0;__$ctx._listLength=l__$57}__$ctx._notNewList=true;while(i__$58<l__$57)!function(){var __$r__$61;var __$l0__$62=__$ctx.ctx;__$ctx.ctx=v__$56[i__$58++];__$r__$61=applyc(__$ctx,__$ref);__$ctx.ctx=__$l0__$62;return __$r__$61}();prevNotNewList__$60||(__$ctx.position=prevPos__$59);return}function __$b13(__$ctx,__$ref){__$ctx.__$a=0;var vBlock__$63=__$ctx.ctx.block,vElem__$64=__$ctx.ctx.elem,block__$65=__$ctx._currBlock||__$ctx.block;__$ctx.ctx||(__$ctx.ctx={});var __$r__$66;var __$l0__$67=__$ctx._mode;__$ctx._mode="default";var __$l1__$68=__$ctx.block;__$ctx.block=vBlock__$63||(vElem__$64?block__$65:undefined);var __$l2__$69=__$ctx._currBlock;__$ctx._currBlock=vBlock__$63||vElem__$64?undefined:block__$65;var __$l3__$70=__$ctx.elem;__$ctx.elem=__$ctx.ctx.elem;var __$l4__$71=__$ctx.mods;__$ctx.mods=(vBlock__$63?__$ctx.ctx.mods:__$ctx.mods)||{};var __$l5__$72=__$ctx.elemMods;__$ctx.elemMods=__$ctx.ctx.elemMods||{};__$ctx.block||__$ctx.elem?__$ctx.position=(__$ctx.position||0)+1:__$ctx._listLength--;applyc(__$ctx,__$ref);__$r__$66=undefined;__$ctx._mode=__$l0__$67;__$ctx.block=__$l1__$68;__$ctx._currBlock=__$l2__$69;__$ctx.elem=__$l3__$70;__$ctx.mods=__$l4__$71;__$ctx.elemMods=__$l5__$72;return};
                                                                                                                                              Severity: Major
                                                                                                                                              Found in src/log_analyzer/js/analyzer.table.js - About 30 mins to fix

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

                                                                                                                                                        setup: function() {
                                                                                                                                                            $(this)
                                                                                                                                                                .on(binds.mouse[type], event.mouseHandler)
                                                                                                                                                                .on(binds.touch[type], event.touchHandler)
                                                                                                                                                                .on(binds.touch.down, event.touchDownHandler)
                                                                                                                                                Severity: Major
                                                                                                                                                Found in src/log_analyzer/js/analyzer.table.js and 1 other location - About 5 hrs to fix
                                                                                                                                                src/log_analyzer/js/analyzer.table.js on lines 4293..4303

                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                Tuning

                                                                                                                                                This issue has a mass of 142.

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

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

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

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

                                                                                                                                                Refactorings

                                                                                                                                                Further Reading

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

                                                                                                                                                        teardown: function() {
                                                                                                                                                            $(this)
                                                                                                                                                                .off(binds.mouse[type], event.mouseHandler)
                                                                                                                                                                .off(binds.touch[type], event.touchHandler)
                                                                                                                                                                .off(binds.touch.down, event.touchDownHandler)
                                                                                                                                                Severity: Major
                                                                                                                                                Found in src/log_analyzer/js/analyzer.table.js and 1 other location - About 5 hrs to fix
                                                                                                                                                src/log_analyzer/js/analyzer.table.js on lines 4280..4290

                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                Tuning

                                                                                                                                                This issue has a mass of 142.

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

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

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

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

                                                                                                                                                Refactorings

                                                                                                                                                Further Reading

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

                                                                                                                                                                    this.bindTo('columns', 'click tap', function () {
                                                                                                                                                                        this.toggleMod(this.elem('columns'), 'open', 'yes');
                                                                                                                                                                        var popupFlag = this.findBlockInside({block: 'popup', modName: 'name', modVal: 'columns'});
                                                                                                                                                
                                                                                                                                                                        popupFlag.domElem.on('hide', function () {
                                                                                                                                                Severity: Major
                                                                                                                                                Found in src/log_analyzer/js/analyzer.table.js and 1 other location - About 4 hrs to fix
                                                                                                                                                src/log_analyzer/js/analyzer.table.js on lines 5569..5578

                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                Tuning

                                                                                                                                                This issue has a mass of 123.

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

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

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

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

                                                                                                                                                Refactorings

                                                                                                                                                Further Reading

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

                                                                                                                                                                    this.bindTo('flag', 'click tap', function () {
                                                                                                                                                                        this.toggleMod(this.elem('flag'), 'open', 'yes');
                                                                                                                                                                        var popupFlag = this.findBlockInside({block: 'popup', modName: 'name', modVal: 'flag'});
                                                                                                                                                
                                                                                                                                                                        popupFlag.domElem.on('hide', function () {
                                                                                                                                                Severity: Major
                                                                                                                                                Found in src/log_analyzer/js/analyzer.table.js and 1 other location - About 4 hrs to fix
                                                                                                                                                src/log_analyzer/js/analyzer.table.js on lines 5579..5588

                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                Tuning

                                                                                                                                                This issue has a mass of 123.

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

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

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

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

                                                                                                                                                Refactorings

                                                                                                                                                Further Reading

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

                                                                                                                                                            var head = doc.getElementsByTagName('head')[0],
                                                                                                                                                                createScript = function() {
                                                                                                                                                                    var script = doc.createElement('script');
                                                                                                                                                                    script.onreadystatechange = function() {
                                                                                                                                                                        script.parentNode.removeChild(script);
                                                                                                                                                Severity: Major
                                                                                                                                                Found in src/log_analyzer/js/analyzer.table.js and 1 other location - About 3 hrs to fix
                                                                                                                                                src/log_analyzer/js/analyzer.table.js on lines 1558..1567

                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                Tuning

                                                                                                                                                This issue has a mass of 109.

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

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

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

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

                                                                                                                                                Refactorings

                                                                                                                                                Further Reading

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

                                                                                                                                                        var head = doc.getElementsByTagName('head')[0],
                                                                                                                                                            createScript = function() {
                                                                                                                                                                var script = doc.createElement('script');
                                                                                                                                                                script.onreadystatechange = function() {
                                                                                                                                                                    script.parentNode.removeChild(script);
                                                                                                                                                Severity: Major
                                                                                                                                                Found in src/log_analyzer/js/analyzer.table.js and 1 other location - About 3 hrs to fix
                                                                                                                                                src/log_analyzer/js/analyzer.table.js on lines 378..387

                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                Tuning

                                                                                                                                                This issue has a mass of 109.

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

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

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

                                                                                                                                                See codeclimate-duplication's documentation for more 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 add_delete(uid, name) {
                                                                                                                                                    if (deleted.hasItem(uid)) {
                                                                                                                                                        triggerLink('d_' + uid, false);
                                                                                                                                                        deleted.removeItem(uid);
                                                                                                                                                    } else {
                                                                                                                                                Severity: Major
                                                                                                                                                Found in src/log_analyzer/js/analyzer.table.js and 1 other location - About 2 hrs to fix
                                                                                                                                                src/log_analyzer/js/analyzer.table.js on lines 7338..7350

                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                Tuning

                                                                                                                                                This issue has a mass of 85.

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

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

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

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

                                                                                                                                                Refactorings

                                                                                                                                                Further Reading

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

                                                                                                                                                function add_quarantine(uid, name) {
                                                                                                                                                    if (quarantened.hasItem(uid)) {
                                                                                                                                                        triggerLink('q_' + uid, false);
                                                                                                                                                        quarantened.removeItem(uid);
                                                                                                                                                    } else {
                                                                                                                                                Severity: Major
                                                                                                                                                Found in src/log_analyzer/js/analyzer.table.js and 1 other location - About 2 hrs to fix
                                                                                                                                                src/log_analyzer/js/analyzer.table.js on lines 7352..7364

                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                Tuning

                                                                                                                                                This issue has a mass of 85.

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

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

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

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

                                                                                                                                                Refactorings

                                                                                                                                                Further Reading

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

                                                                                                                                                            teardown: function() {
                                                                                                                                                                $(this)
                                                                                                                                                                    .off(binds.mouse[type], eventSpecial.mouseHandler)
                                                                                                                                                                    .off(binds.touch[type], eventSpecial.touchHandler)
                                                                                                                                                                    .off(binds.mspointer[type], eventSpecial.msHandler);
                                                                                                                                                Severity: Major
                                                                                                                                                Found in src/log_analyzer/js/analyzer.table.js and 1 other location - About 2 hrs to fix
                                                                                                                                                src/log_analyzer/js/analyzer.table.js on lines 4200..4205

                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                Tuning

                                                                                                                                                This issue has a mass of 82.

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

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

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

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

                                                                                                                                                Refactorings

                                                                                                                                                Further Reading

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

                                                                                                                                                            setup: function() {
                                                                                                                                                                $(this)
                                                                                                                                                                    .on(binds.mouse[type], eventSpecial.mouseHandler)
                                                                                                                                                                    .on(binds.touch[type], eventSpecial.touchHandler)
                                                                                                                                                                    .on(binds.mspointer[type], eventSpecial.msHandler);
                                                                                                                                                Severity: Major
                                                                                                                                                Found in src/log_analyzer/js/analyzer.table.js and 1 other location - About 2 hrs to fix
                                                                                                                                                src/log_analyzer/js/analyzer.table.js on lines 4208..4213

                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                Tuning

                                                                                                                                                This issue has a mass of 82.

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

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

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

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

                                                                                                                                                Refactorings

                                                                                                                                                Further Reading

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

                                                                                                                                                                                    isSelectedMonth.from = (self._selectedDate && self._selectedDate.from) && dateCtx.month == self._selectedDate.from.getMonth() && dateCtx.year == self._selectedDate.from.getFullYear();
                                                                                                                                                Severity: Major
                                                                                                                                                Found in src/log_analyzer/js/analyzer.table.js and 1 other location - About 2 hrs to fix
                                                                                                                                                src/log_analyzer/js/analyzer.table.js on lines 7036..7036

                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                Tuning

                                                                                                                                                This issue has a mass of 81.

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

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

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

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

                                                                                                                                                Refactorings

                                                                                                                                                Further Reading

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

                                                                                                                                                                                    isSelectedMonth.to = (self._selectedDate && self._selectedDate.to) && dateCtx.month == self._selectedDate.to.getMonth() && dateCtx.year == self._selectedDate.to.getFullYear();
                                                                                                                                                Severity: Major
                                                                                                                                                Found in src/log_analyzer/js/analyzer.table.js and 1 other location - About 2 hrs to fix
                                                                                                                                                src/log_analyzer/js/analyzer.table.js on lines 7035..7035

                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                Tuning

                                                                                                                                                This issue has a mass of 81.

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

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

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

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

                                                                                                                                                Refactorings

                                                                                                                                                Further Reading

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

                                                                                                                                                        this
                                                                                                                                                            .liveBindTo('focusin', function() {
                                                                                                                                                                this._onFocus();
                                                                                                                                                            })
                                                                                                                                                            .liveBindTo('focusout', function() {
                                                                                                                                                Severity: Major
                                                                                                                                                Found in src/log_analyzer/js/analyzer.table.js and 1 other location - About 1 hr to fix
                                                                                                                                                src/log_analyzer/js/analyzer.table.js on lines 7233..7242

                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                Tuning

                                                                                                                                                This issue has a mass of 73.

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

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

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

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

                                                                                                                                                Refactorings

                                                                                                                                                Further Reading

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

                                                                                                                                                        this
                                                                                                                                                            .liveBindTo('focusin', function() {
                                                                                                                                                                this._onFocus();
                                                                                                                                                            })
                                                                                                                                                            .liveBindTo('focusout', function() {
                                                                                                                                                Severity: Major
                                                                                                                                                Found in src/log_analyzer/js/analyzer.table.js and 1 other location - About 1 hr to fix
                                                                                                                                                src/log_analyzer/js/analyzer.table.js on lines 3808..3817

                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                Tuning

                                                                                                                                                This issue has a mass of 73.

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

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

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

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

                                                                                                                                                Refactorings

                                                                                                                                                Further Reading

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

                                                                                                                                                    if(props.beforeElemSetMod) {
                                                                                                                                                        for(elemName in props.beforeElemSetMod) {
                                                                                                                                                            if(props.beforeElemSetMod.hasOwnProperty(elemName)) {
                                                                                                                                                                modFnsToProps('before', props.beforeElemSetMod[elemName], props, elemName);
                                                                                                                                                            }
                                                                                                                                                Severity: Major
                                                                                                                                                Found in src/log_analyzer/js/analyzer.table.js and 1 other location - About 1 hr to fix
                                                                                                                                                src/log_analyzer/js/analyzer.table.js on lines 539..546

                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                Tuning

                                                                                                                                                This issue has a mass of 70.

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

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

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

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

                                                                                                                                                Refactorings

                                                                                                                                                Further Reading

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

                                                                                                                                                    if(props.onElemSetMod) {
                                                                                                                                                        for(elemName in props.onElemSetMod) {
                                                                                                                                                            if(props.onElemSetMod.hasOwnProperty(elemName)) {
                                                                                                                                                                modFnsToProps('after', props.onElemSetMod[elemName], props, elemName);
                                                                                                                                                            }
                                                                                                                                                Severity: Major
                                                                                                                                                Found in src/log_analyzer/js/analyzer.table.js and 1 other location - About 1 hr to fix
                                                                                                                                                src/log_analyzer/js/analyzer.table.js on lines 530..537

                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                Tuning

                                                                                                                                                This issue has a mass of 70.

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

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

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

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

                                                                                                                                                Refactorings

                                                                                                                                                Further Reading

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

                                                                                                                                                        if(global.attachEvent) {
                                                                                                                                                            var checkAsync = function() {
                                                                                                                                                                    isPostMessageAsync = false;
                                                                                                                                                                };
                                                                                                                                                            global.attachEvent('onmessage', checkAsync);
                                                                                                                                                Severity: Major
                                                                                                                                                Found in src/log_analyzer/js/analyzer.table.js and 1 other location - About 1 hr to fix
                                                                                                                                                src/log_analyzer/js/analyzer.table.js on lines 348..355

                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                Tuning

                                                                                                                                                This issue has a mass of 66.

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

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

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

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

                                                                                                                                                Refactorings

                                                                                                                                                Further Reading

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

                                                                                                                                                                var msg = '__modules' + (+new Date()),
                                                                                                                                                                    onMessage = function(e) {
                                                                                                                                                                        if(e.data === msg) {
                                                                                                                                                                            e.stopPropagation && e.stopPropagation();
                                                                                                                                                                            callFns();
                                                                                                                                                Severity: Major
                                                                                                                                                Found in src/log_analyzer/js/analyzer.table.js and 1 other location - About 1 hr to fix
                                                                                                                                                src/log_analyzer/js/analyzer.table.js on lines 1538..1544

                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                Tuning

                                                                                                                                                This issue has a mass of 66.

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

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

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

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

                                                                                                                                                Refactorings

                                                                                                                                                Further Reading

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

                                                                                                                                                            var msg = '__nextTick' + (+new Date),
                                                                                                                                                                onMessage = function(e) {
                                                                                                                                                                    if(e.data === msg) {
                                                                                                                                                                        e.stopPropagation && e.stopPropagation();
                                                                                                                                                                        callFns();
                                                                                                                                                Severity: Major
                                                                                                                                                Found in src/log_analyzer/js/analyzer.table.js and 1 other location - About 1 hr to fix
                                                                                                                                                src/log_analyzer/js/analyzer.table.js on lines 358..364

                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                Tuning

                                                                                                                                                This issue has a mass of 66.

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

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

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

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

                                                                                                                                                Refactorings

                                                                                                                                                Further Reading

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

                                                                                                                                                            if(global.attachEvent) {
                                                                                                                                                                var checkAsync = function() {
                                                                                                                                                                        isPostMessageAsync = false;
                                                                                                                                                                    };
                                                                                                                                                                global.attachEvent('onmessage', checkAsync);
                                                                                                                                                Severity: Major
                                                                                                                                                Found in src/log_analyzer/js/analyzer.table.js and 1 other location - About 1 hr to fix
                                                                                                                                                src/log_analyzer/js/analyzer.table.js on lines 1528..1535

                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                Tuning

                                                                                                                                                This issue has a mass of 66.

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

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

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

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

                                                                                                                                                Refactorings

                                                                                                                                                Further Reading

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

                                                                                                                                                    callFns = function() {
                                                                                                                                                        var fnsToCall = fns, i = 0, len = fns.length;
                                                                                                                                                        fns = [];
                                                                                                                                                        while(i < len) {
                                                                                                                                                            fnsToCall[i++]();
                                                                                                                                                Severity: Major
                                                                                                                                                Found in src/log_analyzer/js/analyzer.table.js and 1 other location - About 1 hr to fix
                                                                                                                                                src/log_analyzer/js/analyzer.table.js on lines 326..332

                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                Tuning

                                                                                                                                                This issue has a mass of 62.

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

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

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

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

                                                                                                                                                Refactorings

                                                                                                                                                Further Reading

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

                                                                                                                                                            callFns = function() {
                                                                                                                                                                var fnsToCall = fns, i = 0, len = fns.length;
                                                                                                                                                                fns = [];
                                                                                                                                                                while(i < len) {
                                                                                                                                                                    fnsToCall[i++]();
                                                                                                                                                Severity: Major
                                                                                                                                                Found in src/log_analyzer/js/analyzer.table.js and 1 other location - About 1 hr to fix
                                                                                                                                                src/log_analyzer/js/analyzer.table.js on lines 1505..1511

                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                Tuning

                                                                                                                                                This issue has a mass of 62.

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

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

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

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

                                                                                                                                                Refactorings

                                                                                                                                                Further Reading

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

                                                                                                                                                     var __$ref={};function apply(ctx){try{return applyc(ctx||this,__$ref)}catch(e){(ctx||this).xjstContext=e;throw e}}exports.apply=apply;function applyc(__$ctx,__$ref){var __$t=__$ctx._mode;if(__$t==="content"){__$ctx.__$a=0;return __$ctx.ctx.content}else if(__$t==="mix"){__$ctx.__$a=0;return undefined}else if(__$t==="bem"){__$ctx.__$a=0;return undefined}else if(__$t==="js"){__$ctx.__$a=0;return undefined}else if(__$t==="cls"){__$ctx.__$a=0;return undefined}else if(__$t==="attrs"){__$ctx.__$a=0;return undefined}else if(__$t==="tag"){__$ctx.__$a=0;return undefined}else if(__$t==="default"){__$ctx.__$a=0;var __$r=__$b8(__$ctx,__$ref);if(__$r!==__$ref)return __$r}else if(__$t===""){if(__$ctx.ctx&&__$ctx.ctx._vow&&__$ctx.__$a!==1){__$ctx.__$a=0;var __$r=__$b9(__$ctx,__$ref);if(__$r!==__$ref)return __$r}if(__$ctx._.isSimple(__$ctx.ctx)){__$ctx.__$a=0;var __$r=__$b10(__$ctx,__$ref);if(__$r!==__$ref)return __$r}if(!__$ctx.ctx){__$ctx.__$a=0;var __$r=__$b11(__$ctx,__$ref);if(__$r!==__$ref)return __$r}if(__$ctx._.isArray(__$ctx.ctx)){__$ctx.__$a=0;var __$r=__$b12(__$ctx,__$ref);if(__$r!==__$ref)return __$r}__$ctx.__$a=0;var __$r=__$b13(__$ctx,__$ref);if(__$r!==__$ref)return __$r}__$ctx.__$a=0}[function(exports){var BEM_={},toString=Object.prototype.toString,isArray=Array.isArray||function(obj){return toString.call(obj)==="[object Array]"},SHORT_TAGS={area:1,base:1,br:1,col:1,command:1,embed:1,hr:1,img:1,input:1,keygen:1,link:1,meta:1,param:1,source:1,wbr:1};!function(BEM,undefined){var MOD_DELIM="_",ELEM_DELIM="__",NAME_PATTERN="[a-zA-Z0-9-]+";function buildModPostfix(modName,modVal){var res=MOD_DELIM+modName;if(modVal!==true)res+=MOD_DELIM+modVal;return res}function buildBlockClass(name,modName,modVal){var res=name;if(modVal)res+=buildModPostfix(modName,modVal);return res}function buildElemClass(block,name,modName,modVal){var res=buildBlockClass(block)+ELEM_DELIM+name;if(modVal)res+=buildModPostfix(modName,modVal);return res}BEM.INTERNAL={NAME_PATTERN:NAME_PATTERN,MOD_DELIM:MOD_DELIM,ELEM_DELIM:ELEM_DELIM,buildModPostfix:buildModPostfix,buildClass:function(block,elem,modName,modVal){var typeOfModName=typeof modName;if(typeOfModName==="string"||typeOfModName==="boolean"){var typeOfModVal=typeof modVal;if(typeOfModVal!=="string"&&typeOfModVal!=="boolean"){modVal=modName;modName=elem;elem=undefined}}else if(typeOfModName!=="undefined"){modName=undefined}else if(elem&&typeof elem!=="string"){elem=undefined}if(!(elem||modName)){return block}if(elem)return buildElemClass(block,elem,modName,modVal);else return buildBlockClass(block,modName,modVal)},buildModsClasses:function(block,elem,mods){var res="";if(mods){var modName;for(modName in mods){if(!mods.hasOwnProperty(modName))continue;var modVal=mods[modName];if(!modVal&&modVal!==0)continue;typeof modVal!=="boolean"&&(modVal+="");res+=" "+(elem?buildElemClass(block,elem,modName,modVal):buildBlockClass(block,modName,modVal))}}return res},buildClasses:function(block,elem,mods){var res="";if(elem)res+=buildElemClass(block,elem);else res+=buildBlockClass(block);res+=this.buildModsClasses(block,elem,mods);return res}}}(BEM_);var ts={'"':"&quot;","&":"&amp;","<":"&lt;",">":"&gt;"},f=function(t){return ts[t]||t};var buildEscape=function(r){r=new RegExp(r,"g");return function(s){return(""+s).replace(r,f)}};function BEMContext(context,apply_){this.ctx=typeof context===null?"":context;this.apply=apply_;this._str="";var self=this;this._buf={push:function(){var chunks=Array.prototype.slice.call(arguments).join("");self._str+=chunks},join:function(){return this._str}};this._=this;this._start=true;this._mode="";this._listLength=0;this._notNewList=false;this.position=0;this.block=undefined;this.elem=undefined;this.mods=undefined;this.elemMods=undefined}BEMContext.prototype.isArray=isArray;BEMContext.prototype.isSimple=function isSimple(obj){var t=typeof obj;return t==="string"||t==="number"||t==="boolean"};BEMContext.prototype.isShortTag=function isShortTag(t){return SHORT_TAGS.hasOwnProperty(t)};BEMContext.prototype.extend=function extend(o1,o2){if(!o1||!o2)return o1||o2;var res={},n;for(n in o1)o1.hasOwnProperty(n)&&(res[n]=o1[n]);for(n in o2)o2.hasOwnProperty(n)&&(res[n]=o2[n]);return res};var cnt=0,id=+new Date,expando="__"+id,get=function(){return"uniq"+id+ ++cnt};BEMContext.prototype.identify=function(obj,onlyGet){if(!obj)return get();if(onlyGet||obj[expando]){return obj[expando]}else{return obj[expando]=get()}};BEMContext.prototype.xmlEscape=buildEscape("[&<>]");BEMContext.prototype.attrEscape=buildEscape('["&<>]');BEMContext.prototype.BEM=BEM_;BEMContext.prototype.isFirst=function isFirst(){return this.position===1};BEMContext.prototype.isLast=function isLast(){return this.position===this._listLength};BEMContext.prototype.generateId=function generateId(){return this.identify(this.ctx)};var oldApply=exports.apply;exports.apply=BEMContext.apply=function _apply(context){var ctx=new BEMContext(context||this,oldApply);ctx.apply();return ctx._str};BEMContext.prototype.reapply=BEMContext.apply}].forEach(function(fn){fn(exports,this)},{recordExtensions:function(ctx){ctx._str=undefined;ctx._mode=undefined;ctx.block=undefined;ctx.elem=undefined;ctx._notNewList=undefined;ctx.position=undefined;ctx._listLength=undefined;ctx.ctx=undefined;ctx.__$a=0;ctx._currBlock=undefined;ctx.mods=undefined;ctx.elemMods=undefined}});function __$b8(__$ctx,__$ref){__$ctx.__$a=0;var _this__$0=__$ctx,BEM___$1=_this__$0.BEM,v__$2=__$ctx.ctx,isBEM__$3,tag__$4,result__$5;var __$r__$6;var __$l0__$7=__$ctx._str;__$ctx._str="";var __$r__$8;var __$l1__$9=__$ctx._mode;__$ctx._mode="tag";__$r__$8=applyc(__$ctx,__$ref);__$ctx._mode=__$l1__$9;tag__$4=__$r__$8;typeof tag__$4!=="undefined"||(tag__$4=v__$2.tag);typeof tag__$4!=="undefined"||(tag__$4="div");if(tag__$4){var jsParams__$10,js__$11;if(__$ctx.block&&v__$2.js!==false){var __$r__$12;var __$l2__$13=__$ctx._mode;__$ctx._mode="js";__$r__$12=applyc(__$ctx,__$ref);__$ctx._mode=__$l2__$13;js__$11=__$r__$12;js__$11=js__$11?__$ctx._.extend(v__$2.js,js__$11===true?{}:js__$11):v__$2.js===true?{}:v__$2.js;js__$11&&((jsParams__$10={})[BEM___$1.INTERNAL.buildClass(__$ctx.block,v__$2.elem)]=js__$11)}__$ctx._str+="<"+tag__$4;var __$r__$14;var __$l3__$15=__$ctx._mode;__$ctx._mode="bem";__$r__$14=applyc(__$ctx,__$ref);__$ctx._mode=__$l3__$15;isBEM__$3=__$r__$14;typeof isBEM__$3!=="undefined"||(isBEM__$3=typeof v__$2.bem!=="undefined"?v__$2.bem:v__$2.block||v__$2.elem);var __$r__$17;var __$l4__$18=__$ctx._mode;__$ctx._mode="cls";__$r__$17=applyc(__$ctx,__$ref);__$ctx._mode=__$l4__$18;var cls__$16=__$r__$17;cls__$16||(cls__$16=v__$2.cls);var addJSInitClass__$19=v__$2.block&&jsParams__$10;if(isBEM__$3||cls__$16){__$ctx._str+=' class="';if(isBEM__$3){__$ctx._str+=BEM___$1.INTERNAL.buildClasses(__$ctx.block,v__$2.elem,v__$2.elemMods||v__$2.mods);var __$r__$21;var __$l5__$22=__$ctx._mode;__$ctx._mode="mix";__$r__$21=applyc(__$ctx,__$ref);__$ctx._mode=__$l5__$22;var mix__$20=__$r__$21;v__$2.mix&&(mix__$20=mix__$20?mix__$20.concat(v__$2.mix):v__$2.mix);if(mix__$20){var visited__$23={},visitedKey__$24=function(block,elem){return(block||"")+"__"+(elem||"")};visited__$23[visitedKey__$24(__$ctx.block,__$ctx.elem)]=true;if(!__$ctx._.isArray(mix__$20))mix__$20=[mix__$20];for(var i__$25=0;i__$25<mix__$20.length;i__$25++){var mixItem__$26=mix__$20[i__$25],hasItem__$27=mixItem__$26.block||mixItem__$26.elem,block__$28=mixItem__$26.block||mixItem__$26._block||_this__$0.block,elem__$29=mixItem__$26.elem||mixItem__$26._elem||_this__$0.elem;if(hasItem__$27)__$ctx._str+=" ";__$ctx._str+=BEM___$1.INTERNAL[hasItem__$27?"buildClasses":"buildModsClasses"](block__$28,mixItem__$26.elem||mixItem__$26._elem||(mixItem__$26.block?undefined:_this__$0.elem),mixItem__$26.elemMods||mixItem__$26.mods);if(mixItem__$26.js){(jsParams__$10||(jsParams__$10={}))[BEM___$1.INTERNAL.buildClass(block__$28,mixItem__$26.elem)]=mixItem__$26.js===true?{}:mixItem__$26.js;addJSInitClass__$19||(addJSInitClass__$19=block__$28&&!mixItem__$26.elem)}if(hasItem__$27&&!visited__$23[visitedKey__$24(block__$28,elem__$29)]){visited__$23[visitedKey__$24(block__$28,elem__$29)]=true;var __$r__$31;var __$l6__$32=__$ctx._mode;__$ctx._mode="mix";var __$l7__$33=__$ctx.block;__$ctx.block=block__$28;var __$l8__$34=__$ctx.elem;__$ctx.elem=elem__$29;__$r__$31=applyc(__$ctx,__$ref);__$ctx._mode=__$l6__$32;__$ctx.block=__$l7__$33;__$ctx.elem=__$l8__$34;var nestedMix__$30=__$r__$31;if(nestedMix__$30){for(var j__$35=0;j__$35<nestedMix__$30.length;j__$35++){var nestedItem__$36=nestedMix__$30[j__$35];if(!nestedItem__$36.block&&!nestedItem__$36.elem||!visited__$23[visitedKey__$24(nestedItem__$36.block,nestedItem__$36.elem)]){nestedItem__$36._block=block__$28;nestedItem__$36._elem=elem__$29;mix__$20.splice(i__$25+1,0,nestedItem__$36)}}}}}}}if(cls__$16)__$ctx._str+=isBEM__$3?" "+cls__$16:cls__$16;if(addJSInitClass__$19)__$ctx._str+=' i-bem"';else __$ctx._str+='"'}if(isBEM__$3&&jsParams__$10){__$ctx._str+=' data-bem="'+__$ctx._.attrEscape(JSON.stringify(jsParams__$10))+'"'}var __$r__$38;var __$l9__$39=__$ctx._mode;__$ctx._mode="attrs";__$r__$38=applyc(__$ctx,__$ref);__$ctx._mode=__$l9__$39;var attrs__$37=__$r__$38;attrs__$37=__$ctx._.extend(attrs__$37,v__$2.attrs);if(attrs__$37){var name__$40,attr__$41;for(name__$40 in attrs__$37){attr__$41=attrs__$37[name__$40];if(attr__$41===undefined)continue;__$ctx._str+=" "+name__$40+'="'+__$ctx._.attrEscape(__$ctx._.isSimple(attr__$41)?attr__$41:__$ctx.reapply(attr__$41))+'"'}}}if(__$ctx._.isShortTag(tag__$4)){__$ctx._str+="/>"}else{if(tag__$4)__$ctx._str+=">";var __$r__$43;var __$l10__$44=__$ctx._mode;__$ctx._mode="content";__$r__$43=applyc(__$ctx,__$ref);__$ctx._mode=__$l10__$44;var content__$42=__$r__$43;if(content__$42||content__$42===0){isBEM__$3=__$ctx.block||__$ctx.elem;var __$r__$45;var __$l11__$46=__$ctx._mode;__$ctx._mode="";var __$l12__$47=__$ctx._notNewList;__$ctx._notNewList=false;var __$l13__$48=__$ctx.position;__$ctx.position=isBEM__$3?1:__$ctx.position;var __$l14__$49=__$ctx._listLength;__$ctx._listLength=isBEM__$3?1:__$ctx._listLength;var __$l15__$50=__$ctx.ctx;__$ctx.ctx=content__$42;__$r__$45=applyc(__$ctx,__$ref);__$ctx._mode=__$l11__$46;__$ctx._notNewList=__$l12__$47;__$ctx.position=__$l13__$48;__$ctx._listLength=__$l14__$49;__$ctx.ctx=__$l15__$50}if(tag__$4)__$ctx._str+="</"+tag__$4+">"}result__$5=__$ctx._str;__$r__$6=undefined;__$ctx._str=__$l0__$7;__$ctx._buf.push(result__$5);return}function __$b9(__$ctx,__$ref){__$ctx.__$a=0;var __$r__$51;var __$l0__$52=__$ctx._mode;__$ctx._mode="";var __$l1__$53=__$ctx.ctx;__$ctx.ctx=__$ctx.ctx._value;var __$r__$54;__$ctx.__$a=1;__$r__$54=applyc(__$ctx,__$ref);__$r__$51=__$r__$54;__$ctx._mode=__$l0__$52;__$ctx.ctx=__$l1__$53;return}function __$b10(__$ctx,__$ref){__$ctx.__$a=0;__$ctx._listLength--;var ctx__$55=__$ctx.ctx;if(ctx__$55&&ctx__$55!==true||ctx__$55===0){__$ctx._buf.push(ctx__$55+"")}return}function __$b11(__$ctx,__$ref){__$ctx.__$a=0;__$ctx._listLength--;return}function __$b12(__$ctx,__$ref){__$ctx.__$a=0;var v__$56=__$ctx.ctx,l__$57=v__$56.length,i__$58=0,prevPos__$59=__$ctx.position,prevNotNewList__$60=__$ctx._notNewList;if(prevNotNewList__$60){__$ctx._listLength+=l__$57-1}else{__$ctx.position=0;__$ctx._listLength=l__$57}__$ctx._notNewList=true;while(i__$58<l__$57)!function(){var __$r__$61;var __$l0__$62=__$ctx.ctx;__$ctx.ctx=v__$56[i__$58++];__$r__$61=applyc(__$ctx,__$ref);__$ctx.ctx=__$l0__$62;return __$r__$61}();prevNotNewList__$60||(__$ctx.position=prevPos__$59);return}function __$b13(__$ctx,__$ref){__$ctx.__$a=0;var vBlock__$63=__$ctx.ctx.block,vElem__$64=__$ctx.ctx.elem,block__$65=__$ctx._currBlock||__$ctx.block;__$ctx.ctx||(__$ctx.ctx={});var __$r__$66;var __$l0__$67=__$ctx._mode;__$ctx._mode="default";var __$l1__$68=__$ctx.block;__$ctx.block=vBlock__$63||(vElem__$64?block__$65:undefined);var __$l2__$69=__$ctx._currBlock;__$ctx._currBlock=vBlock__$63||vElem__$64?undefined:block__$65;var __$l3__$70=__$ctx.elem;__$ctx.elem=__$ctx.ctx.elem;var __$l4__$71=__$ctx.mods;__$ctx.mods=(vBlock__$63?__$ctx.ctx.mods:__$ctx.mods)||{};var __$l5__$72=__$ctx.elemMods;__$ctx.elemMods=__$ctx.ctx.elemMods||{};__$ctx.block||__$ctx.elem?__$ctx.position=(__$ctx.position||0)+1:__$ctx._listLength--;applyc(__$ctx,__$ref);__$r__$66=undefined;__$ctx._mode=__$l0__$67;__$ctx.block=__$l1__$68;__$ctx._currBlock=__$l2__$69;__$ctx.elem=__$l3__$70;__$ctx.mods=__$l4__$71;__$ctx.elemMods=__$l5__$72;return};
                                                                                                                                                Severity: Major
                                                                                                                                                Found in src/log_analyzer/js/analyzer.table.js and 1 other location - About 1 hr to fix
                                                                                                                                                src/log_analyzer/js/analyzer.table.js on lines 7290..7290

                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                Tuning

                                                                                                                                                This issue has a mass of 57.

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

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

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

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

                                                                                                                                                Refactorings

                                                                                                                                                Further Reading

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

                                                                                                                                                            teardown: function() {
                                                                                                                                                                $(this).off({
                                                                                                                                                                    pointerdown: eventSpecial.handlerDown,
                                                                                                                                                                    pointermove: eventSpecial.handlerMove,
                                                                                                                                                                    pointerup: eventSpecial.handlerUp
                                                                                                                                                Severity: Major
                                                                                                                                                Found in src/log_analyzer/js/analyzer.table.js and 1 other location - About 1 hr to fix
                                                                                                                                                src/log_analyzer/js/analyzer.table.js on lines 5373..5379

                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                Tuning

                                                                                                                                                This issue has a mass of 55.

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

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

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

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

                                                                                                                                                Refactorings

                                                                                                                                                Further Reading

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

                                                                                                                                                            if(e.pointerType === 'touch') {
                                                                                                                                                                data = {
                                                                                                                                                                    timer: (function() {
                                                                                                                                                                        // if there was no touchmove in 80ms – trigger pointerpress
                                                                                                                                                                        return setTimeout(function() {
                                                                                                                                                Severity: Major
                                                                                                                                                Found in src/log_analyzer/js/analyzer.table.js and 1 other location - About 1 hr to fix
                                                                                                                                                src/log_analyzer/js/analyzer.table.js on lines 5510..5525

                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                Tuning

                                                                                                                                                This issue has a mass of 55.

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

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

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

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

                                                                                                                                                Refactorings

                                                                                                                                                Further Reading

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

                                                                                                                                                            if(e.pointerType === 'touch') {
                                                                                                                                                                if(data && data.pressed) {
                                                                                                                                                                    pointerevent = new $.PointerEvent(e, params.name);
                                                                                                                                                                    $(e.target).trigger(pointerevent);
                                                                                                                                                                }
                                                                                                                                                Severity: Major
                                                                                                                                                Found in src/log_analyzer/js/analyzer.table.js and 1 other location - About 1 hr to fix
                                                                                                                                                src/log_analyzer/js/analyzer.table.js on lines 5438..5456

                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                Tuning

                                                                                                                                                This issue has a mass of 55.

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

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

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

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

                                                                                                                                                Refactorings

                                                                                                                                                Further Reading

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

                                                                                                                                                            setup: function() {
                                                                                                                                                                $(this).on({
                                                                                                                                                                    pointerdown: eventSpecial.handlerDown,
                                                                                                                                                                    pointermove: eventSpecial.handlerMove,
                                                                                                                                                                    pointerup: eventSpecial.handlerUp
                                                                                                                                                Severity: Major
                                                                                                                                                Found in src/log_analyzer/js/analyzer.table.js and 1 other location - About 1 hr to fix
                                                                                                                                                src/log_analyzer/js/analyzer.table.js on lines 5382..5388

                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                Tuning

                                                                                                                                                This issue has a mass of 55.

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

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

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

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

                                                                                                                                                Refactorings

                                                                                                                                                Further Reading

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

                                                                                                                                                    if (this.deviceIsAndroid) {
                                                                                                                                                        layer.addEventListener('mouseover', this.onMouse, true);
                                                                                                                                                        layer.addEventListener('mousedown', this.onMouse, true);
                                                                                                                                                        layer.addEventListener('mouseup', this.onMouse, true);
                                                                                                                                                    }
                                                                                                                                                Severity: Major
                                                                                                                                                Found in src/log_analyzer/js/analyzer.table.js and 1 other location - About 1 hr to fix
                                                                                                                                                src/log_analyzer/js/analyzer.table.js on lines 5252..5256

                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                Tuning

                                                                                                                                                This issue has a mass of 55.

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

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

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

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

                                                                                                                                                Refactorings

                                                                                                                                                Further Reading

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

                                                                                                                                                    if (this.deviceIsAndroid) {
                                                                                                                                                        layer.removeEventListener('mouseover', this.onMouse, true);
                                                                                                                                                        layer.removeEventListener('mousedown', this.onMouse, true);
                                                                                                                                                        layer.removeEventListener('mouseup', this.onMouse, true);
                                                                                                                                                    }
                                                                                                                                                Severity: Major
                                                                                                                                                Found in src/log_analyzer/js/analyzer.table.js and 1 other location - About 1 hr to fix
                                                                                                                                                src/log_analyzer/js/analyzer.table.js on lines 4665..4669

                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                Tuning

                                                                                                                                                This issue has a mass of 55.

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

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

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

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

                                                                                                                                                Refactorings

                                                                                                                                                Further Reading

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

                                                                                                                                                            var pointerevent = new PointerEvent(e, params.name),
                                                                                                                                                                targetFromPoint = doc.elementFromPoint(
                                                                                                                                                                    pointerevent.clientX,
                                                                                                                                                                    pointerevent.clientY
                                                                                                                                                                ),
                                                                                                                                                Severity: Major
                                                                                                                                                Found in src/log_analyzer/js/analyzer.table.js and 3 other locations - About 55 mins to fix
                                                                                                                                                src/log_analyzer/js/analyzer.table.js on lines 4330..4335
                                                                                                                                                src/log_analyzer/js/analyzer.table.js on lines 4449..4454
                                                                                                                                                src/log_analyzer/js/analyzer.table.js on lines 4487..4492

                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                Tuning

                                                                                                                                                This issue has a mass of 53.

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

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

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

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

                                                                                                                                                Refactorings

                                                                                                                                                Further Reading

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

                                                                                                                                                                var pointerevent = new PointerEvent(e, params.name),
                                                                                                                                                                    targetFromPoint = doc.elementFromPoint(
                                                                                                                                                                        pointerevent.clientX,
                                                                                                                                                                        pointerevent.clientY
                                                                                                                                                                    ),
                                                                                                                                                Severity: Major
                                                                                                                                                Found in src/log_analyzer/js/analyzer.table.js and 3 other locations - About 55 mins to fix
                                                                                                                                                src/log_analyzer/js/analyzer.table.js on lines 4330..4335
                                                                                                                                                src/log_analyzer/js/analyzer.table.js on lines 4374..4379
                                                                                                                                                src/log_analyzer/js/analyzer.table.js on lines 4487..4492

                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                Tuning

                                                                                                                                                This issue has a mass of 53.

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

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

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

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

                                                                                                                                                Refactorings

                                                                                                                                                Further Reading

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

                                                                                                                                                            var pointerevent = new PointerEvent(e, params.name),
                                                                                                                                                                targetFromPoint = doc.elementFromPoint(
                                                                                                                                                                    pointerevent.clientX,
                                                                                                                                                                    pointerevent.clientY
                                                                                                                                                                ),
                                                                                                                                                Severity: Major
                                                                                                                                                Found in src/log_analyzer/js/analyzer.table.js and 3 other locations - About 55 mins to fix
                                                                                                                                                src/log_analyzer/js/analyzer.table.js on lines 4374..4379
                                                                                                                                                src/log_analyzer/js/analyzer.table.js on lines 4449..4454
                                                                                                                                                src/log_analyzer/js/analyzer.table.js on lines 4487..4492

                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                Tuning

                                                                                                                                                This issue has a mass of 53.

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

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

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

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

                                                                                                                                                Refactorings

                                                                                                                                                Further Reading

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

                                                                                                                                                                var pointerevent = new PointerEvent(e, params.name),
                                                                                                                                                                    targetFromPoint = doc.elementFromPoint(
                                                                                                                                                                        pointerevent.clientX,
                                                                                                                                                                        pointerevent.clientY
                                                                                                                                                                    ),
                                                                                                                                                Severity: Major
                                                                                                                                                Found in src/log_analyzer/js/analyzer.table.js and 3 other locations - About 55 mins to fix
                                                                                                                                                src/log_analyzer/js/analyzer.table.js on lines 4330..4335
                                                                                                                                                src/log_analyzer/js/analyzer.table.js on lines 4374..4379
                                                                                                                                                src/log_analyzer/js/analyzer.table.js on lines 4449..4454

                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                Tuning

                                                                                                                                                This issue has a mass of 53.

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

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

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

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

                                                                                                                                                Refactorings

                                                                                                                                                Further Reading

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

                                                                                                                                                    _unbindFromParentPopup : function() {
                                                                                                                                                        this._parentPopup &&
                                                                                                                                                            this._parentPopup.un({ modName : 'visible', modVal : '' }, this._onParentPopupHide, this);
                                                                                                                                                        return this;
                                                                                                                                                    },
                                                                                                                                                Severity: Major
                                                                                                                                                Found in src/log_analyzer/js/analyzer.table.js and 3 other locations - About 55 mins to fix
                                                                                                                                                src/log_analyzer/js/analyzer.table.js on lines 5957..5961
                                                                                                                                                src/log_analyzer/js/analyzer.table.js on lines 5973..5977
                                                                                                                                                src/log_analyzer/js/analyzer.table.js on lines 5979..5983

                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                Tuning

                                                                                                                                                This issue has a mass of 53.

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

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

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

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

                                                                                                                                                Refactorings

                                                                                                                                                Further Reading

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

                                                                                                                                                    _bindToPopupOwner : function() {
                                                                                                                                                        this._popupOwner &&
                                                                                                                                                            this._popupOwner.on({ modName : 'js', modVal : '' }, this._onPopupOwnerDestruct, this);
                                                                                                                                                        return this;
                                                                                                                                                    },
                                                                                                                                                Severity: Major
                                                                                                                                                Found in src/log_analyzer/js/analyzer.table.js and 3 other locations - About 55 mins to fix
                                                                                                                                                src/log_analyzer/js/analyzer.table.js on lines 5957..5961
                                                                                                                                                src/log_analyzer/js/analyzer.table.js on lines 5963..5967
                                                                                                                                                src/log_analyzer/js/analyzer.table.js on lines 5979..5983

                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                Tuning

                                                                                                                                                This issue has a mass of 53.

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

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

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

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

                                                                                                                                                Refactorings

                                                                                                                                                Further Reading

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

                                                                                                                                                    _unbindFromPopupOwner : function() {
                                                                                                                                                        this._popupOwner &&
                                                                                                                                                            this._popupOwner.un({ modName : 'js', modVal : '' }, this._onPopupOwnerDestruct, this);
                                                                                                                                                        return this;
                                                                                                                                                    },
                                                                                                                                                Severity: Major
                                                                                                                                                Found in src/log_analyzer/js/analyzer.table.js and 3 other locations - About 55 mins to fix
                                                                                                                                                src/log_analyzer/js/analyzer.table.js on lines 5957..5961
                                                                                                                                                src/log_analyzer/js/analyzer.table.js on lines 5963..5967
                                                                                                                                                src/log_analyzer/js/analyzer.table.js on lines 5973..5977

                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                Tuning

                                                                                                                                                This issue has a mass of 53.

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

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

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

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

                                                                                                                                                Refactorings

                                                                                                                                                Further Reading

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

                                                                                                                                                    _bindToParentPopup : function() {
                                                                                                                                                        this._parentPopup &&
                                                                                                                                                            this._parentPopup.on({ modName : 'visible', modVal : '' }, this._onParentPopupHide, this);
                                                                                                                                                        return this;
                                                                                                                                                    },
                                                                                                                                                Severity: Major
                                                                                                                                                Found in src/log_analyzer/js/analyzer.table.js and 3 other locations - About 55 mins to fix
                                                                                                                                                src/log_analyzer/js/analyzer.table.js on lines 5963..5967
                                                                                                                                                src/log_analyzer/js/analyzer.table.js on lines 5973..5977
                                                                                                                                                src/log_analyzer/js/analyzer.table.js on lines 5979..5983

                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                Tuning

                                                                                                                                                This issue has a mass of 53.

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

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

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

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

                                                                                                                                                Refactorings

                                                                                                                                                Further Reading

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

                                                                                                                                                                    this.selectingDates.first = new Date(this._dates.current.year, this._dates.current.month, target.attr('data-content'));
                                                                                                                                                Severity: Minor
                                                                                                                                                Found in src/log_analyzer/js/analyzer.table.js and 1 other location - About 55 mins to fix
                                                                                                                                                src/log_analyzer/js/analyzer.table.js on lines 6766..6766

                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                Tuning

                                                                                                                                                This issue has a mass of 53.

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

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

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

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

                                                                                                                                                Refactorings

                                                                                                                                                Further Reading

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

                                                                                                                                                                this.selectingDates.second = new Date(this._dates.current.year, this._dates.current.month, target.attr('data-content'));
                                                                                                                                                Severity: Minor
                                                                                                                                                Found in src/log_analyzer/js/analyzer.table.js and 1 other location - About 55 mins to fix
                                                                                                                                                src/log_analyzer/js/analyzer.table.js on lines 6756..6756

                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                Tuning

                                                                                                                                                This issue has a mass of 53.

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

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

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

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

                                                                                                                                                Refactorings

                                                                                                                                                Further Reading

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

                                                                                                                                                                titleClickContent = this.months[this._dates.current.month + 1] + ' ' + this._dates.current.year;
                                                                                                                                                Severity: Minor
                                                                                                                                                Found in src/log_analyzer/js/analyzer.table.js and 1 other location - About 40 mins to fix
                                                                                                                                                src/log_analyzer/js/analyzer.table.js on lines 6567..6567

                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                Tuning

                                                                                                                                                This issue has a mass of 49.

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

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

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

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

                                                                                                                                                Refactorings

                                                                                                                                                Further Reading

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

                                                                                                                                                                titleClickContent = this.months[this._dates[direction].month + 1] + ' ' + this._dates[direction].year,
                                                                                                                                                Severity: Minor
                                                                                                                                                Found in src/log_analyzer/js/analyzer.table.js and 1 other location - About 40 mins to fix
                                                                                                                                                src/log_analyzer/js/analyzer.table.js on lines 6928..6928

                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                Tuning

                                                                                                                                                This issue has a mass of 49.

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

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

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

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

                                                                                                                                                Refactorings

                                                                                                                                                Further Reading

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

                                                                                                                                                                                        if(prev) {
                                                                                                                                                                                            prev.next = next;
                                                                                                                                                                                        } else if(item === list.first) {
                                                                                                                                                                                            list.first = next;
                                                                                                                                                                                        }
                                                                                                                                                Severity: Minor
                                                                                                                                                Found in src/log_analyzer/js/analyzer.table.js and 1 other location - About 30 mins to fix
                                                                                                                                                src/log_analyzer/js/analyzer.table.js on lines 1857..1861

                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                Tuning

                                                                                                                                                This issue has a mass of 45.

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

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

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

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

                                                                                                                                                Refactorings

                                                                                                                                                Further Reading

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

                                                                                                                                                                                        if(next) {
                                                                                                                                                                                            next.prev = prev;
                                                                                                                                                                                        } else if(item === list.last) {
                                                                                                                                                                                            list.last = prev;
                                                                                                                                                                                        }
                                                                                                                                                Severity: Minor
                                                                                                                                                Found in src/log_analyzer/js/analyzer.table.js and 1 other location - About 30 mins to fix
                                                                                                                                                src/log_analyzer/js/analyzer.table.js on lines 1851..1855

                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                Tuning

                                                                                                                                                This issue has a mass of 45.

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

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

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

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

                                                                                                                                                Refactorings

                                                                                                                                                Further Reading

                                                                                                                                                There are no issues that match your filters.

                                                                                                                                                Category
                                                                                                                                                Status