File Complexity Overall
  • There are 42 files with units, with 23,324 lines of code.
    • 1 very complex files (McCabe index sum 251+; 5,869 lines of code)
    • 2 complex files (McCabe index sum 126-250; 3,780 lines of code)
    • 7 medium complex files (McCabe index sum 51-125; 6,222 lines of code)
    • 6 slightly complex files (McCabe index sum 26-50; 1,721 lines of code)
    • 26 simple files (McCabe index sum 1-25; 5,732 lines of code)
  • 23 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system25% | 16% | 26% | 7% | 24%
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
py25% | 16% | 26% | 7% | 24%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
src25% | 16% | 26% | 7% | 24%
Most Complex Files (Top 42)

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
openai_utils.py
in src/gabriel/utils
5869 113 461 8 36
passage_viewer.py
in src/gabriel/utils
1394 42 193 14 28
plot_utils.py
in src/gabriel/utils
2386 35 143 6 47
codify.py
in src/gabriel/tasks
825 19 107 13 28
debias.py
in src/gabriel/tasks
1294 28 88 7 37
ideate.py
in src/gabriel/tasks
792 13 71 9 14
poll.py
in src/gabriel/tasks
770 19 62 8 19
rank.py
in src/gabriel/tasks
1737 22 61 4 18
file_utils.py
in src/gabriel/utils
529 18 54 10 9
_run_utils.py
in src/gabriel/tasks
275 15 52 19 9
mapmaker.py
in src/gabriel/utils
435 13 40 9 14
discover.py
in src/gabriel/tasks
450 9 39 9 10
media_utils.py
in src/gabriel/utils
68 3 31 46 13
merge.py
in src/gabriel/tasks
422 6 27 6 17
parsing.py
in src/gabriel/utils
216 3 26 12 22
modality_utils.py
in src/gabriel/utils
130 4 26 20 19
bucket.py
in src/gabriel/tasks
384 8 24 6 9
whatever.py
in src/gabriel/tasks
311 6 21 7 11
deidentify.py
in src/gabriel/tasks
239 4 20 8 11
seed.py
in src/gabriel/tasks
429 8 18 4 4
api.py
in src/gabriel
1414 7 16 1 5
extract.py
in src/gabriel/tasks
444 6 15 3 5
classify.py
in src/gabriel/tasks
514 5 12 2 3
logging.py
in src/gabriel/utils
46 4 12 26 6
prompt_template.py
in src/gabriel/core
94 6 11 12 6
deduplicate.py
in src/gabriel/tasks
361 4 10 3 3
word_matching.py
in src/gabriel/utils
54 4 8 15 3
pipeline.py
in src/gabriel/core
11 2 5 45 4
jinja.py
in src/gabriel/utils
22 3 5 23 2
rate.py
in src/gabriel/tasks
323 2 4 1 3
filter.py
in src/gabriel/tasks
144 2 4 3 3
paraphrase.py
in src/gabriel/tasks
419 2 4 1 3
compare.py
in src/gabriel/tasks
231 2 4 2 3
__main__.py
in src/gabriel/cli
38 2 4 11 3
__init__.py
in src/gabriel/tasks
57 2 3 5 2
pdf_utils.py
in src/gabriel/utils
15 1 3 20 3
audio_utils.py
in src/gabriel/utils
16 1 3 19 3
prompt_utils.py
in src/gabriel/utils
27 1 3 11 3
__init__.py
in src/gabriel
56 1 2 4 2
image_utils.py
in src/gabriel/utils
8 1 2 25 2
_attribute_utils.py
in src/gabriel/tasks
53 1 1 2 1
llm_client.py
in src/gabriel/core
22 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...