deeplearning4j/deeplearning4j

View on GitHub

Showing 13,405 of 13,405 total issues

File BaseNDArray.java has 4128 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

    File SameDiff.java has 3648 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

      Nd4j has 487 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}*/

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

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

          File Nd4j.java has 3032 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 2921 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 388 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/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 342 methods (exceeds 20 allowed). Consider refactoring.
                Open

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

                  File MultiLayerNetwork.java has 2433 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 Shape.java has 2402 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 2394 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

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