deeplearning4j/deeplearning4j

View on GitHub
nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/api/blas/impl/BaseLevel1.java

Summary

Maintainability
F
5 days
Test Coverage

BaseLevel1 has 61 methods (exceeds 20 allowed). Consider refactoring.
Open

public abstract class BaseLevel1 extends BaseLevel implements Level1 {
    /**
     * computes a vector-vector dot product.
     *
     * @param n number of accessed element

    File BaseLevel1.java has 292 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /*
     *  ******************************************************************************
     *  *
     *  *
     *  * This program and the accompanying materials are made available under the

      Method daxpy has 8 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          protected abstract void daxpy(long N, double alpha, DataBuffer x, int offsetX, int incrX, DataBuffer y, int offsetY,
                          int incrY);

        Method haxpy has 8 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            protected abstract void haxpy(long N, float alpha, DataBuffer x, int offsetX, int incrX, DataBuffer y, int offsetY,
                            int incrY);

          Method saxpy has 8 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              protected abstract void saxpy(long N, float alpha, DataBuffer x, int offsetX, int incrX, DataBuffer y, int offsetY,
                              int incrY);

            Method axpy has 8 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                public void axpy(long n, double alpha, DataBuffer x, int offsetX, int incrX, DataBuffer y, int offsetY, int incrY) {

              Method srot has 7 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                  protected abstract void srot(long N, INDArray X, int incX, INDArray Y, int incY, float c, float s);

                Method drot has 7 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                    protected abstract void drot(long N, INDArray X, int incX, INDArray Y, int incY, double c, double s);

                  Method dot has 7 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                      public double dot(long n, DataBuffer x, int offsetX, int incrX, DataBuffer y, int offsetY, int incrY) {

                    Method sdot has 7 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                        protected abstract float sdot(long N, DataBuffer X, int offsetX, int incX, DataBuffer Y, int offsetY, int incY);

                      Method dcopy has 7 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                          protected abstract void dcopy(long n, DataBuffer x, int offsetX, int incrX, DataBuffer y, int offsetY, int incrY);

                        Method ddot has 7 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                            protected abstract double ddot(long N, DataBuffer X, int offsetX, int incX, DataBuffer Y, int offsetY, int incY);

                          Method copy has 7 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                              public void copy(long n, DataBuffer x, int offsetX, int incrX, DataBuffer y, int offsetY, int incrY) {

                            Method hdot has 7 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                protected abstract float hdot(long N, DataBuffer X, int offsetX, int incX, DataBuffer Y, int offsetY, int incY);

                              Method scopy has 7 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                                  protected abstract void scopy(long n, DataBuffer x, int offsetX, int incrX, DataBuffer y, int offsetY, int incrY);

                                Method drotm has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                    protected abstract void drotm(long N, INDArray X, int incX, INDArray Y, int incY, INDArray P);

                                  Method daxpy has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                      protected abstract void daxpy(long N, double alpha, INDArray X, int incX, INDArray Y, int incY);

                                    Method haxpy has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                        protected abstract void haxpy(long N, float alpha, INDArray X, int incX, INDArray Y, int incY);

                                      Method srotm has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                          protected abstract void srotm(long N, INDArray X, int incX, INDArray Y, int incY, INDArray P);

                                        Method sdsdot has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                            protected abstract float sdsdot(long N, float alpha, INDArray X, int incX, INDArray Y, int incY);

                                          Method saxpy has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                          Open

                                              protected abstract void saxpy(long N, float alpha, INDArray X, int incX, INDArray Y, int incY);

                                            Method srotmg has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                            Open

                                                protected abstract void srotmg(float d1, float d2, float b1, float b2, INDArray P);

                                              Method rot has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                              Open

                                                  public void rot(long N, INDArray X, INDArray Y, double c, double s) {

                                                Method drotmg has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                Open

                                                    protected abstract void drotmg(double d1, double d2, double b1, double b2, INDArray P);

                                                  Method sdot has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                  Open

                                                      protected abstract float sdot(long N, INDArray X, int incX, INDArray Y, int incY);

                                                    Method dsdot has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                    Open

                                                        protected abstract double dsdot(long N, INDArray X, int incX, INDArray Y, int incY);

                                                      Method ddot has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                      Open

                                                          protected abstract double ddot(long N, INDArray X, int incX, INDArray Y, int incY);

                                                        Method sswap has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                        Open

                                                            protected abstract void sswap(long N, INDArray X, int incX, INDArray Y, int incY);

                                                          Method dswap has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                          Open

                                                              protected abstract void dswap(long N, INDArray X, int incX, INDArray Y, int incY);

                                                            Method hdot has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                            Open

                                                                protected abstract float hdot(long N, INDArray X, int incX, INDArray Y, int incY);

                                                              Method scopy has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                              Open

                                                                  protected abstract void scopy(long N, INDArray X, int incX, INDArray Y, int incY);

                                                                Method rotmg has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                Open

                                                                    public void rotmg(INDArray d1, INDArray d2, INDArray b1, double b2, INDArray P) {

                                                                  Method dcopy has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                  Open

                                                                      protected abstract void dcopy(long N, INDArray X, int incX, INDArray Y, int incY);

                                                                    Method dot has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                                                    Open

                                                                        @Override
                                                                        public double dot(long n, DataBuffer x, int offsetX, int incrX, DataBuffer y, int offsetY, int incrY) {
                                                                            if (supportsDataBufferL1Ops()) {
                                                                                if (x.dataType() == DataType.FLOAT) {
                                                                                    return sdot(n, x, offsetX, incrX, y, offsetY, incrY);

                                                                    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

                                                                    Method axpy has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                                                    Open

                                                                        @Override
                                                                        public void axpy(long n, double alpha, DataBuffer x, int offsetX, int incrX, DataBuffer y, int offsetY, int incrY) {
                                                                            if (supportsDataBufferL1Ops()) {
                                                                                if (x.dataType() == DataType.DOUBLE) {
                                                                                    daxpy(n, alpha, x, offsetX, incrX, y, offsetY, incrY);

                                                                    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

                                                                    Method asum has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                                                    Open

                                                                        @Override
                                                                        public double asum(long n, DataBuffer x, int offsetX, int incrX) {
                                                                            if (supportsDataBufferL1Ops()) {
                                                                                if (x.dataType() == DataType.FLOAT) {
                                                                                    return sasum(n, x, offsetX, incrX);

                                                                    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

                                                                    Method iamax has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                                                    Open

                                                                        @Override
                                                                        public int iamax(long n, DataBuffer x, int offsetX, int incrX) {
                                                                            if (supportsDataBufferL1Ops()) {
                                                                                if (x.dataType() == DataType.FLOAT) {
                                                                                    return isamax(n, x, offsetX, incrX);

                                                                    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

                                                                    Method copy has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                                                    Open

                                                                        @Override
                                                                        public void copy(long n, DataBuffer x, int offsetX, int incrX, DataBuffer y, int offsetY, int incrY) {
                                                                    
                                                                    
                                                                            if (supportsDataBufferL1Ops()) {

                                                                    Cognitive Complexity

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

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

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

                                                                    Further reading

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

                                                                        @Override
                                                                        public void swap(INDArray x, INDArray y) {
                                                                            if (OpProfiler.getInstance().getConfig().isCheckElapsedTime())
                                                                                OpProfiler.getInstance().processBlasCall(false, x, y);
                                                                    
                                                                    
                                                                    nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/api/blas/impl/BaseLevel1.java on lines 237..249

                                                                    Duplicated Code

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

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

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

                                                                    Tuning

                                                                    This issue has a mass of 123.

                                                                    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

                                                                        @Override
                                                                        public void copy(INDArray x, INDArray y) {
                                                                            if (OpProfiler.getInstance().getConfig().isCheckElapsedTime())
                                                                                OpProfiler.getInstance().processBlasCall(false, x, y);
                                                                    
                                                                    
                                                                    nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/api/blas/impl/BaseLevel1.java on lines 216..228

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

                                                                    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

                                                                        @Override
                                                                        public double nrm2(INDArray arr) {
                                                                    
                                                                            if (OpProfiler.getInstance().getConfig().isCheckElapsedTime())
                                                                                OpProfiler.getInstance().processBlasCall(false, arr);
                                                                    nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/api/blas/impl/BaseLevel1.java on lines 184..197

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

                                                                        @Override
                                                                        public int iamax(INDArray arr) {
                                                                    
                                                                            if (OpProfiler.getInstance().getConfig().isCheckElapsedTime())
                                                                                OpProfiler.getInstance().processBlasCall(false, arr);
                                                                    nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/api/blas/impl/BaseLevel1.java on lines 89..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 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 2 locations. Consider refactoring.
                                                                    Open

                                                                            } else {
                                                                                DefaultOpExecutioner.validateDataType(DataType.HALF, x, y);
                                                                                haxpy(n, (float) alpha, x, BlasBufferUtil.getBlasStride(x), y, BlasBufferUtil.getBlasStride(y));
                                                                            }
                                                                    nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/api/blas/impl/BaseLevel1.java on lines 293..296

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

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

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

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

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

                                                                    Refactorings

                                                                    Further Reading

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

                                                                            } else if (x.data().dataType() == DataType.FLOAT) {
                                                                                DefaultOpExecutioner.validateDataType(DataType.FLOAT, x, y);
                                                                                saxpy(n, (float) alpha, x, BlasBufferUtil.getBlasStride(x), y, BlasBufferUtil.getBlasStride(y));
                                                                            } else {
                                                                    nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/api/blas/impl/BaseLevel1.java on lines 296..299

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

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

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

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

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

                                                                    Refactorings

                                                                    Further Reading

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

                                                                                if (x.dataType() == DataType.FLOAT) {
                                                                                    return isamax(n, x, offsetX, incrX);
                                                                                } else {
                                                                                    return isamax(n, x, offsetX, incrX);
                                                                                }
                                                                    nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/api/blas/impl/BaseLevel1.java on lines 134..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 40.

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

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

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

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

                                                                    Refactorings

                                                                    Further Reading

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

                                                                                } else if (x.dataType() == DataType.DOUBLE) {
                                                                                    return dasum(n, x, offsetX, incrX);
                                                                                } else {
                                                                                    return hasum(n, x, offsetX, incrX);
                                                                                }
                                                                    nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/api/blas/impl/BaseLevel1.java on lines 164..168

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

                                                                    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