File Size Overall
  • There are 66 files with 10,577 lines of code.
    • 2 very long files (2,627 lines of code)
    • 4 long files (2,331 lines of code)
    • 11 medium size files (3,080 lines of code)
    • 8 small files (1,052 lines of code)
    • 41 very small files (1,487 lines of code)
24% | 22% | 29% | 9% | 14%
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
py25% | 22% | 29% | 10% | 12%
yaml0% | 0% | 0% | 0% | 100%
ps10% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src16% | 20% | 34% | 12% | 16%
.agents56% | 28% | 11% | 0% | 3%
ROOT0% | 0% | 0% | 0% | 100%
.github0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
urls.py
in src/guardrails/checks/text
1338 45
review_protocol.py
in .agents/skills/implementation-final-review/scripts
1289 28
review_state.py
in .agents/skills/implementation-final-review/scripts
650 31
guardrail_evals.py
in src/guardrails/evals
627 11
client.py
in src/guardrails
551 27
secret_keys.py
in src/guardrails/checks/text
503 16
pii.py
in src/guardrails/checks/text
427 13
agents.py
in src/guardrails
413 14
llm_base.py
in src/guardrails/checks/text
333 9
async_engine.py
in src/guardrails/evals/core
279 7
_base_client.py
in src/guardrails
265 26
responses.py
in src/guardrails/resources/responses
265 5
validate_handoff.py
in .agents/skills/implementation-kickoff/scripts
252 9
conversation.py
in src/guardrails/utils
219 13
visualizer.py
in src/guardrails/evals/core
212 10
prompt_injection_detection.py
in src/guardrails/checks/text
208 6
runtime.py
in src/guardrails
207 10
benchmark_reporter.py
in src/guardrails/evals/core
154 9
schema.py
in src/guardrails/utils
149 7
parsing.py
in src/guardrails/utils
147 9
hallucination_detection.py
in src/guardrails/checks/text
140 -
types.py
in src/guardrails
140 7
chat.py
in src/guardrails/resources/chat
119 7
_streaming.py
in src/guardrails
102 1
moderation.py
in src/guardrails/checks/text
101 2
registry.py
in src/guardrails
100 8
create_vector_store.py
in src/guardrails/utils
93 -
output.py
in src/guardrails/utils
93 9
benchmark_calculator.py
in src/guardrails/evals/core
92 7
json_reporter.py
in src/guardrails/evals/core
87 4
mkdocs.yml
in root
73 -
keywords.py
in src/guardrails/checks/text
72 3
latency_tester.py
in src/guardrails/evals/core
62 3
__init__.py
in src/guardrails
56 -
validate_dataset.py
in src/guardrails/evals/core
55 2
cli.py
in src/guardrails
53 2
types.py
in src/guardrails/evals/core
51 4
anonymizer.py
in src/guardrails/utils
51 2
run.ps1
in .agents/skills/code-change-verification/scripts
42 -
calculator.py
in src/guardrails/evals/core
41 2
spec.py
in src/guardrails
40 2
__init__.py
in src/guardrails/evals/core
38 -
context.py
in src/guardrails/utils
38 2
jsonl_loader.py
in src/guardrails/evals/core
34 1
__init__.py
in src/guardrails/evals
32 1
competitors.py
in src/guardrails/checks/text
29 -
jailbreak.py
in src/guardrails/checks/text
27 -
exceptions.py
in src/guardrails
27 5
__init__.py
in src/guardrails/checks
26 -
dependabot.yml
in .github
24 -
Large Files That Change Often (Top 20)
To change a file, an AI coding agent (or a person) has to read it: these files are read the most for the changes in the past year (lines × changes).
File# lines≈ tokens
to read
# changes
(1y)
≈ lines edited
per change
lines read per
line changed
urls.py
in src/guardrails/checks/text
1338 ~7k–20k 10 ~200 ~7
agents.py
in src/guardrails
413 ~2k–7k 10 ~150 ~3
secret_keys.py
in src/guardrails/checks/text
503 ~3k–10k 8 ~100 ~5
llm_base.py
in src/guardrails/checks/text
333 ~2k–5k 12 ~70 ~5
client.py
in src/guardrails
551 ~3k–10k 7 ~200 ~3
pii.py
in src/guardrails/checks/text
427 ~2k–7k 9 ~100 ~3
guardrail_evals.py
in src/guardrails/evals
627 ~3k–10k 6 ~200 ~3
prompt_injection_detection.py
in src/guardrails/checks/text
208 ~1k–3k 14 ~70 ~3
_base_client.py
in src/guardrails
265 ~1.5k–5k 9 ~100 ~3
async_engine.py
in src/guardrails/evals/core
279 ~1.5k–5k 7 ~70 ~3
responses.py
in src/guardrails/resources/responses
265 ~1.5k–5k 5 ~100 ~3
review_protocol.py
in .agents/skills/implementation-final-review/scripts
1289 ~7k–20k 1 ~1,500 ~1
hallucination_detection.py
in src/guardrails/checks/text
140 ~700–2k 8 ~50 ~3
runtime.py
in src/guardrails
207 ~1k–3k 4 ~150 ~2
types.py
in src/guardrails
140 ~700–2k 5 ~50 ~3
review_state.py
in .agents/skills/implementation-final-review/scripts
650 ~3k–10k 1 ~700 ~1
moderation.py
in src/guardrails/checks/text
101 ~700–1.5k 6 ~70 ~2
chat.py
in src/guardrails/resources/chat
119 ~700–2k 5 ~50 ~2
visualizer.py
in src/guardrails/evals/core
212 ~1k–3k 2 ~150 ~2
benchmark_reporter.py
in src/guardrails/evals/core
154 ~1k–3k 2 ~100 ~2

