anthropics / claude-for-legal
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 32 files with 1,437 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 1 medium size files (231 lines of code)
    • 1 small files (109 lines of code)
    • 30 very small files (1,097 lines of code)
0% | 0% | 16% | 7% | 76%
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% | 70% | 0% | 29%
yaml0% | 0% | 0% | 9% | 90%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
scripts0% | 0% | 70% | 0% | 29%
managed-agent-cookbooks0% | 0% | 0% | 10% | 89%
legal-builder-hub0% | 0% | 0% | 0% | 100%
regulatory-legal0% | 0% | 0% | 0% | 100%
legal-clinic0% | 0% | 0% | 0% | 100%
litigation-legal0% | 0% | 0% | 0% | 100%
commercial-legal0% | 0% | 0% | 0% | 100%
Longest Files (Top 32)
File# lines# units
orchestrate.py
in scripts
231 7
tracker-writer.yaml
in managed-agent-cookbooks/docket-watcher/subagents
109 -
normalizer.yaml
in managed-agent-cookbooks/diligence-grid/subagents
81 -
memo-writer.yaml
in managed-agent-cookbooks/launch-radar/subagents
78 -
doc-reader.yaml
in managed-agent-cookbooks/diligence-grid/subagents
77 -
digest-writer.yaml
in managed-agent-cookbooks/reg-monitor/subagents
74 -
73 2
risk-classifier.yaml
in managed-agent-cookbooks/launch-radar/subagents
72 -
deadline-calculator.yaml
in managed-agent-cookbooks/renewal-watcher/subagents
72 -
repo-reader.yaml
in managed-agent-cookbooks/renewal-watcher/subagents
68 -
alert-writer.yaml
in managed-agent-cookbooks/renewal-watcher/subagents
66 -
tracker-reader.yaml
in managed-agent-cookbooks/launch-radar/subagents
62 -
grid-writer.yaml
in managed-agent-cookbooks/diligence-grid/subagents
62 -
agent.yaml
in managed-agent-cookbooks/diligence-grid
45 -
agent.yaml
in managed-agent-cookbooks/launch-radar
38 -
agent.yaml
in managed-agent-cookbooks/renewal-watcher
37 -
agent.yaml
in managed-agent-cookbooks/reg-monitor
28 -
validate.py
in scripts
25 2
feed-reader.yaml
in managed-agent-cookbooks/reg-monitor/subagents
24 -
extractor.yaml
in managed-agent-cookbooks/diligence-grid/subagents
23 -
docket-reader.yaml
in managed-agent-cookbooks/docket-watcher/subagents
17 -
allowlist-default.yaml
in legal-builder-hub/references
16 -
comment-tracker.yaml
in regulatory-legal/skills/gap-surfacer/references
15 -
agent.yaml
in managed-agent-cookbooks/docket-watcher
14 -
deadline-mapper.yaml
in managed-agent-cookbooks/docket-watcher/subagents
11 -
registries.yaml
in legal-builder-hub/skills/registry-browser/references
6 -
materiality-filter.yaml
in managed-agent-cookbooks/reg-monitor/subagents
6 -
review-queue.yaml
in legal-clinic/skills/supervisor-review-queue/references
3 -
deadlines.yaml
in legal-clinic
1 -
gap-tracker.yaml
in regulatory-legal/skills/gap-surfacer/references
1 -
_log.yaml
in litigation-legal/matters
1 -
renewal-register.yaml
in commercial-legal/skills/renewal-tracker/references
1 -
Files With Most Units (Top 3)
File# lines# units
orchestrate.py
in scripts
231 7
validate.py
in scripts
25 2
73 2
Files With Long Lines (Top 4)

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

File# lines# units# long lines
tracker-reader.yaml
in managed-agent-cookbooks/launch-radar/subagents
62 - 1
doc-reader.yaml
in managed-agent-cookbooks/diligence-grid/subagents
77 - 1
deadline-calculator.yaml
in managed-agent-cookbooks/renewal-watcher/subagents
72 - 1
repo-reader.yaml
in managed-agent-cookbooks/renewal-watcher/subagents
68 - 1
Correlations

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

