deeplearning4j/deeplearning4j

View on GitHub

Showing 6,577 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

    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;
            
            

              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

                          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;

                              SDMath has 246 methods (exceeds 20 allowed). Consider refactoring.
                              Open

                              public class SDMath extends SDOps {
                                public SDMath(SameDiff sameDiff) {
                                  super(sameDiff);
                                }
                              
                              

                                NativeOps has 238 methods (exceeds 20 allowed). Consider refactoring.
                                Open

                                public interface NativeOps {
                                    /**
                                     * This method allows you to specify minimal number of elements per thread/block during op call
                                     * PLEASE NOTE: Changing this value might and will affect performance.
                                     *

                                  SameDiff has 234 methods (exceeds 20 allowed). Consider refactoring.
                                  Open

                                  @Slf4j
                                  public class SameDiff extends SDBaseOps {
                                      protected static final String GRAD_FN_KEY = "grad";
                                  
                                      //Fields for graph structure and execution

                                    File StaticInfoDecoder.java has 1703 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

                                      Method importGraph has a Cognitive Complexity of 223 (exceeds 5 allowed). Consider refactoring.
                                      Open

                                          public static SameDiff importGraph(@NonNull GraphDef tfGraph, Map<String, TFImportOverride> importOverride, TFOpImportFilter opFilter) {
                                      
                                              /*
                                              First, build an in-memory representation of the graph that allows us to build the graph incrementally
                                              If we can build the graph incrementally, we can make sure that the added variables are set up with the correct

                                      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

                                      Shape has 225 methods (exceeds 20 allowed). Consider refactoring.
                                      Open

                                      public class Shape {
                                      
                                      
                                          private Shape() {}
                                      
                                      
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language