Showing 563 of 563 total issues

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

  function graphBiasToSoftmaxArrows(data) {

    var inputToBiasLines = this.neuralNetworkG.selectAll(this.svgElement + " .bias-to-softmax-line")
      .data(data)

Severity: Minor
Found in people/a/AlammarJay/js/nn_calc.js - About 1 hr to fix

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

      function graphSoftmaxOutputs(softmaxOutputs) {
        var grapher = this
        var data = []
        for (var i = 0; i < this.softmaxOutputs.length; i++) {
          data.push({
    Severity: Minor
    Found in people/a/AlammarJay/js/nn_calc.js - About 1 hr to fix

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

        this.errorG.append("defs").append("clipPath")
          .attr("id", "clip2")
          .append("rect")
          .attr("width", this.errorChartWidth)
          .attr("height", this.errorChartHeight);
      Severity: Major
      Found in people/a/AlammarJay/js/two_variable_nn.js and 1 other location - About 1 hr to fix
      people/a/AlammarJay/js/simple_nn.js on lines 245..249

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 66.

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

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

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

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

      Refactorings

      Further Reading

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

        this.errorG.append("defs").append("clipPath")
          .attr("id", "clip")
          .append("rect")
          .attr("width", this.errorChartWidth)
          .attr("height", this.errorChartHeight);
      Severity: Major
      Found in people/a/AlammarJay/js/simple_nn.js and 1 other location - About 1 hr to fix
      people/a/AlammarJay/js/two_variable_nn.js on lines 148..152

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 66.

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

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

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

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

      Refactorings

      Further Reading

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

        this.errorG = this.errorHolder.append("g").attr("transform", "translate("
          + this.miniErrorChartMargin.left + ","
          + this.miniErrorChartMargin.top + ")");
      Severity: Major
      Found in people/a/AlammarJay/js/simple_nn.js and 1 other location - About 1 hr to fix
      people/a/AlammarJay/js/two_variable_nn.js on lines 111..111

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 66.

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

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

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

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

      Refactorings

      Further Reading

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

        this.errorG = this.errorHolder.append("g").attr("transform", "translate(" + this.margin.left + "," + this.margin.top + ")");
      Severity: Major
      Found in people/a/AlammarJay/js/two_variable_nn.js and 1 other location - About 1 hr to fix
      people/a/AlammarJay/js/simple_nn.js on lines 198..200

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 66.

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

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

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

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

      Refactorings

      Further Reading

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

        setMonth(month: number | undefined, print = true) {
          if (month != this._month && print) {
            this.setDayOfMonth(undefined, print)
          }
          this._month = month
      Severity: Major
      Found in time/TimeContext.ts and 2 other locations - About 1 hr to fix
      time/TimeContext.ts on lines 24..30
      time/TimeContext.ts on lines 48..54

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 66.

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

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

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

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

      Refactorings

      Further Reading

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

        setDayOfMonth(dayOfMonth: number | undefined, print = true) {
          if (dayOfMonth != this._dayOfMonth && print) {
            this.setHour(undefined, print)
          }
          this._dayOfMonth = dayOfMonth
      Severity: Major
      Found in time/TimeContext.ts and 2 other locations - About 1 hr to fix
      time/TimeContext.ts on lines 24..30
      time/TimeContext.ts on lines 36..42

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 66.

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

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

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

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

      Refactorings

      Further Reading

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

        setYear(year: number | undefined, print = true) {
          if (year != this._year && print) {
            this.setMonth(undefined, print)
          }
          this._year = year
      Severity: Major
      Found in time/TimeContext.ts and 2 other locations - About 1 hr to fix
      time/TimeContext.ts on lines 36..42
      time/TimeContext.ts on lines 48..54

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 66.

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

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

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

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

      Refactorings

      Further Reading

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

        this.biasG.append("text")
          .attr("id", "biasValue")
          .attr("text-anchor", "middle")
          .attr("x", nodeRadius)
          .attr("y", nodeRadius + 5)
      Severity: Major
      Found in people/a/AlammarJay/js/simple_nn.js and 1 other location - About 1 hr to fix
      people/a/AlammarJay/js/two_variable_nn.js on lines 406..411

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

      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

        this.biasG.append("text")
          .attr("id", "biasValue")
          .attr("text-anchor", "middle")
          .attr("x", nodeRadius)
          .attr("y", nodeRadius + 5)
      Severity: Major
      Found in people/a/AlammarJay/js/two_variable_nn.js and 1 other location - About 1 hr to fix
      people/a/AlammarJay/js/simple_nn.js on lines 773..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 65.

      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

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

        parse(context: RR0SsgContext, data: string): S[] {
          let eol = data.indexOf("\n")
          const header = data.substring(0, eol)
          data = data.substring(eol + 1).replaceAll(`""`, "''")
          this.fields.clear()
      Severity: Minor
      Found in time/datasource/CsvMapper.ts - About 1 hr to fix

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

        shallowNeuralNetworkGrapher.prototype.graphInputToBiasLines = function (data) {
          var inputToBiasLines = this.neuralNetworkG.selectAll(this.svgElement + " .input-to-bias-line")
            .data(data);
        
          inputToBiasLines.exit()
        Severity: Minor
        Found in people/a/AlammarJay/js/shallow_nn_grapher.js - About 1 hr to fix

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

          shallowNeuralNetworkGrapher.prototype.graphSoftmaxToOutputArrows = function (data) {
          
            var inputToBiasLines = this.neuralNetworkG.selectAll(this.svgElement + " .softmax-to-output-line").data(data);
          
            inputToBiasLines.exit().remove();
          Severity: Minor
          Found in people/a/AlammarJay/js/shallow_nn_grapher.js - About 1 hr to fix

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

                  inputGroups.attr("class", "input-group")
                    .attr("transform", function (d) {
                      return "translate(" +
                        (d.x)
                        + ","
            Severity: Major
            Found in people/a/AlammarJay/js/nn_calc.js and 4 other locations - About 1 hr to fix
            people/a/AlammarJay/js/nn_calc.js on lines 21..27
            people/a/AlammarJay/js/nn_calc.js on lines 322..328
            people/a/AlammarJay/js/shallow_nn_grapher.js on lines 181..184
            people/a/AlammarJay/js/shallow_nn_grapher.js on lines 333..336

            Duplicated Code

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

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

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

            Tuning

            This issue has a mass of 64.

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

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

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

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

            Refactorings

            Further Reading

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

              this.g = this.graphHolder.append("g")
                .attr("transform", "translate(" + this.margin.left + "," + this.margin.top + ")");
            Severity: Major
            Found in people/a/AlammarJay/js/sigmoid_graph.js and 1 other location - About 1 hr to fix
            people/a/AlammarJay/js/relu_graph.js on lines 36..37

            Duplicated Code

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

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

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

            Tuning

            This issue has a mass of 64.

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

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

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

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

            Refactorings

            Further Reading

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

                inputGroups.attr("class", "input-group")
                  .attr("transform", function (d) {
                    return "translate(" +
                      (d.x)
                      + ","
            Severity: Major
            Found in people/a/AlammarJay/js/nn_calc.js and 4 other locations - About 1 hr to fix
            people/a/AlammarJay/js/nn_calc.js on lines 322..328
            people/a/AlammarJay/js/nn_calc.js on lines 1234..1240
            people/a/AlammarJay/js/shallow_nn_grapher.js on lines 181..184
            people/a/AlammarJay/js/shallow_nn_grapher.js on lines 333..336

            Duplicated Code

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

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

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

            Tuning

            This issue has a mass of 64.

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

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

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

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

            Refactorings

            Further Reading

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

                inputGroups.attr("class", "output-group")
                  .attr("transform", function (d) {
                    return "translate(" +
                      (d.x)
                      + ","
            Severity: Major
            Found in people/a/AlammarJay/js/nn_calc.js and 4 other locations - About 1 hr to fix
            people/a/AlammarJay/js/nn_calc.js on lines 21..27
            people/a/AlammarJay/js/nn_calc.js on lines 1234..1240
            people/a/AlammarJay/js/shallow_nn_grapher.js on lines 181..184
            people/a/AlammarJay/js/shallow_nn_grapher.js on lines 333..336

            Duplicated Code

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

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

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

            Tuning

            This issue has a mass of 64.

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

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

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

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

            Refactorings

            Further Reading

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

              inputGroups.attr("class", "input-group")
                .attr("transform", function (d) {
                  return "translate(" + (d.x) + "," + (d.y) + ")";
                }.bind(this));
            Severity: Major
            Found in people/a/AlammarJay/js/shallow_nn_grapher.js and 4 other locations - About 1 hr to fix
            people/a/AlammarJay/js/nn_calc.js on lines 21..27
            people/a/AlammarJay/js/nn_calc.js on lines 322..328
            people/a/AlammarJay/js/nn_calc.js on lines 1234..1240
            people/a/AlammarJay/js/shallow_nn_grapher.js on lines 333..336

            Duplicated Code

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

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

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

            Tuning

            This issue has a mass of 64.

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

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

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

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

            Refactorings

            Further Reading

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

              inputGroups.attr("class", "output-group")
                .attr("transform", function (d) {
                  return "translate(" + (d.x) + "," + (d.y) + ")";
                }.bind(this));
            Severity: Major
            Found in people/a/AlammarJay/js/shallow_nn_grapher.js and 4 other locations - About 1 hr to fix
            people/a/AlammarJay/js/nn_calc.js on lines 21..27
            people/a/AlammarJay/js/nn_calc.js on lines 322..328
            people/a/AlammarJay/js/nn_calc.js on lines 1234..1240
            people/a/AlammarJay/js/shallow_nn_grapher.js on lines 181..184

            Duplicated Code

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

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

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

            Tuning

            This issue has a mass of 64.

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

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

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

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

            Refactorings

            Further Reading

            Severity
            Category
            Status
            Source
            Language