deeplearning4j/deeplearning4j

View on GitHub

Showing 13,580 of 13,580 total issues

File BaseNDArray.java has 4319 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 pydl4j/pydl4j/progressbar.py and 1 other location - About 1 wk to fix
    pydatavec/pydatavec/utils.py on lines 31..141

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

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

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

      File Nd4j.java has 3663 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 SameDiff.java has 3384 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 422 methods (exceeds 20 allowed). Consider refactoring.
          Open

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

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

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

              File ComputationGraph.java has 2865 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

                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

                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

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

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

                  BaseSparseNDArray has 337 methods (exceeds 20 allowed). Consider refactoring.
                  Open

                  @Slf4j
                  public abstract class BaseSparseNDArray implements ISparseNDArray {
                  
                      /*
                      * TODO: extends baseNdArray

                    File Shape.java has 2386 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 2376 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 MultiLayerNetwork.java has 2361 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

                          // 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 5 days to fix
                          nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/graph/FlatNode.java on lines 1..161

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

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

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

                          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 BaseDataBuffer.java has 2051 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
                              Severity
                              Category
                              Status
                              Source
                              Language