Tokens are lines × 7 to 14 (analysis.fileReadsForChanges). Lines edited per change are the file's lines added and deleted divided by its commits over the whole history. Agents read about 2,000 lines at a time: when a 17,000-line file was split into modules, the tokens an agent read for the same change fell by 83% (The Economic Benefit of Refactoring, 2026).

Files With Most Units (Top 42)
File# lines# units
urls.py
in src/guardrails/checks/text
1338 45
review_state.py
in .agents/skills/implementation-final-review/scripts
650 31
review_protocol.py
in .agents/skills/implementation-final-review/scripts
1289 28
client.py
in src/guardrails
551 27
_base_client.py
in src/guardrails
265 26
secret_keys.py
in src/guardrails/checks/text
503 16
agents.py
in src/guardrails
413 14
pii.py
in src/guardrails/checks/text
427 13
conversation.py
in src/guardrails/utils
219 13
guardrail_evals.py
in src/guardrails/evals
627 11
visualizer.py
in src/guardrails/evals/core
212 10
runtime.py
in src/guardrails
207 10
validate_handoff.py
in .agents/skills/implementation-kickoff/scripts
252 9
benchmark_reporter.py
in src/guardrails/evals/core
154 9
llm_base.py
in src/guardrails/checks/text
333 9
parsing.py
in src/guardrails/utils
147 9
output.py
in src/guardrails/utils
93 9
registry.py
in src/guardrails
100 8
benchmark_calculator.py
in src/guardrails/evals/core
92 7
async_engine.py
in src/guardrails/evals/core
279 7
chat.py
in src/guardrails/resources/chat
119 7
schema.py
in src/guardrails/utils
149 7
types.py
in src/guardrails
140 7
prompt_injection_detection.py
in src/guardrails/checks/text
208 6
responses.py
in src/guardrails/resources/responses
265 5
context.py
in src/guardrails
23 5
exceptions.py
in src/guardrails
27 5
json_reporter.py
in src/guardrails/evals/core
87 4
types.py
in src/guardrails/evals/core
51 4
latency_tester.py
in src/guardrails/evals/core
62 3
keywords.py
in src/guardrails/checks/text
72 3
validate_dataset.py
in src/guardrails/evals/core
55 2
calculator.py
in src/guardrails/evals/core
41 2
moderation.py
in src/guardrails/checks/text
101 2
spec.py
in src/guardrails
40 2
anonymizer.py
in src/guardrails/utils
51 2
context.py
in src/guardrails/utils
38 2
cli.py
in src/guardrails
53 2
jsonl_loader.py
in src/guardrails/evals/core
34 1
__init__.py
in src/guardrails/evals
32 1
safety_identifier.py
in src/guardrails/utils
24 1
_streaming.py
in src/guardrails
102 1
Files With Long Lines (Top 27)

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

