facebookresearch / vissl
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 782 files with 45,422 lines of code.
    • 0 very long files (0 lines of code)
    • 5 long files (2,791 lines of code)
    • 23 medium size files (7,173 lines of codeclsfd_ftr_w_mp_ins)
    • 136 small files (16,617 lines of code)
    • 618 very small files (18,841 lines of code)
0% | 6% | 15% | 36% | 41%
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% | 10% | 30% | 27% | 32%
yaml0% | 2% | 0% | 46% | 51%
css0% | 0% | 100% | 0% | 0%
js0% | 0% | 0% | 33% | 66%
cfg0% | 0% | 0% | 0% | 100%
in0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
vissl/utils0% | 23% | 36% | 25% | 14%
vissl/trainer0% | 44% | 35% | 11% | 8%
vissl/config0% | 89% | 0% | 0% | 10%
vissl/models0% | 15% | 51% | 4% | 28%
vissl/data0% | 0% | 34% | 22% | 43%
vissl/hooks0% | 0% | 37% | 46% | 16%
vissl/losses0% | 0% | 36% | 27% | 36%
website/static0% | 0% | 100% | 0% | 0%
extra_scripts0% | 0% | 20% | 48% | 31%
vissl/optimizers0% | 0% | 37% | 38% | 23%
configs/config0% | 0% | 0% | 47% | 52%
extra_scripts/datasets0% | 0% | 0% | 46% | 53%
tools0% | 0% | 0% | 59% | 40%
vissl/meters0% | 0% | 0% | 46% | 53%
website/pages0% | 0% | 0% | 60% | 39%
dev0% | 0% | 0% | 99% | <1%
vissl/engines0% | 0% | 0% | 0% | 100%
dev/packaging0% | 0% | 0% | 0% | 100%
website/core0% | 0% | 0% | 0% | 100%
tools/perf_measurement0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
dev/website_docs0% | 0% | 0% | 0% | 100%
website0% | 0% | 0% | 0% | 100%
hydra_plugins/vissl_plugin0% | 0% | 0% | 0% | 100%
vissl0% | 0% | 0% | 0% | 100%
configs0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
checkpoint.py
in vissl/utils
616 42
trainer_main.py
in vissl/trainer
578 18
data_util.py
in vissl/utils/instance_retrieval_utils
574 66
defaults.yaml
in vissl/config
518 -
convit.py
in vissl/models/trunks
505 27
rand_auto_aug.py
in vissl/data/ssl_transforms
482 46
train_task.py
in vissl/trainer
470 38
layer_memory_tracking.py
in vissl/utils
469 48
xcit.py
in vissl/models/trunks
397 21
hydra_config.py
in vissl/utils
394 15
regnet_fsdp.py
in vissl/models/trunks
376 15
benchmark_suite_scheduler.py
in vissl/utils
372 25
log_hooks.py
in vissl/hooks
370 24
model_helpers.py
in vissl/models
327 27
base_ssl_model.py
in vissl/models
327 24
cutmixup_collator.py
in vissl/data/collators
317 17
nce_loss.py
in vissl/losses
306 20
custom.css
in website/static/css
266 -
vision_transformer.py
in vissl/models/trunks
262 16
experiment_spreadsheet_from_logs.py
in extra_scripts
258 6
knn_utils.py
in vissl/utils
248 13
ssl_dataset.py
in vissl/data
241 21
swav_loss.py
in vissl/losses
235 10
optimizer_helper.py
in vissl/optimizers
224 4
tensorboard_hook.py
in vissl/hooks
224 9
pygments.css
in website/static/css
205 -
io.py
in vissl/utils
202 13
misc.py
in vissl/utils
201 24
index.js
in website/pages/en
199 1
train_svm_low_shot.py
in tools
196 7
svm_low_shot_trainer.py
in vissl/utils/svm_utils
191 8
distributed_launcher.py
in vissl/utils
186 9
svm_trainer.py
in vissl/utils/svm_utils
180 11
convert_caffe2_to_vissl_alexnet.py
in extra_scripts
173 9
state_update_hooks.py
in vissl/hooks
167 5
profiling_hook.py
in vissl/hooks
165 21
dataset_catalog.py
in vissl/data
164 15
cluster_features_and_label.py
in tools
158 6
convert_vissl_to_classy_vision.py
in extra_scripts
157 3
swav_momentum_loss.py
in vissl/losses
154 9
standard_train_step.py
in vissl/trainer/train_steps
149 3
create_low_shot_samples.py
in extra_scripts
148 7
create_k700_data_files.py
in extra_scripts/datasets
148 9
extract_features_utils.py
in vissl/utils
147 5
resnext.py
in vissl/models/trunks
147 2
convit_b_2nodes.yaml
in configs/config/pretrain/vision_transformer/swav
145 -
convit_s_2nodes.yaml
in configs/config/pretrain/vision_transformer/swav
145 -
data_helper.py
in vissl/data
144 19
deepclusterv2_loss.py
in vissl/losses
143 7
dino_16gpus_deits16.yaml
in configs/config/pretrain/dino
140 -
Files With Most Units (Top 20)
File# lines# units
data_util.py
in vissl/utils/instance_retrieval_utils
574 66
layer_memory_tracking.py
in vissl/utils
469 48
rand_auto_aug.py
in vissl/data/ssl_transforms
482 46
checkpoint.py
in vissl/utils
616 42
train_task.py
in vissl/trainer
470 38
model_helpers.py
in vissl/models
327 27
convit.py
in vissl/models/trunks
505 27
benchmark_suite_scheduler.py
in vissl/utils
372 25
misc.py
in vissl/utils
201 24
base_ssl_model.py
in vissl/models
327 24
log_hooks.py
in vissl/hooks
370 24
xcit.py
in vissl/models/trunks
397 21
profiling_hook.py
in vissl/hooks
165 21
ssl_dataset.py
in vissl/data
241 21
nce_loss.py
in vissl/losses
306 20
data_helper.py
in vissl/data
144 19
trainer_main.py
in vissl/trainer
578 18
profiler.py
in vissl/utils
116 17
cutmixup_collator.py
in vissl/data/collators
317 17
vision_transformer.py
in vissl/models/trunks
262 16
Files With Long Lines (Top 20)

