File Complexity Overall
  • There are 11 files with units, with 2,945 lines of code.
    • 0 very complex files (McCabe index sum 251+; 0 lines of code)
    • 2 complex files (McCabe index sum 126-250; 1,012 lines of code)
    • 2 medium complex files (McCabe index sum 51-125; 567 lines of code)
    • 3 slightly complex files (McCabe index sum 26-50; 1,020 lines of code)
    • 4 simple files (McCabe index sum 1-25; 346 lines of code)
  • 7 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 34% | 19% | 34% | 11%
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
py0% | 34% | 19% | 34% | 11%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
whisper0% | 34% | 19% | 34% | 11%
Most Complex Files (Top 11)

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
decoding.py
in whisper
545 37 140 26 17
english.py
in whisper/normalizers
467 9 126 27 91
tokenizer.py
in whisper
317 24 59 19 10
utils.py
in whisper
250 24 52 21 20
transcribe.py
in whisper
465 7 50 11 20
timing.py
in whisper
299 8 37 12 11
model.py
in whisper
256 23 36 14 7
audio.py
in whisper
81 4 14 17 8
basic.py
in whisper/normalizers
60 4 13 22 6
__init__.py
in whisper
115 3 12 10 10
triton_ops.py
in whisper
90 3 7 8 5
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...