File# lines# units# long lines
urls.py
in src/guardrails/checks/text
1338 45 15
agents.py
in src/guardrails
413 14 14
guardrail_evals.py
in src/guardrails/evals
627 11 13
client.py
in src/guardrails
551 27 8
pii.py
in src/guardrails/checks/text
427 13 7
async_engine.py
in src/guardrails/evals/core
279 7 6
_base_client.py
in src/guardrails
265 26 5
secret_keys.py
in src/guardrails/checks/text
503 16 5
visualizer.py
in src/guardrails/evals/core
212 10 3
responses.py
in src/guardrails/resources/responses
265 5 3
benchmark_calculator.py
in src/guardrails/evals/core
92 7 2
benchmark_reporter.py
in src/guardrails/evals/core
154 9 2
llm_base.py
in src/guardrails/checks/text
333 9 2
prompt_injection_detection.py
in src/guardrails/checks/text
208 6 2
chat.py
in src/guardrails/resources/chat
119 7 2
openai.yaml
in .agents/skills/code-change-verification/agents
4 - 1
openai.yaml
in .agents/skills/implementation-kickoff/agents
6 - 1
openai.yaml
in .agents/skills/implementation-final-review/agents
6 - 1
openai.yaml
in .agents/skills/implementation-strategy/agents
4 - 1
openai.yaml
in .agents/skills/pr-draft-summary/agents
4 - 1
openai.yaml
in .agents/skills/maintainer-review/agents
4 - 1
calculator.py
in src/guardrails/evals/core
41 2 1
registry.py
in src/guardrails
100 8 1
user_defined_llm.py
in src/guardrails/checks/text
21 - 1
conversation.py
in src/guardrails/utils
219 13 1
context.py
in src/guardrails/utils
38 2 1
runtime.py
in src/guardrails
207 10 1
Correlations

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

