facebookresearch / dynabench
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 352 files with 46,674 lines of code.
    • 1 very long files (3,049 lines of code)
    • 15 long files (10,038 lines of code)
    • 52 medium size files (16,823 lines of codeclsfd_ftr_w_mp_ins)
    • 62 small files (9,345 lines of code)
    • 222 very small files (7,419 lines of code)
6% | 21% | 36% | 20% | 15%
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
py13% | 14% | 28% | 25% | 18%
js0% | 26% | 46% | 16% | 10%
jsx0% | 44% | 37% | 0% | 18%
css0% | 0% | 0% | 39% | 60%
yaml0% | 0% | 0% | 0% | 100%
html0% | 0% | 0% | 0% | 100%
Dockerfile0% | 0% | 0% | 0% | 100%
toml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
api93% | 0% | 0% | 3% | 2%
frontends/web0% | 27% | 43% | 15% | 13%
api/models0% | 54% | 18% | 11% | 15%
api/controllers0% | 52% | 23% | 15% | 8%
legacy/torchserve0% | 0% | 57% | 42% | <1%
evaluation/datasets0% | 0% | 94% | 0% | 5%
builder/utils0% | 0% | 93% | 0% | 6%
api/migrations0% | 0% | 18% | 25% | 56%
evaluation/utils0% | 0% | 37% | 59% | 2%
legacy/modelservers0% | 0% | 23% | 45% | 30%
api/cron0% | 0% | 78% | 0% | 21%
evaluation/metrics0% | 0% | 34% | 46% | 18%
evaluation/scripts0% | 0% | 0% | 58% | 41%
api/common0% | 0% | 0% | 64% | 35%
builder0% | 0% | 0% | 89% | 10%
annotators0% | 0% | 0% | 22% | 77%
ROOT0% | 0% | 0% | 75% | 25%
api/tools0% | 0% | 0% | 0% | 100%
annotators/conf0% | 0% | 0% | 0% | 100%
evaluation0% | 0% | 0% | 0% | 100%
builder/dockerfiles0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
bottle.py
in api
3049 329
ApiService.js
in frontends/web/src/common
889 84
CreateInterface.js
in frontends/web/src/common/Annotation
850 14
ModelPage.js
in frontends/web/src/containers
822 3
tasks.py
in api/controllers
820 37
task.py
in api/models
802 56
ProfilePage.js
in frontends/web/src/containers
685 6
models.py
in api/controllers
638 11
badge.py
in api/models
632 19
onboarding.jsx
in frontends/web/mturk-src/components/yixin/nli-4-mtuk
619 -
NLIWritingInterface.jsx
in frontends/web/mturk-src/components/yixin/nli-4-mtuk
603 -
TaskOwnerPage.js
in frontends/web/src/containers
568 5
CreateVQAMturkInterface.js
in frontends/web/mturk-src/components/vqa/src
567 26
ValidateInterface.js
in frontends/web/src/common/Annotation
536 9
example.py
in api/models
505 11
AboutPage.js
in frontends/web/src/containers
502 -
ResponseInfo.js
in frontends/web/src/common/Annotation
497 7
AnnotationComponent.js
in frontends/web/src/common/Annotation
496 3
VQAValidationInterface.js
in frontends/web/mturk-src/components/vqa/src
491 5
TaskPage.js
in frontends/web/src/containers
469 15
deployer.py
in builder/utils
467 17
core.jsx
in frontends/web/mturk-src/components/divyansh/qa-1
458 -
score.py
in api/models
440 14
DataPolicyPage.js
in frontends/web/src/containers
433 2
TaskModelLeaderboardCard.js
in frontends/web/src/components/TaskLeaderboard
422 1
FloresLanguages.js
in frontends/web/src/components/FloresComponents
415 -
20210810_01_iApXr-general_task_creation_consolidation.py
in api/migrations
414 -
CreateInterface.js
in frontends/web/mturk-src/components/divyansh/qa-1
403 12
TaskModelLeaderboardTable.js
in frontends/web/src/components/TaskLeaderboard
403 -
App.js
in frontends/web/src/containers
402 7
ml_deploy.py
in legacy/torchserve/legacy
388 8
FloresPairsLeaderboard.js
in frontends/web/src/components/FloresComponents
373 -
Datasets.js
in frontends/web/src/components/TaskOwnerPageComponents
368 1
TaskProposalSubPage.js
in frontends/web/src/components/ProfilePageComponents
364 -
CreateInterface.js
in frontends/web/mturk-src/components
357 13
SubmitInterface.js
in frontends/web/src/containers
355 2
users.py
in api/controllers
350 12
CreateInterfaceNoModel.js
in frontends/web/mturk-src/components/divyansh/qa-1
348 12
CreateInterfaceNoModel.js
in frontends/web/mturk-src/components
342 12
flores.py
in evaluation/datasets/mt
329 23
core.jsx
in frontends/web/mturk-src/components/sa-zen
323 -
UserPage.js
in frontends/web/src/containers
323 5
evaluator.py
in evaluation/utils
313 14
AdminTaskProposalSubPage.js
in frontends/web/src/components/ProfilePageComponents
306 -
Rounds.js
in frontends/web/src/components/TaskOwnerPageComponents
302 -
TermsPage.js
in frontends/web/src/containers
296 11
examples.py
in api/controllers
291 7
common.py
in evaluation/datasets
288 22
CreateInterfaceOnboarding.js
in frontends/web/mturk-src/components/divyansh/qa-1
260 10
FloresModelLeaderboard.js
in frontends/web/src/components/FloresComponents
256 -
Files With Most Units (Top 20)
File# lines# units
bottle.py
in api
3049 329
ApiService.js
in frontends/web/src/common
889 84
task.py
in api/models
802 56
tasks.py
in api/controllers
820 37
CreateVQAMturkInterface.js
in frontends/web/mturk-src/components/vqa/src
567 26
user.py
in api/models
159 25
metrics.py
in evaluation/metrics
187 23
flores.py
in evaluation/datasets/mt
329 23
common.py
in evaluation/datasets
288 22
badge.py
in api/models
632 19
model.py
in api/models
152 17
deployer.py
in builder/utils
467 17
helpers.py
in evaluation/utils
161 16
TaskPage.js
in frontends/web/src/containers
469 15
CreateInterface.js
in frontends/web/src/common/Annotation
850 14
score.py
in api/models
440 14
evaluator.py
in evaluation/utils
313 14
CreateInterface.js
in frontends/web/mturk-src/components
357 13
shared.py
in legacy/torchserve/common
135 13
CreateInterfaceNoModel.js
in frontends/web/mturk-src/components
342 12
Files With Long Lines (Top 20)

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

