ampache/ampache

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

Summary

Maintainability
F
2 mos
Test Coverage

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

},{"./frame":4,"./header":5,"./tables":14,"./utils":15}],11:[function(require,module,exports){
(function (global){
var AV = (typeof window !== "undefined" ? window['AV'] : typeof global !== "undefined" ? global['AV'] : null);
var tables = require('./tables');
var MP3FrameHeader = require('./header');
Severity: Minor
Found in public/lib/modules/aurora.js/mp3.js - About 2 wks 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

File mp3.js has 3607 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){
exports.MP3Demuxer = require('./src/demuxer');
exports.MP3Decoder = require('./src/decoder');

},{"./src/decoder":2,"./src/demuxer":3}],2:[function(require,module,exports){
Severity: Major
Found in public/lib/modules/aurora.js/mp3.js - About 1 wk to fix

    Function 11 has 909 lines of code (exceeds 200 allowed). Consider refactoring.
    Open

    },{"./frame":4,"./header":5,"./tables":14,"./utils":15}],11:[function(require,module,exports){
    (function (global){
    var AV = (typeof window !== "undefined" ? window['AV'] : typeof global !== "undefined" ? global['AV'] : null);
    var tables = require('./tables');
    var MP3FrameHeader = require('./header');
    Severity: Major
    Found in public/lib/modules/aurora.js/mp3.js - About 3 days to fix

      Function 13 has 860 lines of code (exceeds 200 allowed). Consider refactoring.
      Open

      },{"./header":5}],13:[function(require,module,exports){
      var utils = require('./utils');
      
      function MP3Synth() {
          this.filter = utils.makeArray([2, 2, 2, 16, 8]); // polyphase filterbank outputs
      Severity: Major
      Found in public/lib/modules/aurora.js/mp3.js - About 3 days to fix

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

        },{"./header":5,"./utils":15}],5:[function(require,module,exports){
        (function (global){
        var AV = (typeof window !== "undefined" ? window['AV'] : typeof global !== "undefined" ? global['AV'] : null);
        
        function MP3FrameHeader() {
        Severity: Minor
        Found in public/lib/modules/aurora.js/mp3.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 10 has a Cognitive Complexity of 148 (exceeds 5 allowed). Consider refactoring.
        Open

        },{"./frame":4,"./header":5,"./tables":14,"./utils":15}],10:[function(require,module,exports){
        var tables = require('./tables');
        var MP3FrameHeader = require('./header');
        var MP3Frame = require('./frame');
        var utils = require('./utils');
        Severity: Minor
        Found in public/lib/modules/aurora.js/mp3.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 3 has a Cognitive Complexity of 139 (exceeds 5 allowed). Consider refactoring.
        Open

        },{"./frame":4,"./header":5,"./layer1":9,"./layer2":10,"./layer3":11,"./stream":12,"./synth":13}],3:[function(require,module,exports){
        (function (global){
        var AV = (typeof window !== "undefined" ? window['AV'] : typeof global !== "undefined" ? global['AV'] : null);
        var ID3v23Stream = require('./id3').ID3v23Stream;
        var ID3v22Stream = require('./id3').ID3v22Stream;
        Severity: Minor
        Found in public/lib/modules/aurora.js/mp3.js - About 2 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 a Cognitive Complexity of 100 (exceeds 5 allowed). Consider refactoring.
        Open

        },{}],7:[function(require,module,exports){
        (function (global){
        var AV = (typeof window !== "undefined" ? window['AV'] : typeof global !== "undefined" ? global['AV'] : null);
        
        const ENCODINGS = ['latin1', 'utf16-bom', 'utf16-be', 'utf8'];
        Severity: Minor
        Found in public/lib/modules/aurora.js/mp3.js - About 2 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 533 lines of code (exceeds 200 allowed). Consider refactoring.
        Open

        },{}],7:[function(require,module,exports){
        (function (global){
        var AV = (typeof window !== "undefined" ? window['AV'] : typeof global !== "undefined" ? global['AV'] : null);
        
        const ENCODINGS = ['latin1', 'utf16-bom', 'utf16-be', 'utf8'];
        Severity: Major
        Found in public/lib/modules/aurora.js/mp3.js - About 1 day to fix

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

          },{"./src/decoder":2,"./src/demuxer":3}],2:[function(require,module,exports){
          (function (global){
          var AV = (typeof window !== "undefined" ? window['AV'] : typeof global !== "undefined" ? global['AV'] : null);
          var MP3FrameHeader = require('./header');
          var MP3Stream = require('./stream');
          Severity: Minor
          Found in public/lib/modules/aurora.js/mp3.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 9 has a Cognitive Complexity of 66 (exceeds 5 allowed). Consider refactoring.
          Open

          },{}],9:[function(require,module,exports){
          var tables = require('./tables');
          var MP3FrameHeader = require('./header');
          var MP3Frame = require('./frame');
          var utils = require('./utils');
          Severity: Minor
          Found in public/lib/modules/aurora.js/mp3.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 12 has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring.
          Open

          },{"./frame":4,"./header":5,"./huffman":6,"./imdct":8,"./tables":14,"./utils":15}],12:[function(require,module,exports){
          (function (global){
          var AV = (typeof window !== "undefined" ? window['AV'] : typeof global !== "undefined" ? global['AV'] : null);
          var MP3FrameHeader = require('./header');
          
          
          Severity: Minor
          Found in public/lib/modules/aurora.js/mp3.js - About 3 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 14 has 245 lines of code (exceeds 200 allowed). Consider refactoring.
          Open

          },{"./utils":15}],14:[function(require,module,exports){
          /*
           * These are the scalefactor values for Layer I and Layer II.
           * The values are from Table B.1 of ISO/IEC 11172-3.
           *
          Severity: Major
          Found in public/lib/modules/aurora.js/mp3.js - About 2 hrs to fix

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

            },{}],8:[function(require,module,exports){
            function IMDCT() {
                this.tmp_imdct36 = new Float64Array(18);
                this.tmp_dctIV = new Float64Array(18);
                this.tmp_sdctII = new Float64Array(9);
            Severity: Minor
            Found in public/lib/modules/aurora.js/mp3.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/mp3.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 5 has 224 lines of code (exceeds 200 allowed). Consider refactoring.
            Open

            },{"./header":5,"./utils":15}],5:[function(require,module,exports){
            (function (global){
            var AV = (typeof window !== "undefined" ? window['AV'] : typeof global !== "undefined" ? global['AV'] : null);
            
            function MP3FrameHeader() {
            Severity: Major
            Found in public/lib/modules/aurora.js/mp3.js - About 1 hr to fix

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

              },{"./frame":4,"./header":5,"./tables":14,"./utils":15}],10:[function(require,module,exports){
              var tables = require('./tables');
              var MP3FrameHeader = require('./header');
              var MP3Frame = require('./frame');
              var utils = require('./utils');
              Severity: Major
              Found in public/lib/modules/aurora.js/mp3.js - About 1 hr to fix

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

                },{"./header":5}],13:[function(require,module,exports){
                var utils = require('./utils');
                
                function MP3Synth() {
                    this.filter = utils.makeArray([2, 2, 2, 16, 8]); // polyphase filterbank outputs
                Severity: Minor
                Found in public/lib/modules/aurora.js/mp3.js - About 55 mins 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 s = 0; s < 3; s++) {
                                        frame.sbsample[ch][3 * gr + s][sb] = this.samples[s] * scale;
                                    }
                Severity: Major
                Found in public/lib/modules/aurora.js/mp3.js - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                                      for (var s = 0; s < 3; s++) {
                                          frame.sbsample[ch][3 * gr + s][sb] = 0;
                                      }
                  Severity: Major
                  Found in public/lib/modules/aurora.js/mp3.js - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                        if (sb & 1)
                                            this.freqinver(sample, sb);
                    Severity: Major
                    Found in public/lib/modules/aurora.js/mp3.js - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                          if (sb & 1)
                                              this.freqinver(sample, sb);
                      Severity: Major
                      Found in public/lib/modules/aurora.js/mp3.js - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                            if (right_xr[i]) {
                                                max = bound[w] = sfbi;
                                                break;
                                            }
                        Severity: Major
                        Found in public/lib/modules/aurora.js/mp3.js - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                              if (right_xr[i]) {
                                                  bound = sfbi;
                                                  break;
                                              }
                          Severity: Major
                          Found in public/lib/modules/aurora.js/mp3.js - About 45 mins to fix

                            Avoid deeply nested control flow statements.
                            Open

                                                for (var s = 0; s < 3; s++) {
                                                    frame.sbsample[ch][3 * gr + s][sb] = this.samples[s] * scale;
                                                }
                            Severity: Major
                            Found in public/lib/modules/aurora.js/mp3.js - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                                  if (is_pos === 0) {
                                                      xr[1][l + i] = left;
                                                  } else {
                                                      var opposite = left * lsf_scale[(is_pos - 1) / 2];
                              
                              
                              Severity: Major
                              Found in public/lib/modules/aurora.js/mp3.js - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                                    for (var i = 0; i < n; ++i) {
                                                        if (right_xr[i]) {
                                                            lower = sfbi;
                                                            break;
                                                        }
                                Severity: Major
                                Found in public/lib/modules/aurora.js/mp3.js - About 45 mins to fix

                                  Avoid deeply nested control flow statements.
                                  Open

                                                      for (var s = 0; s < 3; s++) {
                                                          frame.sbsample[ch][3 * gr + s][sb] = 0;
                                                      }
                                  Severity: Major
                                  Found in public/lib/modules/aurora.js/mp3.js - About 45 mins to fix

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

                                    },{"./header":5,"./id3":7,"./stream":12}],4:[function(require,module,exports){
                                    var MP3FrameHeader = require('./header');
                                    var utils = require('./utils');
                                    
                                    function MP3Frame() {
                                    Severity: Minor
                                    Found in public/lib/modules/aurora.js/mp3.js - About 45 mins 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 memcpy has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                    Layer3.prototype.memcpy = function(dst, dstOffset, pSrc, srcOffset, length) {
                                    Severity: Minor
                                    Found in public/lib/modules/aurora.js/mp3.js - About 35 mins to fix

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

                                      Layer3.prototype.stereo = function(xr, granules, gr, header, sfbwidth) {
                                      Severity: Minor
                                      Found in public/lib/modules/aurora.js/mp3.js - About 35 mins to fix

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

                                        var huffquad_V = function (v, w, x, y, hlen) {
                                        Severity: Minor
                                        Found in public/lib/modules/aurora.js/mp3.js - About 35 mins to fix

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

                                          Layer3.prototype.huffmanDecode = function(stream, xr, channel, sfbwidth, part2_length) {
                                          Severity: Minor
                                          Found in public/lib/modules/aurora.js/mp3.js - About 35 mins to fix

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

                                            },{}],15:[function(require,module,exports){
                                            /**
                                             * Makes a multidimensional array
                                             */
                                            exports.makeArray = function(lengths, Type) {
                                            Severity: Minor
                                            Found in public/lib/modules/aurora.js/mp3.js - About 25 mins 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

                                            TODO found
                                            Open

                                                        tempoData: 'binary' // TODO
                                            Severity: Minor
                                            Found in public/lib/modules/aurora.js/mp3.js by fixme

                                            TODO found
                                            Open

                                                        position: 'binary' // TODO
                                            Severity: Minor
                                            Found in public/lib/modules/aurora.js/mp3.js by fixme

                                            TODO found
                                            Open

                                                    // TODO: crc check
                                            Severity: Minor
                                            Found in public/lib/modules/aurora.js/mp3.js by fixme

                                            TODO found
                                            Open

                                                        data: 'binary' // TODO
                                            Severity: Minor
                                            Found in public/lib/modules/aurora.js/mp3.js by fixme

                                            TODO found
                                            Open

                                                        data: 'binary'  // TODO
                                            Severity: Minor
                                            Found in public/lib/modules/aurora.js/mp3.js by fixme

                                            TODO found
                                            Open

                                                        data: 'binary' // TODO
                                            Severity: Minor
                                            Found in public/lib/modules/aurora.js/mp3.js by fixme

                                            TODO found
                                            Open

                                                    // TODO: crc check
                                            Severity: Minor
                                            Found in public/lib/modules/aurora.js/mp3.js by fixme

                                            TODO found
                                            Open

                                                        data: 'binary' // TODO
                                            Severity: Minor
                                            Found in public/lib/modules/aurora.js/mp3.js by fixme

                                            TODO found
                                            Open

                                                        data: 'binary' // TODO
                                            Severity: Minor
                                            Found in public/lib/modules/aurora.js/mp3.js by fixme

                                            TODO found
                                            Open

                                                        data: 'binary' // TODO stringlist?
                                            Severity: Minor
                                            Found in public/lib/modules/aurora.js/mp3.js by fixme

                                            TODO found
                                            Open

                                                        data: 'binary' // TODO
                                            Severity: Minor
                                            Found in public/lib/modules/aurora.js/mp3.js by fixme

                                            TODO found
                                            Open

                                                        data: 'binary' // TODO
                                            Severity: Minor
                                            Found in public/lib/modules/aurora.js/mp3.js by fixme

                                            TODO found
                                            Open

                                                    // TODO: crc check
                                            Severity: Minor
                                            Found in public/lib/modules/aurora.js/mp3.js by fixme

                                            TODO found
                                            Open

                                            // TODO: synth.half()
                                            Severity: Minor
                                            Found in public/lib/modules/aurora.js/mp3.js by fixme

                                            TODO found
                                            Open

                                                        data: 'binary' // TODO
                                            Severity: Minor
                                            Found in public/lib/modules/aurora.js/mp3.js by fixme

                                            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){
                                            exports.MP3Demuxer = require('./src/demuxer');
                                            exports.MP3Decoder = require('./src/decoder');
                                            
                                            },{"./src/decoder":2,"./src/demuxer":3}],2:[function(require,module,exports){
                                            Severity: Major
                                            Found in public/lib/modules/aurora.js/mp3.js and 3 other locations - About 1 day to fix
                                            public/lib/modules/aurora.js/aac.js on lines 1..4652
                                            public/lib/modules/aurora.js/alac.js on lines 1..722
                                            public/lib/modules/aurora.js/flac.js on lines 1..790

                                            Duplicated Code

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

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

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

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

                                                        lo = X[Xptr + 0] * IMDCT.S[sptr][0] +
                                                             X[Xptr + 1] * IMDCT.S[sptr][1] +
                                                             X[Xptr + 2] * IMDCT.S[sptr][2] +
                                                             X[Xptr + 3] * IMDCT.S[sptr][3] +
                                                             X[Xptr + 4] * IMDCT.S[sptr][4] +
                                            Severity: Major
                                            Found in public/lib/modules/aurora.js/mp3.js and 1 other location - About 6 hrs to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 6066..6071

                                            Duplicated Code

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

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

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

                                            Tuning

                                            This issue has a mass of 171.

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

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

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

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

                                            Refactorings

                                            Further Reading

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

                                                        lo = X[Xptr + 0] * IMDCT.S[sptr][0] +
                                                             X[Xptr + 1] * IMDCT.S[sptr][1] +
                                                             X[Xptr + 2] * IMDCT.S[sptr][2] +
                                                             X[Xptr + 3] * IMDCT.S[sptr][3] +
                                                             X[Xptr + 4] * IMDCT.S[sptr][4] +
                                            Severity: Major
                                            Found in public/lib/modules/aurora.js/mp3.js and 1 other location - About 6 hrs to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 6053..6058

                                            Duplicated Code

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

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

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

                                            Tuning

                                            This issue has a mass of 171.

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

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

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

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

                                            Refactorings

                                            Further Reading

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

                                            const hufftab3 = [
                                              /* 000  */ PTR(8, 3),
                                              /* 001  */ V(1, 0, 3),
                                              /* 010  */ V(1, 1, 2),
                                              /* 011  */ V(1, 1, 2),
                                            Severity: Major
                                            Found in public/lib/modules/aurora.js/mp3.js and 1 other location - About 5 hrs to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 809..828

                                            Duplicated Code

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

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

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

                                            Tuning

                                            This issue has a mass of 153.

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

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

                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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 hufftab2 = [
                                              /* 000  */ PTR(8, 3),
                                              /* 001  */ V(1, 1, 3),
                                              /* 010  */ V(0, 1, 3),
                                              /* 011  */ V(1, 0, 3),
                                            Severity: Major
                                            Found in public/lib/modules/aurora.js/mp3.js and 1 other location - About 5 hrs to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 830..849

                                            Duplicated Code

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

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

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

                                            Tuning

                                            This issue has a mass of 153.

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

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

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

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

                                            Refactorings

                                            Further Reading

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

                                                    if (scfsi & 0x8) {
                                                        for (var sfbi = 0; sfbi < 6; ++sfbi)
                                                            channel.scalefac[sfbi] = gr0ch.scalefac[sfbi];
                                                    } else {
                                                        for (var sfbi = 0; sfbi < 6; ++sfbi)
                                            Severity: Major
                                            Found in public/lib/modules/aurora.js/mp3.js and 3 other locations - About 3 hrs to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 5356..5362
                                            public/lib/modules/aurora.js/mp3.js on lines 5364..5370
                                            public/lib/modules/aurora.js/mp3.js on lines 5372..5378

                                            Duplicated Code

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

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

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

                                            Tuning

                                            This issue has a mass of 101.

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

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

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

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

                                            Refactorings

                                            Further Reading

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

                                                    if (scfsi & 0x4) {
                                                        for (var sfbi = 6; sfbi < 11; ++sfbi)
                                                            channel.scalefac[sfbi] = gr0ch.scalefac[sfbi];
                                                    } else {
                                                        for (var sfbi = 6; sfbi < 11; ++sfbi)
                                            Severity: Major
                                            Found in public/lib/modules/aurora.js/mp3.js and 3 other locations - About 3 hrs to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 5348..5354
                                            public/lib/modules/aurora.js/mp3.js on lines 5364..5370
                                            public/lib/modules/aurora.js/mp3.js on lines 5372..5378

                                            Duplicated Code

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

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

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

                                            Tuning

                                            This issue has a mass of 101.

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

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

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

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

                                            Refactorings

                                            Further Reading

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

                                                    if (scfsi & 0x1) {
                                                        for (var sfbi = 16; sfbi < 21; ++sfbi)
                                                            channel.scalefac[sfbi] = gr0ch.scalefac[sfbi];
                                                    } else {
                                                        for (var sfbi = 16; sfbi < 21; ++sfbi)
                                            Severity: Major
                                            Found in public/lib/modules/aurora.js/mp3.js and 3 other locations - About 3 hrs to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 5348..5354
                                            public/lib/modules/aurora.js/mp3.js on lines 5356..5362
                                            public/lib/modules/aurora.js/mp3.js on lines 5364..5370

                                            Duplicated Code

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

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

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

                                            Tuning

                                            This issue has a mass of 101.

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

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

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

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

                                            Refactorings

                                            Further Reading

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

                                                    if (scfsi & 0x2) {
                                                        for (var sfbi = 11; sfbi < 16; ++sfbi)
                                                            channel.scalefac[sfbi] = gr0ch.scalefac[sfbi];
                                                    } else {
                                                        for (var sfbi = 11; sfbi < 16; ++sfbi)
                                            Severity: Major
                                            Found in public/lib/modules/aurora.js/mp3.js and 3 other locations - About 3 hrs to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 5348..5354
                                            public/lib/modules/aurora.js/mp3.js on lines 5356..5362
                                            public/lib/modules/aurora.js/mp3.js on lines 5372..5378

                                            Duplicated Code

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

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

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

                                            Tuning

                                            This issue has a mass of 101.

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

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

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

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

                                            Refactorings

                                            Further Reading

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

                                                    } else if (scalefac_compress < 244) {
                                                        scalefac_compress -= 180;
                                            
                                                        slen[0] = (scalefac_compress % 64) >>> 4;
                                                        slen[1] = (scalefac_compress % 16) >>> 2;
                                            Severity: Major
                                            Found in public/lib/modules/aurora.js/mp3.js and 1 other location - About 2 hrs to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 5401..5420

                                            Duplicated Code

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

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

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

                                            Tuning

                                            This issue has a mass of 94.

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

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

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

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

                                            Refactorings

                                            Further Reading

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

                                                    } else if (scalefac_compress < 500) {
                                                        scalefac_compress -= 400;
                                            
                                                        slen[0] = (scalefac_compress >>> 2) / 5;
                                                        slen[1] = (scalefac_compress >>> 2) % 5;
                                            Severity: Major
                                            Found in public/lib/modules/aurora.js/mp3.js and 1 other location - About 2 hrs to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 5442..5460

                                            Duplicated Code

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

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

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

                                            Tuning

                                            This issue has a mass of 94.

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

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

                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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 (xrptr === sfbound) {
                                                        sfbound += sfbwidth[sfbwidthptr++];
                                            
                                                        if (exp !== exponents[expptr]) {
                                                            exp = exponents[expptr];
                                            Severity: Major
                                            Found in public/lib/modules/aurora.js/mp3.js and 1 other location - About 1 hr to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 5723..5732

                                            Duplicated Code

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

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

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

                                            Tuning

                                            This issue has a mass of 73.

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

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

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

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

                                            Refactorings

                                            Further Reading

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

                                                    if (xrptr === sfbound) {
                                                        sfbound += sfbwidth[sfbwidthptr++];
                                            
                                                        if (exp !== exponents[expptr]) {
                                                            exp = exponents[expptr];
                                            Severity: Major
                                            Found in public/lib/modules/aurora.js/mp3.js and 1 other location - About 1 hr to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 5705..5714

                                            Duplicated Code

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

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

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

                                            Tuning

                                            This issue has a mass of 73.

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

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

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

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

                                            Refactorings

                                            Further Reading

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

                                                    lo = y[yptr + 0 + 6] * tables.WINDOW_S[wptr + 6] +
                                                         y[yptr + 12 + 0] * tables.WINDOW_S[wptr + 0];
                                            Severity: Major
                                            Found in public/lib/modules/aurora.js/mp3.js and 1 other location - About 1 hr to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 6096..6097

                                            Duplicated Code

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

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

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

                                            Tuning

                                            This issue has a mass of 67.

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

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

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

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

                                            Refactorings

                                            Further Reading

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

                                                    lo = y[yptr + 12 + 6] * tables.WINDOW_S[wptr + 6] +
                                                         y[yptr + 24 + 0] * tables.WINDOW_S[wptr + 0];
                                            Severity: Major
                                            Found in public/lib/modules/aurora.js/mp3.js and 1 other location - About 1 hr to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 6091..6092

                                            Duplicated Code

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

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

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

                                            Tuning

                                            This issue has a mass of 67.

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

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

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

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

                                            Refactorings

                                            Further Reading

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

                                                    for (var k = 0; k < len; k++) {
                                                        for (var i = 0; i < channels; i++) {
                                                            output[j++] = data[i][k];
                                                        }
                                                    }
                                            Severity: Major
                                            Found in public/lib/modules/aurora.js/mp3.js and 1 other location - About 1 hr to fix
                                            public/lib/modules/aurora.js/flac.js on lines 160..164

                                            Duplicated Code

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

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

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

                                            Tuning

                                            This issue has a mass of 67.

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

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

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

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

                                            Refactorings

                                            Further Reading

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

                                                                for (var s = 0; s < 3; s++) {
                                                                    frame.sbsample[ch][3 * gr + s][sb] = this.samples[s] * scale;
                                                                }
                                            Severity: Major
                                            Found in public/lib/modules/aurora.js/mp3.js and 1 other location - About 1 hr to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 4891..4893

                                            Duplicated Code

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

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

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

                                            Tuning

                                            This issue has a mass of 66.

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

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

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

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

                                            Refactorings

                                            Further Reading

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

                                                                for (var s = 0; s < 3; s++) {
                                                                    frame.sbsample[ch][3 * gr + s][sb] = this.samples[s] * scale;
                                                                }
                                            Severity: Major
                                            Found in public/lib/modules/aurora.js/mp3.js and 1 other location - About 1 hr to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 4872..4874

                                            Duplicated Code

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

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

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

                                            Tuning

                                            This issue has a mass of 66.

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

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

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

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

                                            Refactorings

                                            Further Reading

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

                                                [ -0.000076294,   /* 15 */
                                                  -0.001480103,
                                                  0.002487183,
                                                  -0.022857666,
                                                  0.002822876,
                                            Severity: Major
                                            Found in public/lib/modules/aurora.js/mp3.js and 4 other locations - About 1 hr to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 6987..7019
                                            public/lib/modules/aurora.js/mp3.js on lines 7021..7053
                                            public/lib/modules/aurora.js/mp3.js on lines 7055..7087
                                            public/lib/modules/aurora.js/mp3.js on lines 7089..7121

                                            Duplicated Code

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

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

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

                                            Tuning

                                            This issue has a mass of 64.

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

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

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

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

                                            Refactorings

                                            Further Reading

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

                                                [ -0.000061035,   /* 13 */
                                                  -0.001296997,
                                                  0.002883911,
                                                  -0.020690918,
                                                  0.009231567,
                                            Severity: Major
                                            Found in public/lib/modules/aurora.js/mp3.js and 4 other locations - About 1 hr to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 6987..7019
                                            public/lib/modules/aurora.js/mp3.js on lines 7021..7053
                                            public/lib/modules/aurora.js/mp3.js on lines 7089..7121
                                            public/lib/modules/aurora.js/mp3.js on lines 7123..7155

                                            Duplicated Code

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

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

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

                                            Tuning

                                            This issue has a mass of 64.

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

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

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

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

                                            Refactorings

                                            Further Reading

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

                                                [ -0.000061035,   /* 14 */
                                                  -0.001388550,
                                                  0.002700806,
                                                  -0.021789551,
                                                  0.006134033,
                                            Severity: Major
                                            Found in public/lib/modules/aurora.js/mp3.js and 4 other locations - About 1 hr to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 6987..7019
                                            public/lib/modules/aurora.js/mp3.js on lines 7021..7053
                                            public/lib/modules/aurora.js/mp3.js on lines 7055..7087
                                            public/lib/modules/aurora.js/mp3.js on lines 7123..7155

                                            Duplicated Code

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

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

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

                                            Tuning

                                            This issue has a mass of 64.

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

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

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

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

                                            Refactorings

                                            Further Reading

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

                                                [ -0.000045776,   /* 11 */
                                                  -0.001113892,
                                                  0.003173828,
                                                  -0.018463135,
                                                  0.014801025,
                                            Severity: Major
                                            Found in public/lib/modules/aurora.js/mp3.js and 4 other locations - About 1 hr to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 7021..7053
                                            public/lib/modules/aurora.js/mp3.js on lines 7055..7087
                                            public/lib/modules/aurora.js/mp3.js on lines 7089..7121
                                            public/lib/modules/aurora.js/mp3.js on lines 7123..7155

                                            Duplicated Code

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

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

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

                                            Tuning

                                            This issue has a mass of 64.

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

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

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

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

                                            Refactorings

                                            Further Reading

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

                                                [ -0.000045776,   /* 12 */
                                                  -0.001205444,
                                                  0.003051758,
                                                  -0.019577026,
                                                  0.012115479,
                                            Severity: Major
                                            Found in public/lib/modules/aurora.js/mp3.js and 4 other locations - About 1 hr to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 6987..7019
                                            public/lib/modules/aurora.js/mp3.js on lines 7055..7087
                                            public/lib/modules/aurora.js/mp3.js on lines 7089..7121
                                            public/lib/modules/aurora.js/mp3.js on lines 7123..7155

                                            Duplicated Code

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

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

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

                                            Tuning

                                            This issue has a mass of 64.

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

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

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

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

                                            Refactorings

                                            Further Reading

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

                                                             if (reqhits & (1 << value))
                                                                 requantized = reqcache[value];
                                                             else {
                                                                 reqhits |= (1 << value);
                                                                 requantized = reqcache[value] = this.requantize(value, exp);
                                            Severity: Major
                                            Found in public/lib/modules/aurora.js/mp3.js and 1 other location - About 1 hr to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 5667..5672

                                            Duplicated Code

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

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

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

                                            Tuning

                                            This issue has a mass of 62.

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

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

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

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

                                            Refactorings

                                            Further Reading

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

                                                             if (reqhits & (1 << value))
                                                                 requantized = reqcache[value];
                                                             else {
                                                                 reqhits |= (1 << value);
                                                                 requantized = reqcache[value] = this.requantize(value, exp);
                                            Severity: Major
                                            Found in public/lib/modules/aurora.js/mp3.js and 1 other location - About 1 hr to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 5652..5657

                                            Duplicated Code

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

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

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

                                            Tuning

                                            This issue has a mass of 62.

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

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

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

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

                                            Refactorings

                                            Further Reading

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

                                                if (header.mode === MP3FrameHeader.MODE.JOINT_STEREO) {
                                                    header.flags |= MP3FrameHeader.FLAGS.I_STEREO;
                                                    bound = 4 + header.mode_extension * 4;
                                                }
                                            Severity: Major
                                            Found in public/lib/modules/aurora.js/mp3.js and 1 other location - About 1 hr to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 4576..4579

                                            Duplicated Code

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

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

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

                                            Tuning

                                            This issue has a mass of 61.

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

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

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

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

                                            Refactorings

                                            Further Reading

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

                                                if (header.mode === MP3FrameHeader.MODE.JOINT_STEREO) {
                                                    header.flags |= MP3FrameHeader.FLAGS.I_STEREO;
                                                    bound = 4 + header.mode_extension * 4;
                                                }
                                            Severity: Major
                                            Found in public/lib/modules/aurora.js/mp3.js and 1 other location - About 1 hr to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 4791..4794

                                            Duplicated Code

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

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

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

                                            Tuning

                                            This issue has a mass of 61.

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

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

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

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

                                            Refactorings

                                            Further Reading

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

                                                [ -0.000030518,   /* 10 */
                                                  -0.001037598,
                                                  0.003280640,
                                                  -0.017349243,
                                                  0.017257690,
                                            Severity: Major
                                            Found in public/lib/modules/aurora.js/mp3.js and 1 other location - About 1 hr to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 6919..6951

                                            Duplicated Code

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

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

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

                                                [ -0.000030518,   /*  9 */
                                                  -0.000961304,
                                                  0.003372192,
                                                  -0.016235352,
                                                  0.019531250,
                                            Severity: Major
                                            Found in public/lib/modules/aurora.js/mp3.js and 1 other location - About 1 hr to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 6953..6985

                                            Duplicated Code

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

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

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

                                                            } else {
                                                                for (var s = 0; s < 3; s++) {
                                                                    frame.sbsample[ch][3 * gr + s][sb] = 0;
                                                                }
                                                            }
                                            Severity: Major
                                            Found in public/lib/modules/aurora.js/mp3.js and 1 other location - About 1 hr to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 4896..4900

                                            Duplicated Code

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

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

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

                                            Tuning

                                            This issue has a mass of 57.

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

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

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

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

                                            Refactorings

                                            Further Reading

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

                                                            for (var ch = 0; ch < nch; ch++) {
                                                                for (var s = 0; s < 3; s++) {
                                                                    frame.sbsample[ch][3 * gr + s][sb] = 0;
                                                                }
                                                            }
                                            Severity: Major
                                            Found in public/lib/modules/aurora.js/mp3.js and 1 other location - About 1 hr to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 4875..4879

                                            Duplicated Code

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

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

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

                                            Tuning

                                            This issue has a mass of 57.

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

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

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

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

                                            Refactorings

                                            Further Reading

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

                                                [ -0.000015259,   /*  2 */
                                                  -0.000534058,
                                                  0.003387451,
                                                  -0.008865356,
                                                  0.029785156,
                                            Severity: Major
                                            Found in public/lib/modules/aurora.js/mp3.js and 7 other locations - About 1 hr to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 6647..6679
                                            public/lib/modules/aurora.js/mp3.js on lines 6715..6747
                                            public/lib/modules/aurora.js/mp3.js on lines 6749..6781
                                            public/lib/modules/aurora.js/mp3.js on lines 6783..6815
                                            public/lib/modules/aurora.js/mp3.js on lines 6817..6849
                                            public/lib/modules/aurora.js/mp3.js on lines 6851..6883
                                            public/lib/modules/aurora.js/mp3.js on lines 6885..6917

                                            Duplicated Code

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

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

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

                                            Tuning

                                            This issue has a mass of 56.

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

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

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

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

                                            Refactorings

                                            Further Reading

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

                                                [ -0.000015259,   /*  4 */
                                                  -0.000625610,
                                                  0.003463745,
                                                  -0.010848999,
                                                  0.027801514,
                                            Severity: Major
                                            Found in public/lib/modules/aurora.js/mp3.js and 7 other locations - About 1 hr to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 6647..6679
                                            public/lib/modules/aurora.js/mp3.js on lines 6681..6713
                                            public/lib/modules/aurora.js/mp3.js on lines 6715..6747
                                            public/lib/modules/aurora.js/mp3.js on lines 6783..6815
                                            public/lib/modules/aurora.js/mp3.js on lines 6817..6849
                                            public/lib/modules/aurora.js/mp3.js on lines 6851..6883
                                            public/lib/modules/aurora.js/mp3.js on lines 6885..6917

                                            Duplicated Code

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

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

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

                                            Tuning

                                            This issue has a mass of 56.

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

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

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

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

                                            Refactorings

                                            Further Reading

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

                                                [ -0.000030518,   /*  7 */
                                                  -0.000808716,
                                                  0.003463745,
                                                  -0.014022827,
                                                  0.023422241,
                                            Severity: Major
                                            Found in public/lib/modules/aurora.js/mp3.js and 7 other locations - About 1 hr to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 6647..6679
                                            public/lib/modules/aurora.js/mp3.js on lines 6681..6713
                                            public/lib/modules/aurora.js/mp3.js on lines 6715..6747
                                            public/lib/modules/aurora.js/mp3.js on lines 6749..6781
                                            public/lib/modules/aurora.js/mp3.js on lines 6783..6815
                                            public/lib/modules/aurora.js/mp3.js on lines 6817..6849
                                            public/lib/modules/aurora.js/mp3.js on lines 6885..6917

                                            Duplicated Code

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

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

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

                                            Tuning

                                            This issue has a mass of 56.

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

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

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

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

                                            Refactorings

                                            Further Reading

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

                                                [ -0.000030518,   /*  8 */
                                                  -0.000885010,
                                                  0.003417969,
                                                  -0.015121460,
                                                  0.021575928,
                                            Severity: Major
                                            Found in public/lib/modules/aurora.js/mp3.js and 7 other locations - About 1 hr to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 6647..6679
                                            public/lib/modules/aurora.js/mp3.js on lines 6681..6713
                                            public/lib/modules/aurora.js/mp3.js on lines 6715..6747
                                            public/lib/modules/aurora.js/mp3.js on lines 6749..6781
                                            public/lib/modules/aurora.js/mp3.js on lines 6783..6815
                                            public/lib/modules/aurora.js/mp3.js on lines 6817..6849
                                            public/lib/modules/aurora.js/mp3.js on lines 6851..6883

                                            Duplicated Code

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

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

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

                                            Tuning

                                            This issue has a mass of 56.

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

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

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

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

                                            Refactorings

                                            Further Reading

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

                                                [ -0.000015259,   /*  1 */
                                                  -0.000473022,
                                                  0.003326416,
                                                  -0.007919312,
                                                  0.030517578,
                                            Severity: Major
                                            Found in public/lib/modules/aurora.js/mp3.js and 7 other locations - About 1 hr to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 6681..6713
                                            public/lib/modules/aurora.js/mp3.js on lines 6715..6747
                                            public/lib/modules/aurora.js/mp3.js on lines 6749..6781
                                            public/lib/modules/aurora.js/mp3.js on lines 6783..6815
                                            public/lib/modules/aurora.js/mp3.js on lines 6817..6849
                                            public/lib/modules/aurora.js/mp3.js on lines 6851..6883
                                            public/lib/modules/aurora.js/mp3.js on lines 6885..6917

                                            Duplicated Code

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

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

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

                                            Tuning

                                            This issue has a mass of 56.

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

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

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

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

                                            Refactorings

                                            Further Reading

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

                                                [ -0.000015259,   /*  3 */
                                                  -0.000579834,
                                                  0.003433228,
                                                  -0.009841919,
                                                  0.028884888,
                                            Severity: Major
                                            Found in public/lib/modules/aurora.js/mp3.js and 7 other locations - About 1 hr to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 6647..6679
                                            public/lib/modules/aurora.js/mp3.js on lines 6681..6713
                                            public/lib/modules/aurora.js/mp3.js on lines 6749..6781
                                            public/lib/modules/aurora.js/mp3.js on lines 6783..6815
                                            public/lib/modules/aurora.js/mp3.js on lines 6817..6849
                                            public/lib/modules/aurora.js/mp3.js on lines 6851..6883
                                            public/lib/modules/aurora.js/mp3.js on lines 6885..6917

                                            Duplicated Code

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

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

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

                                            Tuning

                                            This issue has a mass of 56.

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

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

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

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

                                            Refactorings

                                            Further Reading

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

                                                [ -0.000015259,   /*  5 */
                                                  -0.000686646,
                                                  0.003479004,
                                                  -0.011886597,
                                                  0.026535034,
                                            Severity: Major
                                            Found in public/lib/modules/aurora.js/mp3.js and 7 other locations - About 1 hr to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 6647..6679
                                            public/lib/modules/aurora.js/mp3.js on lines 6681..6713
                                            public/lib/modules/aurora.js/mp3.js on lines 6715..6747
                                            public/lib/modules/aurora.js/mp3.js on lines 6749..6781
                                            public/lib/modules/aurora.js/mp3.js on lines 6817..6849
                                            public/lib/modules/aurora.js/mp3.js on lines 6851..6883
                                            public/lib/modules/aurora.js/mp3.js on lines 6885..6917

                                            Duplicated Code

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

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

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

                                            Tuning

                                            This issue has a mass of 56.

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

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

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

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

                                            Refactorings

                                            Further Reading

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

                                                [ -0.000015259,   /*  6 */
                                                  -0.000747681,
                                                  0.003479004,
                                                  -0.012939453,
                                                  0.025085449,
                                            Severity: Major
                                            Found in public/lib/modules/aurora.js/mp3.js and 7 other locations - About 1 hr to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 6647..6679
                                            public/lib/modules/aurora.js/mp3.js on lines 6681..6713
                                            public/lib/modules/aurora.js/mp3.js on lines 6715..6747
                                            public/lib/modules/aurora.js/mp3.js on lines 6749..6781
                                            public/lib/modules/aurora.js/mp3.js on lines 6783..6815
                                            public/lib/modules/aurora.js/mp3.js on lines 6851..6883
                                            public/lib/modules/aurora.js/mp3.js on lines 6885..6917

                                            Duplicated Code

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

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

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

                                            Tuning

                                            This issue has a mass of 56.

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

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

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

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

                                            Refactorings

                                            Further Reading

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

                                            const SFB_48000_MIXED = new Uint8Array([
                                                /* long */   4,  4,  4,  4,  4,  4,  6,  6,
                                                /* short */  4,  4,  4,  6,  6,  6,  6,  6,  6, 10,
                                                10, 10, 12, 12, 12, 14, 14, 14, 16, 16,
                                                16, 20, 20, 20, 26, 26, 26, 66, 66, 66
                                            Severity: Minor
                                            Found in public/lib/modules/aurora.js/mp3.js and 1 other location - About 55 mins to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 7425..7430

                                            Duplicated Code

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

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

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

                                            const SFB_44100_MIXED = new Uint8Array([
                                                /* long */   4,  4,  4,  4,  4,  4,  6,  6,
                                                /* short */  4,  4,  4,  6,  6,  6,  8,  8,  8, 10,
                                                10, 10, 12, 12, 12, 14, 14, 14, 18, 18,
                                                18, 22, 22, 22, 30, 30, 30, 56, 56, 56
                                            Severity: Minor
                                            Found in public/lib/modules/aurora.js/mp3.js and 1 other location - About 55 mins to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 7418..7423

                                            Duplicated Code

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

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

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

                                            Tuning

                                            This issue has a mass of 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

                                                    xr[xrptr + 1] = quad.value.y ? (((bitcache) & (1 << ((cachesz--) - 1))) ? -requantized : requantized) : 0;
                                            Severity: Minor
                                            Found in public/lib/modules/aurora.js/mp3.js and 1 other location - About 55 mins to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 5720..5720

                                            Duplicated Code

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

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

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

                                            Tuning

                                            This issue has a mass of 53.

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

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

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

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

                                            Refactorings

                                            Further Reading

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

                                                    xr[xrptr + 1] = quad.value.w ? (((bitcache) & (1 << ((cachesz--) - 1))) ? -requantized : requantized) : 0;
                                            Severity: Minor
                                            Found in public/lib/modules/aurora.js/mp3.js and 1 other location - About 55 mins to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 5738..5738

                                            Duplicated Code

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

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

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

                                            Tuning

                                            This issue has a mass of 53.

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

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

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

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

                                            Refactorings

                                            Further Reading

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

                                            const SFB_22050_MIXED = new Uint8Array([
                                              /* long */   6,  6,  6,  6,  6,  6,
                                              /* short */  6,  6,  6,  6,  6,  6,  8,  8,  8, 10,
                                                          10, 10, 14, 14, 14, 18, 18, 18, 26, 26,
                                                          26, 32, 32, 32, 42, 42, 42, 18, 18, 18
                                            Severity: Minor
                                            Found in public/lib/modules/aurora.js/mp3.js and 1 other location - About 50 mins to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 7473..7478

                                            Duplicated Code

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

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

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

                                            Tuning

                                            This issue has a mass of 52.

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

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

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

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

                                            Refactorings

                                            Further Reading

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

                                                                 if (cachesz < linbits + 2) {
                                                                     bitcache   = (bitcache << 16) | peek.read(16);
                                                                     cachesz   += 16;
                                                                     bits_left -= 16;
                                                                 }
                                            Severity: Minor
                                            Found in public/lib/modules/aurora.js/mp3.js and 1 other location - About 50 mins to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 5617..5621

                                            Duplicated Code

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

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

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

                                            Tuning

                                            This issue has a mass of 52.

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

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

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

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

                                            Refactorings

                                            Further Reading

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

                                                                 if (cachesz < linbits + 1) {
                                                                     bitcache   = (bitcache << 16) | peek.read(16);
                                                                     cachesz   += 16;
                                                                     bits_left -= 16;
                                                                 }
                                            Severity: Minor
                                            Found in public/lib/modules/aurora.js/mp3.js and 1 other location - About 50 mins to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 5580..5584

                                            Duplicated Code

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

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

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

                                            Tuning

                                            This issue has a mass of 52.

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

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

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

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

                                            Refactorings

                                            Further Reading

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

                                            const SFB_24000_MIXED = new Uint8Array([
                                              /* long */   6,  6,  6,  6,  6,  6,
                                              /* short */  6,  6,  6,  8,  8,  8, 10, 10, 10, 12,
                                                          12, 12, 14, 14, 14, 18, 18, 18, 24, 24,
                                                          24, 32, 32, 32, 44, 44, 44, 12, 12, 12
                                            Severity: Minor
                                            Found in public/lib/modules/aurora.js/mp3.js and 1 other location - About 50 mins to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 7480..7485

                                            Duplicated Code

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

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

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

                                            Tuning

                                            This issue has a mass of 52.

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

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

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

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

                                            Refactorings

                                            Further Reading

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

                                            const SFB_16000_SHORT = new Uint8Array([
                                               4,  4,  4,  4,  4,  4,  4,  4,  4,  6,  6,  6,  8,
                                               8,  8, 10, 10, 10, 12, 12, 12, 14, 14, 14, 18, 18,
                                              18, 24, 24, 24, 30, 30, 30, 40, 40, 40, 18, 18, 18
                                            ]);
                                            Severity: Major
                                            Found in public/lib/modules/aurora.js/mp3.js and 6 other locations - About 50 mins to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 7400..7404
                                            public/lib/modules/aurora.js/mp3.js on lines 7406..7410
                                            public/lib/modules/aurora.js/mp3.js on lines 7412..7416
                                            public/lib/modules/aurora.js/mp3.js on lines 7455..7459
                                            public/lib/modules/aurora.js/mp3.js on lines 7461..7465
                                            public/lib/modules/aurora.js/mp3.js on lines 7509..7513

                                            Duplicated Code

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

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

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

                                            const SFB_32000_SHORT = new Uint8Array([
                                                4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  6,
                                                6,  6,  8,  8,  8, 12, 12, 12, 16, 16, 16, 20, 20,
                                                20, 26, 26, 26, 34, 34, 34, 42, 42, 42, 12, 12, 12
                                            ]);
                                            Severity: Major
                                            Found in public/lib/modules/aurora.js/mp3.js and 6 other locations - About 50 mins to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 7400..7404
                                            public/lib/modules/aurora.js/mp3.js on lines 7406..7410
                                            public/lib/modules/aurora.js/mp3.js on lines 7455..7459
                                            public/lib/modules/aurora.js/mp3.js on lines 7461..7465
                                            public/lib/modules/aurora.js/mp3.js on lines 7467..7471
                                            public/lib/modules/aurora.js/mp3.js on lines 7509..7513

                                            Duplicated Code

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

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

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

                                            const SFB_44100_SHORT = new Uint8Array([
                                                4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  6,
                                                6,  6,  8,  8,  8, 10, 10, 10, 12, 12, 12, 14, 14,
                                                14, 18, 18, 18, 22, 22, 22, 30, 30, 30, 56, 56, 56
                                            ]);
                                            Severity: Major
                                            Found in public/lib/modules/aurora.js/mp3.js and 6 other locations - About 50 mins to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 7400..7404
                                            public/lib/modules/aurora.js/mp3.js on lines 7412..7416
                                            public/lib/modules/aurora.js/mp3.js on lines 7455..7459
                                            public/lib/modules/aurora.js/mp3.js on lines 7461..7465
                                            public/lib/modules/aurora.js/mp3.js on lines 7467..7471
                                            public/lib/modules/aurora.js/mp3.js on lines 7509..7513

                                            Duplicated Code

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

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

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

                                            const SFB_48000_SHORT = new Uint8Array([
                                                4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  6,
                                                6,  6,  6,  6,  6, 10, 10, 10, 12, 12, 12, 14, 14,
                                                14, 16, 16, 16, 20, 20, 20, 26, 26, 26, 66, 66, 66
                                            ]);
                                            Severity: Major
                                            Found in public/lib/modules/aurora.js/mp3.js and 6 other locations - About 50 mins to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 7406..7410
                                            public/lib/modules/aurora.js/mp3.js on lines 7412..7416
                                            public/lib/modules/aurora.js/mp3.js on lines 7455..7459
                                            public/lib/modules/aurora.js/mp3.js on lines 7461..7465
                                            public/lib/modules/aurora.js/mp3.js on lines 7467..7471
                                            public/lib/modules/aurora.js/mp3.js on lines 7509..7513

                                            Duplicated Code

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

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

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

                                            const SFB_8000_SHORT = new Uint8Array([
                                               8,  8,  8,  8,  8,  8,  8,  8,  8, 12, 12, 12, 16,
                                              16, 16, 20, 20, 20, 24, 24, 24, 28, 28, 28, 36, 36,
                                              36,  2,  2,  2,  2,  2,  2,  2,  2,  2, 26, 26, 26
                                            ]);
                                            Severity: Major
                                            Found in public/lib/modules/aurora.js/mp3.js and 6 other locations - About 50 mins to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 7400..7404
                                            public/lib/modules/aurora.js/mp3.js on lines 7406..7410
                                            public/lib/modules/aurora.js/mp3.js on lines 7412..7416
                                            public/lib/modules/aurora.js/mp3.js on lines 7455..7459
                                            public/lib/modules/aurora.js/mp3.js on lines 7461..7465
                                            public/lib/modules/aurora.js/mp3.js on lines 7467..7471

                                            Duplicated Code

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

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

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

                                            const SFB_24000_SHORT = new Uint8Array([
                                               4,  4,  4,  4,  4,  4,  4,  4,  4,  6,  6,  6,  8,
                                               8,  8, 10, 10, 10, 12, 12, 12, 14, 14, 14, 18, 18,
                                              18, 24, 24, 24, 32, 32, 32, 44, 44, 44, 12, 12, 12
                                            ]);
                                            Severity: Major
                                            Found in public/lib/modules/aurora.js/mp3.js and 6 other locations - About 50 mins to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 7400..7404
                                            public/lib/modules/aurora.js/mp3.js on lines 7406..7410
                                            public/lib/modules/aurora.js/mp3.js on lines 7412..7416
                                            public/lib/modules/aurora.js/mp3.js on lines 7461..7465
                                            public/lib/modules/aurora.js/mp3.js on lines 7467..7471
                                            public/lib/modules/aurora.js/mp3.js on lines 7509..7513

                                            Duplicated Code

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

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

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

                                            const SFB_22050_SHORT = new Uint8Array([
                                               4,  4,  4,  4,  4,  4,  4,  4,  4,  6,  6,  6,  6,
                                               6,  6,  8,  8,  8, 10, 10, 10, 14, 14, 14, 18, 18,
                                              18, 26, 26, 26, 32, 32, 32, 42, 42, 42, 18, 18, 18
                                            ]);
                                            Severity: Major
                                            Found in public/lib/modules/aurora.js/mp3.js and 6 other locations - About 50 mins to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 7400..7404
                                            public/lib/modules/aurora.js/mp3.js on lines 7406..7410
                                            public/lib/modules/aurora.js/mp3.js on lines 7412..7416
                                            public/lib/modules/aurora.js/mp3.js on lines 7455..7459
                                            public/lib/modules/aurora.js/mp3.js on lines 7467..7471
                                            public/lib/modules/aurora.js/mp3.js on lines 7509..7513

                                            Duplicated Code

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

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

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

                                            for(i = 0; i < 18; i++) {
                                                dctIV_scale[i] = 2 * Math.cos(Math.PI * (2 * i + 1) / (4 * 18));
                                            }
                                            Severity: Minor
                                            Found in public/lib/modules/aurora.js/mp3.js and 1 other location - About 50 mins to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 4412..4414

                                            Duplicated Code

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

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

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

                                                        for (var i =  6; i < 12; ++i) z[i] = z[i] * tables.WINDOW_S[i - 6];
                                            Severity: Minor
                                            Found in public/lib/modules/aurora.js/mp3.js and 1 other location - About 50 mins to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 6025..6025

                                            Duplicated Code

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

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

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

                                            for (var i = 0; i < 9; ++i) {
                                                sdctII_scale[i] = 2 * Math.cos(Math.PI * (2 * i + 1) / (2 * 18));
                                            }
                                            Severity: Minor
                                            Found in public/lib/modules/aurora.js/mp3.js and 1 other location - About 50 mins to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 4389..4391

                                            Duplicated Code

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

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

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

                                                    xr[xrptr] = quad.value.v ? (((bitcache) & (1 << ((cachesz--) - 1))) ? -requantized : requantized) : 0;
                                            Severity: Minor
                                            Found in public/lib/modules/aurora.js/mp3.js and 1 other location - About 50 mins to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 5735..5735

                                            Duplicated Code

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

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

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

                                                        for (var i = 24; i < 30; ++i) z[i] = z[i] * tables.WINDOW_S[i - 18];
                                            Severity: Minor
                                            Found in public/lib/modules/aurora.js/mp3.js and 1 other location - About 50 mins to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 6031..6031

                                            Duplicated Code

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

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

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

                                                    xr[xrptr] = quad.value.x ? (((bitcache) & (1 << ((cachesz--) - 1))) ? -requantized : requantized) : 0;
                                            Severity: Minor
                                            Found in public/lib/modules/aurora.js/mp3.js and 1 other location - About 50 mins to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 5717..5717

                                            Duplicated Code

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

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

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

                                                        for (var i =  0; i < 18; ++i) z[i] = z[i] * tables.WINDOW_L[i];
                                            Severity: Minor
                                            Found in public/lib/modules/aurora.js/mp3.js and 1 other location - About 40 mins to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 6020..6020

                                            Duplicated Code

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

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

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

                                                        for (var i = 0; i < 36; ++i) z[i] = z[i] * tables.WINDOW_L[i];
                                            Severity: Minor
                                            Found in public/lib/modules/aurora.js/mp3.js and 1 other location - About 40 mins to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 6024..6024

                                            Duplicated Code

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

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

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

                                              { sblimit: 30, offsets:
                                                  [ 7, 7, 7, 6, 6, 6, 6, 6, 6, 6, 6, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, 0, 0 ] },
                                            Severity: Minor
                                            Found in public/lib/modules/aurora.js/mp3.js and 1 other location - About 30 mins to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 4698..4699

                                            Duplicated Code

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

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

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

                                            Tuning

                                            This issue has a mass of 45.

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

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

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

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

                                            Refactorings

                                            Further Reading

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

                                              { sblimit: 30, offsets:
                                                  [ 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ] }
                                            Severity: Minor
                                            Found in public/lib/modules/aurora.js/mp3.js and 1 other location - About 30 mins to fix
                                            public/lib/modules/aurora.js/mp3.js on lines 4686..4687

                                            Duplicated Code

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

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

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