src/guardrails/checks/text/prompt_injection_detection.py x: 18 commits (all time) y: 208 lines of code src/guardrails/agents.py x: 14 commits (all time) y: 413 lines of code src/guardrails/checks/text/llm_base.py x: 16 commits (all time) y: 333 lines of code src/guardrails/checks/text/secret_keys.py x: 14 commits (all time) y: 503 lines of code src/guardrails/checks/text/urls.py x: 14 commits (all time) y: 1338 lines of code src/guardrails/resources/chat/chat.py x: 11 commits (all time) y: 119 lines of code src/guardrails/resources/responses/responses.py x: 11 commits (all time) y: 265 lines of code src/guardrails/checks/text/pii.py x: 15 commits (all time) y: 427 lines of code src/guardrails/utils/anonymizer.py x: 3 commits (all time) y: 51 lines of code src/guardrails/_base_client.py x: 13 commits (all time) y: 265 lines of code src/guardrails/utils/safety_identifier.py x: 3 commits (all time) y: 24 lines of code src/guardrails/evals/core/async_engine.py x: 11 commits (all time) y: 279 lines of code .github/dependabot.yml x: 1 commits (all time) y: 24 lines of code src/guardrails/__init__.py x: 8 commits (all time) y: 56 lines of code src/guardrails/_streaming.py x: 7 commits (all time) y: 102 lines of code src/guardrails/checks/text/hallucination_detection.py x: 18 commits (all time) y: 140 lines of code src/guardrails/checks/text/jailbreak.py x: 11 commits (all time) y: 27 lines of code src/guardrails/client.py x: 11 commits (all time) y: 551 lines of code src/guardrails/context.py x: 6 commits (all time) y: 23 lines of code src/guardrails/runtime.py x: 8 commits (all time) y: 207 lines of code src/guardrails/types.py x: 11 commits (all time) y: 140 lines of code src/guardrails/utils/create_vector_store.py x: 7 commits (all time) y: 93 lines of code src/guardrails/utils/parsing.py x: 3 commits (all time) y: 147 lines of code .agents/skills/maintainer-review/agents/openai.yaml x: 3 commits (all time) y: 4 lines of code .agents/skills/final-release-review/agents/openai.yaml x: 1 commits (all time) y: 4 lines of code src/guardrails/checks/text/keywords.py x: 8 commits (all time) y: 72 lines of code .agents/skills/code-change-verification/scripts/run.ps1 x: 1 commits (all time) y: 42 lines of code .agents/skills/implementation-final-review/agents/openai.yaml x: 1 commits (all time) y: 6 lines of code .agents/skills/implementation-final-review/scripts/review_protocol.py x: 1 commits (all time) y: 1289 lines of code .agents/skills/implementation-final-review/scripts/review_state.py x: 1 commits (all time) y: 650 lines of code .agents/skills/implementation-kickoff/scripts/validate_handoff.py x: 1 commits (all time) y: 252 lines of code src/guardrails/checks/text/moderation.py x: 8 commits (all time) y: 101 lines of code src/guardrails/checks/text/nsfw.py x: 3 commits (all time) y: 17 lines of code src/guardrails/checks/text/off_topic_prompts.py x: 6 commits (all time) y: 20 lines of code src/guardrails/evals/core/benchmark_reporter.py x: 6 commits (all time) y: 154 lines of code src/guardrails/evals/core/visualizer.py x: 6 commits (all time) y: 212 lines of code src/guardrails/evals/guardrail_evals.py x: 10 commits (all time) y: 627 lines of code src/guardrails/spec.py x: 3 commits (all time) y: 40 lines of code mkdocs.yml x: 5 commits (all time) y: 73 lines of code src/guardrails/evals/core/types.py x: 6 commits (all time) y: 51 lines of code src/guardrails/utils/conversation.py x: 1 commits (all time) y: 219 lines of code src/guardrails/evals/__init__.py x: 5 commits (all time) y: 32 lines of code src/guardrails/cli.py x: 5 commits (all time) y: 53 lines of code src/guardrails/evals/core/benchmark_calculator.py x: 5 commits (all time) y: 92 lines of code src/guardrails/evals/core/calculator.py x: 5 commits (all time) y: 41 lines of code src/guardrails/evals/core/latency_tester.py x: 5 commits (all time) y: 62 lines of code src/guardrails/registry.py x: 3 commits (all time) y: 100 lines of code src/guardrails/utils/schema.py x: 3 commits (all time) y: 149 lines of code src/guardrails/checks/__init__.py x: 4 commits (all time) y: 26 lines of code src/guardrails/checks/text/competitors.py x: 4 commits (all time) y: 29 lines of code src/guardrails/evals/core/json_reporter.py x: 4 commits (all time) y: 87 lines of code src/guardrails/evals/core/validate_dataset.py x: 4 commits (all time) y: 55 lines of code src/guardrails/resources/chat/__init__.py x: 4 commits (all time) y: 7 lines of code src/guardrails/resources/responses/__init__.py x: 4 commits (all time) y: 5 lines of code src/guardrails/checks/text/__init__.py x: 2 commits (all time) y: 1 lines of code src/guardrails/evals/core/__init__.py x: 2 commits (all time) y: 38 lines of code src/guardrails/exceptions.py x: 2 commits (all time) y: 27 lines of code src/guardrails/utils/output.py x: 2 commits (all time) y: 93 lines of code
1338.0
lines of code
  min: 1.0
  average: 160.26
  25th percentile: 24.0
  median: 59.0
  75th percentile: 207.25
  max: 1338.0
