File Complexity Overall
  • There are 24 files with units, with 2,080 lines of code.
    • 0 very complex files (McCabe index sum 251+; 0 lines of code)
    • 0 complex files (McCabe index sum 126-250; 0 lines of code)
    • 0 medium complex files (McCabe index sum 51-125; 0 lines of code)
    • 0 slightly complex files (McCabe index sum 26-50; 0 lines of code)
    • 24 simple files (McCabe index sum 1-25; 2,080 lines of code)
  • 4 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 0% | 0% | 0% | 100%
Legend:
251+
126-250
51-125
26-50
1-25


explore: grouped by folders | grouped by complexity
File Complexity per Extension
251+
126-250
51-125
26-50
1-25
hpp0% | 0% | 0% | 0% | 100%
h0% | 0% | 0% | 0% | 100%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
include0% | 0% | 0% | 0% | 100%
Most Complex Files (Top 24)

The McCabe index of a file grows with its size: per 100 lines tells a large but plain file from a dense one, and most complex unit whether the complexity sits in one unit or is spread over many.

File# lines# unitsMcCabe index
(sum)
per 100
lines
most complex
unit
exception.hpp
in include/deep_jit/utils
166 7 25 15 7
filesystem.hpp
in include/deep_jit/utils
92 9 24 26 5
kernel.hpp
in include/deep_jit/backend/ascend
187 5 22 12 8
parser.hpp
in include/deep_jit/utils
95 5 21 22 8
kernel.hpp
in include/deep_jit/backend/cuda
145 4 20 14 9
env.hpp
in include/deep_jit/utils
72 6 17 24 9
backend.hpp
in include/deep_jit/backend/cuda
170 3 17 10 10
device.hpp
in include/deep_jit/backend/cuda
61 9 14 23 4
json.hpp
in include/deep_jit/utils
116 1 10 9 10
device.hpp
in include/deep_jit/backend/ascend
63 8 8 13 1
backend.hpp
in include/deep_jit/backend/ascend
151 3 8 5 4
runtime.hpp
in include/deep_jit/runtime
84 6 7 8 2
command.hpp
in include/deep_jit/utils
29 1 5 17 5
str.hpp
in include/deep_jit/utils
22 1 4 18 4
lazy.hpp
in include/deep_jit/utils
58 3 3 5 1
driver.hpp
in include/deep_jit/backend/ascend
28 1 3 11 3
options.hpp
in include/deep_jit/backend/ascend
138 3 3 2 1
stable_torch_utils.h
in include/deep_jit/backend/cuda
48 3 3 6 1
options.hpp
in include/deep_jit/backend/cuda
183 3 3 2 1
driver.hpp
in include/deep_jit/backend/cuda
51 1 2 4 2
python_api.hpp
in include/deep_jit
14 1 1 7 1
config.hpp
in include/deep_jit/runtime
53 1 1 2 1
hash.hpp
in include/deep_jit/utils
35 1 1 3 1
uuid.hpp
in include/deep_jit/utils
19 1 1 5 1
About This Analysis
  • File complexity is the sum of the McCabe indexes (conditional complexity) of the units (methods, functions...) in a file.
  • Files are classified in five categories based on that sum: 1-25 (simple files), 26-50 (slightly complex files), 51-125 (medium complex files), 126-250 (complex files), 251+ (very complex files). The default bands are five times the unit complexity bands, as a file is a group of units.
  • Only main code files with units are classified. Files without units (languages without unit analysis, or files without functions) have no complexity to measure and are left out rather than counted as simple.
  • A very complex file holds many decisions, which often means it has too many responsibilities: a candidate to split, and a place where changes need more testing.
Learn more...