File Complexity Overall
  • There are 17 files with units, with 3,811 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)
    • 3 medium complex files (McCabe index sum 51-125; 1,437 lines of code)
    • 2 slightly complex files (McCabe index sum 26-50; 830 lines of code)
    • 12 simple files (McCabe index sum 1-25; 1,544 lines of code)
  • 6 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 0% | 37% | 21% | 40%
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% | 0% | 37% | 21% | 40%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
janus0% | 0% | 39% | 22% | 37%
ROOT0% | 0% | 0% | 0% | 100%
Most Complex Files (Top 17)

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
siglip_vit.py
in janus/models
513 24 56 11 10
siglip_vit.py
in janus/janusflow/models
523 24 56 11 10
vq_model.py
in janus/models
401 25 55 14 6
conversation.py
in janus/utils
262 12 42 16 22
uvit.py
in janus/janusflow/models
568 21 33 6 4
modeling_vlm.py
in janus/models
170 12 22 13 5
processing_vlm.py
in janus/janusflow/models
281 20 21 7 2
processing_vlm.py
in janus/models
247 19 20 8 2
145 6 17 12 6
image_processing_vlm.py
in janus/janusflow/models
145 6 17 12 6
modeling_vlm.py
in janus/janusflow/models
135 7 14 10 4
111 3 10 9 8
io.py
in janus/utils
35 3 8 23 6
clip_encoder.py
in janus/models
74 4 8 11 3
projector.py
in janus/models
53 2 8 15 7
clip_encoder.py
in janus/janusflow/models
74 4 8 11 3
74 1 1 1 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...