pytorch / test-infra
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 98 files with 7,159 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (676 lines of code)
    • 8 medium size files (2,167 lines of codeclsfd_ftr_w_mp_ins)
    • 11 small files (1,485 lines of code)
    • 78 very small files (2,831 lines of code)
0% | 9% | 30% | 20% | 39%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
py0% | 23% | 29% | 27% | 20%
tsx0% | 0% | 54% | 8% | 37%
ts0% | 0% | 27% | 25% | 47%
ps10% | 0% | 0% | 48% | 51%
css0% | 0% | 0% | 0% | 100%
tf0% | 0% | 0% | 0% | 100%
yml0% | 0% | 0% | 0% | 100%
hcl0% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
html0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
aws/lambda0% | 31% | 29% | 30% | 8%
torchci/pages0% | 0% | 53% | 15% | 31%
torchci/lib0% | 0% | 33% | 19% | 47%
torchci/log_classifier0% | 0% | 55% | 0% | 44%
torchci/components0% | 0% | 22% | 14% | 63%
tools/scripts0% | 0% | 0% | 80% | 19%
aws/ami0% | 0% | 0% | 34% | 65%
aws/websites0% | 0% | 0% | 0% | 100%
tools/self-hosted-runner-utils0% | 0% | 0% | 0% | 100%
torchci/styles0% | 0% | 0% | 0% | 100%
torchci0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
existing_schema.py
in aws/lambda/github-webhook-rds-sync
676 -
utils.py
in aws/lambda/github-webhook-rds-sync
346 10
minihud.tsx
in torchci/pages
332 8
[page].tsx
in torchci/pages/hud/[repoOwner]/[repoName]/[branch]
298 12
lambda_function.py
in aws/lambda/github-status-sync
289 16
triggerCircleCIWorkflows.ts
in torchci/lib/bot
249 15
ciflowBot.ts
in torchci/lib/bot
237 6
classify_log.py
in torchci/log_classifier
210 15
LogViewer.tsx
in torchci/components
206 5
rules.ts
in torchci/pages/api/classifier
178 1
lambda_function.py
in aws/lambda/rds-proxy
170 10
verifyDisableTestIssueBot.ts
in torchci/lib/bot
168 6
lambda_function.py
in aws/lambda/hud-query-proxy
157 5
JobLinks.tsx
in torchci/components
134 4
update_pending_hud.py
in tools/scripts
130 12
ciflowPushTrigger.ts
in torchci/lib/bot
117 10
lambda_function.py
in aws/lambda/github-status-webhook-handler
116 8
update_triggers.py
in aws/lambda/github-status-sync
108 6
ps1
Install-CUDA-Tools.ps1
in aws/ami/windows/scripts/Installers
105 -
lambda_function.py
in aws/lambda/checks-cron
102 3
fetchHud.ts
in torchci/lib
100 1
webhookToDynamo.ts
in torchci/lib/bot
90 7
lambda_function.py
in aws/lambda/github-webhook-rds-sync
89 4
[capture].tsx
in torchci/pages/failure
88 1
hcl
windows.pkr.hcl
in aws/ami/windows
88 -
[prNumber].tsx
in torchci/pages/pr/[repoOwner]/[repoName]
87 3
download_jenkins.py
in torchci/log_classifier
84 4
provision.tf
in aws/websites/metrics.pytorch.org
81 -
provision.tf
in aws/websites/auth.pytorch.org
77 -
autoLabelBot.ts
in torchci/lib/bot
76 3
check_runners_state.py
in tools/self-hosted-runner-utils
75 2
autoCcBot.ts
in torchci/lib/bot
74 3
update_dashboards.py
in aws/websites/metrics.pytorch.org
70 5
types.ts
in torchci/lib
67 3
hud.module.css
in torchci/components
66 -
utils.ts
in torchci/lib/bot
66 4
minihud.module.css
in torchci/components
64 -
TooltipTarget.tsx
in torchci/components
62 3
fetchCommit.ts
in torchci/lib
62 1
ps1
Install-VS.ps1
in aws/ami/windows/scripts/Installers
59 -
clear_offline_runners.py
in tools/self-hosted-runner-utils
57 2
backfill.py
in torchci/log_classifier
54 2
install.yml
in aws/websites/auth.pytorch.org
50 -
[page].ts
in torchci/pages/api/original_pr_hud/[repoOwner]/[repoName]/[branch]
49 1
JobConclusion.tsx
in torchci/components
46 1
mergeBot.ts
in torchci/lib/bot
45 1
CommitStatus.tsx
in torchci/components
44 2
globals.css
in torchci/styles
40 -
fetchPR.ts
in torchci/lib
37 1
[capture].ts
in torchci/pages/api/failure
35 1
Files With Most Units (Top 20)
File# lines# units
lambda_function.py
in aws/lambda/github-status-sync
289 16
classify_log.py
in torchci/log_classifier
210 15
triggerCircleCIWorkflows.ts
in torchci/lib/bot
249 15
[page].tsx
in torchci/pages/hud/[repoOwner]/[repoName]/[branch]
298 12
update_pending_hud.py
in tools/scripts
130 12
ciflowPushTrigger.ts
in torchci/lib/bot
117 10
lambda_function.py
in aws/lambda/rds-proxy
170 10
utils.py
in aws/lambda/github-webhook-rds-sync
346 10
minihud.tsx
in torchci/pages
332 8
lambda_function.py
in aws/lambda/github-status-webhook-handler
116 8
webhookToDynamo.ts
in torchci/lib/bot
90 7
ciflowBot.ts
in torchci/lib/bot
237 6
verifyDisableTestIssueBot.ts
in torchci/lib/bot
168 6
update_triggers.py
in aws/lambda/github-status-sync
108 6
LogViewer.tsx
in torchci/components
206 5
lambda_function.py
in aws/lambda/hud-query-proxy
157 5
update_dashboards.py
in aws/websites/metrics.pytorch.org
70 5
download_jenkins.py
in torchci/log_classifier
84 4
JobLinks.tsx
in torchci/components
134 4
utils.ts
in torchci/lib/bot
66 4
Files With Long Lines (Top 7)

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

File# lines# units# long lines
ps1
Install-CUDA-Tools.ps1
in aws/ami/windows/scripts/Installers
105 - 4
ps1
Install-VS.ps1
in aws/ami/windows/scripts/Installers
59 - 3
rules.ts
in torchci/pages/api/classifier
178 1 2
classify_log.py
in torchci/log_classifier
210 15 1
JobLinks.tsx
in torchci/components
134 4 1
minihud.tsx
in torchci/pages
332 8 1
update_pending_hud.py
in tools/scripts
130 12 1