File# lines# units# long lines
GoodExampleCards.jsx
in frontends/web/mturk-src/components/yixin/nli-4-mtuk
238 - 20
onboarding.jsx
in frontends/web/mturk-src/components/yixin/nli-4-mtuk
619 - 11
VQAValidInvalidExamples.js
in frontends/web/mturk-src/components/vqa/OnboardingInfo
71 - 8
CreateInterface.js
in frontends/web/mturk-src/components/divyansh/qa-1
403 12 4
UserStatTooltips.js
in frontends/web/src/containers
27 - 3
custom_50x.html
in frontends/web/public
32 - 2
CreateInterfaceNoModel.js
in frontends/web/mturk-src/components
342 12 2
CreateInterfaceNoModel.js
in frontends/web/mturk-src/components/divyansh/qa-1
348 12 2
CreateInterfaceOnboarding.js
in frontends/web/mturk-src/components/divyansh/qa-1
260 10 2
CreateVQAMturkInterface.js
in frontends/web/mturk-src/components/vqa/src
567 26 2
TaskModelLeaderboardTable.js
in frontends/web/src/components/TaskLeaderboard
403 - 2
CreateInterface.js
in frontends/web/src/common/Annotation
850 14 2
index.html
in frontends/web/public
25 - 1
NLIWritingInterface.jsx
in frontends/web/mturk-src/components/yixin/nli-4-mtuk
603 - 1
VQAPreview.js
in frontends/web/mturk-src/components/vqa/src
36 - 1
VQAQuizCard.js
in frontends/web/mturk-src/components/vqa/src/Onboarding
84 2 1
TaskModelLeaderboardCard.js
in frontends/web/src/components/TaskLeaderboard
422 1 1
Datasets.js
in frontends/web/src/components/TaskOwnerPageComponents
368 1 1
UserLeaderboardCard.js
in frontends/web/src/components/TaskPageComponents
163 - 1
ApiService.js
in frontends/web/src/common
889 84 1