0 18.0
commits (all time)
min: 1.0 | average: 5.89 | 25th percentile: 2.75 | median: 5.0 | 75th percentile: 8.0 | max: 18.0

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

src/guardrails/checks/text/prompt_injection_detection.py x: 5 contributors (all time) y: 208 lines of code src/guardrails/agents.py x: 5 contributors (all time) y: 413 lines of code src/guardrails/checks/text/llm_base.py x: 5 contributors (all time) y: 333 lines of code src/guardrails/checks/text/secret_keys.py x: 6 contributors (all time) y: 503 lines of code src/guardrails/checks/text/urls.py x: 5 contributors (all time) y: 1338 lines of code src/guardrails/resources/chat/chat.py x: 6 contributors (all time) y: 119 lines of code src/guardrails/resources/responses/responses.py x: 6 contributors (all time) y: 265 lines of code src/guardrails/checks/text/pii.py x: 6 contributors (all time) y: 427 lines of code src/guardrails/utils/anonymizer.py x: 2 contributors (all time) y: 51 lines of code src/guardrails/_base_client.py x: 5 contributors (all time) y: 265 lines of code src/guardrails/utils/safety_identifier.py x: 2 contributors (all time) y: 24 lines of code src/guardrails/evals/core/async_engine.py x: 5 contributors (all time) y: 279 lines of code .github/dependabot.yml x: 1 contributors (all time) y: 24 lines of code src/guardrails/__init__.py x: 5 contributors (all time) y: 56 lines of code src/guardrails/_streaming.py x: 5 contributors (all time) y: 102 lines of code src/guardrails/checks/text/hallucination_detection.py x: 6 contributors (all time) y: 140 lines of code src/guardrails/checks/text/jailbreak.py x: 5 contributors (all time) y: 27 lines of code src/guardrails/client.py x: 5 contributors (all time) y: 551 lines of code src/guardrails/context.py x: 5 contributors (all time) y: 23 lines of code src/guardrails/types.py x: 5 contributors (all time) y: 140 lines of code src/guardrails/utils/create_vector_store.py x: 5 contributors (all time) y: 93 lines of code src/guardrails/utils/parsing.py x: 3 contributors (all time) y: 147 lines of code .agents/skills/maintainer-review/agents/openai.yaml x: 1 contributors (all time) y: 4 lines of code src/guardrails/checks/text/keywords.py x: 5 contributors (all time) y: 72 lines of code .agents/skills/code-change-verification/scripts/run.ps1 x: 1 contributors (all time) y: 42 lines of code .agents/skills/implementation-final-review/agents/openai.yaml x: 1 contributors (all time) y: 6 lines of code .agents/skills/implementation-final-review/scripts/review_protocol.py x: 1 contributors (all time) y: 1289 lines of code .agents/skills/implementation-final-review/scripts/review_state.py x: 1 contributors (all time) y: 650 lines of code .agents/skills/implementation-kickoff/scripts/validate_handoff.py x: 1 contributors (all time) y: 252 lines of code src/guardrails/checks/text/moderation.py x: 4 contributors (all time) y: 101 lines of code src/guardrails/checks/text/nsfw.py x: 3 contributors (all time) y: 17 lines of code src/guardrails/checks/text/off_topic_prompts.py x: 4 contributors (all time) y: 20 lines of code src/guardrails/evals/core/benchmark_reporter.py x: 4 contributors (all time) y: 154 lines of code src/guardrails/evals/core/visualizer.py x: 4 contributors (all time) y: 212 lines of code src/guardrails/evals/guardrail_evals.py x: 4 contributors (all time) y: 627 lines of code src/guardrails/spec.py x: 3 contributors (all time) y: 40 lines of code mkdocs.yml x: 3 contributors (all time) y: 73 lines of code src/guardrails/evals/core/types.py x: 4 contributors (all time) y: 51 lines of code src/guardrails/utils/__init__.py x: 3 contributors (all time) y: 1 lines of code src/guardrails/utils/conversation.py x: 1 contributors (all time) y: 219 lines of code src/guardrails/evals/__init__.py x: 4 contributors (all time) y: 32 lines of code src/guardrails/cli.py x: 4 contributors (all time) y: 53 lines of code src/guardrails/evals/core/benchmark_calculator.py x: 4 contributors (all time) y: 92 lines of code src/guardrails/evals/core/calculator.py x: 4 contributors (all time) y: 41 lines of code src/guardrails/evals/core/latency_tester.py x: 4 contributors (all time) y: 62 lines of code src/guardrails/registry.py x: 3 contributors (all time) y: 100 lines of code src/guardrails/utils/schema.py x: 3 contributors (all time) y: 149 lines of code src/guardrails/checks/__init__.py x: 3 contributors (all time) y: 26 lines of code src/guardrails/checks/text/competitors.py x: 3 contributors (all time) y: 29 lines of code src/guardrails/evals/core/json_reporter.py x: 3 contributors (all time) y: 87 lines of code src/guardrails/evals/core/validate_dataset.py x: 3 contributors (all time) y: 55 lines of code src/guardrails/resources/chat/__init__.py x: 3 contributors (all time) y: 7 lines of code src/guardrails/checks/text/__init__.py x: 2 contributors (all time) y: 1 lines of code src/guardrails/evals/core/__init__.py x: 2 contributors (all time) y: 38 lines of code src/guardrails/exceptions.py x: 2 contributors (all time) y: 27 lines of code src/guardrails/utils/output.py x: 2 contributors (all time) y: 93 lines of code
1338.0
lines of code
  min: 1.0
  average: 160.26
  25th percentile: 24.0
  median: 59.0
  75th percentile: 207.25
  max: 1338.0
