File Complexity Overall
  • There are 38 files with units, with 6,114 lines of code.
    • 0 very complex files (McCabe index sum 251+; 0 lines of code)
    • 1 complex files (McCabe index sum 126-250; 1,295 lines of code)
    • 5 medium complex files (McCabe index sum 51-125; 1,817 lines of code)
    • 3 slightly complex files (McCabe index sum 26-50; 688 lines of code)
    • 29 simple files (McCabe index sum 1-25; 2,314 lines of code)
  • 25 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 21% | 29% | 11% | 37%
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
tsx0% | 51% | 0% | 0% | 48%
py0% | 0% | 55% | 21% | 23%
ts0% | 0% | 0% | 0% | 100%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
frontend0% | 45% | 0% | 0% | 54%
src0% | 0% | 55% | 21% | 23%
scripts0% | 0% | 0% | 0% | 100%
Most Complex Files (Top 38)

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
RunDetailPage.tsx
in frontend/src/pages
1295 37 223 17 35
orchestrator.py
in src/research_agent/supervisor
556 22 87 16 27
web_reporter.py
in src/research_agent/reporters
385 52 84 22 7
jobs.py
in src/research_agent/backend
418 22 83 20 12
__init__.py
in src/research_agent/tools
257 6 76 30 16
csv_importer.py
in src/research_agent/backend/services
201 8 53 26 20
runtime.py
in src/research_agent/agents
290 12 42 14 13
prompts.py
in src/research_agent/backend
201 12 36 18 7
runs.py
in src/research_agent/backend/routes
197 10 34 17 9
streams.py
in src/research_agent/backend
88 16 24 27 5
useDatabases.ts
in frontend/src/hooks
71 8 14 20 4
storage.py
in src/research_agent/backend
76 5 14 18 5
databases.py
in src/research_agent/backend/routes
139 7 14 10 3
prompts.py
in src/research_agent/backend/routes
76 7 13 17 2
useRuns.ts
in frontend/src/hooks
84 8 11 13 4
DatasetsPage.tsx
in frontend/src/pages
407 4 11 3 5
config.py
in src/research_agent
78 5 10 13 3
ingestion.py
in src/research_agent/analysis
47 3 8 17 4
executor.py
in src/research_agent/backend
35 2 7 20 6
usePrompts.ts
in frontend/src/hooks
96 6 6 6 1
data_analysis.py
in src/research_agent/agents
29 1 6 21 6
RunsPage.tsx
in frontend/src/pages
381 2 5 1 3
stats.py
in src/research_agent/analysis
13 2 5 38 3
useEventStream.ts
in frontend/src/hooks
44 1 4 9 4
checks.py
in src/research_agent/supervisor
14 1 4 29 4
eda.py
in src/research_agent/analysis
9 1 3 33 3
__init__.py
in src/research_agent/agents/literature
41 1 3 7 3
contracts.py
in src/research_agent/agents
34 3 3 9 1
vite.config.ts
in frontend
23 1 2 9 2
main.py
in src/research_agent/backend
25 2 2 8 1
eventSource.ts
in frontend/src/lib
4 1 1 25 1
client.ts
in frontend/src/api
24 1 1 4 1
PromptsPage.tsx
in frontend/src/pages
410 1 1 0 1
19 1 1 5 1
cli.py
in src/research_agent/interface
24 1 1 4 1
base.py
in src/research_agent/agents/literature/providers
6 1 1 17 1
logging.py
in src/research_agent/utils
4 1 1 25 1
system.py
in src/research_agent/backend/routes
13 1 1 8 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...