facebookresearch / ParlAI
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 1,089 files with 89,390 lines of code.
    • 6 very long files (7,571 lines of code)
    • 24 long files (17,083 lines of code)
    • 100 medium size files (30,006 lines of codeclsfd_ftr_w_mp_ins)
    • 117 small files (16,477 lines of code)
    • 842 very small files (18,253 lines of code)
8% | 19% | 33% | 18% | 20%
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
py9% | 17% | 34% | 18% | 20%
css0% | 94% | 0% | 0% | 5%
jsx0% | 22% | 29% | 30% | 18%
js0% | 0% | 37% | 36% | 25%
html0% | 0% | 39% | 19% | 40%
yaml0% | 0% | 0% | 0% | 100%
yml0% | 0% | 0% | 0% | 100%
jsonl0% | 0% | 0% | 0% | 100%
toml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
parlai/core43% | 33% | 12% | 6% | 3%
parlai/tasks5% | 7% | 31% | 23% | 31%
parlai/scripts24% | 16% | 11% | 21% | 26%
parlai/crowdsourcing0% | 18% | 45% | 18% | 18%
parlai/agents0% | 17% | 47% | 19% | 15%
website/static0% | 100% | 0% | 0% | 0%
projects/light_whoami0% | 51% | 38% | 6% | 3%
projects/blenderbot20% | 85% | 14% | 0% | <1%
projects/anti_scaling0% | 96% | 0% | 0% | 3%
parlai/torchscript0% | 93% | 0% | 0% | 6%
parlai/utils0% | 0% | 66% | 26% | 7%
parlai/chat_service0% | 0% | 38% | 35% | 26%
projects/personality_captions0% | 0% | 99% | 0% | <1%
projects/image_chat0% | 0% | 99% | 0% | <1%
projects/wizard_of_wikipedia0% | 0% | 59% | 13% | 27%
projects/dialogue_unlikelihood0% | 0% | 99% | 0% | <1%
parlai/nn0% | 0% | 97% | 0% | 2%
projects/tod_simulator0% | 0% | 100% | 0% | 0%
projects/style_gen0% | 0% | 0% | 95% | 4%
projects/msc0% | 0% | 0% | 83% | 16%
projects/safety_bench0% | 0% | 0% | 63% | 36%
projects/params_vs_compute0% | 0% | 0% | 100% | 0%
website/templates0% | 0% | 0% | 55% | 44%
website0% | 0% | 0% | 87% | 12%
parlai/zoo0% | 0% | 0% | 0% | 100%
parlai/mutators0% | 0% | 0% | 0% | 100%
projects/safety_recipes0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
parlai/opt_presets0% | 0% | 0% | 0% | 100%
projects/genderation_bias0% | 0% | 0% | 0% | 100%
projects/md_gender0% | 0% | 0% | 0% | 100%
example_parlai_internal/agents0% | 0% | 0% | 0% | 100%
projects/dialogue_bias0% | 0% | 0% | 0% | 100%
parlai0% | 0% | 0% | 0% | 100%
projects/multimodal_blenderbot0% | 0% | 0% | 0% | 100%
projects0% | 0% | 0% | 0% | 100%
example_parlai_internal0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
task_list.py
in parlai/tasks
1542 -
torch_agent.py
in parlai/core
1409 74
teachers.py
in parlai/core
1368 132
generate_model_card.py
in parlai/scripts
1136 65
torch_generator_agent.py
in parlai/core
1101 70
params.py
in parlai/core
1015 47
agents.py
in parlai/tasks/wizard_of_wikipedia
976 55
worlds.py
in parlai/crowdsourcing/projects/wizard_of_internet
919 83
parlai.css
in website/static/css
914 -
retrievers.py
in parlai/agents/rag
857 86
expanded_attention.py
in projects/light_whoami/agents
845 40
distillation.py
in projects/anti_scaling
799 39
home-theme.css
in website/static/css
797 -
worlds.py
in parlai/core
777 116
torch_ranker_agent.py
in parlai/core
753 26
train_model.py
in parlai/scripts
743 18
core_components.jsx
in parlai/crowdsourcing/tasks/acute_eval/webapp/src/components
729 -
blenderbot2.py
in projects/blenderbot2/agents
727 29
model_types.py
in parlai/agents/rag
720 52
multi_objective.py
in projects/light_whoami/agents
676 43
metrics.py
in parlai/core
655 76
agents.py
in parlai/tasks/msc
638 20
modules.py
in projects/blenderbot2/agents
622 27
analysis.py
in parlai/crowdsourcing/tasks/acute_eval
613 24
builder.py
in parlai/tasks/light_dialog_wild
608 23
rag.py
in parlai/agents/rag
598 46
modules.py
in parlai/torchscript
553 31
tod_agents.py
in parlai/core/tod
540 59
torch_classifier_agent.py
in parlai/core
515 33
dict.py
in parlai/core
509 40
misc.py
in parlai/utils
498 33
agents.py
in parlai/tasks/blended_skill_talk
495 30
fp16.py
in parlai/utils
481 47
bpe.py
in parlai/utils
470 41
agents.py
in parlai/tasks/wizard_of_internet
464 50
worlds.py
in parlai/crowdsourcing/tasks/model_chat
460 25
model_chat_blueprint.py
in parlai/crowdsourcing/tasks/model_chat
459 13
download_reddit_qalist.py
in parlai/tasks/eli5/data_creation
456 10
starspace.py
in parlai/agents/starspace
451 21
chat_service_manager.py
in parlai/chat_service/core
441 48
agents.py
in projects/light_whoami/task
437 21
modules.py
in parlai/agents/seq2seq
423 16
agents.py
in parlai/tasks/light_dialog_wild
416 10
agents.py
in projects/dialogue_unlikelihood
414 27
build_data.py
in parlai/core
413 23
agents.py
in parlai/tasks/taskmaster
407 26
fast_eval.py
in parlai/crowdsourcing/tasks/acute_eval
396 21
agents.py
in parlai/tasks/jericho_world
386 47
compile_results.py
in parlai/crowdsourcing/tasks/turn_annotations_static/analysis
383 17
compile_results.py
in parlai/crowdsourcing/tasks/model_chat/analysis
380 5
Files With Most Units (Top 20)
File# lines# units
teachers.py
in parlai/core
1368 132
worlds.py
in parlai/core
777 116
retrievers.py
in parlai/agents/rag
857 86
worlds.py
in parlai/crowdsourcing/projects/wizard_of_internet
919 83
metrics.py
in parlai/core
655 76
torch_agent.py
in parlai/core
1409 74
torch_generator_agent.py
in parlai/core
1101 70
generate_model_card.py
in parlai/scripts
1136 65
tod_agents.py
in parlai/core/tod
540 59
agents.py
in parlai/tasks/wizard_of_wikipedia
976 55
agents.py
in parlai/tasks/integration_tests
345 54
model_types.py
in parlai/agents/rag
720 52
agents.py
in parlai/tasks/wizard_of_internet
464 50
chat_service_manager.py
in parlai/chat_service/core
441 48
agents.py
in parlai/tasks/jericho_world
386 47
params.py
in parlai/core
1015 47
fp16.py
in parlai/utils
481 47
rag.py
in parlai/agents/rag
598 46
multi_objective.py
in projects/light_whoami/agents
676 43
bpe.py
in parlai/utils
470 41
Files With Long Lines (Top 20)

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

