anthropics / claude-code-security-review
File Size

The distribution of size of files (measured in lines of code).

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 14 files with 1,515 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 3 medium size files (918 lines of code)
    • 3 small files (480 lines of code)
    • 8 very small files (117 lines of code)
0% | 0% | 60% | 31% | 7%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: grouped by folders | grouped by size | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
py0% | 0% | 69% | 21% | 8%
js0% | 0% | 0% | 100% | 0%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
claudecode0% | 0% | 69% | 21% | 8%
scripts0% | 0% | 0% | 100% | 0%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 14)
File# lines# units
392 16
eval_engine.py
in claudecode/evals
294 11
findings_filter.py
in claudecode
232 3
195 4
164 8
run_eval.py
in claudecode/evals
121 2
json_parser.py
in claudecode
47 2
logger.py
in claudecode
26 1
__init__.py
in claudecode
12 -
prompts.py
in claudecode
11 1
constants.py
in claudecode
10 -
__init__.py
in claudecode/evals
7 -
audit.py
in claudecode
3 -
1 -
Files With Most Units (Top 9)
File# lines# units
392 16
eval_engine.py
in claudecode/evals
294 11
164 8
195 4
findings_filter.py
in claudecode
232 3
run_eval.py
in claudecode/evals
121 2
json_parser.py
in claudecode
47 2
logger.py
in claudecode
26 1
prompts.py
in claudecode
11 1
Files With Long Lines (Top 5)

There are 5 files with lines longer than 120 characters. In total, there are 16 long lines.

File# lines# units# long lines
195 4 9
392 16 3
run_eval.py
in claudecode/evals
121 2 2
eval_engine.py
in claudecode/evals
294 11 1
findings_filter.py
in claudecode
232 3 1
Correlations

File Size vs. Commits (all time): 2 points

claudecode/github_action_audit.py x: 2 commits (all time) y: 392 lines of code claudecode/constants.py x: 2 commits (all time) y: 10 lines of code
392.0
lines of code
  min: 10.0
  average: 201.0
  25th percentile: 10.0
  median: 201.0
  75th percentile: 392.0
  max: 392.0
0 2.0
commits (all time)
min: 2.0 | average: 2.0 | 25th percentile: 2.0 | median: 2.0 | 75th percentile: 2.0 | max: 2.0

File Size vs. Contributors (all time): 2 points

claudecode/github_action_audit.py x: 1 contributors (all time) y: 392 lines of code claudecode/constants.py x: 2 contributors (all time) y: 10 lines of code
392.0
lines of code
  min: 10.0
  average: 201.0
  25th percentile: 10.0
  median: 201.0
  75th percentile: 392.0
  max: 392.0
0 2.0
contributors (all time)
min: 1.0 | average: 1.5 | 25th percentile: 1.0 | median: 1.5 | 75th percentile: 2.0 | max: 2.0

File Size vs. Commits (30 days): 0 points

No data for "commits (30d)" vs. "lines of code".

File Size vs. Contributors (30 days): 0 points

No data for "contributors (30d)" vs. "lines of code".


File Size vs. Commits (90 days): 0 points

No data for "commits (90d)" vs. "lines of code".

File Size vs. Contributors (90 days): 0 points

No data for "contributors (90d)" vs. "lines of code".