openai / openai-security-bots
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 34 files with 2,163 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 3 medium size files (1,084 lines of code)
    • 0 small files (0 lines of code)
    • 31 very small files (1,079 lines of code)
0% | 0% | 50% | 0% | 49%
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% | 54% | 0% | 45%
toml0% | 0% | 0% | 0% | 100%
yaml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
bots0% | 0% | 57% | 0% | 42%
shared0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 34)
File# lines# units
handlers.py
in bots/triage-slackbot/triage_slackbot
481 11
bot.py
in bots/sdlc-slackbot/sdlc_slackbot
349 10
handlers.py
in bots/incident-response-slackbot/incident_response_slackbot
254 9
openai_utils.py
in bots/incident-response-slackbot/incident_response_slackbot
95 1
slack.py
in shared/openai-slackbot/openai_slackbot/clients
94 3
gdoc.py
in bots/sdlc-slackbot/sdlc_slackbot
75 4
utils.py
in bots/sdlc-slackbot/sdlc_slackbot
74 8
alert_feed.py
in bots/incident-response-slackbot/scripts
60 1
bot.py
in shared/openai-slackbot/openai_slackbot
60 -
config.py
in bots/triage-slackbot/triage_slackbot
55 5
config.toml
in bots/sdlc-slackbot/sdlc_slackbot
52 -
handlers.py
in shared/openai-slackbot/openai_slackbot
47 5
openai_utils.py
in bots/triage-slackbot/triage_slackbot
42 1
slack.py
in shared/openai-slackbot/openai_slackbot/utils
42 6
database.py
in bots/incident-response-slackbot/incident_response_slackbot/db
36 8
config.py
in bots/sdlc-slackbot/sdlc_slackbot
35 3
database.py
in bots/sdlc-slackbot/sdlc_slackbot
32 -
bot.py
in bots/triage-slackbot/triage_slackbot
31 -
bot.py
in bots/incident-response-slackbot/incident_response_slackbot
29 -
config.toml
in bots/triage-slackbot/triage_slackbot
28 -
pyproject.template.toml
in bots/sdlc-slackbot
26 -
config.py
in bots/incident-response-slackbot/incident_response_slackbot
24 2
category.py
in bots/triage-slackbot/triage_slackbot
22 4
send_alert.py
in bots/incident-response-slackbot/scripts
21 2
19 -
pyproject.template.toml
in bots/incident-response-slackbot
18 -
pyproject.template.toml
in bots/triage-slackbot
18 -
alerts.toml
in bots/incident-response-slackbot/scripts
17 -
validate.py
in bots/sdlc-slackbot/sdlc_slackbot
11 2
envvars.py
in shared/openai-slackbot/openai_slackbot/utils
9 1
config.toml
in bots/incident-response-slackbot/incident_response_slackbot
4 -
__init__.py
in shared/openai-slackbot/openai_slackbot
1 -
__init__.py
in shared/openai-slackbot/openai_slackbot/clients
1 -
__init__.py
in shared/openai-slackbot/openai_slackbot/utils
1 -
Files With Most Units (Top 19)
File# lines# units
handlers.py
in bots/triage-slackbot/triage_slackbot
481 11
bot.py
in bots/sdlc-slackbot/sdlc_slackbot
349 10
handlers.py
in bots/incident-response-slackbot/incident_response_slackbot
254 9
utils.py
in bots/sdlc-slackbot/sdlc_slackbot
74 8
database.py
in bots/incident-response-slackbot/incident_response_slackbot/db
36 8
slack.py
in shared/openai-slackbot/openai_slackbot/utils
42 6
config.py
in bots/triage-slackbot/triage_slackbot
55 5
handlers.py
in shared/openai-slackbot/openai_slackbot
47 5
gdoc.py
in bots/sdlc-slackbot/sdlc_slackbot
75 4
category.py
in bots/triage-slackbot/triage_slackbot
22 4
config.py
in bots/sdlc-slackbot/sdlc_slackbot
35 3
slack.py
in shared/openai-slackbot/openai_slackbot/clients
94 3
validate.py
in bots/sdlc-slackbot/sdlc_slackbot
11 2
config.py
in bots/incident-response-slackbot/incident_response_slackbot
24 2
send_alert.py
in bots/incident-response-slackbot/scripts
21 2
openai_utils.py
in bots/incident-response-slackbot/incident_response_slackbot
95 1
alert_feed.py
in bots/incident-response-slackbot/scripts
60 1
openai_utils.py
in bots/triage-slackbot/triage_slackbot
42 1
envvars.py
in shared/openai-slackbot/openai_slackbot/utils
9 1
Files With Long Lines (Top 4)

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

File# lines# units# long lines
config.toml
in bots/sdlc-slackbot/sdlc_slackbot
52 - 23
bot.py
in bots/sdlc-slackbot/sdlc_slackbot
349 10 1
handlers.py
in bots/triage-slackbot/triage_slackbot
481 11 1
config.py
in bots/triage-slackbot/triage_slackbot
55 5 1
Correlations

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

