facebookresearch / mmf
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 882 files with 54,344 lines of code.
    • 5 very long files (6,072 lines of code)
    • 9 long files (5,432 lines of code)
    • 43 medium size files (13,813 lines of codeclsfd_ftr_w_mp_ins)
    • 53 small files (7,212 lines of code)
    • 772 very small files (21,815 lines of code)
11% | 9% | 25% | 13% | 40%
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
py16% | 13% | 36% | 15% | 17%
yaml0% | 3% | 2% | 6% | 87%
js0% | 0% | 0% | 82% | 17%
c0% | 0% | 0% | 100% | 0%
css0% | 0% | 0% | 0% | 100%
toml0% | 0% | 0% | 0% | 100%
in0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
tools/scripts44% | 0% | 30% | 8% | 16%
mmf/projects15% | 0% | 0% | 8% | 75%
projects/krisp66% | 0% | 0% | 11% | 21%
mmf/models10% | 16% | 48% | 13% | 10%
mmf/datasets14% | 0% | 13% | 29% | 43%
mmf/modules0% | 65% | 25% | 3% | 5%
mmf/configs0% | 12% | 10% | 2% | 74%
mmf/utils0% | 0% | 79% | 8% | 12%
mmf/common0% | 0% | 59% | 26% | 14%
tools/sweeps0% | 0% | 92% | 0% | 7%
mmf/trainers0% | 0% | 19% | 56% | 24%
mmf_cli0% | 0% | 0% | 52% | 47%
projects/m4c0% | 0% | 0% | 33% | 66%
website/src0% | 0% | 0% | 51% | 48%
ROOT0% | 0% | 0% | 75% | 25%
website0% | 0% | 0% | 72% | 27%
projects/m4c_captioner0% | 0% | 0% | 27% | 72%
projects/vilt0% | 0% | 0% | 31% | 68%
projects/mmbt0% | 0% | 0% | 36% | 63%
projects/visual_bert0% | 0% | 0% | 0% | 100%
projects/unit0% | 0% | 0% | 0% | 100%
projects/vilbert0% | 0% | 0% | 0% | 100%
projects/others0% | 0% | 0% | 0% | 100%
projects/hateful_memes0% | 0% | 0% | 0% | 100%
projects/lxmert0% | 0% | 0% | 0% | 100%
projects/mmf_transformer0% | 0% | 0% | 0% | 100%
projects/pretrain_vl_right0% | 0% | 0% | 0% | 100%
projects/pythia0% | 0% | 0% | 0% | 100%
projects/lorra0% | 0% | 0% | 0% | 100%
projects/butd0% | 0% | 0% | 0% | 100%
projects/movie_mcan0% | 0% | 0% | 0% | 100%
projects/uniter0% | 0% | 0% | 0% | 100%
projects/vinvl0% | 0% | 0% | 0% | 100%
projects/ban0% | 0% | 0% | 0% | 100%
mmf0% | 0% | 0% | 0% | 100%
tools0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
modeling_frcnn.py
in tools/scripts/features/frcnn
1452 85
graphnetwork_module.py
in projects/krisp
1226 16
graphnetwork_module.py
in mmf/projects/krisp
1226 16
vilbert.py
in mmf/models
1127 59
processors.py
in mmf/datasets/processors
1041 79
metrics.py
in mmf/modules
686 87
encoders.py
in mmf/modules
640 45
uniter.py
in mmf/models
615 33
fusions.py
in mmf/modules
607 25
losses.py
in mmf/modules
606 57
lxmert.py
in mmf/models
596 38
layers.py
in mmf/modules
590 55
datasets.yaml
in mmf/configs/zoo
547 -
krisp.py
in mmf/models
545 20
visualizing_image.py
in mmf/utils/features
487 12
models.yaml
in mmf/configs/zoo
481 -
visual_bert.py
in mmf/models
473 20
bert_processors.py
in mmf/datasets/processors
472 30
vit.py
in mmf/models/albef
472 29
embeddings.py
in mmf/modules
467 35
transformer.py
in mmf/models/unit
456 23
checkpoint.py
in mmf/utils
450 25
mmbt.py
in mmf/models
444 23
configuration.py
in mmf/utils
425 31
m4c.py
in mmf/models
405 29
build.py
in mmf/utils
396 21
pythia.py
in mmf/models
354 30
vinvl.py
in mmf/models
342 15
mmf_transformer.py
in mmf/models
331 16
hf_layers.py
in mmf/modules
331 15
general.py
in mmf/utils
326 28
distributed.py
in mmf/utils
317 26
unit_base_model.py
in mmf/models/unit
315 17
logger.py
in mmf/utils
312 24
unit.py
in mmf/models/unit
308 12
slurm.py
in tools/sweeps/lib
303 8
mmf_bert.py
in mmf/models
301 14
download.py
in mmf/utils
297 19
extract_features_frcnn.py
in tools/scripts/features/frcnn
286 7
text.py
in mmf/utils
286 27
m4c_evaluators.py
in mmf/utils
285 15
registry.py
in mmf/common
279 37
frcnn_utils.py
in tools/scripts/features/frcnn
263 17
vocab.py
in mmf/utils
252 28
lightning_trainer.py
in mmf/trainers
247 22
multi_dataset_loader.py
in mmf/datasets
245 30
sample.py
in mmf/common
236 29
vit.py
in mmf/modules
236 13
extract_features_vmb.py
in tools/scripts/features
231 9
vilt.py
in mmf/models
225 14
Files With Most Units (Top 20)
File# lines# units
metrics.py
in mmf/modules
686 87
modeling_frcnn.py
in tools/scripts/features/frcnn
1452 85
processors.py
in mmf/datasets/processors
1041 79
vilbert.py
in mmf/models
1127 59
losses.py
in mmf/modules
606 57
layers.py
in mmf/modules
590 55
encoders.py
in mmf/modules
640 45
lxmert.py
in mmf/models
596 38
registry.py
in mmf/common
279 37
embeddings.py
in mmf/modules
467 35
uniter.py
in mmf/models
615 33
configuration.py
in mmf/utils
425 31
multi_dataset_loader.py
in mmf/datasets
245 30
bert_processors.py
in mmf/datasets/processors
472 30
pythia.py
in mmf/models
354 30
vit.py
in mmf/models/albef
472 29
m4c.py
in mmf/models
405 29
sample.py
in mmf/common
236 29
vocab.py
in mmf/utils
252 28
general.py
in mmf/utils
326 28
Files With Long Lines (Top 13)

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

File# lines# units# long lines
datasets.yaml
in mmf/configs/zoo
547 - 18
defaults.yaml
in mmf/configs/datasets/vqacp_v2
59 - 3
shared_dec.yaml
in projects/unit/configs/vg_vqa2
63 - 1
single_task.yaml
in projects/unit/configs/vg
56 - 1
shared_dec.yaml
in projects/unit/configs/all_8_datasets
95 - 1
shared_dec.yaml
in projects/unit/configs/coco_vg_vqa2
67 - 1
toml
pyproject.toml
in root
36 - 1
docusaurus.config.js
in website
112 1 1
sidebars.js
in website
42 - 1
shared_dec.yaml
in mmf/projects/unit/configs/vg_vqa2
63 - 1
single_task.yaml
in mmf/projects/unit/configs/vg
56 - 1
shared_dec.yaml
in mmf/projects/unit/configs/all_8_datasets
95 - 1
shared_dec.yaml
in mmf/projects/unit/configs/coco_vg_vqa2
67 - 1