facebookresearch / deep-variance-reduction
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 32 files with 3,809 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 8 medium size files (2,187 lines of codeclsfd_ftr_w_mp_ins)
    • 6 small files (767 lines of code)
    • 18 very small files (855 lines of code)
0% | 0% | 57% | 20% | 22%
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% | 0% | 57% | 20% | 22%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
ROOT0% | 0% | 73% | 18% | 8%
reproduce0% | 0% | 0% | 26% | 73%
Longest Files (Top 32)
File# lines# units
run.py
in root
486 1
torch_svrg.py
in root
288 11
UpdatedDataLoaderMult.py
in root
276 19
scsg.py
in root
266 14
UpdatedDataLoader.py
in root
240 20
diagnostics.py
in root
220 7
resnext.py
in root
207 19
resnet.py
in root
204 20
problems.py
in root
170 3
densenet.py
in root
135 11
recompute_svrg.py
in root
127 10
caching_transforms.py
in root
117 10
plot_variance_ratio.py
in reproduce
112 1
plot_test_error_with_bars.py
in reproduce
106 1
run_vr.py
in root
97 2
plot_test_error.py
in reproduce
91 1
plot_transform_locking.py
in reproduce
80 1
plot_iterate_distance.py
in reproduce
78 1
plot_finetuning.py
in reproduce
73 -
label_lines.py
in reproduce
59 2
imagenet_wrapper.py
in root
57 6
vr_sampler.py
in root
46 7
cifar_wrapper.py
in root
33 4
reproduce_test_error_imagenet_next.py
in reproduce
28 -
reproduce_test_error_imagenet.py
in reproduce
28 -
reproduce_iterate_distance.py
in reproduce
27 -
reproduce_finetuning.py
in reproduce
27 -
reproduce_test_error_resnet110.py
in reproduce
27 -
reproduce_test_error_lenet.py
in reproduce
27 -
reproduce_locking_plot.py
in reproduce
27 -
optimizers.py
in root
26 1
reproduce_ratio_plots.py
in reproduce
24 -
Files With Most Units (Top 20)
File# lines# units
resnet.py
in root
204 20
UpdatedDataLoader.py
in root
240 20
UpdatedDataLoaderMult.py
in root
276 19
resnext.py
in root
207 19
scsg.py
in root
266 14
densenet.py
in root
135 11
torch_svrg.py
in root
288 11
recompute_svrg.py
in root
127 10
caching_transforms.py
in root
117 10
diagnostics.py
in root
220 7
vr_sampler.py
in root
46 7
imagenet_wrapper.py
in root
57 6
cifar_wrapper.py
in root
33 4
problems.py
in root
170 3
label_lines.py
in reproduce
59 2
run_vr.py
in root
97 2
run.py
in root
486 1
plot_iterate_distance.py
in reproduce
78 1
plot_test_error_with_bars.py
in reproduce
106 1
plot_variance_ratio.py
in reproduce
112 1
Files With Long Lines (Top 5)

There are 5 files with lines longer than 120 characters. In total, there are 10 long lines.

File# lines# units# long lines
run.py
in root
486 1 6
scsg.py
in root
266 14 1
imagenet_wrapper.py
in root
57 6 1
vr_sampler.py
in root
46 7 1
torch_svrg.py
in root
288 11 1