facebookresearch / luckmatters
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 46 files with 4,620 lines of code.
    • 0 very long files (0 lines of code)
    • 2 long files (1,145 lines of code)
    • 5 medium size files (1,258 lines of codeclsfd_ftr_w_mp_ins)
    • 7 small files (885 lines of code)
    • 32 very small files (1,332 lines of code)
0% | 24% | 27% | 19% | 28%
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% | 26% | 28% | 17% | 27%
yaml0% | 0% | 0% | 42% | 57%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
ssl/real-dataset0% | 57% | 0% | 40% | 1%
luckmatter0% | 57% | 24% | 0% | 17%
student_specialization0% | 0% | 65% | 0% | 34%
ssl/hltm0% | 0% | 100% | 0% | 0%
ssl/common_utils0% | 0% | 0% | 31% | 68%
student_specialization/visualization0% | 0% | 0% | 50% | 49%
ssl/real-dataset/models0% | 0% | 0% | 80% | 19%
ssl/real-dataset/config0% | 0% | 0% | 100% | 0%
ssl/real-dataset/data0% | 0% | 0% | 0% | 100%
ssl/real-dataset/loss0% | 0% | 0% | 0% | 100%
student_specialization/conf0% | 0% | 0% | 0% | 100%
student_specialization/conf/hydra0% | 0% | 0% | 0% | 100%
ssl/hltm/conf0% | 0% | 0% | 0% | 100%
Longest Files (Top 46)
File# lines# units
byol_trainer.py
in ssl/real-dataset
577 23
recon_multilayer.py
in luckmatter
568 24
model_gen.py
in student_specialization
274 36
simCLR_hltm.py
in ssl/hltm
257 15
recon_multilayer.py
in student_specialization
254 7
model_gen.py
in luckmatter
246 31
recon_two_layer.py
in student_specialization
227 11
linear_feature_eval.py
in ssl/real-dataset
181 8
helper.py
in ssl/common_utils
139 18
simclr_trainer.py
in ssl/real-dataset
118 4
visualize.py
in student_specialization/visualization
117 3
mlp_head.py
in ssl/real-dataset/models
113 11
main.py
in ssl/real-dataset
109 2
byol_config.yaml
in ssl/real-dataset/config
108 -
multi_counter.py
in ssl/common_utils
98 11
utils.py
in student_specialization
88 9
utils_corrs.py
in student_specialization
85 7
utils_corrs.py
in luckmatter
85 7
nt_xent.py
in ssl/real-dataset/loss
81 8
stats.py
in ssl/common_utils
79 6
dataset.py
in student_specialization
72 5
utils.py
in student_specialization/visualization
70 5
stats_operator.py
in student_specialization
55 13
config_multilayer.yaml
in student_specialization/conf
50 -
visualize_multi.py
in student_specialization/visualization
43 1
vis_corrs.py
in student_specialization
42 2
stopwatch.py
in ssl/common_utils
40 5
transforms.py
in ssl/real-dataset/data
37 2
gaussian_blur.py
in ssl/real-dataset/data
35 2
saver.py
in ssl/common_utils
33 2
theory_utils.py
in student_specialization
29 3
config.yaml
in student_specialization/conf
29 -
resnet_base_network.py
in ssl/real-dataset/models
27 2
fairtask.yaml
in student_specialization/conf/hydra/launcher
27 -
submitit.yaml
in student_specialization/conf/hydra/launcher
27 -
vis_corrs.py
in luckmatter
27 2
teacher_tune.py
in student_specialization
25 2
assert_utils.py
in ssl/common_utils
24 6
theory_utils.py
in luckmatter
23 2
cluster_utils.py
in luckmatter
22 6
logger.py
in ssl/common_utils
18 3
check_models.py
in luckmatter
17 1
hltm.yaml
in ssl/hltm/conf
16 -
utils.py
in ssl/real-dataset
11 1
multi_view_data_injector.py
in ssl/real-dataset/data
10 2
__init__.py
in ssl/common_utils
7 -
Files With Most Units (Top 20)
File# lines# units
model_gen.py
in student_specialization
274 36
model_gen.py
in luckmatter
246 31
recon_multilayer.py
in luckmatter
568 24
byol_trainer.py
in ssl/real-dataset
577 23
helper.py
in ssl/common_utils
139 18
simCLR_hltm.py
in ssl/hltm
257 15
stats_operator.py
in student_specialization
55 13
multi_counter.py
in ssl/common_utils
98 11
mlp_head.py
in ssl/real-dataset/models
113 11
recon_two_layer.py
in student_specialization
227 11
utils.py
in student_specialization
88 9
nt_xent.py
in ssl/real-dataset/loss
81 8
linear_feature_eval.py
in ssl/real-dataset
181 8
utils_corrs.py
in student_specialization
85 7
recon_multilayer.py
in student_specialization
254 7
utils_corrs.py
in luckmatter
85 7
assert_utils.py
in ssl/common_utils
24 6
stats.py
in ssl/common_utils
79 6
cluster_utils.py
in luckmatter
22 6
stopwatch.py
in ssl/common_utils
40 5
Files With Long Lines (Top 15)

There are 15 files with lines longer than 120 characters. In total, there are 59 long lines.

File# lines# units# long lines
byol_trainer.py
in ssl/real-dataset
577 23 21
recon_multilayer.py
in luckmatter
568 24 7
main.py
in ssl/real-dataset
109 2 6
recon_multilayer.py
in student_specialization
254 7 5
recon_two_layer.py
in student_specialization
227 11 4
linear_feature_eval.py
in ssl/real-dataset
181 8 3
simCLR_hltm.py
in ssl/hltm
257 15 3
visualize.py
in student_specialization/visualization
117 3 2
model_gen.py
in student_specialization
274 36 2
stats.py
in ssl/common_utils
79 6 1
nt_xent.py
in ssl/real-dataset/loss
81 8 1
mlp_head.py
in ssl/real-dataset/models
113 11 1
vis_corrs.py
in student_specialization
42 2 1
model_gen.py
in luckmatter
246 31 1
vis_corrs.py
in luckmatter
27 2 1