deeplearning4j/deeplearning4j

View on GitHub

Showing 14,310 of 14,310 total issues

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

    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 492 methods (exceeds 20 allowed). Consider refactoring.
    Open

    @Slf4j
    public class Nd4j {
    
        /**
         * Bitwise namespace - operations related to bitwise manipulation of arrays

      File SameDiff.java has 3391 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 Nd4j.java has 3038 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 2947 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 391 methods (exceeds 20 allowed). Consider refactoring.
            Open

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

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

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

              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 nd4j.graph;
              
              import java.nio.*;
              Severity: Major
              Found in libnd4j/include/graph/generated/nd4j/graph/FlatNode.java and 1 other location - About 1 wk to fix
              nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/graph/FlatNode.java on lines 1..191

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

              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 345 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 2477 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 2442 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/common/util/ArrayUtil.java - About 6 days to fix

                    File Shape.java has 2403 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

                        File WordVectorSerializer.java has 2013 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        /*******************************************************************************
                         * Copyright (c) 2015-2018 Skymind, Inc.
                         * Copyright (c) 2020 Konduit K.K.
                         *
                         * This program and the accompanying materials are made available under the

                          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

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

                          var Legend = (function () {
                              function Legend() {
                              }
                              Legend.offsetX = 15;
                              Legend.offsetY = 15;
                          deeplearning4j/deeplearning4j-ui-parent/deeplearning4j-ui-components/src/main/resources/assets/dl4j-ui.js on lines 576..628

                          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

                          ArrayUtil has 263 methods (exceeds 20 allowed). Consider refactoring.
                          Open

                          public class ArrayUtil {
                          
                          
                              private ArrayUtil() {}
                          
                          
                          Severity: Major
                          Found in nd4j/nd4j-common/src/main/java/org/nd4j/common/util/ArrayUtil.java - About 5 days to fix

                            SDBaseOps has 258 methods (exceeds 20 allowed). Consider refactoring.
                            Open

                            public class SDBaseOps {
                              protected SameDiff sd;
                            
                              public SDBaseOps(SameDiff sameDiff) {
                                this.sd = sameDiff;
                              Severity
                              Category
                              Status
                              Source
                              Language