File Complexity Overall
  • There are 28 files with units, with 8,926 lines of code.
    • 2 very complex files (McCabe index sum 251+; 3,446 lines of code)
    • 2 complex files (McCabe index sum 126-250; 1,898 lines of code)
    • 4 medium complex files (McCabe index sum 51-125; 1,087 lines of code)
    • 4 slightly complex files (McCabe index sum 26-50; 874 lines of code)
    • 16 simple files (McCabe index sum 1-25; 1,621 lines of code)
  • 6 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system38% | 21% | 12% | 9% | 18%
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
py38% | 21% | 12% | 9% | 18%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
smallpond41% | 22% | 13% | 10% | 12%
benchmarks0% | 0% | 0% | 0% | 100%
Most Complex Files (Top 28)

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
task.py
in smallpond/execution
2475 241 549 22 28
scheduler.py
in smallpond/execution
971 93 316 33 22
dataset.py
in smallpond/logical
700 65 157 22 12
node.py
in smallpond/logical
1198 106 136 11 13
workqueue.py
in smallpond/execution
342 43 104 30 18
dataframe.py
in smallpond
296 38 86 29 8
planner.py
in smallpond/logical
224 16 82 37 25
executor.py
in smallpond/execution
225 25 70 31 25
udf.py
in smallpond/logical
179 21 50 28 27
session.py
in smallpond
263 13 47 18 16
arrow.py
in smallpond/io
293 17 36 12 11
utility.py
in smallpond
139 17 34 24 6
322 8 23 7 7
filesystem.py
in smallpond/io
92 6 19 21 8
common.py
in smallpond
66 10 18 27 5
driver.py
in smallpond/execution
366 13 18 5 3
warc.py
in smallpond/contrib
97 5 14 14 4
optimizer.py
in smallpond/logical
33 4 14 42 7
base.py
in smallpond/platform
60 11 12 20 2
__init__.py
in smallpond/platform
21 1 8 38 8
manager.py
in smallpond/execution
217 4 6 3 3
93 3 5 5 3
log_dataset.py
in smallpond/contrib
26 4 4 15 1
72 2 3 4 2
79 2 3 4 2
copy_table.py
in smallpond/contrib
14 2 3 21 2
mpi.py
in smallpond/platform
29 2 2 7 1
__init__.py
in smallpond
34 1 1 3 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...