Showing 670 of 670 total issues

Function multiVariableNeuralNetworkTrainer has 15 arguments (exceeds 4 allowed). Consider refactoring.
Open

var multiVariableNeuralNetworkTrainer = function (numberOfInputNodes,
                                                  svg_el, table_el,
                                                  dataPoints, labels,
                                                  weights, bias,
                                                  gradientDescentButton, gradientDescent10Button, gradientDescent100Button,
Severity: Major
Found in people/a/AlammarJay/js/two_variable_nn.js - About 1 hr to fix

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

    export const addSpeech = (e, lang = e.lang, text = getText(e)) => {
      if (!e.classList.contains(transformed)) {
        e.classList.add(transformed)
        const speechEl = document.createElement('button')
        speechEl.className = 'speech'
    Severity: Minor
    Found in lang/speech.js - About 1 hr to fix

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

          var inputLayerCoordinates = d3.range(inputNodeCount).map(function (i) {
            var y = getYCoordinateOfNodeInInputLayer(i)
            return { x: inputLayerX, y: y, index: i, type: 'input' }
          }.bind(this))
      Severity: Major
      Found in people/a/AlammarJay/js/nn_calc.js and 1 other location - About 1 hr to fix
      people/a/AlammarJay/js/nn_calc.js on lines 453..456

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

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

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

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

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

      Refactorings

      Further Reading

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

          var outputLayerCoordinates = d3.range(outputNodeCount).map(function (i) {
            var y = getYCoordinateOfNodeInOutputLayer(i)
            return { x: biasLayerX, y: y, index: i, type: 'input' }
          }.bind(this))
      Severity: Major
      Found in people/a/AlammarJay/js/nn_calc.js and 1 other location - About 1 hr to fix
      people/a/AlammarJay/js/nn_calc.js on lines 118..121

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

      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.nnGraphHolder = d3.select(this.svgElement) // select the 'body' element
            .append("svg")           // append an SVG element to the body
            .attr("width", this.graphWidth)      // make the SVG element 449 pixels wide
            .attr("height", this.graphHeight)    // make the SVG element 249 pixels high
      Severity: Major
      Found in people/a/AlammarJay/js/nn_calc.js and 1 other location - About 1 hr to fix
      people/a/AlammarJay/js/simple_nn.js on lines 189..192

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

      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.errorHolder = d3.select(this.error_chart_el) // select the 'body' element
          .append("svg")           // append an SVG element to the body
          .attr("width", this.miniGraphWidth)      // make the SVG element 449 pixels wide
          .attr("height", this.miniGraphHeight);    // make the SVG element 249 pixels high
      Severity: Major
      Found in people/a/AlammarJay/js/simple_nn.js and 1 other location - About 1 hr to fix
      people/a/AlammarJay/js/nn_calc.js on lines 1725..1728

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

      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

      export const laReunion974Messages_en = DepartmentMessages.create<LaReunionMessages>("Réunion", {
        [LaReunionCityCode.StBenoit]: stBenoit974Messages,
        [LaReunionCityCode.SaintDenis]: saintDenis974Messages,
        [LaReunionCityCode.SaintPaul]: saintPaul974Messages,
        [LaReunionCityCode.SaintPierre]: saintPierre974Messages,
      Severity: Major
      Found in org/eu/fr/region/lre/974/LaReunion_en.ts and 1 other location - About 1 hr to fix
      org/eu/fr/region/lre/974/LaReunion_fr.ts on lines 10..16

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

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

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

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

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

      Refactorings

      Further Reading

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

          {
            const context = new RR0SsgContextImpl("fr", new TimeContext())
            context.time.setYear(2003)
            context.time.setMonth(9)
            expect(TimeTextBuilder.build(context)).toBe("septembre 2003")
      Severity: Major
      Found in time/TimeTextBuilderTest.ts and 1 other location - About 1 hr to fix
      time/TimeTextBuilderTest.ts on lines 23..28

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

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

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

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

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

      Refactorings

      Further Reading

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

          {
            const context = new RR0SsgContextImpl("en", new TimeContext())
            context.time.setYear(2003)
            context.time.setMonth(9)
            expect(TimeTextBuilder.build(context)).toBe("September 2003")
      Severity: Major
      Found in time/TimeTextBuilderTest.ts and 1 other location - About 1 hr to fix
      time/TimeTextBuilderTest.ts on lines 17..22

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

      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

      export const laReunion974Messages_fr = DepartmentMessages.create<LaReunionMessages>("La Réunion", {
        [LaReunionCityCode.StBenoit]: stBenoit974Messages,
        [LaReunionCityCode.SaintDenis]: saintDenis974Messages,
        [LaReunionCityCode.SaintPaul]: saintPaul974Messages,
        [LaReunionCityCode.SaintPierre]: saintPierre974Messages,
      Severity: Major
      Found in org/eu/fr/region/lre/974/LaReunion_fr.ts and 1 other location - About 1 hr to fix
      org/eu/fr/region/lre/974/LaReunion_en.ts on lines 10..16

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

      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 drawGraph has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring.
      Open

      shallowNeuralNetworkGrapher.prototype.drawGraph = function () {
        var grapher = this;
        this.nodeRadius = 15;
        this.weightNodeWidthRatio = 1.7;
        // Let's calculate our coordinates for all the nodes
      Severity: Minor
      Found in people/a/AlammarJay/js/shallow_nn_grapher.js - About 1 hr to fix

      Cognitive Complexity

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

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

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

      Further reading

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

              "alarms": {
                "clear": {
                  "minArgs": 0,
                  "maxArgs": 1
                },
      Severity: Major
      Found in extension/Shared (Extension)/Resources/browser-polyfill.js and 1 other location - About 1 hr to fix
      extension/Shared (Extension)/Resources/browser-polyfill.js on lines 444..461

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 70.

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

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

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

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

      Refactorings

      Further Reading

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

        this.error_y = d3.scaleLinear()
          .rangeRound([this.errorChartHeight, 2])
          .domain([1, d3.max(this.error_history, function (d) {
            return d;
          }) * 1.3]);
      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 118..122

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 70.

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

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

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

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

      Refactorings

      Further Reading

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

              "permissions": {
                "contains": {
                  "minArgs": 1,
                  "maxArgs": 1
                },
      Severity: Major
      Found in extension/Shared (Extension)/Resources/browser-polyfill.js and 1 other location - About 1 hr to fix
      extension/Shared (Extension)/Resources/browser-polyfill.js on lines 38..55

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 70.

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

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

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

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

      Refactorings

      Further Reading

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

        this.error_y = d3.scaleLinear()
          .rangeRound([this.errorChartHeight, 2])
          .domain([0, d3.max(this.error_history, function (d) {
            return d;
          }) * 1.3]);
      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 207..211

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

      export abstract class BaseOvniFranceDatasource extends AbstractDatasource<BaseOvniFranceCaseSummary> {
      
        protected constructor(authors = ["Chastan, Luc"], copyright = "Base OVNI France") {
          super(authors, copyright)
        }
      Severity: Major
      Found in time/datasource/baseovnifrance/BaseOvniFranceDatasource.ts and 2 other locations - About 1 hr to fix
      time/datasource/essex-police/EssexPoliceDatasource.ts on lines 5..12
      time/datasource/ufo-search/UfoSearchDatasource.ts on lines 5..12

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

      export enum BourgogneFrancheComteDepartementCode {
        CoteDOr = FranceDepartementCode.CoteDOr,
        Doubs = FranceDepartementCode.Doubs,
        Jura = FranceDepartementCode.Jura,
        Morbihan = FranceDepartementCode.Morbihan,
      org/eu/fr/region/idf/IdfDepartmentCode.ts on lines 3..11
      org/eu/fr/region/pac/PacaDepartementCode.ts on lines 3..11

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

      export enum IdfDepartmentCode {
        Essonne = FranceDepartementCode.Essonne,
        HautsDeSeine = FranceDepartementCode.HautsDeSeine,
        Oise = FranceDepartementCode.Oise,
        Paris = FranceDepartementCode.Paris,
      Severity: Major
      Found in org/eu/fr/region/idf/IdfDepartmentCode.ts and 2 other locations - About 1 hr to fix
      org/eu/fr/region/bfc/BourgogneFrancheComteDepartementCode.ts on lines 3..11
      org/eu/fr/region/pac/PacaDepartementCode.ts on lines 3..11

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

      export enum PacaDepartementCode {
        AlpesDeHauteProvence = FranceDepartementCode.AlpesDeHauteProvence,
        AlpesMaritimes = FranceDepartementCode.AlpesMaritimes,
        BouchesDuRhone = FranceDepartementCode.BouchesDuRhone,
        HautesAlpes = FranceDepartementCode.HautesAlpes,
      Severity: Major
      Found in org/eu/fr/region/pac/PacaDepartementCode.ts and 2 other locations - About 1 hr to fix
      org/eu/fr/region/bfc/BourgogneFrancheComteDepartementCode.ts on lines 3..11
      org/eu/fr/region/idf/IdfDepartmentCode.ts on lines 3..11

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

      export abstract class UfoSearchDatasource extends AbstractDatasource<UfoSearchCase> {
      
        protected constructor(authors = ["Geldreich, Rich"], copyright = "UFO Search") {
          super(authors, copyright)
        }
      Severity: Major
      Found in time/datasource/ufo-search/UfoSearchDatasource.ts and 2 other locations - About 1 hr to fix
      time/datasource/baseovnifrance/BaseOvniFranceDatasource.ts on lines 5..12
      time/datasource/essex-police/EssexPoliceDatasource.ts on lines 5..12

      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

      Severity
      Category
      Status
      Source
      Language