File# lines# units# long lines
builder.py
in parlai/tasks/light_dialog_wild
608 23 26
generate_model_card.py
in parlai/scripts
1136 65 20
task_description.html
in parlai/crowdsourcing/projects/multisession_chat/human_eval/task_config
224 - 15
home.html
in website/templates
111 - 13
build.py
in parlai/tasks/xpersona
168 2 12
turn_annotations_blueprint.py
in parlai/crowdsourcing/tasks/turn_annotations_static
306 6 10
example.yaml
in projects/safety_recipes/human_safety_evaluation/hydra_configs/conf
40 - 9
task_components.jsx
in parlai/crowdsourcing/tasks/turn_annotations_static/webapp/src/components
314 - 9
compile_results.py
in parlai/crowdsourcing/tasks/turn_annotations_static/analysis
383 17 8
onboarding_components.jsx
in parlai/crowdsourcing/tasks/model_chat/frontend/components
184 - 7
base.html
in website/templates
67 - 6
tod_agents.py
in parlai/core/tod
540 59 6
tod_world_script.py
in parlai/scripts
312 14 6
onboarding_components.jsx
in parlai/crowdsourcing/tasks/turn_annotations_static/webapp/src/components
140 - 5
compile_results.py
in parlai/crowdsourcing/tasks/model_chat/analysis
380 5 4
jsonl
task_data.jsonl
in projects/safety_recipes/human_safety_evaluation/task_config
3 - 3
bot_agent.py
in parlai/crowdsourcing/tasks/model_chat
92 6 3
agents.py
in parlai/tasks/blended_skill_talk
495 30 3
agents.py
in parlai/tasks/cmu_dog
284 13 3
agents.py
in parlai/tasks/casino
221 12 3