ampache/ampache

View on GitHub
public/lib/modules/aurora.js/aac.js

Summary

Maintainability
F
2 mos
Test Coverage

File aac.js has 3970 lines of code (exceeds 500 allowed). Consider refactoring.
Open

(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
(function (global){
var AV = (typeof window !== "undefined" ? window['AV'] : typeof global !== "undefined" ? global['AV'] : null);
var tables = require('./tables');

Severity: Major
Found in public/lib/modules/aurora.js/aac.js - About 1 wk to fix

    Function 4 has a Cognitive Complexity of 331 (exceeds 5 allowed). Consider refactoring.
    Open

    },{"./ics":8}],4:[function(require,module,exports){
    (function (global){
    /*
     * AAC.js - Advanced Audio Coding decoder in JavaScript
     * Created by Devon Govett
    Severity: Minor
    Found in public/lib/modules/aurora.js/aac.js - About 6 days to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Function 7 has 1444 lines of code (exceeds 200 allowed). Consider refactoring.
    Open

    },{"./ics":8,"./mdct":9}],7:[function(require,module,exports){
    /*
     * AAC.js - Advanced Audio Coding decoder in JavaScript
     * Created by Devon Govett
     * Copyright (c) 2012, Official.fm Labs
    Severity: Major
    Found in public/lib/modules/aurora.js/aac.js - About 6 days to fix

      Function 10 has 1124 lines of code (exceeds 200 allowed). Consider refactoring.
      Open

      },{"./fft":5,"./mdct_tables":10}],10:[function(require,module,exports){
      /*
       * AAC.js - Advanced Audio Coding decoder in JavaScript
       * Created by Devon Govett
       * Copyright (c) 2012, Official.fm Labs
      Severity: Major
      Found in public/lib/modules/aurora.js/aac.js - About 4 days to fix

        Function 8 has a Cognitive Complexity of 176 (exceeds 5 allowed). Consider refactoring.
        Open

        },{}],8:[function(require,module,exports){
        /*
         * AAC.js - Advanced Audio Coding decoder in JavaScript
         * Created by Devon Govett
         * Copyright (c) 2012, Official.fm Labs
        Severity: Minor
        Found in public/lib/modules/aurora.js/aac.js - About 3 days to fix

        Cognitive Complexity

        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

        A method's cognitive complexity is based on a few simple rules:

        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
        • Code is considered more complex for each "break in the linear flow of the code"
        • Code is considered more complex when "flow breaking structures are nested"

        Further reading

        Function 12 has a Cognitive Complexity of 91 (exceeds 5 allowed). Consider refactoring.
        Open

        },{}],12:[function(require,module,exports){
        /*
         * AAC.js - Advanced Audio Coding decoder in JavaScript
         * Created by Devon Govett
         * Copyright (c) 2012, Official.fm Labs
        Severity: Minor
        Found in public/lib/modules/aurora.js/aac.js - About 1 day to fix

        Cognitive Complexity

        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

        A method's cognitive complexity is based on a few simple rules:

        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
        • Code is considered more complex for each "break in the linear flow of the code"
        • Code is considered more complex when "flow breaking structures are nested"

        Further reading

        Function 2 has a Cognitive Complexity of 88 (exceeds 5 allowed). Consider refactoring.
        Open

        },{"./tables":11}],2:[function(require,module,exports){
        /*
         * AAC.js - Advanced Audio Coding decoder in JavaScript
         * Created by Devon Govett
         * Copyright (c) 2012, Official.fm Labs
        Severity: Minor
        Found in public/lib/modules/aurora.js/aac.js - About 1 day to fix

        Cognitive Complexity

        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

        A method's cognitive complexity is based on a few simple rules:

        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
        • Code is considered more complex for each "break in the linear flow of the code"
        • Code is considered more complex when "flow breaking structures are nested"

        Further reading

        Function 6 has a Cognitive Complexity of 68 (exceeds 5 allowed). Consider refactoring.
        Open

        },{}],6:[function(require,module,exports){
        /*
         * AAC.js - Advanced Audio Coding decoder in JavaScript
         * Created by Devon Govett
         * Copyright (c) 2012, Official.fm Labs
        Severity: Minor
        Found in public/lib/modules/aurora.js/aac.js - About 1 day to fix

        Cognitive Complexity

        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

        A method's cognitive complexity is based on a few simple rules:

        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
        • Code is considered more complex for each "break in the linear flow of the code"
        • Code is considered more complex when "flow breaking structures are nested"

        Further reading

        Function 5 has a Cognitive Complexity of 38 (exceeds 5 allowed). Consider refactoring.
        Open

        },{"./adts_demuxer":1,"./cce":2,"./cpe":3,"./filter_bank":6,"./ics":8,"./tables":11}],5:[function(require,module,exports){
        /*
         * AAC.js - Advanced Audio Coding decoder in JavaScript
         * Created by Devon Govett
         * Copyright (c) 2012, Official.fm Labs
        Severity: Minor
        Found in public/lib/modules/aurora.js/aac.js - About 5 hrs to fix

        Cognitive Complexity

        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

        A method's cognitive complexity is based on a few simple rules:

        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
        • Code is considered more complex for each "break in the linear flow of the code"
        • Code is considered more complex when "flow breaking structures are nested"

        Further reading

        Function 4 has 311 lines of code (exceeds 200 allowed). Consider refactoring.
        Open

        },{"./ics":8}],4:[function(require,module,exports){
        (function (global){
        /*
         * AAC.js - Advanced Audio Coding decoder in JavaScript
         * Created by Devon Govett
        Severity: Major
        Found in public/lib/modules/aurora.js/aac.js - About 5 hrs to fix

          Function 7 has a Cognitive Complexity of 34 (exceeds 5 allowed). Consider refactoring.
          Open

          },{"./ics":8,"./mdct":9}],7:[function(require,module,exports){
          /*
           * AAC.js - Advanced Audio Coding decoder in JavaScript
           * Created by Devon Govett
           * Copyright (c) 2012, Official.fm Labs
          Severity: Minor
          Found in public/lib/modules/aurora.js/aac.js - About 5 hrs to fix

          Cognitive Complexity

          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

          A method's cognitive complexity is based on a few simple rules:

          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
          • Code is considered more complex for each "break in the linear flow of the code"
          • Code is considered more complex when "flow breaking structures are nested"

          Further reading

          Function AACDecoder has 299 lines of code (exceeds 200 allowed). Consider refactoring.
          Open

          var AACDecoder = AV.Decoder.extend(function() {
              AV.Decoder.register('mp4a', this);
              AV.Decoder.register('aac ', this);
          
              // AAC profiles
          Severity: Major
          Found in public/lib/modules/aurora.js/aac.js - About 4 hrs to fix

            Function 1 has a Cognitive Complexity of 33 (exceeds 5 allowed). Consider refactoring.
            Open

            (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
            (function (global){
            var AV = (typeof window !== "undefined" ? window['AV'] : typeof global !== "undefined" ? global['AV'] : null);
            var tables = require('./tables');
            
            
            Severity: Minor
            Found in public/lib/modules/aurora.js/aac.js - About 4 hrs to fix

            Cognitive Complexity

            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

            A method's cognitive complexity is based on a few simple rules:

            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
            • Code is considered more complex for each "break in the linear flow of the code"
            • Code is considered more complex when "flow breaking structures are nested"

            Further reading

            Function 8 has 254 lines of code (exceeds 200 allowed). Consider refactoring.
            Open

            },{}],8:[function(require,module,exports){
            /*
             * AAC.js - Advanced Audio Coding decoder in JavaScript
             * Created by Devon Govett
             * Copyright (c) 2012, Official.fm Labs
            Severity: Major
            Found in public/lib/modules/aurora.js/aac.js - About 3 hrs to fix

              Function 3 has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring.
              Open

              },{"./huffman":7,"./ics":8}],3:[function(require,module,exports){
              /*
               * AAC.js - Advanced Audio Coding decoder in JavaScript
               * Created by Devon Govett
               * Copyright (c) 2012, Official.fm Labs
              Severity: Minor
              Found in public/lib/modules/aurora.js/aac.js - About 2 hrs to fix

              Cognitive Complexity

              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

              A method's cognitive complexity is based on a few simple rules:

              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
              • Code is considered more complex for each "break in the linear flow of the code"
              • Code is considered more complex when "flow breaking structures are nested"

              Further reading

              Function e has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring.
              Open

              (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
              Severity: Minor
              Found in public/lib/modules/aurora.js/aac.js - About 2 hrs to fix

              Cognitive Complexity

              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

              A method's cognitive complexity is based on a few simple rules:

              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
              • Code is considered more complex for each "break in the linear flow of the code"
              • Code is considered more complex when "flow breaking structures are nested"

              Further reading

              Function 9 has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
              Open

              },{"./huffman":7,"./tables":11,"./tns":12}],9:[function(require,module,exports){
              /*
               * AAC.js - Advanced Audio Coding decoder in JavaScript
               * Created by Devon Govett
               * Copyright (c) 2012, Official.fm Labs
              Severity: Minor
              Found in public/lib/modules/aurora.js/aac.js - About 1 hr to fix

              Cognitive Complexity

              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

              A method's cognitive complexity is based on a few simple rules:

              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
              • Code is considered more complex for each "break in the linear flow of the code"
              • Code is considered more complex when "flow breaking structures are nested"

              Further reading

              Avoid deeply nested control flow statements.
              Open

                                  for (var i = 0; i < order_w_filt; i++)
                                      coef_w_filt[i] = table[stream.read(coefLen)];
              Severity: Major
              Found in public/lib/modules/aurora.js/aac.js - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                                        if (chSelect !== 2)
                                            cce[applyCoupling](index++, data2);
                Severity: Major
                Found in public/lib/modules/aurora.js/aac.js - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                                      for (var group = 0; group < groupLen; group++, off += 128) {
                                          var energy = 0;
                  
                                          for (var k = 0; k < width; k++) {
                                              this.randomState = (this.randomState * (1664525 + 1013904223))|0;
                  Severity: Major
                  Found in public/lib/modules/aurora.js/aac.js - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                        for (var group = 0; group < groupLen; group++, off += 128) {
                                            var num = (hcb >= ICStream.FIRST_PAIR_BT) ? 2 : 4;
                                            for (var k = 0; k < width; k += num) {
                                                Huffman.decodeSpectralData(stream, hcb, buf, 0);
                    
                    
                    Severity: Major
                    Found in public/lib/modules/aurora.js/aac.js - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                              if (bandTypes[idx] !== ICStream.ZERO_BT) {
                                                  if (cge === 0) {
                                                      var t = Huffman.decodeScaleFactor(stream) - 60;
                                                      if (t !== 0) {
                                                          var s = 1;
                      Severity: Major
                      Found in public/lib/modules/aurora.js/aac.js - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                                for (var j = 0; j < offsets[i + 1] - offsets[i]; j++) {
                                                    var t = left[off + j] - right[off + j];
                                                    left[off + j] += right[off + j];
                                                    right[off + j] = t;
                                                }
                        Severity: Major
                        Found in public/lib/modules/aurora.js/aac.js - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                                  for (var i = off; i < off + width; i++) {
                                                      data[i] = 0;
                                                  }
                          Severity: Major
                          Found in public/lib/modules/aurora.js/aac.js - About 45 mins to fix

                            Avoid deeply nested control flow statements.
                            Open

                                                    for (var w = 0; w < info.groupLength[g]; w++) {
                                                        var off = groupOff + w * 128 + offsets[i],
                                                            len = offsets[i + 1] - offsets[i];
                            
                                                        for (var j = 0; j < len; j++) {
                            Severity: Major
                            Found in public/lib/modules/aurora.js/aac.js - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                                      if (chSelect !== 1) {
                                                          cce[applyCoupling](index, data1);
                                                          if (chSelect) index++;
                                                      }
                              Severity: Major
                              Found in public/lib/modules/aurora.js/aac.js - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                                    for (var i = 1; i <= Math.min(m, order); i++) {
                                                        data[start] -= data[start - i * inc] * lpc[i - 1];
                                                    }
                                Severity: Major
                                Found in public/lib/modules/aurora.js/aac.js - About 45 mins to fix

                                  Avoid deeply nested control flow statements.
                                  Open

                                                          for (var k = swbOffsets[sfb]; k < swbOffsets[swb + 1]; k++) {
                                                              data[offset + group * 128 + k] += gain * iqData[offset + group * 128 + k];
                                                          }
                                  Severity: Major
                                  Found in public/lib/modules/aurora.js/aac.js - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                                                if (noiseFlag) {
                                                                    offset[1] += stream.read(9) - 256;
                                                                    noiseFlag = false;
                                                                } else {
                                                                    offset[1] += Huffman.decodeScaleFactor(stream) - SF_DELTA;
                                    Severity: Major
                                    Found in public/lib/modules/aurora.js/aac.js - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                              if (element.maskPresent)
                                                                  c *= element.ms_used[idx] ? -1 : 1;
                                      Severity: Major
                                      Found in public/lib/modules/aurora.js/aac.js - About 45 mins to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                                            for (var i = 1; i <= Math.min(m, order); i++)
                                                                data[start] += tmp[i] * lpc[i - 1];
                                        Severity: Major
                                        Found in public/lib/modules/aurora.js/aac.js - About 45 mins to fix

                                          Avoid deeply nested control flow statements.
                                          Open

                                                                      if(offset[0] > 255)
                                                                          throw new Error("Scalefactor out of range: " + offset[0]);
                                          Severity: Major
                                          Found in public/lib/modules/aurora.js/aac.js - About 45 mins to fix

                                            Avoid deeply nested control flow statements.
                                            Open

                                                                for (var i = order; i > 0; i--)
                                                                    tmp[i] = tmp[i - 1];
                                            Severity: Major
                                            Found in public/lib/modules/aurora.js/aac.js - About 45 mins to fix

                                              TODO found
                                              Open

                                                          throw new Error('TODO: add pulse data');
                                              Severity: Minor
                                              Found in public/lib/modules/aurora.js/aac.js by fixme

                                              TODO found
                                              Open

                                                      // TODO: sbrPresent (2)
                                              Severity: Minor
                                              Found in public/lib/modules/aurora.js/aac.js by fixme

                                              TODO found
                                              Open

                                                          throw new Error("TODO: decode gain control/SSR");
                                              Severity: Minor
                                              Found in public/lib/modules/aurora.js/aac.js by fixme

                                              TODO found
                                              Open

                                                                  throw new Error("TODO: PCE_ELEMENT")
                                              Severity: Minor
                                              Found in public/lib/modules/aurora.js/aac.js by fixme

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

                                              const HCB9 = [
                                                  [1, 0, 0, 0],
                                                  [3, 4, 1, 0],
                                                  [3, 5, 0, 1],
                                                  [4, 12, 1, 1],
                                              Severity: Major
                                              Found in public/lib/modules/aurora.js/aac.js and 1 other location - About 6 days to fix
                                              public/lib/modules/aurora.js/aac.js on lines 2007..2177

                                              Duplicated Code

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

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

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

                                              Tuning

                                              This issue has a mass of 1022.

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

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

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

                                              See codeclimate-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

                                              const HCB10 = [
                                                  [4, 0, 1, 1],
                                                  [4, 1, 1, 2],
                                                  [4, 2, 2, 1],
                                                  [5, 6, 2, 2],
                                              Severity: Major
                                              Found in public/lib/modules/aurora.js/aac.js and 1 other location - About 6 days to fix
                                              public/lib/modules/aurora.js/aac.js on lines 1835..2005

                                              Duplicated Code

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

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

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

                                              Tuning

                                              This issue has a mass of 1022.

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

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

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

                                              See codeclimate-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

                                              const HCB3 = [
                                                  [1, 0, 0, 0, 0, 0],
                                                  [4, 8, 1, 0, 0, 0],
                                                  [4, 9, 0, 0, 0, 1],
                                                  [4, 10, 0, 1, 0, 0],
                                              Severity: Major
                                              Found in public/lib/modules/aurora.js/aac.js and 1 other location - About 3 days to fix
                                              public/lib/modules/aurora.js/aac.js on lines 1449..1531

                                              Duplicated Code

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

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

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

                                              Tuning

                                              This issue has a mass of 656.

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

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

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

                                              See codeclimate-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

                                              const HCB4 = [
                                                  [4, 0, 1, 1, 1, 1],
                                                  [4, 1, 0, 1, 1, 1],
                                                  [4, 2, 1, 1, 0, 1],
                                                  [4, 3, 1, 1, 1, 0],
                                              Severity: Major
                                              Found in public/lib/modules/aurora.js/aac.js and 1 other location - About 3 days to fix
                                              public/lib/modules/aurora.js/aac.js on lines 1365..1447

                                              Duplicated Code

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

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

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

                                              Tuning

                                              This issue has a mass of 656.

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

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

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

                                              See codeclimate-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

                                              const HCB7 = [
                                                  [1, 0, 0, 0],
                                                  [3, 4, 1, 0],
                                                  [3, 5, 0, 1],
                                                  [4, 12, 1, 1],
                                              Severity: Major
                                              Found in public/lib/modules/aurora.js/aac.js and 1 other location - About 2 days to fix
                                              public/lib/modules/aurora.js/aac.js on lines 1768..1833

                                              Duplicated Code

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

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

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

                                              Tuning

                                              This issue has a mass of 392.

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

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

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

                                              See codeclimate-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

                                              const HCB8 = [
                                                  [3, 0, 1, 1],
                                                  [4, 2, 2, 1],
                                                  [4, 3, 1, 0],
                                                  [4, 4, 1, 2],
                                              Severity: Major
                                              Found in public/lib/modules/aurora.js/aac.js and 1 other location - About 2 days to fix
                                              public/lib/modules/aurora.js/aac.js on lines 1701..1766

                                              Duplicated Code

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

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

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

                                              Tuning

                                              This issue has a mass of 392.

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

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

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

                                              (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
                                              (function (global){
                                              var AV = (typeof window !== "undefined" ? window['AV'] : typeof global !== "undefined" ? global['AV'] : null);
                                              var tables = require('./tables');
                                              
                                              
                                              Severity: Major
                                              Found in public/lib/modules/aurora.js/aac.js and 3 other locations - About 1 day to fix
                                              public/lib/modules/aurora.js/alac.js on lines 1..722
                                              public/lib/modules/aurora.js/flac.js on lines 1..790
                                              public/lib/modules/aurora.js/mp3.js on lines 1..7748

                                              Duplicated Code

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

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

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

                                              Tuning

                                              This issue has a mass of 274.

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

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

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

                                              See codeclimate-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

                                                              output[mid + 2 * shortLen + i] = overlap[mid + shortLen * 2 + i] + (buf[shortLen * 3 + i] * shortWindows[shortLen - 1 - i]) + (buf[shortLen * 4 + i] * shortWindows[i]);
                                              Severity: Major
                                              Found in public/lib/modules/aurora.js/aac.js and 3 other locations - About 3 hrs to fix
                                              public/lib/modules/aurora.js/aac.js on lines 1122..1122
                                              public/lib/modules/aurora.js/aac.js on lines 1124..1124
                                              public/lib/modules/aurora.js/aac.js on lines 1127..1127

                                              Duplicated Code

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

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

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

                                              Tuning

                                              This issue has a mass of 95.

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

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

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

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

                                              Refactorings

                                              Further Reading

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

                                                              output[mid + 1 * shortLen + i] = overlap[mid + shortLen * 1 + i] + (buf[shortLen * 1 + i] * shortWindows[shortLen - 1 - i]) + (buf[shortLen * 2 + i]  * shortWindows[i]);
                                              Severity: Major
                                              Found in public/lib/modules/aurora.js/aac.js and 3 other locations - About 3 hrs to fix
                                              public/lib/modules/aurora.js/aac.js on lines 1123..1123
                                              public/lib/modules/aurora.js/aac.js on lines 1124..1124
                                              public/lib/modules/aurora.js/aac.js on lines 1127..1127

                                              Duplicated Code

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

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

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

                                              Tuning

                                              This issue has a mass of 95.

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

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

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

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

                                              Refactorings

                                              Further Reading

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

                                                              output[mid + 3 * shortLen + i] = overlap[mid + shortLen * 3 + i] + (buf[shortLen * 5 + i] * shortWindows[shortLen - 1 - i]) + (buf[shortLen * 6 + i] * shortWindows[i]);
                                              Severity: Major
                                              Found in public/lib/modules/aurora.js/aac.js and 3 other locations - About 3 hrs to fix
                                              public/lib/modules/aurora.js/aac.js on lines 1122..1122
                                              public/lib/modules/aurora.js/aac.js on lines 1123..1123
                                              public/lib/modules/aurora.js/aac.js on lines 1127..1127

                                              Duplicated Code

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

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

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

                                              Tuning

                                              This issue has a mass of 95.

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

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

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

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

                                              Refactorings

                                              Further Reading

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

                                                      if (forward) {
                                                          input[i + 1][0] = e2[0];
                                                          input[i + 1][1] = e2[1];
                                                          input[i + 3][0] = e1[0];
                                                          input[i + 3][1] = e1[1];
                                              Severity: Major
                                              Found in public/lib/modules/aurora.js/aac.js and 1 other location - About 3 hrs to fix
                                              public/lib/modules/aurora.js/aac.js on lines 935..940

                                              Duplicated Code

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

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

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

                                              Tuning

                                              This issue has a mass of 95.

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

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

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

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

                                              Refactorings

                                              Further Reading

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

                                                      } else {
                                                          input[i + 1][0] = e1[0];
                                                          input[i + 1][1] = e1[1];
                                                          input[i + 3][0] = e2[0];
                                                          input[i + 3][1] = e2[1];
                                              Severity: Major
                                              Found in public/lib/modules/aurora.js/aac.js and 1 other location - About 3 hrs to fix
                                              public/lib/modules/aurora.js/aac.js on lines 930..935

                                              Duplicated Code

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

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

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

                                              Tuning

                                              This issue has a mass of 95.

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

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

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

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

                                              Refactorings

                                              Further Reading

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

                                                                  output[mid + 4 * shortLen + i] = overlap[mid + shortLen * 4 + i] + (buf[shortLen * 7 + i] * shortWindows[shortLen - 1 - i]) + (buf[shortLen * 8 + i] * shortWindows[i]);
                                              Severity: Major
                                              Found in public/lib/modules/aurora.js/aac.js and 3 other locations - About 3 hrs to fix
                                              public/lib/modules/aurora.js/aac.js on lines 1122..1122
                                              public/lib/modules/aurora.js/aac.js on lines 1123..1123
                                              public/lib/modules/aurora.js/aac.js on lines 1124..1124

                                              Duplicated Code

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

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

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

                                              Tuning

                                              This issue has a mass of 95.

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

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

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

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

                                              Refactorings

                                              Further Reading

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

                                                              overlap[mid + 5 * shortLen + i - length] = (buf[shortLen * 9 + i] * shortWindows[shortLen - 1 - i]) + (buf[shortLen * 10 + i] * shortWindows[i]);
                                              Severity: Major
                                              Found in public/lib/modules/aurora.js/aac.js and 3 other locations - About 2 hrs to fix
                                              public/lib/modules/aurora.js/aac.js on lines 1133..1133
                                              public/lib/modules/aurora.js/aac.js on lines 1136..1136
                                              public/lib/modules/aurora.js/aac.js on lines 1137..1137

                                              Duplicated Code

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

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

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

                                              Tuning

                                              This issue has a mass of 79.

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

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

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

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

                                              Refactorings

                                              Further Reading

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

                                                              overlap[mid + 7 * shortLen + i - length] = (buf[shortLen * 13 + i] * shortWindows[shortLen - 1 - i]) + (buf[shortLen * 14 + i]*shortWindows[i]);
                                              Severity: Major
                                              Found in public/lib/modules/aurora.js/aac.js and 3 other locations - About 2 hrs to fix
                                              public/lib/modules/aurora.js/aac.js on lines 1133..1133
                                              public/lib/modules/aurora.js/aac.js on lines 1135..1135
                                              public/lib/modules/aurora.js/aac.js on lines 1136..1136

                                              Duplicated Code

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

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

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

                                              Tuning

                                              This issue has a mass of 79.

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

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

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

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

                                              Refactorings

                                              Further Reading

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

                                                              overlap[mid + 6 * shortLen + i - length] = (buf[shortLen * 11 + i] * shortWindows[shortLen - 1 - i]) + (buf[shortLen * 12 + i]*shortWindows[i]);
                                              Severity: Major
                                              Found in public/lib/modules/aurora.js/aac.js and 3 other locations - About 2 hrs to fix
                                              public/lib/modules/aurora.js/aac.js on lines 1133..1133
                                              public/lib/modules/aurora.js/aac.js on lines 1135..1135
                                              public/lib/modules/aurora.js/aac.js on lines 1137..1137

                                              Duplicated Code

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

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

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

                                              Tuning

                                              This issue has a mass of 79.

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

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

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

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

                                              Refactorings

                                              Further Reading

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

                                                                  overlap[mid + 4 * shortLen + i - length] = (buf[shortLen * 7 + i] * shortWindows[shortLen - 1 - i]) + (buf[shortLen * 8 + i] * shortWindows[i]);
                                              Severity: Major
                                              Found in public/lib/modules/aurora.js/aac.js and 3 other locations - About 2 hrs to fix
                                              public/lib/modules/aurora.js/aac.js on lines 1135..1135
                                              public/lib/modules/aurora.js/aac.js on lines 1136..1136
                                              public/lib/modules/aurora.js/aac.js on lines 1137..1137

                                              Duplicated Code

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

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

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

                                              Tuning

                                              This issue has a mass of 79.

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

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

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

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

                                              Refactorings

                                              Further Reading

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

                                                          for (var i = 0; i < length; i++) {
                                                              overlap[i] = buf[length + i] * longWindows[length - 1 - i];
                                                          }
                                              Severity: Major
                                              Found in public/lib/modules/aurora.js/aac.js and 1 other location - About 1 hr to fix
                                              public/lib/modules/aurora.js/aac.js on lines 1165..1167

                                              Duplicated Code

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

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

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

                                              Tuning

                                              This issue has a mass of 60.

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

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

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

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

                                              Refactorings

                                              Further Reading

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

                                              const SWB_OFFSET_1024_24 = new Uint16Array([
                                                    0,   4,   8,  12,  16,  20,  24,  28,
                                                   32,  36,  40,  44,  52,  60,  68,  76,
                                                   84,  92, 100, 108, 116, 124, 136, 148,
                                                  160, 172, 188, 204, 220, 240, 260, 284,
                                              Severity: Major
                                              Found in public/lib/modules/aurora.js/aac.js and 1 other location - About 1 hr to fix
                                              public/lib/modules/aurora.js/aac.js on lines 4320..4327

                                              Duplicated Code

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

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

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

                                              Tuning

                                              This issue has a mass of 60.

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

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

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

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

                                              Refactorings

                                              Further Reading

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

                                              const SWB_OFFSET_1024_64 = new Uint16Array([
                                                    0,   4,   8,  12,  16,  20,  24,  28,
                                                   32,  36,  40,  44,  48,  52,  56,  64,
                                                   72,  80,  88, 100, 112, 124, 140, 156,
                                                  172, 192, 216, 240, 268, 304, 344, 384,
                                              Severity: Major
                                              Found in public/lib/modules/aurora.js/aac.js and 1 other location - About 1 hr to fix
                                              public/lib/modules/aurora.js/aac.js on lines 4358..4365

                                              Duplicated Code

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

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

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

                                              Tuning

                                              This issue has a mass of 60.

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

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

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

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

                                              Refactorings

                                              Further Reading

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

                                                          for (var i = 0; i < length; i++) {
                                                              overlap[i] = buf[length + i] * longWindows[length - 1 - i];
                                                          }
                                              Severity: Major
                                              Found in public/lib/modules/aurora.js/aac.js and 1 other location - About 1 hr to fix
                                              public/lib/modules/aurora.js/aac.js on lines 1081..1083

                                              Duplicated Code

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

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

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

                                              Tuning

                                              This issue has a mass of 60.

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

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

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

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

                                              Refactorings

                                              Further Reading

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

                                                          for (var i = 0; i < length; i++) {
                                                              output[i] = overlap[i] + (buf[i] * longWindowsPrev[i]);
                                                          }
                                              Severity: Major
                                              Found in public/lib/modules/aurora.js/aac.js and 1 other location - About 1 hr to fix
                                              public/lib/modules/aurora.js/aac.js on lines 1091..1093

                                              Duplicated Code

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

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

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

                                              Tuning

                                              This issue has a mass of 58.

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

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

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

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

                                              Refactorings

                                              Further Reading

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

                                                          for (var i = 0; i < length; i++) {
                                                              output[i] = overlap[i] + (buf[i] * longWindowsPrev[i]);
                                                          }
                                              Severity: Major
                                              Found in public/lib/modules/aurora.js/aac.js and 1 other location - About 1 hr to fix
                                              public/lib/modules/aurora.js/aac.js on lines 1076..1078

                                              Duplicated Code

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

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

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

                                              Tuning

                                              This issue has a mass of 58.

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

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

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

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

                                              Refactorings

                                              Further Reading

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

                                                  var t = 2 * Math.PI / len,
                                                      cosT = Math.cos(t),
                                                      sinT = Math.sin(t),
                                                      f = new Array(len);
                                              Severity: Minor
                                              Found in public/lib/modules/aurora.js/aac.js and 1 other location - About 55 mins to fix
                                              public/lib/modules/aurora.js/aac.js on lines 831..834

                                              Duplicated Code

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

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

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

                                              Tuning

                                              This issue has a mass of 54.

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

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

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

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

                                              Refactorings

                                              Further Reading

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

                                                  var t = 2 * Math.PI / len,
                                                      cosT = Math.cos(t),
                                                      sinT = Math.sin(t),
                                                      f = new Array(len);
                                              Severity: Minor
                                              Found in public/lib/modules/aurora.js/aac.js and 1 other location - About 55 mins to fix
                                              public/lib/modules/aurora.js/aac.js on lines 854..857

                                              Duplicated Code

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

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

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

                                              Tuning

                                              This issue has a mass of 54.

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

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

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

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

                                              Refactorings

                                              Further Reading

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

                                                      buf[k][1] = (tmp[1] * sincos[k][0]) + (tmp[0] * sincos[k][1]);
                                              Severity: Minor
                                              Found in public/lib/modules/aurora.js/aac.js and 1 other location - About 50 mins to fix
                                              public/lib/modules/aurora.js/aac.js on lines 3092..3092

                                              Duplicated Code

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

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

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

                                              Tuning

                                              This issue has a mass of 51.

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

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

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

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

                                              Refactorings

                                              Further Reading

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

                                                      buf[k][0] = (tmp[0] * sincos[k][0]) - (tmp[1] * sincos[k][1]);
                                              Severity: Minor
                                              Found in public/lib/modules/aurora.js/aac.js and 1 other location - About 50 mins to fix
                                              public/lib/modules/aurora.js/aac.js on lines 3091..3091

                                              Duplicated Code

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

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

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

                                              Tuning

                                              This issue has a mass of 51.

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

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

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

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

                                              Refactorings

                                              Further Reading

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

                                                      f[i][2] = f[i - 1][2] * cosT - f[i - 1][0] * sinT;
                                              Severity: Minor
                                              Found in public/lib/modules/aurora.js/aac.js and 1 other location - About 50 mins to fix
                                              public/lib/modules/aurora.js/aac.js on lines 868..868

                                              Duplicated Code

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

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

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

                                              Tuning

                                              This issue has a mass of 51.

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

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

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

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

                                              Refactorings

                                              Further Reading

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

                                                      f[i][0] = f[i - 1][0] * cosT + f[i - 1][2] * sinT;
                                              Severity: Minor
                                              Found in public/lib/modules/aurora.js/aac.js and 1 other location - About 50 mins to fix
                                              public/lib/modules/aurora.js/aac.js on lines 869..869

                                              Duplicated Code

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

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

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

                                              Tuning

                                              This issue has a mass of 51.

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

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

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

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

                                              Refactorings

                                              Further Reading

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

                                                                  zRe = input[i + j + k][0] * rootRe - input[i + j + k][1] * rootIm,
                                              Severity: Minor
                                              Found in public/lib/modules/aurora.js/aac.js and 1 other location - About 40 mins to fix
                                              public/lib/modules/aurora.js/aac.js on lines 954..954

                                              Duplicated Code

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

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

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

                                                                  zIm = input[i + j + k][0] * rootIm + input[i + j + k][1] * rootRe;
                                              Severity: Minor
                                              Found in public/lib/modules/aurora.js/aac.js and 1 other location - About 40 mins to fix
                                              public/lib/modules/aurora.js/aac.js on lines 953..953

                                              Duplicated Code

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

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

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

                                                      output[outOffset + N2 + N4 + 1 + 2 * k] = buf[N4 - 1 - k][0];
                                              Severity: Minor
                                              Found in public/lib/modules/aurora.js/aac.js and 1 other location - About 35 mins to fix
                                              public/lib/modules/aurora.js/aac.js on lines 3119..3119

                                              Duplicated Code

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

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

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

                                              Tuning

                                              This issue has a mass of 47.

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

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

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

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

                                              Refactorings

                                              Further Reading

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

                                                      output[outOffset + N2 + N4 + 3 + 2 * k] = buf[N4 - 2 - k][0];
                                              Severity: Minor
                                              Found in public/lib/modules/aurora.js/aac.js and 1 other location - About 35 mins to fix
                                              public/lib/modules/aurora.js/aac.js on lines 3118..3118

                                              Duplicated Code

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

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

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

                                              Tuning

                                              This issue has a mass of 47.

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

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

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

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

                                              Refactorings

                                              Further Reading

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

                                                      output[outOffset + N2 + 3 + 2 * k] = -buf[N8 - 2 - k][1];
                                              Severity: Major
                                              Found in public/lib/modules/aurora.js/aac.js and 3 other locations - About 30 mins to fix
                                              public/lib/modules/aurora.js/aac.js on lines 3106..3106
                                              public/lib/modules/aurora.js/aac.js on lines 3107..3107
                                              public/lib/modules/aurora.js/aac.js on lines 3112..3112

                                              Duplicated Code

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

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

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

                                                      output[outOffset + N4 + 3 + 2 * k] = -buf[N4 - 2 - k][1];
                                              Severity: Major
                                              Found in public/lib/modules/aurora.js/aac.js and 3 other locations - About 30 mins to fix
                                              public/lib/modules/aurora.js/aac.js on lines 3106..3106
                                              public/lib/modules/aurora.js/aac.js on lines 3112..3112
                                              public/lib/modules/aurora.js/aac.js on lines 3113..3113

                                              Duplicated Code

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

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

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

                                                      output[outOffset + N2 + 1 + 2 * k] = -buf[N8 - 1 - k][1];
                                              Severity: Major
                                              Found in public/lib/modules/aurora.js/aac.js and 3 other locations - About 30 mins to fix
                                              public/lib/modules/aurora.js/aac.js on lines 3106..3106
                                              public/lib/modules/aurora.js/aac.js on lines 3107..3107
                                              public/lib/modules/aurora.js/aac.js on lines 3113..3113

                                              Duplicated Code

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

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

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

                                                      output[outOffset + N4 + 1 + 2 * k] = -buf[N4 - 1 - k][1];
                                              Severity: Major
                                              Found in public/lib/modules/aurora.js/aac.js and 3 other locations - About 30 mins to fix
                                              public/lib/modules/aurora.js/aac.js on lines 3107..3107
                                              public/lib/modules/aurora.js/aac.js on lines 3112..3112
                                              public/lib/modules/aurora.js/aac.js on lines 3113..3113

                                              Duplicated Code

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

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

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