scripts/orchestrate.py x: 6 commits (all time) y: 231 lines of code managed-agent-cookbooks/reg-monitor/subagents/feed-reader.yaml x: 4 commits (all time) y: 24 lines of code managed-agent-cookbooks/launch-radar/agent.yaml x: 1 commits (all time) y: 38 lines of code managed-agent-cookbooks/reg-monitor/subagents/materiality-filter.yaml x: 1 commits (all time) y: 6 lines of code managed-agent-cookbooks/reg-monitor/agent.yaml x: 2 commits (all time) y: 28 lines of code scripts/lint-tool-scope.py x: 3 commits (all time) y: 73 lines of code scripts/validate.py x: 3 commits (all time) y: 25 lines of code
231.0
lines of code
  min: 6.0
  average: 60.71
  25th percentile: 24.0
  median: 28.0
  75th percentile: 73.0
  max: 231.0
0 6.0
commits (all time)
min: 1.0 | average: 2.86 | 25th percentile: 1.0 | median: 3.0 | 75th percentile: 4.0 | max: 6.0

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

scripts/orchestrate.py x: 3 contributors (all time) y: 231 lines of code managed-agent-cookbooks/reg-monitor/subagents/feed-reader.yaml x: 4 contributors (all time) y: 24 lines of code managed-agent-cookbooks/launch-radar/agent.yaml x: 1 contributors (all time) y: 38 lines of code managed-agent-cookbooks/reg-monitor/subagents/materiality-filter.yaml x: 1 contributors (all time) y: 6 lines of code managed-agent-cookbooks/reg-monitor/agent.yaml x: 2 contributors (all time) y: 28 lines of code scripts/lint-tool-scope.py x: 1 contributors (all time) y: 73 lines of code scripts/validate.py x: 1 contributors (all time) y: 25 lines of code
231.0
lines of code
  min: 6.0
  average: 60.71
  25th percentile: 24.0
  median: 28.0
  75th percentile: 73.0
  max: 231.0
0 4.0
contributors (all time)
min: 1.0 | average: 1.86 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 3.0 | max: 4.0

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

scripts/orchestrate.py x: 1 commits (30d) y: 231 lines of code
231.0
lines of code
  min: 231.0
  average: 231.0
  25th percentile: 231.0
  median: 231.0
  75th percentile: 231.0
  max: 231.0
0 1.0
commits (30d)
min: 1.0 | average: 1.0 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 1.0

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

scripts/orchestrate.py x: 1 contributors (30d) y: 231 lines of code
231.0
lines of code
  min: 231.0
  average: 231.0
  25th percentile: 231.0
  median: 231.0
  75th percentile: 231.0
  max: 231.0
0 1.0
contributors (30d)
min: 1.0 | average: 1.0 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 1.0

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

scripts/orchestrate.py x: 6 commits (90d) y: 231 lines of code managed-agent-cookbooks/reg-monitor/subagents/feed-reader.yaml x: 4 commits (90d) y: 24 lines of code managed-agent-cookbooks/launch-radar/agent.yaml x: 1 commits (90d) y: 38 lines of code managed-agent-cookbooks/reg-monitor/subagents/materiality-filter.yaml x: 1 commits (90d) y: 6 lines of code managed-agent-cookbooks/reg-monitor/agent.yaml x: 2 commits (90d) y: 28 lines of code scripts/lint-tool-scope.py x: 3 commits (90d) y: 73 lines of code scripts/validate.py x: 3 commits (90d) y: 25 lines of code
231.0
lines of code
  min: 6.0
  average: 60.71
  25th percentile: 24.0
  median: 28.0
  75th percentile: 73.0
  max: 231.0
0 6.0
commits (90d)
min: 1.0 | average: 2.86 | 25th percentile: 1.0 | median: 3.0 | 75th percentile: 4.0 | max: 6.0

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

scripts/orchestrate.py x: 3 contributors (90d) y: 231 lines of code managed-agent-cookbooks/reg-monitor/subagents/feed-reader.yaml x: 4 contributors (90d) y: 24 lines of code managed-agent-cookbooks/launch-radar/agent.yaml x: 1 contributors (90d) y: 38 lines of code managed-agent-cookbooks/reg-monitor/subagents/materiality-filter.yaml x: 1 contributors (90d) y: 6 lines of code managed-agent-cookbooks/reg-monitor/agent.yaml x: 2 contributors (90d) y: 28 lines of code scripts/lint-tool-scope.py x: 1 contributors (90d) y: 73 lines of code scripts/validate.py x: 1 contributors (90d) y: 25 lines of code
231.0
lines of code
  min: 6.0
  average: 60.71
  25th percentile: 24.0
  median: 28.0
  75th percentile: 73.0
  max: 231.0
0 4.0
contributors (90d)
min: 1.0 | average: 1.86 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 3.0 | max: 4.0