deeplearning4j/deeplearning4j

View on GitHub

Showing 13,465 of 13,465 total issues

File BaseNDArray.java has 4149 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*******************************************************************************
 * Copyright (c) 2015-2018 Skymind, Inc.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Apache License, Version 2.0 which is available at

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

    class ProgressBar(object):
        """Displays a progress bar.
    
        # Arguments
            target: Total number of steps expected, None if unknown.
    Severity: Major
    Found in pydatavec/pydatavec/utils.py and 1 other location - About 1 wk to fix
    pydl4j/pydl4j/progressbar.py on lines 26..136

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

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

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

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

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

    Refactorings

    Further Reading

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

    class ProgressBar(object):
        """Displays a progress bar.
    
        # Arguments
            target: Total number of steps expected, None if unknown.
    Severity: Major
    Found in pydl4j/pydl4j/progressbar.py and 1 other location - About 1 wk to fix
    pydatavec/pydatavec/utils.py on lines 32..142

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

    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

    Nd4j has 489 methods (exceeds 20 allowed). Consider refactoring.
    Open

    public class Nd4j {
    
        private final static String DATA_BUFFER_OPS = "databufferfactory";
        private final static String CONVOLUTION_OPS = "convops";
        /**@deprecated Use {@link ND4JSystemProperties#DTYPE}*/

      File SameDiff.java has 3263 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /*******************************************************************************
       * Copyright (c) 2015-2018 Skymind, Inc.
       *
       * This program and the accompanying materials are made available under the
       * terms of the Apache License, Version 2.0 which is available at

        DifferentialFunctionFactory has 448 methods (exceeds 20 allowed). Consider refactoring.
        Open

        @Data
        public class DifferentialFunctionFactory {
        
            protected SameDiff sameDiff;
            private static Map<String, Method> methodNames;

          File Nd4j.java has 3051 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          /* *****************************************************************************
           * Copyright (c) 2015-2018 Skymind, Inc.
           *
           * This program and the accompanying materials are made available under the
           * terms of the Apache License, Version 2.0 which is available at

            File ComputationGraph.java has 2926 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            /*******************************************************************************
             * Copyright (c) 2015-2018 Skymind, Inc.
             *
             * This program and the accompanying materials are made available under the
             * terms of the Apache License, Version 2.0 which is available at

              BaseNDArray has 390 methods (exceeds 20 allowed). Consider refactoring.
              Open

              @Slf4j
              public abstract class BaseNDArray implements INDArray, Iterable {
              
                  private static final long serialVersionUID = 3285982317165542614L;
              
              

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

                Severity: Major
                Found in docs/scala_doc.py and 1 other location - About 1 wk to fix
                docs/java_doc.py on lines 0..130

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

                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

                Severity: Major
                Found in docs/java_doc.py and 1 other location - About 1 wk to fix
                docs/scala_doc.py on lines 0..131

                Duplicated Code

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

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

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

                Tuning

                This issue has a mass of 724.

                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

                INDArray has 344 methods (exceeds 20 allowed). Consider refactoring.
                Open

                public interface INDArray extends Serializable, AutoCloseable {
                    /**
                     * Returns the shape information debugging information
                     * @return the shape information.
                     */

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

                  // automatically generated by the FlatBuffers compiler, do not modify
                  
                  package nd4j.graph;
                  
                  import java.nio.*;
                  Severity: Major
                  Found in libnd4j/include/graph/generated/nd4j/graph/FlatNode.java and 1 other location - About 6 days to fix
                  nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/graph/FlatNode.java on lines 1..182

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

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

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

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

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

                  Refactorings

                  Further Reading

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

                  // automatically generated by the FlatBuffers compiler, do not modify
                  
                  package org.nd4j.graph;
                  
                  import java.nio.*;
                  libnd4j/include/graph/generated/nd4j/graph/FlatNode.java on lines 1..181

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

                  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

                  File MultiLayerNetwork.java has 2460 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  /*******************************************************************************
                   * Copyright (c) 2015-2018 Skymind, Inc.
                   *
                   * This program and the accompanying materials are made available under the
                   * terms of the Apache License, Version 2.0 which is available at

                    File ArrayUtil.java has 2399 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    /*******************************************************************************
                     * Copyright (c) 2015-2018 Skymind, Inc.
                     *
                     * This program and the accompanying materials are made available under the
                     * terms of the Apache License, Version 2.0 which is available at
                    Severity: Major
                    Found in nd4j/nd4j-common/src/main/java/org/nd4j/linalg/util/ArrayUtil.java - About 6 days to fix

                      File Shape.java has 2397 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      /*******************************************************************************
                       * Copyright (c) 2015-2018 Skymind, Inc.
                       *
                       * This program and the accompanying materials are made available under the
                       * terms of the Apache License, Version 2.0 which is available at

                        File BaseDataBuffer.java has 2089 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        /*******************************************************************************
                         * Copyright (c) 2015-2018 Skymind, Inc.
                         *
                         * This program and the accompanying materials are made available under the
                         * terms of the Apache License, Version 2.0 which is available at

                          File UpdateDecoder.java has 2025 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          /*******************************************************************************
                           * Copyright (c) 2015-2018 Skymind, Inc.
                           *
                           * This program and the accompanying materials are made available under the
                           * terms of the Apache License, Version 2.0 which is available at

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

                            var Legend = (function () {
                                function Legend() {
                                }
                                Legend.offsetX = 15;
                                Legend.offsetY = 15;
                            arbiter/arbiter-ui/src/main/resources/deeplearning4jUiAssets/dl4j-ui.js on lines 551..603

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

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

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

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

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

                            Refactorings

                            Further Reading

                            Severity
                            Category
                            Status
                            Source
                            Language