deeplearning4j/deeplearning4j

View on GitHub
codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt

Summary

Maintainability
F
3 mos
Test Coverage

Method SDBaseOps has a Cognitive Complexity of 2008 (exceeds 20 allowed). Consider refactoring.
Open

fun SDBaseOps() =  Namespace("BaseOps"){

    val keepDimsDoc = Mixin("keepDims"){
        Doc(Language.ANY, DocScope.ALL){
            """
Severity: Minor
Found in codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt - About 1 mo to fix

Cognitive Complexity

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

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

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

Further reading

File SDBaseOps.kt has 1949 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*
 *  ******************************************************************************
 *  *
 *  *
 *  * This program and the accompanying materials are made available under the
Severity: Major
Found in codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt - About 5 days to fix

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

        Op("variance") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.summarystats"
            legacy = true
            Input(NUMERIC, "x") { description = "Input variable" }
            Arg(BOOL, "biasCorrected") { description = "If true: divide by (N-1) (i.e., sample variable). If false: divide by N (population variance)" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1735..1749

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

    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

        Op("standardDeviation") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.summarystats"
            legacy = true
            Input(NUMERIC, "x") { description = "Input variable" }
            Arg(BOOL, "biasCorrected") { description = "If true: divide by (N-1) (i.e., sample stdev). If false: divide by N (population stdev)" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 2056..2070

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

    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

        Op("norm2") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.reduce.floating"
            legacy = true
            Input(NUMERIC, "x") { description = "Input variable" }
            Arg(BOOL, "keepDims") { description = "If true: keep the dimensions that are reduced on (as size 1). False: remove the reduction dimensions"; defaultValue=false }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 936..950

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

    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

        Op("norm1") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.reduce.floating"
            legacy = true
            Input(NUMERIC, "x") { description = "Input variable" }
            Arg(BOOL, "keepDims") { description = "If true: keep the dimensions that are reduced on (as size 1). False: remove the reduction dimensions"; defaultValue=false }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 952..966

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

    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

        Op("min") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.reduce.same"
            legacy = true
            Input(NUMERIC, "x") { description = "Input variable" }
            Arg(BOOL, "keepDims") { description = "If true: keep the dimensions that are reduced on (as size 1). False: remove the reduction dimensions"; defaultValue=false }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 815..828
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1807..1820

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

    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

        Op("mean") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.reduce.floating"
            legacy = true
            Input(NUMERIC, "x") { description = "Input variable" }
            Arg(BOOL, "keepDims") { description = "If true: keep the dimensions that are reduced on (as size 1). False: remove the reduction dimensions"; defaultValue=false }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 861..874
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1807..1820

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

    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

        Op("sum") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.reduce.same"
            legacy = true
            Input(NUMERIC, "x") { description = "Input variable" }
            Arg(BOOL, "keepDims") { description = "If true: keep the dimensions that are reduced on (as length 1). False: remove the reduction dimensions"; defaultValue=false }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 815..828
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 861..874

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

    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

        Op("sparseToDense") {
            javaPackage = "org.nd4j.linalg.api.ops.compat"
            javaOpClass = "CompatSparseToDense"
            Input(NUMERIC, "indices") { description = "The indices of the sparse matrix" }
            Input(NUMERIC, "shape") { description = "The output shape" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Image.kt on lines 298..311

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

    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

        Op("range") {
            javaPackage = "org.nd4j.linalg.api.ops.random.impl"
            Input(NUMERIC, "from") { description = "Initial/smallest value" }
            Input(NUMERIC, "to") { description = "Largest value (exclusive)" }
            Input(NUMERIC, "step") { description = "Step size" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1189..1204

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

    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

        Op("range") {
            javaPackage = "org.nd4j.linalg.api.ops.random.impl"
            Arg(NUMERIC, "from") { description = "Initial/smallest value" }
            Arg(NUMERIC, "to") { description = "Largest value (exclusive)" }
            Arg(NUMERIC, "step") { description = "Step size" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1206..1221

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

    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

        Op("linspace") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.shape"
            Input(NUMERIC, "start") { description = "Start value" }
            Input(NUMERIC, "stop") { description = "Stop value" }
            Input(LONG, "number") { description = "Number of values to generate" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 542..556

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

    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

        Op("linspace") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.shape"
            Arg(DATA_TYPE, "dataType") { description = "Data type of the output array" }
            Arg(NUMERIC, "start") { description = "Start value" }
            Arg(NUMERIC, "stop") { description = "Stop value" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 558..572

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

    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

        Op("replaceWhere") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.transforms.comparison"
            javaOpClass = "CompareAndSet"
            legacy = true
            Input(NUMERIC, "update") { description = "Source array" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1235..1250

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

    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

        Op("replaceWhere") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.transforms.comparison"
            javaOpClass = "CompareAndReplace"
            legacy = true
            Input(NUMERIC, "update") { description = "Source array" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1252..1267

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

    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

        Op("whereNumpy") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.controlflow"
            javaOpClass = "WhereNumpy"
            Input(NDARRAY, "x") { description = "The first array" }
            Input(NDARRAY, "y") { description = "The second array" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 744..757

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

    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

        Op("where") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.controlflow"
            javaOpClass = "Where"
            Input(NDARRAY, "x") { description = "The first array" }
            Input(NDARRAY, "y") { description = "The second array" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 729..742

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

    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

        Op("splitV")  {
            javaPackage = "org.nd4j.linalg.api.ops.impl.shape"
            javaOpClass = "SplitV"
            Input(NDARRAY,"input") {description = "Input to split"}
            Input(NDARRAY,"sizes") {description = "The sizes to split by"}
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 526..540

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

    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

        Op("clipByNorm") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.transforms.clip"
            javaOpClass = "ClipByNorm"
            Input(NUMERIC, "x") { description = "Input variable to clip" }
            Input(NUMERIC, "clipValue") { description = "The value max value for clipping" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 987..1000

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

    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

        Op("sparseToDense") {
            javaPackage = "org.nd4j.linalg.api.ops.compat"
            javaOpClass = "CompatSparseToDense"
            Input(NUMERIC, "indices") { description = "The indices of the sparse matrix" }
            Input(NUMERIC, "shape") { description = "The output shape" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 481..494
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 496..509

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

    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

        Op("clipByValue") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.transforms.clip"
            javaOpClass = "ClipByValue"
            Input(NUMERIC, "x") { description = "Input variable to cip" }
            Arg(NUMERIC, "clipValueMin") { description = "The value min for clipping" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 496..509
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 590..602

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

    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

        Op("clipByValue") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.transforms.clip"
            javaOpClass = "ClipByValue"
            Input(NUMERIC, "x") { description = "Input variable to cip" }
            Input(NUMERIC, "clipValueMin") { description = "The value min for clipping" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 481..494
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 590..602

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

    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

        Op("gather") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.shape"
            Input(NDARRAY, "df") { description = "Input variable" }
            Input(INT, "indices") { description = "Indices to get slices for. Rank 0 or 1 input" }
            Arg(INT, "axis") { description = "Axis that the indices refer to" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 287..300

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

    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

        Op("lte") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.transforms.custom"
            javaOpClass = "LessThanOrEqual"
            Input(NUMERIC, "x") { description = "Input 1" }
            Input(NUMERIC, "y") { description = "Input 2" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 636..651

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

    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

        Op("lt") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.transforms.custom"
            javaOpClass = "LessThan"
            Input(NDARRAY, "x") {description = "Input 1" }
            Input(NDARRAY, "y") {description = "Input 2" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 668..682

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

    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

        Op("sequenceMask") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.shape"
            Input(NUMERIC, "lengths") { description = "Lengths of the sequences" }
            Arg(INT, "maxLen") { description = "Maximum sequence length" }
            Arg(DATA_TYPE, "dataType") { description = "" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1586..1598

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

    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

        Op("neq") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.transforms.custom"
            javaOpClass = "NotEqualTo"
            Input(NDARRAY, "x") { description = "Input 1" }
            Input(NDARRAY, "y") { description = "Input 2" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 295..309
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 397..412

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

    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

        Op("sequenceMask") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.shape"
            Input(NUMERIC, "lengths") { description = "Lengths of the sequences" }
            Input(INT, "maxLen") { description = "Maximum sequence length" }
            Arg(DATA_TYPE, "dataType") { description = "" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1572..1584

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

    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

        Op("eq") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.transforms.custom"
            javaOpClass = "EqualTo"
            Input(NDARRAY, "x") { description = "Input 1" }
            Input(NDARRAY, "y") { description = "Input 2" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 397..412
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 920..934

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

    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

        Op("gt") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.transforms.custom"
            javaOpClass = "GreaterThan"
            Input(NDARRAY, "x") { description = "Input 1" }
            Input(NDARRAY, "y") { description = "Input 2" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 295..309
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 920..934

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

    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

        Op("repeat") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.shape"
            Input(NUMERIC, "input") { description = "Input value to repeat" }
            Input(NUMERIC, "repeats") { description = "A 1d input representing the number of inputs of repeats for each element." }
            Arg(INT, "axis") { description = "Data type of the output array" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1450..1461
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 328..339

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

    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

        Op("fill") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.transforms.custom"
            Input(INT, "shape") { description = "Shape: must be a 1D array/variable" }
            Arg(DATA_TYPE, "dataType") { description = "Datatype of the output array" }
            Arg(NUMERIC, "value") { description = "Value to set all elements to" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1450..1461
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 575..587

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

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

        Op("lt") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.scalar.comparison"
            javaOpClass = "ScalarLessThan"
            legacy = true
            Input(NDARRAY, "x") { description = "Input array" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 279..293
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 382..395
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 414..427
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 653..666
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 905..918

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

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

        Op("gte") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.scalar.comparison"
            javaOpClass = "ScalarGreaterThanOrEqual"
            legacy = true
            Input(NDARRAY, "x") { description = "Input array" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 279..293
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 382..395
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 621..634
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 653..666
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 905..918

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

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

        Op("neq") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.scalar.comparison"
            javaOpClass = "ScalarNotEquals"
            legacy = true
            Input(NDARRAY, "x") {  description = "Input array" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 279..293
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 382..395
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 414..427
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 621..634
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 653..666

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

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

        Op("eq") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.scalar.comparison"
            javaOpClass = "ScalarEquals"
            legacy = true
            Input(NUMERIC, "x") { description = "Input array" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 382..395
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 414..427
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 621..634
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 653..666
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 905..918

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

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

        Op("lte") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.scalar.comparison"
            javaOpClass = "ScalarLessThanOrEqual"
            legacy = true
            Input(NDARRAY, "x") { description = "Input array" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 279..293
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 382..395
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 414..427
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 621..634
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 905..918

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

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

        Op("gt") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.scalar.comparison"
            javaOpClass = "ScalarGreaterThan"
            legacy = true
            Input(NDARRAY, "x") { description = "Input array" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 279..293
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 414..427
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 621..634
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 653..666
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 905..918

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

    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

        Op("any") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.reduce.bool"
            legacy = true
            Input(NDARRAY, "x") { description = " Input variable" }
            Arg(LONG, "dimensions"){ count = AtLeast(0); description = "Dimensions to reduce over. If dimensions are not specified, full array reduction is performed" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 2101..2112

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

    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

        Op("all") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.reduce.bool"
            legacy = true
            Input(NDARRAY, "x") { description = "Input variable" }
            Arg(LONG, "dimensions"){ count = AtLeast(0); description = "Dimensions to reduce over. If dimensions are not specified, full array reduction is performed" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 2088..2099

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

    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

        Op("matchConditionCount") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.reduce.longer"
            javaOpClass = "MatchCondition"
            legacy = true
            Input(NUMERIC, "in") { description = "Input" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 172..186
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 684..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 240.

    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

        Op("matchCondition") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.transforms.bool"
            javaOpClass = "MatchConditionTransform"
            legacy = true
            Input(NUMERIC, "in") { description = "Input" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 172..186
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 698..710

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

    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

        Op("assign") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.transforms.custom"
            javaOpClass = "Assign"
            Input(NDARRAY, "x") { description = "The variable to assign to" }
            Input(NDARRAY, "y") { description = "The variable to assign" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 193..205
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 511..524

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

    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

        Op("clipByNorm") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.transforms.clip"
            javaOpClass = "ClipByNorm"
            Input(NUMERIC, "x") { description = "Input variable to clip" }
            Arg(NUMERIC, "clipValue") { description = "The value max for clipping" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 193..205
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 248..261

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

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

        Op("minMax"){
            javaPackage = "org.nd4j.linalg.api.ops.impl.transforms.dtype"
            javaOpClass = "MinMaxDataType"
            Arg(INT, "datatype"){ description = "The input target data type represented as an int"}
            Arg(INT, "minOrMax"){ description = "The min or max (0 or 1) value to return"}
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Bitwise.kt on lines 172..183
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Bitwise.kt on lines 185..196
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Bitwise.kt on lines 198..210
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Bitwise.kt on lines 212..224
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1518..1530
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1532..1544
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1546..1558
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1560..1572
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 241..253
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1003..1014
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1030..1041
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 2129..2140

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

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

        Op("castTo"){
            javaPackage = "org.nd4j.linalg.api.ops.impl.transforms.dtype"
            javaOpClass = "Cast"
            Input(NDARRAY, "arg") { description = "Input variable to cast"}
            Arg(DATA_TYPE, "datatype"){ description = "Datatype to cast to"}
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Bitwise.kt on lines 172..183
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Bitwise.kt on lines 185..196
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Bitwise.kt on lines 198..210
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Bitwise.kt on lines 212..224
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1518..1530
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1532..1544
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1546..1558
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1560..1572
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 241..253
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1003..1014
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1030..1041
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 2115..2126

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

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

        Op("split")  {
            javaPackage = "org.nd4j.linalg.api.ops.impl.shape"
            javaOpClass = "Split"
            Input(NDARRAY,"input") {description = "Input to split"}
            Arg(INT, "numSplit") { description = "Number of splits" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Bitwise.kt on lines 172..183
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Bitwise.kt on lines 185..196
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Bitwise.kt on lines 198..210
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Bitwise.kt on lines 212..224
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1518..1530
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1532..1544
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1546..1558
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1560..1572
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 241..253
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1030..1041
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 2115..2126
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 2129..2140

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

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

        Op("split")  {
            javaPackage = "org.nd4j.linalg.api.ops.impl.shape"
            javaOpClass = "Split"
            Input(NUMERIC,"input") {description = "Input to split"}
            Input(NUMERIC, "numSplit") { description = "Number of splits" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Bitwise.kt on lines 172..183
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Bitwise.kt on lines 185..196
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Bitwise.kt on lines 198..210
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Bitwise.kt on lines 212..224
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1518..1530
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1532..1544
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1546..1558
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1560..1572
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 241..253
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1003..1014
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 2115..2126
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 2129..2140

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

    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

        Op("min") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.transforms.custom"
            Input(NUMERIC, "first") { description = "First input array" }
            Input(NUMERIC, "second") { description = "Second input array" }
            Output(NUMERIC, "output"){ description = "Second input array" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 802..813

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

    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

        Op("merge") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.controlflow.compat"
            Input(NDARRAY, "x") { description = "Input variable" }
            Input(NDARRAY, "y") { description = "Input variable" }
            Output(NDARRAY, "output"){ description = "Output" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1285..1297

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

    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

        Op("reshape") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.shape"
            Input(NDARRAY, "x") { description = "Input variable" }
            Input(NUMERIC, "shape") { description = "New shape for variable" }
            Output(NUMERIC, "output"){ description = "Output variable" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 846..858

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

    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

        Op("max") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.transforms.custom"
            Input(NUMERIC, "first") { description = "First input array" }
            Input(NUMERIC, "second") { description = "Second input array" }
            Output(NUMERIC, "output"){ description = "Output variable" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 876..887

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

    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

        Op("scalarMax") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.scalar"
            legacy = true
            Input(NUMERIC, "in") { description = "Input variable" }
            Arg(NUMERIC, "value") { description = "Scalar value to compare" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1377..1388
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1390..1401

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

    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

        Op("scalarSet") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.scalar"
            legacy = true
            Input(NUMERIC, "in") { description = "Input variable" }
            Arg(NUMERIC, "set") { description = "Value to set" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1364..1375
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1377..1388

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

    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

        Op("scalarMin") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.scalar"
            legacy = true
            Input(NUMERIC, "in") { description = "Input variable" }
            Arg(NUMERIC, "value") { description = "Scalar value to compare" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1364..1375
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1390..1401

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

    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

        Op("sizeAt") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.shape"
            Input(NDARRAY, "in") { description = "Input variable" }
            Arg(INT, "dimension") { description = "Dimension to get size of" }
            Output(NUMERIC, "output"){ description = "Scalar INDArray  for size at specified variable" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 405..416
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1133..1144
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1703..1714

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

    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

        Op("squeeze") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.shape"
            Input(NUMERIC, "x") { description = "Input variable" }
            Arg(INT, "axis") { description = "Size 1 dimension to remove" }
            Output(NUMERIC, "output"){ description = "Output variable" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 405..416
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1133..1144
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1635..1646

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

    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

        Op("permute") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.shape"
            Input(NDARRAY, "x") { description = "Input variable" }
            Input(INT, "dimensions") { description = "Permute dimensions" }
            Output(NUMERIC, "output"){ description = "Output variable (permuted input)" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 405..416
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1635..1646
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1703..1714

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

    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

        val unsortedSegmentOp = Mixin("unsortedSegmentOp") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.transforms.segment"
            Input(NUMERIC, "data") { description = "Data (variable) to perform unsorted segment max on" }
            Input(NUMERIC, "segmentIds") { description = "Variable for the segment IDs" }
            Arg(INT, "numSegments") { description = "Number of segments" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 58..64
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 105..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 204.

    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

        Op("sequenceMask") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.shape"
            Input(NUMERIC, "lengths") { description = "" }
            Arg(DATA_TYPE,  "dataType") { description = "" }
            Output(NUMERIC, "output"){ description = "" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1121..1131

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

    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

        val scatterOp = Mixin("scatterOp "){
            javaPackage = "org.nd4j.linalg.api.ops.impl.scatter"
            Input(NUMERIC, "ref") { description = "Initial/source variable" }
            Input(NUMERIC, "indices") { description = "Indices array" }
            Input(NUMERIC, "updates") { description = "Updates to add to the initial/source array" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 97..103
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 105..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 204.

    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

        val unsortedSegmentOpInput = Mixin("unsortedSegmentOp") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.transforms.segment"
            Input(NUMERIC, "data") { description = "Data (variable) to perform unsorted segment max on" }
            Input(NUMERIC, "segmentIds") { description = "Variable for the segment IDs" }
            Input(INT, "numSegments") { description = "Number of segments" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 58..64
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 97..103

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

    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

        Op("onesLike") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.shape"
            Input(NDARRAY, "input") { description = "" }
            Arg(DATA_TYPE, "dataType") { description = "" }
            Output(NUMERIC, "output"){ description = "" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1600..1611

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

    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

        Op("setShape")  {
            javaPackage = "org.nd4j.linalg.api.ops.impl.shape"
            javaOpClass = "SetShape"
            Input(NDARRAY,"input") {description = "The input to set the shape of" }
            Input(NUMERIC, "shape") { description = "The shape to set the input to" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 188..199
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDLoss.kt on lines 128..138

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

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

        Op("invertPermutation") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.transforms.custom"
            Input(INT, "input") { description = "1D indices for permutation" }
            Output(INT, "output"){ description = "1D inverted permutation" }
            Doc(Language.ANY, DocScope.ALL){
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 730..741
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 743..754
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 841..852
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 854..865
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1410..1421

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

    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

        Op("onesLike") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.shape"
            Input(NDARRAY, "input") { description = "Input INDArray " }
            Output(NUMERIC, "output"){ description = "A new INDArray  with the same (dynamic) shape as the input" }
            Doc(Language.ANY, DocScope.ALL){
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 2075..2086

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

    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

        Op("zerosLike") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.shape"
            Input(NDARRAY, "input") { description = "Input " }
            Output(NUMERIC, "output"){ description = "A new Variable with the same (dynamic) shape as the input" }
    
    
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1109..1119

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

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

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

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

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

    Refactorings

    Further Reading

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

        Op("identity") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.transforms.same"
            Input(NDARRAY, "input") { description = "Input variable" }
            Output(NDARRAY, "output"){ description = "Output variable" }
            Doc(Language.ANY, DocScope.ALL){
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 531..540
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 588..597
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1439..1448
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 469..478
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1223..1232
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1613..1622
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1888..1897

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

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

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

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

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

    Refactorings

    Further Reading

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

        Op("rank") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.shape"
            Input(NDARRAY, "in") { description = "Input variable" }
            Output(NUMERIC, "output"){ description = "(scalar) output variable with value equal to the rank of the input variable" }
            Doc(Language.ANY, DocScope.ALL){
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 531..540
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 588..597
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1439..1448
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 445..454
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 469..478
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1613..1622
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1888..1897

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

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

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

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

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

    Refactorings

    Further Reading

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

        Op("transpose") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.shape"
            Input(NDARRAY, "x") { description = "Input variable" }
            Output(NDARRAY, "output"){ description = "transposed input" }
            Doc(Language.ANY, DocScope.ALL){
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 531..540
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 588..597
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1439..1448
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 445..454
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 469..478
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1223..1232
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1613..1622

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

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

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

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

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

    Refactorings

    Further Reading

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

        Op("isNumericTensor") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.transforms.custom"
            Input(NUMERIC, "x") { description = "Input variable" }
            Output(NDARRAY, "output"){ description = "scalar boolean with value true or false" }
            Doc(Language.ANY, DocScope.ALL){
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 531..540
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 588..597
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1439..1448
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 445..454
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1223..1232
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1613..1622
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1888..1897

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

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

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

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

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

    Refactorings

    Further Reading

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

        Op("shape") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.shape"
            Input(NDARRAY, "input") { description = "Input variable" }
            Output(NUMERIC, "output"){ description = "1D output variable with contents equal to the shape of the input" }
            Doc(Language.ANY, DocScope.ALL){
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 531..540
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 588..597
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1439..1448
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 445..454
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 469..478
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1223..1232
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1888..1897

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

    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

        Op("scatterNdAdd") {
            useMixin(scatterOp)
            Doc(Language.ANY, DocScope.ALL){
                """
                    Scatter ND Add.
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1496..1507
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1509..1520

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

        Op("scatterNdSub") {
            useMixin(scatterOp)
            Doc(Language.ANY, DocScope.ALL){
                """
                    Scatter ND Subtraction operation.
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1483..1494
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1509..1520

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

        Op("scatterNdUpdate") {
            useMixin(scatterOp)
            Doc(Language.ANY, DocScope.ALL){
                """
                    Scatter ND update operation.
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1483..1494
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1496..1507

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

        Op("unsortedSegmentMax") {
            useMixin(unsortedSegmentOp)
            Doc(Language.ANY, DocScope.ALL){
                """
                    Unsorted segment max operation. As per segmentMax(String, SDVariable, SDVariable) but without
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1912..1923
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1925..1936
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1938..1949
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1963..1974
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1977..1988
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1990..2001
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 2003..2014
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 2016..2027
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 2041..2052

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

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

        Op("unsortedSegmentProd") {
            useMixin(unsortedSegmentOp)
            Doc(Language.ANY, DocScope.ALL){
                """
                    Unsorted segment product operation. As per segmentProd(String, SDVariable, SDVariable) but without
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1899..1910
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1912..1923
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1925..1936
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1963..1974
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1977..1988
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1990..2001
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 2003..2014
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 2016..2027
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 2041..2052

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

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

        Op("unsortedSegmentMin") {
            useMixin(unsortedSegmentOpInput)
            Doc(Language.ANY, DocScope.ALL){
                """
                    Unsorted segment min operation. As per segmentMin(String, SDVariable, SDVariable) but without
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1899..1910
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1912..1923
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1925..1936
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1938..1949
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1963..1974
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1977..1988
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1990..2001
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 2016..2027
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 2041..2052

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

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

        Op("unsortedSegmentSum") {
            useMixin(unsortedSegmentOpInput)
            Doc(Language.ANY, DocScope.ALL){
                """
                    Unsorted segment sum operation. As per segmentSum(String, SDVariable, SDVariable) but without
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1899..1910
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1912..1923
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1925..1936
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1938..1949
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1963..1974
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1977..1988
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1990..2001
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 2003..2014
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 2016..2027

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

    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

        Op("scatterUpdate") {
            useMixin(scatterOp)
            Doc(Language.ANY, DocScope.ALL){
                """
                    Scatter update operation.
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1423..1433
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1435..1445
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1447..1457
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1459..1469

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

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

        Op("unsortedSegmentMax") {
            useMixin(unsortedSegmentOpInput)
            Doc(Language.ANY, DocScope.ALL){
                """
                    Unsorted segment max operation. As per segmentMax(String, SDVariable, SDVariable) but without
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1899..1910
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1912..1923
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1925..1936
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1938..1949
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1963..1974
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1990..2001
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 2003..2014
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 2016..2027
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 2041..2052

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

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

        Op("unsortedSegmentMean") {
            useMixin(unsortedSegmentOpInput)
            Doc(Language.ANY, DocScope.ALL){
                """
                    Unsorted segment mean operation. As per segmentMean(String, SDVariable, SDVariable) but without
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1899..1910
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1912..1923
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1925..1936
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1938..1949
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1963..1974
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1977..1988
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 2003..2014
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 2016..2027
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 2041..2052

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

    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

        Op("scatterMax") {
            useMixin(scatterOp)
            Doc(Language.ANY, DocScope.ALL){
                """
                    Scatter max operation.
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1435..1445
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1447..1457
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1459..1469
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1471..1481

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

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

        Op("unsortedSegmentMin") {
            useMixin(unsortedSegmentOp)
            Doc(Language.ANY, DocScope.ALL){
                """
                    Unsorted segment min operation. As per segmentMin(String, SDVariable, SDVariable) but without
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1899..1910
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1912..1923
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1938..1949
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1963..1974
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1977..1988
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1990..2001
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 2003..2014
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 2016..2027
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 2041..2052

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

    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

        Op("scatterMin") {
            useMixin(scatterOp)
            Doc(Language.ANY, DocScope.ALL){
                """
                    Scatter min operation.
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1423..1433
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1447..1457
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1459..1469
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1471..1481

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

    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

        Op("scatterMul") {
            useMixin(scatterOp)
            Doc(Language.ANY, DocScope.ALL){
                """
                    Scatter multiplication operation.
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1423..1433
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1435..1445
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1459..1469
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1471..1481

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

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

        Op("unsortedSegmentMean") {
            useMixin(unsortedSegmentOp)
            Doc(Language.ANY, DocScope.ALL){
                """
                    Unsorted segment mean operation. As per segmentMean(String, SDVariable, SDVariable) but without
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1899..1910
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1925..1936
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1938..1949
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1963..1974
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1977..1988
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1990..2001
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 2003..2014
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 2016..2027
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 2041..2052

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

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

        Op("unsortedSegmentSum") {
            useMixin(unsortedSegmentOp)
            Doc(Language.ANY, DocScope.ALL){
                """
                    Unsorted segment sum operation. As per segmentSum(String, SDVariable, SDVariable) but without
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1899..1910
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1912..1923
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1925..1936
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1938..1949
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1977..1988
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1990..2001
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 2003..2014
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 2016..2027
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 2041..2052

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

    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

        Op("scatterSub") {
            useMixin(scatterOp)
            Doc(Language.ANY, DocScope.ALL){
                """
                    Scatter subtraction operation.
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1423..1433
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1435..1445
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1447..1457
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1471..1481

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

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

        Op("unsortedSegmentProd") {
            useMixin(unsortedSegmentOpInput)
            Doc(Language.ANY, DocScope.ALL){
                """
                    Unsorted segment product operation. As per segmentProd(String, SDVariable, SDVariable) but without
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1899..1910
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1912..1923
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1925..1936
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1938..1949
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1963..1974
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1977..1988
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1990..2001
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 2003..2014
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 2041..2052

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

    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

        val keepDimsDoc = Mixin("keepDims"){
            Doc(Language.ANY, DocScope.ALL){
                """
                    Note that if keepDims = true, the output variable has the same rank as the input variable,
                    with the reduced dimensions having size 1. This can be useful for later broadcast operations (such as subtracting
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 84..95

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

    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

        val segmentDoc = Mixin("segmentDoc") {
            Doc(Language.ANY, DocScope.ALL) {
                """
                    If data =     [3, 6, 1, 4, 9, 2, 8]
                    segmentIds =  [0, 0, 1, 1, 1, 2, 2]
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 37..48

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

    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

            Doc(Language.ANY, DocScope.ALL){
                """
                    Repeat (tile) the input tensor the specified number of times.
                    For example, if input is
                    [1, 2]
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDLoss.kt on lines 247..260

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

    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

        Op("unsortedSegmentSqrtN") {
            useMixin(unsortedSegmentOpInput)
            Doc(Language.ANY, DocScope.ALL){
                """
                    Unsorted segment sqrtN operation. Simply returns the sqrt of the count of the number of values in each segment
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1951..1961

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

    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

        Op("unsortedSegmentSqrtN") {
            useMixin(unsortedSegmentOp)
            Doc(Language.ANY, DocScope.ALL){
                """
                    Unsorted segment sqrtN operation. Simply returns the sqrt of the count of the number of values in each segment
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 2029..2039

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

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

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

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

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

    Refactorings

    Further Reading

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

        Op("segmentMax") {
            useMixin(segmentOp)
            Doc(Language.ANY, DocScope.ALL){
                """
                    Segment max operation.
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1403..1411
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1413..1421
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1532..1540
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1542..1550
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1552..1560
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1562..1570

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

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

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

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

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

    Refactorings

    Further Reading

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

        Op("segmentProd") {
            useMixin(segmentOp)
            Doc(Language.ANY, DocScope.ALL){
                """
                    Segment product operation.
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1403..1411
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1413..1421
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1522..1530
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1532..1540
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1542..1550
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1562..1570

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

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

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

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

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

    Refactorings

    Further Reading

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

        Op("scatterAdd") {
            useMixin(scatterOp)
            Doc(Language.ANY, DocScope.ALL){
                """
                    Scatter addition operation.
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1413..1421
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1522..1530
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1532..1540
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1542..1550
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1552..1560
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1562..1570

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

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

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

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

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

    Refactorings

    Further Reading

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

        Op("scatterDiv") {
            useMixin(scatterOp)
            Doc(Language.ANY, DocScope.ALL){
                """
                    Scatter division operation.
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1403..1411
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1522..1530
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1532..1540
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1542..1550
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1552..1560
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1562..1570

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

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

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

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

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

    Refactorings

    Further Reading

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

        Op("segmentMin") {
            useMixin(segmentOp)
            Doc(Language.ANY, DocScope.ALL){
                """
                    Segment min operation.
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1403..1411
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1413..1421
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1522..1530
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1532..1540
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1552..1560
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1562..1570

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

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

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

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

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

    Refactorings

    Further Reading

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

        Op("segmentSum") {
            useMixin(segmentOp)
            Doc(Language.ANY, DocScope.ALL){
                """
                    Segment sum operation.
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1403..1411
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1413..1421
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1522..1530
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1532..1540
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1542..1550
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1552..1560

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

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

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

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

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

    Refactorings

    Further Reading

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

        Op("segmentMean") {
            useMixin(segmentOp)
            Doc(Language.ANY, DocScope.ALL){
                """
                    Segment mean operation.
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1403..1411
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1413..1421
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1522..1530
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1542..1550
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1552..1560
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1562..1570

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

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

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

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

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

    Refactorings

    Further Reading

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

            Doc(Language.ANY, DocScope.ALL){
                """
                    Get a subset of the specified input, by specifying the first element and the size of the array.
                    For example, if input is:
                    [a, b, c]
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 430..441
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 95..104
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 323..334
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1674..1685
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1763..1774
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1790..1801

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

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

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

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

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

    Refactorings

    Further Reading

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

            Doc(Language.ANY, DocScope.ALL){
                """
                    Get a subset of the specified input, by specifying the first element, last element, and the strides.
                    For example, if input is:
                    [a, b, c]
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 430..441
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 95..104
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 323..334
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1654..1665
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1674..1685
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1763..1774

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

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

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

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

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

    Refactorings

    Further Reading

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

            Doc(Language.ANY, DocScope.ALL){
                """
                    Get a subset of the specified input, by specifying the first element, last element, and the strides.
                    For example, if input is:
                    [a, b, c]
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 430..441
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 95..104
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 323..334
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1654..1665
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1674..1685
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1790..1801

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

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

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

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

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

    Refactorings

    Further Reading

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

            Doc(Language.ANY, DocScope.ALL){
                """
                    Get a subset of the specified input, by specifying the first element and the size of the array.
                    For example, if input is:
                    [a, b, c]
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 430..441
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 95..104
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 323..334
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1654..1665
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1763..1774
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1790..1801

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

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

            Doc(Language.ANY, DocScope.ALL){
                """
                    Matrix multiply a batch of matrices. matricesA and matricesB have to be arrays of same
                    length and each pair taken from these sets has to have dimensions (M, N) and (N, K),
                    respectively. If transposeA is true, matrices from matricesA will have shape (N, M) instead.
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 302..312
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 340..350
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 448..458
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1722..1732
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDLoss.kt on lines 115..125

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 94.

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

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

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

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

    Refactorings

    Further Reading

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

            Doc(Language.ANY, DocScope.ALL){
                """
                    Stack a set of N INDArray of rank X into one rank X+1 variable.
                    If inputs have shape [a,b,c] then output has shape:
                    axis = 0: [N,a,b,c]
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 302..312
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 340..350
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 448..458
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 2153..2163
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDLoss.kt on lines 115..125

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 94.

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

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

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

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

    Refactorings

    Further Reading

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

            Arg(DATA_TYPE, "dataType") { description = "Output data type"; defaultValue = org.nd4j.linalg.api.buffer.DataType.FLOAT }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Linalg.kt on lines 291..291
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1594..1594

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

    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

            val inputs = Input(NUMERIC, "inputs") {count = AtLeast(1); description = "Input variables" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 432..432
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1275..1275

    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

            val inputs = Input(NDARRAY, "inputs") {count = AtLeast(1); description = "Input variables" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 432..432
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 153..153

    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

            Arg(STRING, "order") { description = "ordering for the variable"; defaultValue = "\"c\"" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1084..1084

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 60.

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

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

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

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

    Refactorings

    Further Reading

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

            Arg(STRING,"order") {description = "Order of array "; defaultValue="\"c\""}
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1276..1276

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 60.

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

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

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

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

    Refactorings

    Further Reading

    There are no issues that match your filters.

    Category
    Status