anthropics / claude-code
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 26 files with 4,528 lines of code.
    • 1 very long files (1,211 lines of code)
    • 0 long files (0 lines of code)
    • 6 medium size files (1,796 lines of code)
    • 7 small files (1,108 lines of code)
    • 12 very small files (413 lines of code)
26% | 0% | 39% | 24% | 9%
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
py36% | 0% | 33% | 20% | 10%
xml0% | 0% | 100% | 0% | 0%
ts0% | 0% | 37% | 49% | 12%
ps10% | 0% | 0% | 100% | 0%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
plugins36% | 0% | 33% | 20% | 10%
ROOT0% | 0% | 100% | 0% | 0%
scripts0% | 0% | 37% | 49% | 12%
Script0% | 0% | 0% | 100% | 0%
Longest Files (Top 26)
File# lines# units
security_reminder_hook.py
in plugins/security-guidance/hooks
1211 24
feed.xml
in root
449 -
gitutil.py
in plugins/security-guidance/hooks
405 19
review_api.py
in plugins/security-guidance/hooks
267 8
diffstate.py
in plugins/security-guidance/hooks
232 12
229 6
patterns.py
in plugins/security-guidance/hooks
214 1
config_loader.py
in plugins/hookify/core
184 5
extensibility.py
in plugins/security-guidance/hooks
181 11
177 4
rule_engine.py
in plugins/hookify/core
170 8
ensure_agent_sdk.py
in plugins/security-guidance/hooks
138 3
131 -
sweep.ts
in scripts
127 3
session_state.py
in plugins/security-guidance/hooks
100 7
_base.py
in plugins/security-guidance/hooks
89 4
42 -
pretooluse.py
in plugins/hookify/hooks
39 1
posttooluse.py
in plugins/hookify/hooks
39 1
34 -
stop.py
in plugins/hookify/hooks
33 1
userpromptsubmit.py
in plugins/hookify/hooks
33 1
__init__.py
in plugins/hookify/core
1 -
__init__.py
in plugins/hookify/utils
1 -
__init__.py
in plugins/hookify/hooks
1 -
__init__.py
in plugins/hookify/matchers
1 -
Files With Most Units (Top 18)
File# lines# units
security_reminder_hook.py
in plugins/security-guidance/hooks
1211 24
gitutil.py
in plugins/security-guidance/hooks
405 19
diffstate.py
in plugins/security-guidance/hooks
232 12
extensibility.py
in plugins/security-guidance/hooks
181 11
review_api.py
in plugins/security-guidance/hooks
267 8
rule_engine.py
in plugins/hookify/core
170 8
session_state.py
in plugins/security-guidance/hooks
100 7
229 6
config_loader.py
in plugins/hookify/core
184 5
_base.py
in plugins/security-guidance/hooks
89 4
177 4
ensure_agent_sdk.py
in plugins/security-guidance/hooks
138 3
sweep.ts
in scripts
127 3
patterns.py
in plugins/security-guidance/hooks
214 1
pretooluse.py
in plugins/hookify/hooks
39 1
stop.py
in plugins/hookify/hooks
33 1
posttooluse.py
in plugins/hookify/hooks
39 1
userpromptsubmit.py
in plugins/hookify/hooks
33 1
Files With Long Lines (Top 8)

There are 8 files with lines longer than 120 characters. In total, there are 262 long lines.

File# lines# units# long lines
feed.xml
in root
449 - 237
patterns.py
in plugins/security-guidance/hooks
214 1 16
34 - 3
177 4 2
131 - 1
gitutil.py
in plugins/security-guidance/hooks
405 19 1
security_reminder_hook.py
in plugins/security-guidance/hooks
1211 24 1
sweep.ts
in scripts
127 3 1
Correlations

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