.pre-commit-config.yaml x: 3 commits (all time) y: 19 lines of code bots/incident-response-slackbot/incident_response_slackbot/handlers.py x: 2 commits (all time) y: 254 lines of code bots/incident-response-slackbot/incident_response_slackbot/openai_utils.py x: 2 commits (all time) y: 95 lines of code bots/sdlc-slackbot/sdlc_slackbot/bot.py x: 2 commits (all time) y: 349 lines of code bots/sdlc-slackbot/sdlc_slackbot/config.toml x: 2 commits (all time) y: 52 lines of code bots/sdlc-slackbot/sdlc_slackbot/database.py x: 2 commits (all time) y: 32 lines of code bots/sdlc-slackbot/sdlc_slackbot/utils.py x: 2 commits (all time) y: 74 lines of code bots/triage-slackbot/triage_slackbot/openai_utils.py x: 1 commits (all time) y: 42 lines of code bots/sdlc-slackbot/pyproject.template.toml x: 1 commits (all time) y: 26 lines of code bots/sdlc-slackbot/sdlc_slackbot/config.py x: 1 commits (all time) y: 35 lines of code bots/sdlc-slackbot/sdlc_slackbot/gdoc.py x: 1 commits (all time) y: 75 lines of code bots/sdlc-slackbot/sdlc_slackbot/validate.py x: 1 commits (all time) y: 11 lines of code bots/incident-response-slackbot/incident_response_slackbot/bot.py x: 1 commits (all time) y: 29 lines of code bots/incident-response-slackbot/incident_response_slackbot/config.py x: 1 commits (all time) y: 24 lines of code bots/incident-response-slackbot/incident_response_slackbot/config.toml x: 1 commits (all time) y: 4 lines of code bots/incident-response-slackbot/incident_response_slackbot/db/database.py x: 1 commits (all time) y: 36 lines of code bots/incident-response-slackbot/pyproject.template.toml x: 1 commits (all time) y: 18 lines of code bots/incident-response-slackbot/scripts/alert_feed.py x: 1 commits (all time) y: 60 lines of code bots/incident-response-slackbot/scripts/alerts.toml x: 1 commits (all time) y: 17 lines of code bots/incident-response-slackbot/scripts/send_alert.py x: 1 commits (all time) y: 21 lines of code
349.0
lines of code
  min: 4.0
  average: 63.65
  25th percentile: 19.5
  median: 33.5
  75th percentile: 70.5
  max: 349.0
0 3.0
commits (all time)
min: 1.0 | average: 1.4 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 2.0 | max: 3.0

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

.pre-commit-config.yaml x: 2 contributors (all time) y: 19 lines of code bots/incident-response-slackbot/incident_response_slackbot/handlers.py x: 2 contributors (all time) y: 254 lines of code bots/incident-response-slackbot/incident_response_slackbot/openai_utils.py x: 2 contributors (all time) y: 95 lines of code bots/sdlc-slackbot/sdlc_slackbot/bot.py x: 1 contributors (all time) y: 349 lines of code bots/sdlc-slackbot/sdlc_slackbot/config.toml x: 1 contributors (all time) y: 52 lines of code bots/sdlc-slackbot/sdlc_slackbot/database.py x: 1 contributors (all time) y: 32 lines of code bots/sdlc-slackbot/sdlc_slackbot/utils.py x: 1 contributors (all time) y: 74 lines of code bots/triage-slackbot/triage_slackbot/openai_utils.py x: 1 contributors (all time) y: 42 lines of code bots/sdlc-slackbot/pyproject.template.toml x: 1 contributors (all time) y: 26 lines of code bots/sdlc-slackbot/sdlc_slackbot/config.py x: 1 contributors (all time) y: 35 lines of code bots/sdlc-slackbot/sdlc_slackbot/gdoc.py x: 1 contributors (all time) y: 75 lines of code bots/sdlc-slackbot/sdlc_slackbot/validate.py x: 1 contributors (all time) y: 11 lines of code bots/incident-response-slackbot/incident_response_slackbot/bot.py x: 1 contributors (all time) y: 29 lines of code bots/incident-response-slackbot/incident_response_slackbot/config.py x: 1 contributors (all time) y: 24 lines of code bots/incident-response-slackbot/incident_response_slackbot/config.toml x: 1 contributors (all time) y: 4 lines of code bots/incident-response-slackbot/incident_response_slackbot/db/database.py x: 1 contributors (all time) y: 36 lines of code bots/incident-response-slackbot/pyproject.template.toml x: 1 contributors (all time) y: 18 lines of code bots/incident-response-slackbot/scripts/alert_feed.py x: 1 contributors (all time) y: 60 lines of code bots/incident-response-slackbot/scripts/alerts.toml x: 1 contributors (all time) y: 17 lines of code bots/incident-response-slackbot/scripts/send_alert.py x: 1 contributors (all time) y: 21 lines of code
349.0
lines of code
  min: 4.0
  average: 63.65
  25th percentile: 19.5
  median: 33.5
  75th percentile: 70.5
  max: 349.0
0 2.0
contributors (all time)
min: 1.0 | average: 1.15 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.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): 1 points

.pre-commit-config.yaml x: 3 commits (90d) y: 19 lines of code
19.0
lines of code
  min: 19.0
  average: 19.0
  25th percentile: 19.0
  median: 19.0
  75th percentile: 19.0
  max: 19.0
0 3.0
commits (90d)
min: 3.0 | average: 3.0 | 25th percentile: 3.0 | median: 3.0 | 75th percentile: 3.0 | max: 3.0

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

.pre-commit-config.yaml x: 2 contributors (90d) y: 19 lines of code
19.0
lines of code
  min: 19.0
  average: 19.0
  25th percentile: 19.0
  median: 19.0
  75th percentile: 19.0
  max: 19.0
0 2.0
contributors (90d)
min: 2.0 | average: 2.0 | 25th percentile: 2.0 | median: 2.0 | 75th percentile: 2.0 | max: 2.0