tensorflow / java-ndarray
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 1,408 units with 7,510 lines of code in units (67.5% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 3 medium complex units (174 lines of code)
    • 26 simple units (629 lines of code)
    • 1,379 very simple units (6,707 lines of code)
0% | 0% | 2% | 8% | 89%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
java0% | 0% | 2% | 8% | 89%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ndarray/impl/buffer0% | 0% | 3% | 22% | 73%
ndarray/impl/dimension0% | 0% | 36% | 0% | 63%
ndarray/impl/dense0% | 0% | 0% | 3% | 96%
ndarray/index0% | 0% | 0% | 3% | 96%
ndarray0% | 0% | 0% | <1% | 99%
ndarray/impl/sparse0% | 0% | 0% | 0% | 100%
ndarray/buffer0% | 0% | 0% | 0% | 100%
ndarray/impl/sequence0% | 0% | 0% | 0% | 100%
ndarray/impl0% | 0% | 0% | 0% | 100%
ndarray/buffer/layout0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public RelativeDimensionalSpace mapTo()
in ndarray/src/main/java/org/tensorflow/ndarray/impl/dimension/DimensionalSpace.java
86 21 1
public boolean equals()
in ndarray/src/main/java/org/tensorflow/ndarray/impl/buffer/misc/BooleanArrayDataBuffer.java
44 14 1
public boolean equals()
in ndarray/src/main/java/org/tensorflow/ndarray/impl/buffer/misc/BitSetDataBuffer.java
44 13 1
public boolean equals()
in ndarray/src/main/java/org/tensorflow/ndarray/impl/buffer/raw/BooleanRawDataBuffer.java
33 10 1
protected boolean slowEquals()
in ndarray/src/main/java/org/tensorflow/ndarray/impl/buffer/AbstractDataBuffer.java
27 9 1
public boolean equals()
in ndarray/src/main/java/org/tensorflow/ndarray/impl/buffer/misc/ArrayDataBuffer.java
25 8 1
public boolean equals()
in ndarray/src/main/java/org/tensorflow/ndarray/impl/buffer/raw/FloatRawDataBuffer.java
30 7 1
public boolean equals()
in ndarray/src/main/java/org/tensorflow/ndarray/impl/buffer/raw/IntRawDataBuffer.java
30 7 1
public boolean equals()
in ndarray/src/main/java/org/tensorflow/ndarray/impl/buffer/raw/ByteRawDataBuffer.java
30 7 1
public boolean equals()
in ndarray/src/main/java/org/tensorflow/ndarray/impl/buffer/raw/DoubleRawDataBuffer.java
30 7 1
public boolean equals()
in ndarray/src/main/java/org/tensorflow/ndarray/impl/buffer/raw/LongRawDataBuffer.java
30 7 1
public boolean equals()
in ndarray/src/main/java/org/tensorflow/ndarray/impl/buffer/raw/ShortRawDataBuffer.java
30 7 1
public boolean equals()
in ndarray/src/main/java/org/tensorflow/ndarray/impl/dense/AbstractDenseNdArray.java
16 6 1
public boolean equals()
in ndarray/src/main/java/org/tensorflow/ndarray/impl/buffer/nio/FloatNioDataBuffer.java
27 6 1
public boolean equals()
in ndarray/src/main/java/org/tensorflow/ndarray/impl/buffer/nio/IntNioDataBuffer.java
27 6 1
public boolean equals()
in ndarray/src/main/java/org/tensorflow/ndarray/impl/buffer/nio/DoubleNioDataBuffer.java
27 6 1
public boolean equals()
in ndarray/src/main/java/org/tensorflow/ndarray/impl/buffer/nio/ByteNioDataBuffer.java
27 6 1
public boolean equals()
in ndarray/src/main/java/org/tensorflow/ndarray/impl/buffer/nio/LongNioDataBuffer.java
27 6 1
public boolean equals()
in ndarray/src/main/java/org/tensorflow/ndarray/impl/buffer/nio/ShortNioDataBuffer.java
27 6 1
public boolean equals()
in ndarray/src/main/java/org/tensorflow/ndarray/impl/buffer/adapter/DoubleDataBufferAdapter.java
18 6 1