facebookresearch / worldsheet
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 309 files with 24,979 lines of code.
    • 0 very long files (0 lines of code)
    • 5 long files (3,609 lines of code)
    • 28 medium size files (8,957 lines of codeclsfd_ftr_w_mp_ins)
    • 29 small files (4,304 lines of code)
    • 247 very small files (8,109 lines of code)
0% | 14% | 35% | 17% | 32%
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% | 17% | 39% | 19% | 24%
yaml0% | 0% | 19% | 0% | 80%
c0% | 0% | 0% | 100% | 0%
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
mmf/models0% | 29% | 52% | 5% | 12%
mmf/modules0% | 38% | 47% | 10% | 3%
mmf/datasets0% | 18% | 0% | 29% | 51%
mmf/utils0% | 0% | 62% | 20% | 16%
mmf/neural_rendering0% | 0% | 60% | 21% | 18%
mmf/configs0% | 0% | 21% | 0% | 78%
tools/sweeps0% | 0% | 55% | 36% | 7%
tools/scripts0% | 0% | 44% | 38% | 16%
mmf/common0% | 0% | 31% | 26% | 41%
mmf/trainers0% | 0% | 0% | 49% | 50%
mmf_cli0% | 0% | 0% | 58% | 41%
ROOT0% | 0% | 0% | 76% | 23%
projects/neural_rendering0% | 0% | 0% | 0% | 100%
mmf/projects0% | 0% | 0% | 0% | 100%
run_realestate10k0% | 0% | 0% | 0% | 100%
mmf0% | 0% | 0% | 0% | 100%
tools0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
vilbert.py
in mmf/models
987 57
processors.py
in mmf/datasets/processors
880 69
fusions.py
in mmf/modules
600 25
lxmert.py
in mmf/models
597 38
layers.py
in mmf/modules
545 53
pix2pix_networks.py
in mmf/neural_rendering/inpainting
491 23
metrics.py
in mmf/modules
456 61
embeddings.py
in mmf/modules
453 32
mesh_renderer.py
in mmf/models
451 14
visual_bert.py
in mmf/models
443 19
m4c.py
in mmf/models
405 28
configuration.py
in mmf/utils
393 31
models.yaml
in mmf/configs/zoo
393 -
mmbt.py
in mmf/models
383 22
pythia.py
in mmf/models
354 30
checkpoint.py
in mmf/utils
345 17
datasets.yaml
in mmf/configs/zoo
343 -
mmf_bert.py
in mmf/models
302 14
slurm.py
in tools/sweeps/lib
293 8
download.py
in mmf/utils
293 18
m4c_evaluators.py
in mmf/utils
285 15
losses.py
in mmf/modules
278 31
novel_view_projector.py
in mmf/neural_rendering
266 8
softsplat.py
in mmf/neural_rendering
264 7
vocab.py
in mmf/utils
252 28
text.py
in mmf/utils
251 27
perc_sim.py
in mmf/neural_rendering/metrics
245 12
mmf_transformer.py
in mmf/models
242 15
extract_features_vmb.py
in tools/scripts/features
235 10
general.py
in mmf/utils
215 20
movie_mcan.py
in mmf/models
212 20
attention.py
in mmf/modules
209 19
sample.py
in mmf/common
205 26
encoders.py
in mmf/modules
198 22
distributed.py
in mmf/utils
195 15
logger.py
in mmf/utils
193 14
__init__.py
in tools/sweeps/lib
192 5
mesh_unrenderer.py
in mmf/neural_rendering
189 12
multi_dataset_loader.py
in mmf/datasets
187 29
feature_readers.py
in mmf/datasets/databases/readers
182 17
mmf_dataset_builder.py
in mmf/datasets
179 18
registry.py
in mmf/common
176 22
dataset.py
in mmf/datasets/builders/textvqa
168 7
build.py
in mmf/utils
165 12
training_loop.py
in mmf/trainers/core
159 10
butd.py
in mmf/models
152 10
dataset.py
in mmf/datasets/builders/visual_genome
150 10
fusions.py
in mmf/models
150 16
bert_processors.py
in mmf/datasets/processors
146 10
losses.py
in mmf/neural_rendering
146 15
Files With Most Units (Top 20)
File# lines# units
processors.py
in mmf/datasets/processors
880 69
metrics.py
in mmf/modules
456 61
vilbert.py
in mmf/models
987 57
layers.py
in mmf/modules
545 53
lxmert.py
in mmf/models
597 38
embeddings.py
in mmf/modules
453 32
configuration.py
in mmf/utils
393 31
losses.py
in mmf/modules
278 31
pythia.py
in mmf/models
354 30
multi_dataset_loader.py
in mmf/datasets
187 29
vocab.py
in mmf/utils
252 28
m4c.py
in mmf/models
405 28
text.py
in mmf/utils
251 27
sample.py
in mmf/common
205 26
fusions.py
in mmf/modules
600 25
pix2pix_networks.py
in mmf/neural_rendering/inpainting
491 23
mmbt.py
in mmf/models
383 22
registry.py
in mmf/common
176 22
encoders.py
in mmf/modules
198 22
general.py
in mmf/utils
215 20
Files With Long Lines (Top 6)

There are 6 files with lines longer than 120 characters. In total, there are 35 long lines.

File# lines# units# long lines
softsplat.py
in mmf/neural_rendering
264 7 25
defaults.yaml
in mmf/configs/datasets/okvqa
57 - 3
defaults.yaml
in mmf/configs/datasets/vqacp_v2
59 - 3
cphoc.c
in mmf/utils/phoc/src
118 1 2
defaults.yaml
in mmf/configs/datasets/synsin_realestate10k
22 - 1
datasets.yaml
in mmf/configs/zoo
343 - 1