wurmlab/GeneValidator

View on GitHub
aux/source_assets/js/plots.js

Summary

Maintainability
F
3 wks
Test Coverage

File plots.js has 693 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*
    GV - GeneValidator's JavaScript module

    Define a global GV (acronym for GeneValidator) object containing all
    GV associated methods:
Severity: Major
Found in aux/source_assets/js/plots.js - About 1 day to fix

    Function plot_lines has 121 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      GV.plot_lines = function (data, target, title, footer, xTitle, yTitle, no_lines, yValues) {
        var margin = {top: 70, right: 50, bottom: 75, left: 50},
        width = 600 - margin.left - margin.right,
        height = 500 - margin.top - margin.bottom;
    
    
    Severity: Major
    Found in aux/source_assets/js/plots.js - About 4 hrs to fix

      Function plot_bars has 104 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        GV.plot_bars = function (alldata, target, title, footer, xTitle, yTitle, bar) {
          var margin = {top: 70, right: 50, bottom: 75, left: 50},
            width = 600 - margin.left - margin.right,
            height = 500 - margin.top - margin.bottom;
      
      
      Severity: Major
      Found in aux/source_assets/js/plots.js - About 4 hrs to fix

        Function plot_scatter has 98 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          GV.plot_scatter = function (data, target, title, footer, xTitle, yTitle, yLine, slope) {
            var margin = {top: 50, right: 30, bottom: 75, left: 50},
            width = 500 - margin.left - margin.right,
            height = 500 - margin.top - margin.bottom;
        
        
        Severity: Major
        Found in aux/source_assets/js/plots.js - About 3 hrs to fix

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

            GV.plot_align = function (data, target, title, footer, xTitle, yTitle, no_lines, yValues) {
              var margin = {top: 75, right: 50, bottom: 75, left: 150},
              width = 600 - margin.left - margin.right,
              height = 300 - margin.top - margin.bottom;
          
          
          Severity: Major
          Found in aux/source_assets/js/plots.js - About 3 hrs to fix

            Function plot_simple_bars has 64 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              GV.plot_simple_bars = function (alldata, target, title, footer, xTitle, yTitle) {
                var margin = {top: 70, right: 50, bottom: 75, left: 50},
                  width = 600 - margin.left - margin.right,
                  height = 500 - margin.top - margin.bottom;
            
            
            Severity: Major
            Found in aux/source_assets/js/plots.js - About 2 hrs to fix

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

                GV.addPlot = function (jsonData, target, type, title, footer, xtitle, ytitle, aux1, aux2) {
                  var legend;
                  if (footer === '') {
                    legend = [];
                  } else {
              Severity: Minor
              Found in aux/source_assets/js/plots.js - About 1 hr to fix

                Function addPlot has 9 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                  GV.addPlot = function (jsonData, target, type, title, footer, xtitle, ytitle, aux1, aux2) {
                Severity: Major
                Found in aux/source_assets/js/plots.js - About 1 hr to fix

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

                    GV.plot_align = function (data, target, title, footer, xTitle, yTitle, no_lines, yValues) {
                  Severity: Major
                  Found in aux/source_assets/js/plots.js - About 1 hr to fix

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

                      GV.plot_scatter = function (data, target, title, footer, xTitle, yTitle, yLine, slope) {
                    Severity: Major
                    Found in aux/source_assets/js/plots.js - About 1 hr to fix

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

                        GV.plot_lines = function (data, target, title, footer, xTitle, yTitle, no_lines, yValues) {
                      Severity: Major
                      Found in aux/source_assets/js/plots.js - About 1 hr to fix

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

                          GV.plot_bars = function (alldata, target, title, footer, xTitle, yTitle, bar) {
                        Severity: Major
                        Found in aux/source_assets/js/plots.js - About 50 mins to fix

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

                            GV.plot_simple_bars = function (alldata, target, title, footer, xTitle, yTitle) {
                          Severity: Minor
                          Found in aux/source_assets/js/plots.js - About 45 mins to fix

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

                                for (var j = 0; j < footer.length; j++) {
                                  var footer_array = footer[j].split(",");
                                  svg.append("rect")
                                       .attr("x", (width-total_len)/2 + offset)
                                       .attr("y", -30)
                            Severity: Major
                            Found in aux/source_assets/js/plots.js and 2 other locations - About 1 day to fix
                            aux/source_assets/js/plots.js on lines 342..357
                            aux/source_assets/js/plots.js on lines 682..696

                            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 223.

                            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 3 locations. Consider refactoring.
                            Open

                                for (var j = 0; j < footer.length; j++) {
                                  var footer_array = footer[j].split(",");
                                  svg.append("rect")
                                       .attr("x", (width-total_len)/2 + offset)
                                       .attr("y", -30)
                            Severity: Major
                            Found in aux/source_assets/js/plots.js and 2 other locations - About 1 day to fix
                            aux/source_assets/js/plots.js on lines 342..357
                            aux/source_assets/js/plots.js on lines 798..812

                            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 223.

                            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 3 locations. Consider refactoring.
                            Open

                                for (var j = 0; j < footer.length; j++) {
                            
                                  var footer_array = footer[j].split(",");
                                  svg.append("rect")
                                      .attr("x", (width-total_len)/2 + offset)
                            Severity: Major
                            Found in aux/source_assets/js/plots.js and 2 other locations - About 1 day to fix
                            aux/source_assets/js/plots.js on lines 682..696
                            aux/source_assets/js/plots.js on lines 798..812

                            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 223.

                            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

                                alldata.map( function(data) {
                                  svg.selectAll(".bar")
                                     .data(data)
                                     .enter().append("rect")
                                             .attr("x", function(d) { return x(d.key); })
                            Severity: Major
                            Found in aux/source_assets/js/plots.js and 1 other location - About 7 hrs to fix
                            aux/source_assets/js/plots.js on lines 308..317

                            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 191.

                            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

                                  alldata.map( function(data) {
                                    svg.selectAll(".bar")
                                      .data(data)
                                      .enter().append("rect")
                                        .attr("x", function(d) { return x(d.key); })
                            Severity: Major
                            Found in aux/source_assets/js/plots.js and 1 other location - About 7 hrs to fix
                            aux/source_assets/js/plots.js on lines 427..436

                            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 191.

                            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 (yValues !== null){
                                  svg.append("g")
                                       .attr("class", "y axis")
                                       .call(yAxis.ticks(yValues.length)
                                                  .tickFormat(function() {
                            Severity: Major
                            Found in aux/source_assets/js/plots.js and 1 other location - About 6 hrs to fix
                            aux/source_assets/js/plots.js on lines 618..644

                            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 156.

                            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 (yValues !== null){
                                  svg.append("g")
                                       .attr("class", "y axis")
                                       .call(yAxis.ticks(yValues.length)
                                                  .tickFormat(function() {
                            Severity: Major
                            Found in aux/source_assets/js/plots.js and 1 other location - About 6 hrs to fix
                            aux/source_assets/js/plots.js on lines 753..779

                            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 156.

                            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

                                svg.selectAll(".dot")
                                   .data(data)
                                   .enter().append("line")
                                             .attr("x1", function(d) { return x(d.start); })
                                             .attr("y1", function(d) { return y(d.y); })
                            Severity: Major
                            Found in aux/source_assets/js/plots.js and 1 other location - About 5 hrs to fix
                            aux/source_assets/js/plots.js on lines 646..653

                            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 141.

                            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

                                  svg.selectAll(".dot")
                                     .data(data)
                                  .enter().append("line")
                                          .attr("x1", function(d) { return x(d.start); })
                                          .attr("y1", function(d) { return y(d.y); })
                            Severity: Major
                            Found in aux/source_assets/js/plots.js and 1 other location - About 5 hrs to fix
                            aux/source_assets/js/plots.js on lines 781..788

                            Duplicated Code

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

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

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

                            Tuning

                            This issue has a mass of 141.

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

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

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

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

                            Refactorings

                            Further Reading

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

                                var svg = d3.select("#".concat(target)).append("svg")
                                              .attr("width", width + margin.left + margin.right)
                                              .attr("height", height + margin.top + margin.bottom)
                                              .append("g")
                                              .attr("transform", "translate(" + margin.left + "," + margin.top + ")");
                            Severity: Major
                            Found in aux/source_assets/js/plots.js and 3 other locations - About 4 hrs to fix
                            aux/source_assets/js/plots.js on lines 240..244
                            aux/source_assets/js/plots.js on lines 366..370
                            aux/source_assets/js/plots.js on lines 589..593

                            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 122.

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

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

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

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

                            Refactorings

                            Further Reading

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

                                var svg = d3.select("#".concat(target)).append("svg")
                                  .attr("width", width + margin.left + margin.right)
                                  .attr("height", height + margin.top + margin.bottom)
                                  .append("g")
                                  .attr("transform", "translate(" + margin.left + "," + margin.top + ")");
                            Severity: Major
                            Found in aux/source_assets/js/plots.js and 3 other locations - About 4 hrs to fix
                            aux/source_assets/js/plots.js on lines 366..370
                            aux/source_assets/js/plots.js on lines 464..468
                            aux/source_assets/js/plots.js on lines 589..593

                            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 122.

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

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

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

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

                            Refactorings

                            Further Reading

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

                                var svg = d3.select("#".concat(target)).append("svg")
                                            .attr("width", width + margin.left + margin.right)
                                            .attr("height", height + margin.top + margin.bottom)
                                            .append("g")
                                            .attr("transform", "translate(" + margin.left + "," + margin.top + ")");
                            Severity: Major
                            Found in aux/source_assets/js/plots.js and 3 other locations - About 4 hrs to fix
                            aux/source_assets/js/plots.js on lines 240..244
                            aux/source_assets/js/plots.js on lines 366..370
                            aux/source_assets/js/plots.js on lines 464..468

                            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 122.

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

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

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

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

                            Refactorings

                            Further Reading

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

                                var svg = d3.select("#".concat(target)).append("svg")
                                  .attr("width", width + margin.left + margin.right)
                                  .attr("height", height + margin.top + margin.bottom)
                                  .append("g")
                                    .attr("transform", "translate(" + margin.left + "," + margin.top + ")");
                            Severity: Major
                            Found in aux/source_assets/js/plots.js and 3 other locations - About 4 hrs to fix
                            aux/source_assets/js/plots.js on lines 240..244
                            aux/source_assets/js/plots.js on lines 464..468
                            aux/source_assets/js/plots.js on lines 589..593

                            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 122.

                            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

                                svg.append("g")
                                     .attr("class", "x axis")
                                     .attr("transform", "translate(0," + (height+height/no_lines) + ")")
                                     .call(xAxis)
                                   .append("text")
                            Severity: Major
                            Found in aux/source_assets/js/plots.js and 1 other location - About 4 hrs to fix
                            aux/source_assets/js/plots.js on lines 607..616

                            Duplicated Code

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

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

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

                            Tuning

                            This issue has a mass of 121.

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

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

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

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

                            Refactorings

                            Further Reading

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

                                svg.append("g")
                                     .attr("class", "x axis")
                                     .attr("transform", "translate(0," + (height + height/no_lines) + ")")
                                     .call(xAxis)
                                   .append("text")
                            Severity: Major
                            Found in aux/source_assets/js/plots.js and 1 other location - About 4 hrs to fix
                            aux/source_assets/js/plots.js on lines 742..751

                            Duplicated Code

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

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

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

                            Tuning

                            This issue has a mass of 121.

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

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

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

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

                            Refactorings

                            Further Reading

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

                                svg.append("g")
                                     .attr("class", "x axis")
                                     .attr("transform", "translate(0," + height + ")")
                                     .call(xAxis)
                                   .append("text")
                            Severity: Major
                            Found in aux/source_assets/js/plots.js and 2 other locations - About 3 hrs to fix
                            aux/source_assets/js/plots.js on lines 286..295
                            aux/source_assets/js/plots.js on lines 405..414

                            Duplicated Code

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

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

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

                            Tuning

                            This issue has a mass of 113.

                            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 3 locations. Consider refactoring.
                            Open

                                svg.append("g")
                                    .attr("class", "x axis")
                                    .attr("transform", "translate(0," + height + ")")
                                    .call(xAxis)
                                  .append("text")
                            Severity: Major
                            Found in aux/source_assets/js/plots.js and 2 other locations - About 3 hrs to fix
                            aux/source_assets/js/plots.js on lines 405..414
                            aux/source_assets/js/plots.js on lines 491..500

                            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 113.

                            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 3 locations. Consider refactoring.
                            Open

                                svg.append("g")
                                     .attr("class", "x axis")
                                     .attr("transform", "translate(0," + height + ")")
                                     .call(xAxis)
                                   .append("text")
                            Severity: Major
                            Found in aux/source_assets/js/plots.js and 2 other locations - About 3 hrs to fix
                            aux/source_assets/js/plots.js on lines 286..295
                            aux/source_assets/js/plots.js on lines 491..500

                            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 113.

                            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

                                  svg.append("g")
                                       .attr("class", "y axis")
                                       .call(yAxis)
                                     .append("text")
                                       .attr("class", "label")
                            Severity: Major
                            Found in aux/source_assets/js/plots.js and 3 other locations - About 3 hrs to fix
                            aux/source_assets/js/plots.js on lines 297..306
                            aux/source_assets/js/plots.js on lines 416..425
                            aux/source_assets/js/plots.js on lines 502..511

                            Duplicated Code

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

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

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

                            Tuning

                            This issue has a mass of 109.

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

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

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

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

                            Refactorings

                            Further Reading

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

                                svg.append("g")
                                     .attr("class", "y axis")
                                     .call(yAxis)
                                   .append("text")
                                     .attr("class", "label")
                            Severity: Major
                            Found in aux/source_assets/js/plots.js and 3 other locations - About 3 hrs to fix
                            aux/source_assets/js/plots.js on lines 297..306
                            aux/source_assets/js/plots.js on lines 502..511
                            aux/source_assets/js/plots.js on lines 769..778

                            Duplicated Code

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

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

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

                            Tuning

                            This issue has a mass of 109.

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

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

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

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

                            Refactorings

                            Further Reading

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

                                svg.append("g")
                                     .attr("class", "y axis")
                                     .call(yAxis)
                                   .append("text")
                                     .attr("class", "label")
                            Severity: Major
                            Found in aux/source_assets/js/plots.js and 3 other locations - About 3 hrs to fix
                            aux/source_assets/js/plots.js on lines 297..306
                            aux/source_assets/js/plots.js on lines 416..425
                            aux/source_assets/js/plots.js on lines 769..778

                            Duplicated Code

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

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

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

                            Tuning

                            This issue has a mass of 109.

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

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

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

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

                            Refactorings

                            Further Reading

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

                                 svg.append("g")
                                     .attr("class", "y axis")
                                    .call(yAxis)
                                  .append("text")
                                    .attr("class", "label")
                            Severity: Major
                            Found in aux/source_assets/js/plots.js and 3 other locations - About 3 hrs to fix
                            aux/source_assets/js/plots.js on lines 416..425
                            aux/source_assets/js/plots.js on lines 502..511
                            aux/source_assets/js/plots.js on lines 769..778

                            Duplicated Code

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

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

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

                            Tuning

                            This issue has a mass of 109.

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

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

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

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

                            Refactorings

                            Further Reading

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

                                for (var i = 0; i < footer.length; i++) {
                                  var array = footer[i].split(",");
                                  total_len = total_len + array[0].length*8 + 15;
                                }
                            Severity: Major
                            Found in aux/source_assets/js/plots.js and 2 other locations - About 1 hr to fix
                            aux/source_assets/js/plots.js on lines 337..340
                            aux/source_assets/js/plots.js on lines 793..796

                            Duplicated Code

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

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

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

                            Tuning

                            This issue has a mass of 73.

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

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

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

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

                            Refactorings

                            Further Reading

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

                                for (var i = 0; i < footer.length; i++) {
                                  var array = footer[i].split(",");
                                  total_len = total_len + array[0].length*8 + 15;
                                }
                            Severity: Major
                            Found in aux/source_assets/js/plots.js and 2 other locations - About 1 hr to fix
                            aux/source_assets/js/plots.js on lines 677..680
                            aux/source_assets/js/plots.js on lines 793..796

                            Duplicated Code

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

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

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

                            Tuning

                            This issue has a mass of 73.

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

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

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

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

                            Refactorings

                            Further Reading

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

                                for (var i = 0; i < footer.length; i++) {
                                  var array = footer[i].split(",");
                                  total_len = total_len + array[0].length*8 + 15;
                                }
                            Severity: Major
                            Found in aux/source_assets/js/plots.js and 2 other locations - About 1 hr to fix
                            aux/source_assets/js/plots.js on lines 337..340
                            aux/source_assets/js/plots.js on lines 677..680

                            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 5 locations. Consider refactoring.
                            Open

                                var margin = {top: 70, right: 50, bottom: 75, left: 50},
                                width = 600 - margin.left - margin.right,
                                height = 500 - margin.top - margin.bottom;
                            Severity: Major
                            Found in aux/source_assets/js/plots.js and 4 other locations - About 1 hr to fix
                            aux/source_assets/js/plots.js on lines 236..238
                            aux/source_assets/js/plots.js on lines 362..364
                            aux/source_assets/js/plots.js on lines 443..445
                            aux/source_assets/js/plots.js on lines 702..704

                            Duplicated Code

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

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

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

                            Tuning

                            This issue has a mass of 70.

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

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

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

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

                            Refactorings

                            Further Reading

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

                                var margin = {top: 70, right: 50, bottom: 75, left: 50},
                                  width = 600 - margin.left - margin.right,
                                  height = 500 - margin.top - margin.bottom;
                            Severity: Major
                            Found in aux/source_assets/js/plots.js and 4 other locations - About 1 hr to fix
                            aux/source_assets/js/plots.js on lines 236..238
                            aux/source_assets/js/plots.js on lines 443..445
                            aux/source_assets/js/plots.js on lines 561..563
                            aux/source_assets/js/plots.js on lines 702..704

                            Duplicated Code

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

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

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

                            Tuning

                            This issue has a mass of 70.

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

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

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

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

                            Refactorings

                            Further Reading

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

                                var margin = {top: 50, right: 30, bottom: 75, left: 50},
                                width = 500 - margin.left - margin.right,
                                height = 500 - margin.top - margin.bottom;
                            Severity: Major
                            Found in aux/source_assets/js/plots.js and 4 other locations - About 1 hr to fix
                            aux/source_assets/js/plots.js on lines 236..238
                            aux/source_assets/js/plots.js on lines 362..364
                            aux/source_assets/js/plots.js on lines 561..563
                            aux/source_assets/js/plots.js on lines 702..704

                            Duplicated Code

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

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

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

                            Tuning

                            This issue has a mass of 70.

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

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

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

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

                            Refactorings

                            Further Reading

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

                                var margin = {top: 75, right: 50, bottom: 75, left: 150},
                                width = 600 - margin.left - margin.right,
                                height = 300 - margin.top - margin.bottom;
                            Severity: Major
                            Found in aux/source_assets/js/plots.js and 4 other locations - About 1 hr to fix
                            aux/source_assets/js/plots.js on lines 236..238
                            aux/source_assets/js/plots.js on lines 362..364
                            aux/source_assets/js/plots.js on lines 443..445
                            aux/source_assets/js/plots.js on lines 561..563

                            Duplicated Code

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

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

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

                            Tuning

                            This issue has a mass of 70.

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

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

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

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

                            Refactorings

                            Further Reading

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

                                var margin = {top: 70, right: 50, bottom: 75, left: 50},
                                  width = 600 - margin.left - margin.right,
                                  height = 500 - margin.top - margin.bottom;
                            Severity: Major
                            Found in aux/source_assets/js/plots.js and 4 other locations - About 1 hr to fix
                            aux/source_assets/js/plots.js on lines 362..364
                            aux/source_assets/js/plots.js on lines 443..445
                            aux/source_assets/js/plots.js on lines 561..563
                            aux/source_assets/js/plots.js on lines 702..704

                            Duplicated Code

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

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

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

                            Tuning

                            This issue has a mass of 70.

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

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

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

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

                            Refactorings

                            Further Reading

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

                                svg.append("text")
                                     .attr("x", (width / 2))
                                     .attr("y", -35)
                                     .attr("text-anchor", "middle")
                                     .style("font-size", "16px")
                            Severity: Major
                            Found in aux/source_assets/js/plots.js and 4 other locations - About 1 hr to fix
                            aux/source_assets/js/plots.js on lines 246..251
                            aux/source_assets/js/plots.js on lines 372..377
                            aux/source_assets/js/plots.js on lines 470..475
                            aux/source_assets/js/plots.js on lines 730..735

                            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 5 locations. Consider refactoring.
                            Open

                                svg.append("text")
                                  .attr("x", (width / 2))
                                  .attr("y", -45)
                                  .attr("text-anchor", "middle")
                                  .style("font-size", "16px")
                            Severity: Major
                            Found in aux/source_assets/js/plots.js and 4 other locations - About 1 hr to fix
                            aux/source_assets/js/plots.js on lines 372..377
                            aux/source_assets/js/plots.js on lines 470..475
                            aux/source_assets/js/plots.js on lines 595..600
                            aux/source_assets/js/plots.js on lines 730..735

                            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 5 locations. Consider refactoring.
                            Open

                                svg.append("text")
                                  .attr("x", (width / 2))
                                  .attr("y", -45)
                                  .attr("text-anchor", "middle")
                                  .style("font-size", "16px")
                            Severity: Major
                            Found in aux/source_assets/js/plots.js and 4 other locations - About 1 hr to fix
                            aux/source_assets/js/plots.js on lines 246..251
                            aux/source_assets/js/plots.js on lines 470..475
                            aux/source_assets/js/plots.js on lines 595..600
                            aux/source_assets/js/plots.js on lines 730..735

                            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 5 locations. Consider refactoring.
                            Open

                                svg.append("text")
                                     .attr("x", (width / 2))
                                     .attr("y", -35)
                                     .attr("text-anchor", "middle")
                                     .style("font-size", "16px")
                            Severity: Major
                            Found in aux/source_assets/js/plots.js and 4 other locations - About 1 hr to fix
                            aux/source_assets/js/plots.js on lines 246..251
                            aux/source_assets/js/plots.js on lines 372..377
                            aux/source_assets/js/plots.js on lines 470..475
                            aux/source_assets/js/plots.js on lines 595..600

                            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 5 locations. Consider refactoring.
                            Open

                                svg.append("text")
                                     .attr("x", (width / 2))
                                     .attr("y", -25)
                                     .attr("text-anchor", "middle")
                                     .style("font-size", "16px")
                            Severity: Major
                            Found in aux/source_assets/js/plots.js and 4 other locations - About 1 hr to fix
                            aux/source_assets/js/plots.js on lines 246..251
                            aux/source_assets/js/plots.js on lines 372..377
                            aux/source_assets/js/plots.js on lines 595..600
                            aux/source_assets/js/plots.js on lines 730..735

                            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 3 locations. Consider refactoring.
                            Open

                                var yAxis = d3.svg.axis()
                                  .scale(y)
                                  .orient("left")
                                  .tickFormat(d3.format("d"))
                                  .ticks(8);
                            Severity: Major
                            Found in aux/source_assets/js/plots.js and 2 other locations - About 1 hr to fix
                            aux/source_assets/js/plots.js on lines 399..403
                            aux/source_assets/js/plots.js on lines 458..462

                            Duplicated Code

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

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

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

                            Tuning

                            This issue has a mass of 58.

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

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

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

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

                            Refactorings

                            Further Reading

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

                                var yAxis = d3.svg.axis()
                                              .scale(y)
                                              .orient("left")
                                              .tickFormat(d3.format("d"))
                                              .ticks(8);
                            Severity: Major
                            Found in aux/source_assets/js/plots.js and 2 other locations - About 1 hr to fix
                            aux/source_assets/js/plots.js on lines 280..284
                            aux/source_assets/js/plots.js on lines 399..403

                            Duplicated Code

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

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

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

                            Tuning

                            This issue has a mass of 58.

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

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

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

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

                            Refactorings

                            Further Reading

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

                                var yAxis = d3.svg.axis()
                                              .scale(y)
                                              .orient("left")
                                              .tickFormat(d3.format("d"))
                                              .ticks(8);
                            Severity: Major
                            Found in aux/source_assets/js/plots.js and 2 other locations - About 1 hr to fix
                            aux/source_assets/js/plots.js on lines 280..284
                            aux/source_assets/js/plots.js on lines 458..462

                            Duplicated Code

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

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

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

                            Tuning

                            This issue has a mass of 58.

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

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

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

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

                            Refactorings

                            Further Reading

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

                                $currentRow.find('td').each (function(){
                                  if (this.status == 'pressed') { this.status = 'released'; }
                                });
                            Severity: Minor
                            Found in aux/source_assets/js/plots.js and 1 other location - About 45 mins to fix
                            aux/source_assets/js/plots.js on lines 132..134

                            Duplicated Code

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

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

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

                            Tuning

                            This issue has a mass of 50.

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

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

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

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

                            Refactorings

                            Further Reading

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

                                $currentRow.find('.plot_btn').each (function(){
                                  if (this.status == 'pressed') { this.status = 'released'; }
                                });
                            Severity: Minor
                            Found in aux/source_assets/js/plots.js and 1 other location - About 45 mins to fix
                            aux/source_assets/js/plots.js on lines 129..131

                            Duplicated Code

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

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

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

                            Tuning

                            This issue has a mass of 50.

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

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

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

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

                            Refactorings

                            Further Reading

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

                                  case 'align':
                                    if (aux2 !== null) {
                                      aux2 = aux2.split(',');
                                    }
                                    GV.plot_align(jsonData, target, title, legend, xtitle, ytitle, aux1, aux2);
                            Severity: Minor
                            Found in aux/source_assets/js/plots.js and 1 other location - About 40 mins to fix
                            aux/source_assets/js/plots.js on lines 196..201

                            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

                                  case 'lines':
                                    if (aux2 !== null) {
                                      aux2 = aux2.split(',');
                                    }
                                    GV.plot_lines(jsonData, target, title, legend, xtitle, ytitle, aux1, aux2);
                            Severity: Minor
                            Found in aux/source_assets/js/plots.js and 1 other location - About 40 mins to fix
                            aux/source_assets/js/plots.js on lines 202..207

                            Duplicated Code

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

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

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

                            Tuning

                            This issue has a mass of 49.

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

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

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

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

                            Refactorings

                            Further Reading

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

                                var x = d3.scale.linear()
                                  .domain([xMin-padding, xMax+padding])
                                  .range([13, width]);
                            Severity: Minor
                            Found in aux/source_assets/js/plots.js and 1 other location - About 40 mins to fix
                            aux/source_assets/js/plots.js on lines 390..392

                            Duplicated Code

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

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

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

                            Tuning

                            This issue has a mass of 48.

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

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

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

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

                            Refactorings

                            Further Reading

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

                                var x = d3.scale.linear()
                                          .domain([xMin-padding, xMax+padding])
                                          .range([13, width]);
                            Severity: Minor
                            Found in aux/source_assets/js/plots.js and 1 other location - About 40 mins to fix
                            aux/source_assets/js/plots.js on lines 271..273

                            Duplicated Code

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

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

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

                            Tuning

                            This issue has a mass of 48.

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

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

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

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

                            Refactorings

                            Further Reading

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

                                      if (json.validations[i].graphs !== undefined) {
                                        GV.generatePlotCommands(json.validations[i].graphs, target);
                                      }
                            Severity: Minor
                            Found in aux/source_assets/js/plots.js and 1 other location - About 35 mins to fix
                            aux/source_assets/js/plots.js on lines 149..151

                            Duplicated Code

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

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

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

                            Tuning

                            This issue has a mass of 47.

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

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

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

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

                            Refactorings

                            Further Reading

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

                                    if (json.validations[val].graphs !== undefined) {
                                      GV.generatePlotCommands(json.validations[val].graphs, target);
                                    }
                            Severity: Minor
                            Found in aux/source_assets/js/plots.js and 1 other location - About 35 mins to fix
                            aux/source_assets/js/plots.js on lines 143..145

                            Duplicated Code

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

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

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

                            Tuning

                            This issue has a mass of 47.

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

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

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

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

                            Refactorings

                            Further Reading

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

                                } else {
                                  xAxis = d3.svg.axis()
                                                .scale(x)
                                                .orient("bottom")
                                                .ticks(5);
                            Severity: Minor
                            Found in aux/source_assets/js/plots.js and 1 other location - About 30 mins to fix
                            aux/source_assets/js/plots.js on lines 572..577

                            Duplicated Code

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

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

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

                            Tuning

                            This issue has a mass of 45.

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

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

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

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

                            Refactorings

                            Further Reading

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

                                if (title === 'Open Reading Frames in all 6 Frames') {
                                  xAxis = d3.svg.axis()
                                                .scale(x)
                                                .orient("bottom")
                                                .ticks(0);
                            Severity: Minor
                            Found in aux/source_assets/js/plots.js and 1 other location - About 30 mins to fix
                            aux/source_assets/js/plots.js on lines 577..582

                            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