0 6.0
contributors (all time)
min: 1.0 | average: 3.39 | 25th percentile: 2.0 | median: 3.5 | 75th percentile: 5.0 | max: 6.0

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

src/guardrails/checks/text/prompt_injection_detection.py x: 3 commits (30d) y: 208 lines of code src/guardrails/agents.py x: 2 commits (30d) y: 413 lines of code src/guardrails/checks/text/llm_base.py x: 2 commits (30d) y: 333 lines of code src/guardrails/checks/text/secret_keys.py x: 3 commits (30d) y: 503 lines of code src/guardrails/checks/text/urls.py x: 2 commits (30d) y: 1338 lines of code src/guardrails/resources/chat/chat.py x: 2 commits (30d) y: 119 lines of code src/guardrails/resources/responses/responses.py x: 2 commits (30d) y: 265 lines of code src/guardrails/checks/text/pii.py x: 2 commits (30d) y: 427 lines of code src/guardrails/utils/anonymizer.py x: 1 commits (30d) y: 51 lines of code src/guardrails/utils/safety_identifier.py x: 1 commits (30d) y: 24 lines of code src/guardrails/evals/core/async_engine.py x: 1 commits (30d) y: 279 lines of code src/guardrails/__init__.py x: 1 commits (30d) y: 56 lines of code src/guardrails/_streaming.py x: 1 commits (30d) y: 102 lines of code src/guardrails/checks/text/hallucination_detection.py x: 1 commits (30d) y: 140 lines of code src/guardrails/checks/text/jailbreak.py x: 1 commits (30d) y: 27 lines of code src/guardrails/client.py x: 1 commits (30d) y: 551 lines of code src/guardrails/runtime.py x: 1 commits (30d) y: 207 lines of code src/guardrails/utils/create_vector_store.py x: 1 commits (30d) y: 93 lines of code src/guardrails/utils/parsing.py x: 1 commits (30d) y: 147 lines of code
1338.0
lines of code
  min: 23.0
  average: 249.35
  25th percentile: 56.0
  median: 147.0
  75th percentile: 333.0
  max: 1338.0