There are 29 files with lines longer than 120 characters. In total, there are 37 long lines.

File# lines# units# long lines
index.js
in website/pages/en
199 1 4
index.js
in website/pages/tutorials
60 - 3
Tutorial.js
in website/core
82 2 2
barlow_twins_1node_resnet_imagenette_160.yaml
in configs/config/debugging/pretrain/barlow_twins
117 - 2
barlow_twins_4node_resnet.yaml
in configs/config/pretrain/barlow_twins
114 - 2
regnet256Gf_swav_head.yaml
in configs/config/benchmark/fulltune/patch_camelyon/models
46 - 1
regnet128Gf_swav_head.yaml
in configs/config/benchmark/fulltune/imagenet1k/models
22 - 1
regnet16Gf_swav_d3024_d4096_lastBN_noNorm.yaml
in configs/config/benchmark/fulltune/imagenet1k/models
16 - 1
regnet64Gf_3_swav_head.yaml
in configs/config/benchmark/semi_supervised/places205/models
20 - 1
regnet256Gf_swav_head.yaml
in configs/config/benchmark/semi_supervised/places205/models
27 - 1
regnet128Gf_swav_head.yaml
in configs/config/benchmark/semi_supervised/places205/models
23 - 1
regnet16Gf_swav_head.yaml
in configs/config/benchmark/semi_supervised/places205/models
16 - 1
regnet32Gf_swav_head.yaml
in configs/config/benchmark/semi_supervised/places205/models
16 - 1
regnet8Gf_swav_head.yaml
in configs/config/benchmark/semi_supervised/places205/models
16 - 1
regnet64Gf_3_swav_head.yaml
in configs/config/benchmark/semi_supervised/imagenet1k/models
20 - 1
regnet256Gf_swav_head.yaml
in configs/config/benchmark/semi_supervised/imagenet1k/models
27 - 1
regnet128Gf_swav_head.yaml
in configs/config/benchmark/semi_supervised/imagenet1k/models
23 - 1
regnet16Gf_swav_head.yaml
in configs/config/benchmark/semi_supervised/imagenet1k/models
16 - 1
regnet32Gf_swav_head.yaml
in configs/config/benchmark/semi_supervised/imagenet1k/models
16 - 1
regnet8Gf_swav_head.yaml
in configs/config/benchmark/semi_supervised/imagenet1k/models
16 - 1