File Complexity Overall
  • There are 15 files with units, with 2,217 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)
    • 2 medium complex files (McCabe index sum 51-125; 798 lines of code)
    • 0 slightly complex files (McCabe index sum 26-50; 0 lines of code)
    • 13 simple files (McCabe index sum 1-25; 1,419 lines of code)
  • 11 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 0% | 35% | 0% | 64%
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% | 54% | 0% | 45%
tsx0% | 0% | 0% | 0% | 100%
ts0% | 0% | 0% | 0% | 100%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
sparse_autoencoder0% | 0% | 54% | 0% | 45%
sae-viewer0% | 0% | 0% | 0% | 100%
Most Complex Files (Top 15)

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
train.py
in sparse_autoencoder
538 37 83 15 7
explanations.py
in sparse_autoencoder
260 19 58 22 15
kernels.py
in sparse_autoencoder
515 19 21 4 3
model.py
in sparse_autoencoder
125 17 20 16 2
tokenAblationmap.tsx
in sae-viewer/src/components
101 1 20 20 20
featureInfo.tsx
in sae-viewer/src/components
155 2 11 7 6
paths.py
in sparse_autoencoder
16 4 6 38 2
tokenHeatmap.tsx
in sae-viewer/src/components
45 2 6 13 4
types.ts
in sae-viewer/src
100 3 4 4 2
tooltip.tsx
in sae-viewer/src/components
36 2 4 11 3
interpAPI.ts
in sae-viewer/src
46 3 4 9 2
loss.py
in sparse_autoencoder
23 3 3 13 1
featureSelect.tsx
in sae-viewer/src/components
124 1 3 2 3
autoencoder_registry.tsx
in sae-viewer/src
97 1 2 2 2
feed.tsx
in sae-viewer/src
36 1 2 6 2
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...