0 3.0
commits (30d)
min: 1.0 | average: 1.48 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 2.0 | max: 3.0

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

src/guardrails/checks/text/prompt_injection_detection.py x: 1 contributors (30d) y: 208 lines of code src/guardrails/agents.py x: 1 contributors (30d) y: 413 lines of code src/guardrails/checks/text/llm_base.py x: 1 contributors (30d) y: 333 lines of code src/guardrails/checks/text/secret_keys.py x: 2 contributors (30d) y: 503 lines of code src/guardrails/checks/text/urls.py x: 2 contributors (30d) y: 1338 lines of code src/guardrails/resources/chat/chat.py x: 1 contributors (30d) y: 119 lines of code src/guardrails/resources/responses/responses.py x: 1 contributors (30d) y: 265 lines of code src/guardrails/checks/text/pii.py x: 1 contributors (30d) y: 427 lines of code src/guardrails/utils/anonymizer.py x: 1 contributors (30d) y: 51 lines of code src/guardrails/utils/safety_identifier.py x: 1 contributors (30d) y: 24 lines of code src/guardrails/evals/core/async_engine.py x: 1 contributors (30d) y: 279 lines of code src/guardrails/__init__.py x: 1 contributors (30d) y: 56 lines of code src/guardrails/_streaming.py x: 1 contributors (30d) y: 102 lines of code src/guardrails/checks/text/hallucination_detection.py x: 1 contributors (30d) y: 140 lines of code src/guardrails/checks/text/jailbreak.py x: 1 contributors (30d) y: 27 lines of code src/guardrails/client.py x: 1 contributors (30d) y: 551 lines of code src/guardrails/utils/create_vector_store.py x: 1 contributors (30d) y: 93 lines of code src/guardrails/utils/parsing.py x: 1 contributors (30d) y: 147 lines of code
1338.0
lines of code
  min: 23.0
  average: 249.35
  25th percentile: 56.0
  median: 147.0
  75th percentile: 333.0
  max: 1338.0
0 2.0
contributors (30d)
min: 1.0 | average: 1.09 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 2.0

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

src/guardrails/checks/text/prompt_injection_detection.py x: 3 commits (90d) y: 208 lines of code src/guardrails/agents.py x: 2 commits (90d) y: 413 lines of code src/guardrails/checks/text/llm_base.py x: 2 commits (90d) y: 333 lines of code src/guardrails/checks/text/secret_keys.py x: 6 commits (90d) y: 503 lines of code src/guardrails/checks/text/urls.py x: 6 commits (90d) y: 1338 lines of code src/guardrails/resources/chat/chat.py x: 2 commits (90d) y: 119 lines of code src/guardrails/resources/responses/responses.py x: 2 commits (90d) y: 265 lines of code src/guardrails/checks/text/pii.py x: 3 commits (90d) y: 427 lines of code src/guardrails/utils/anonymizer.py x: 1 commits (90d) y: 51 lines of code src/guardrails/utils/safety_identifier.py x: 1 commits (90d) y: 24 lines of code src/guardrails/evals/core/async_engine.py x: 1 commits (90d) y: 279 lines of code src/guardrails/__init__.py x: 1 commits (90d) y: 56 lines of code src/guardrails/_streaming.py x: 1 commits (90d) y: 102 lines of code src/guardrails/checks/text/hallucination_detection.py x: 1 commits (90d) y: 140 lines of code src/guardrails/checks/text/jailbreak.py x: 1 commits (90d) y: 27 lines of code src/guardrails/client.py x: 1 commits (90d) y: 551 lines of code src/guardrails/runtime.py x: 1 commits (90d) y: 207 lines of code src/guardrails/utils/create_vector_store.py x: 1 commits (90d) y: 93 lines of code src/guardrails/utils/parsing.py x: 1 commits (90d) y: 147 lines of code .agents/skills/maintainer-review/agents/openai.yaml x: 3 commits (90d) y: 4 lines of code .agents/skills/final-release-review/agents/openai.yaml x: 1 commits (90d) y: 4 lines of code src/guardrails/checks/text/keywords.py x: 1 commits (90d) y: 72 lines of code .agents/skills/code-change-verification/scripts/run.ps1 x: 1 commits (90d) y: 42 lines of code .agents/skills/implementation-final-review/agents/openai.yaml x: 1 commits (90d) y: 6 lines of code .agents/skills/implementation-final-review/scripts/review_protocol.py x: 1 commits (90d) y: 1289 lines of code .agents/skills/implementation-final-review/scripts/review_state.py x: 1 commits (90d) y: 650 lines of code .agents/skills/implementation-kickoff/scripts/validate_handoff.py x: 1 commits (90d) y: 252 lines of code
1338.0
lines of code
  min: 4.0
  average: 230.63
  25th percentile: 24.0
  median: 119.0
  75th percentile: 279.0
  max: 1338.0