feed.xml x: 42 commits (all time) y: 449 lines of code plugins/security-guidance/hooks/_base.py x: 2 commits (all time) y: 89 lines of code plugins/security-guidance/hooks/diffstate.py x: 2 commits (all time) y: 232 lines of code plugins/security-guidance/hooks/ensure_agent_sdk.py x: 2 commits (all time) y: 138 lines of code plugins/security-guidance/hooks/extensibility.py x: 2 commits (all time) y: 181 lines of code plugins/security-guidance/hooks/gitutil.py x: 2 commits (all time) y: 405 lines of code plugins/security-guidance/hooks/patterns.py x: 2 commits (all time) y: 214 lines of code plugins/security-guidance/hooks/review_api.py x: 2 commits (all time) y: 267 lines of code plugins/security-guidance/hooks/security_reminder_hook.py x: 3 commits (all time) y: 1211 lines of code plugins/security-guidance/hooks/session_state.py x: 2 commits (all time) y: 100 lines of code scripts/sweep.ts x: 6 commits (all time) y: 127 lines of code scripts/issue-lifecycle.ts x: 1 commits (all time) y: 34 lines of code scripts/lifecycle-comment.ts x: 1 commits (all time) y: 42 lines of code plugins/hookify/core/__init__.py x: 2 commits (all time) y: 1 lines of code plugins/hookify/core/config_loader.py x: 2 commits (all time) y: 184 lines of code plugins/hookify/core/rule_engine.py x: 2 commits (all time) y: 170 lines of code plugins/hookify/hooks/posttooluse.py x: 2 commits (all time) y: 39 lines of code plugins/hookify/hooks/stop.py x: 2 commits (all time) y: 33 lines of code scripts/auto-close-duplicates.ts x: 17 commits (all time) y: 229 lines of code scripts/backfill-duplicate-comments.ts x: 8 commits (all time) y: 177 lines of code Script/run_devcontainer_claude_code.ps1 x: 10 commits (all time) y: 131 lines of code
1211.0
lines of code
  min: 1.0
  average: 174.15
  25th percentile: 33.75
  median: 129.0
  75th percentile: 217.75
  max: 1211.0
0 42.0
commits (all time)
min: 1.0 | average: 4.77 | 25th percentile: 2.0 | median: 2.0 | 75th percentile: 2.25 | max: 42.0

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

feed.xml x: 1 contributors (all time) y: 449 lines of code plugins/security-guidance/hooks/_base.py x: 2 contributors (all time) y: 89 lines of code plugins/security-guidance/hooks/diffstate.py x: 2 contributors (all time) y: 232 lines of code plugins/security-guidance/hooks/ensure_agent_sdk.py x: 2 contributors (all time) y: 138 lines of code plugins/security-guidance/hooks/extensibility.py x: 2 contributors (all time) y: 181 lines of code plugins/security-guidance/hooks/gitutil.py x: 2 contributors (all time) y: 405 lines of code plugins/security-guidance/hooks/patterns.py x: 2 contributors (all time) y: 214 lines of code plugins/security-guidance/hooks/review_api.py x: 2 contributors (all time) y: 267 lines of code plugins/security-guidance/hooks/security_reminder_hook.py x: 3 contributors (all time) y: 1211 lines of code plugins/security-guidance/hooks/session_state.py x: 2 contributors (all time) y: 100 lines of code scripts/sweep.ts x: 3 contributors (all time) y: 127 lines of code scripts/issue-lifecycle.ts x: 1 contributors (all time) y: 34 lines of code scripts/lifecycle-comment.ts x: 1 contributors (all time) y: 42 lines of code plugins/hookify/core/__init__.py x: 1 contributors (all time) y: 1 lines of code plugins/hookify/core/config_loader.py x: 1 contributors (all time) y: 184 lines of code plugins/hookify/core/rule_engine.py x: 1 contributors (all time) y: 170 lines of code plugins/hookify/hooks/stop.py x: 1 contributors (all time) y: 33 lines of code scripts/auto-close-duplicates.ts x: 4 contributors (all time) y: 229 lines of code scripts/backfill-duplicate-comments.ts x: 4 contributors (all time) y: 177 lines of code Script/run_devcontainer_claude_code.ps1 x: 3 contributors (all time) y: 131 lines of code
1211.0
lines of code
  min: 1.0
  average: 174.15
  25th percentile: 33.75
  median: 129.0
  75th percentile: 217.75
  max: 1211.0
0 4.0
contributors (all time)
min: 1.0 | average: 1.77 | 25th percentile: 1.0 | median: 1.5 | 75th percentile: 2.0 | max: 4.0

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

feed.xml x: 32 commits (30d) y: 449 lines of code plugins/security-guidance/hooks/_base.py x: 2 commits (30d) y: 89 lines of code plugins/security-guidance/hooks/diffstate.py x: 2 commits (30d) y: 232 lines of code plugins/security-guidance/hooks/ensure_agent_sdk.py x: 2 commits (30d) y: 138 lines of code plugins/security-guidance/hooks/extensibility.py x: 2 commits (30d) y: 181 lines of code plugins/security-guidance/hooks/gitutil.py x: 2 commits (30d) y: 405 lines of code plugins/security-guidance/hooks/patterns.py x: 2 commits (30d) y: 214 lines of code plugins/security-guidance/hooks/review_api.py x: 2 commits (30d) y: 267 lines of code plugins/security-guidance/hooks/security_reminder_hook.py x: 2 commits (30d) y: 1211 lines of code plugins/security-guidance/hooks/session_state.py x: 2 commits (30d) y: 100 lines of code
1211.0
lines of code
  min: 89.0
  average: 328.6
  25th percentile: 128.5
  median: 223.0
  75th percentile: 416.0
  max: 1211.0