0 6.0
commits (90d)
min: 1.0 | average: 1.6 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 2.0 | max: 6.0

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

src/guardrails/checks/text/prompt_injection_detection.py x: 1 contributors (90d) y: 208 lines of code src/guardrails/agents.py x: 1 contributors (90d) y: 413 lines of code src/guardrails/checks/text/llm_base.py x: 1 contributors (90d) y: 333 lines of code src/guardrails/checks/text/secret_keys.py x: 3 contributors (90d) y: 503 lines of code src/guardrails/checks/text/urls.py x: 2 contributors (90d) y: 1338 lines of code src/guardrails/resources/chat/chat.py x: 1 contributors (90d) y: 119 lines of code src/guardrails/resources/responses/responses.py x: 1 contributors (90d) y: 265 lines of code src/guardrails/checks/text/pii.py x: 2 contributors (90d) y: 427 lines of code src/guardrails/utils/anonymizer.py x: 1 contributors (90d) y: 51 lines of code src/guardrails/utils/safety_identifier.py x: 1 contributors (90d) y: 24 lines of code src/guardrails/evals/core/async_engine.py x: 1 contributors (90d) y: 279 lines of code src/guardrails/__init__.py x: 1 contributors (90d) y: 56 lines of code src/guardrails/_streaming.py x: 1 contributors (90d) y: 102 lines of code src/guardrails/checks/text/hallucination_detection.py x: 1 contributors (90d) y: 140 lines of code src/guardrails/checks/text/jailbreak.py x: 1 contributors (90d) y: 27 lines of code src/guardrails/client.py x: 1 contributors (90d) y: 551 lines of code src/guardrails/utils/create_vector_store.py x: 1 contributors (90d) y: 93 lines of code src/guardrails/utils/parsing.py x: 1 contributors (90d) y: 147 lines of code .agents/skills/maintainer-review/agents/openai.yaml x: 1 contributors (90d) y: 4 lines of code src/guardrails/checks/text/keywords.py x: 1 contributors (90d) y: 72 lines of code .agents/skills/code-change-verification/scripts/run.ps1 x: 1 contributors (90d) y: 42 lines of code .agents/skills/implementation-final-review/agents/openai.yaml x: 1 contributors (90d) y: 6 lines of code .agents/skills/implementation-final-review/scripts/review_protocol.py x: 1 contributors (90d) y: 1289 lines of code .agents/skills/implementation-final-review/scripts/review_state.py x: 1 contributors (90d) y: 650 lines of code .agents/skills/implementation-kickoff/scripts/validate_handoff.py x: 1 contributors (90d) y: 252 lines of code
1338.0
lines of code
  min: 4.0
  average: 230.63
  25th percentile: 24.0
  median: 119.0
  75th percentile: 279.0
  max: 1338.0
0 3.0
contributors (90d)
min: 1.0 | average: 1.11 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 3.0
About This Analysis
  • 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...