0 32.0
commits (30d)
min: 2.0 | average: 5.0 | 25th percentile: 2.0 | median: 2.0 | 75th percentile: 2.0 | max: 32.0

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

feed.xml x: 1 contributors (30d) y: 449 lines of code plugins/security-guidance/hooks/_base.py x: 2 contributors (30d) y: 89 lines of code plugins/security-guidance/hooks/diffstate.py x: 2 contributors (30d) y: 232 lines of code plugins/security-guidance/hooks/ensure_agent_sdk.py x: 2 contributors (30d) y: 138 lines of code plugins/security-guidance/hooks/extensibility.py x: 2 contributors (30d) y: 181 lines of code plugins/security-guidance/hooks/gitutil.py x: 2 contributors (30d) y: 405 lines of code plugins/security-guidance/hooks/patterns.py x: 2 contributors (30d) y: 214 lines of code plugins/security-guidance/hooks/review_api.py x: 2 contributors (30d) y: 267 lines of code plugins/security-guidance/hooks/security_reminder_hook.py x: 2 contributors (30d) y: 1211 lines of code plugins/security-guidance/hooks/session_state.py x: 2 contributors (30d) y: 100 lines of code
1211.0
lines of code
  min: 89.0
  average: 328.6
  25th percentile: 128.5
  median: 223.0
  75th percentile: 416.0
  max: 1211.0
0 2.0
contributors (30d)
min: 1.0 | average: 1.9 | 25th percentile: 2.0 | median: 2.0 | 75th percentile: 2.0 | max: 2.0

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

feed.xml x: 42 commits (90d) y: 449 lines of code plugins/security-guidance/hooks/_base.py x: 2 commits (90d) y: 89 lines of code plugins/security-guidance/hooks/diffstate.py x: 2 commits (90d) y: 232 lines of code plugins/security-guidance/hooks/ensure_agent_sdk.py x: 2 commits (90d) y: 138 lines of code plugins/security-guidance/hooks/extensibility.py x: 2 commits (90d) y: 181 lines of code plugins/security-guidance/hooks/gitutil.py x: 2 commits (90d) y: 405 lines of code plugins/security-guidance/hooks/patterns.py x: 2 commits (90d) y: 214 lines of code plugins/security-guidance/hooks/review_api.py x: 2 commits (90d) y: 267 lines of code plugins/security-guidance/hooks/security_reminder_hook.py x: 2 commits (90d) y: 1211 lines of code plugins/security-guidance/hooks/session_state.py x: 2 commits (90d) y: 100 lines of code
1211.0
lines of code
  min: 89.0
  average: 328.6
  25th percentile: 128.5
  median: 223.0
  75th percentile: 416.0
  max: 1211.0
0 42.0
commits (90d)
min: 2.0 | average: 6.0 | 25th percentile: 2.0 | median: 2.0 | 75th percentile: 2.0 | max: 42.0

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

feed.xml x: 1 contributors (90d) y: 449 lines of code plugins/security-guidance/hooks/_base.py x: 2 contributors (90d) y: 89 lines of code plugins/security-guidance/hooks/diffstate.py x: 2 contributors (90d) y: 232 lines of code plugins/security-guidance/hooks/ensure_agent_sdk.py x: 2 contributors (90d) y: 138 lines of code plugins/security-guidance/hooks/extensibility.py x: 2 contributors (90d) y: 181 lines of code plugins/security-guidance/hooks/gitutil.py x: 2 contributors (90d) y: 405 lines of code plugins/security-guidance/hooks/patterns.py x: 2 contributors (90d) y: 214 lines of code plugins/security-guidance/hooks/review_api.py x: 2 contributors (90d) y: 267 lines of code plugins/security-guidance/hooks/security_reminder_hook.py x: 2 contributors (90d) y: 1211 lines of code plugins/security-guidance/hooks/session_state.py x: 2 contributors (90d) y: 100 lines of code
1211.0
lines of code
  min: 89.0
  average: 328.6
  25th percentile: 128.5
  median: 223.0
  75th percentile: 416.0
  max: 1211.0
0 2.0
contributors (90d)
min: 1.0 | average: 1.9 | 25th percentile: 2.0 | median: 2.0 | 75th percentile: 2.0 | max: 2.0