facebookresearch / pycls
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 113 files with 6,365 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 4 medium size files (974 lines of codeclsfd_ftr_w_mp_ins)
    • 10 small files (1,444 lines of code)
    • 99 very small files (3,947 lines of code)
0% | 0% | 15% | 22% | 62%
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% | 23% | 35% | 40%
yaml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
pycls/models0% | 0% | 57% | 33% | 8%
pycls/sweep0% | 0% | 35% | 35% | 29%
pycls/core0% | 0% | 0% | 51% | 48%
pycls/datasets0% | 0% | 0% | 39% | 60%
configs/archive0% | 0% | 0% | 0% | 100%
configs/dds_baselines0% | 0% | 0% | 0% | 100%
tools0% | 0% | 0% | 0% | 100%
configs/sweeps0% | 0% | 0% | 0% | 100%
dev0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
pycls0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
anynet.py
in pycls/models
301 39
plotting.py
in pycls/sweep
230 12
vit.py
in pycls/models
223 24
resnet.py
in pycls/models
220 27
meters.py
in pycls/core
194 27
config.py
in pycls/core
187 4
effnet.py
in pycls/models
155 16
trainer.py
in pycls/core
153 9
blocks.py
in pycls/models
152 26
augment.py
in pycls/datasets
141 7
model_zoo.py
in pycls/models
128 10
config.py
in pycls/sweep
115 3
analysis.py
in pycls/sweep
111 8
plotting.py
in pycls/core
108 4
benchmark.py
in pycls/core
100 5
sweep_analyze.py
in tools
89 2
sweep_launch_job.py
in tools
89 6
sweep_setup.py
in tools
87 4
sweep_launch.py
in tools
86 2
logging.py
in pycls/core
84 8
checkpoint.py
in pycls/core
83 8
distributed.py
in pycls/core
83 7
cifar_best.yaml
in configs/sweeps/cifar
82 -
net.py
in pycls/core
81 8
optimizer.py
in pycls/core
78 9
model_zoo_tables.py
in dev
77 4
samplers.py
in pycls/sweep
73 9
cifar_regnet.yaml
in configs/sweeps/cifar
72 -
cifar_optim.yaml
in configs/sweeps/cifar
71 -
random.py
in pycls/sweep
70 10
regnet.py
in pycls/models
61 6
imagenet.py
in pycls/datasets
60 5
sweep_collect.py
in tools
59 3
io.py
in pycls/core
52 3
transforms.py
in pycls/datasets
52 6
cifar10.py
in pycls/datasets
52 5
run_net.py
in tools
48 2
loader.py
in pycls/datasets
47 4
scaler.py
in pycls/models
47 2
htmlbook.py
in pycls/sweep
43 6
X-50-32x4d_step_1gpu.yaml
in configs/archive/imagenet/anynet
39 -
R-50-1x64d_step_2gpu.yaml
in configs/archive/imagenet/anynet
39 -
R-101-1x64d_step_2gpu.yaml
in configs/archive/imagenet/anynet
39 -
X-50-32x4d_step_8gpu.yaml
in configs/archive/imagenet/anynet
39 -
X-101-32x4d_step_2gpu.yaml
in configs/archive/imagenet/anynet
39 -
R-101-1x64d_step_1gpu.yaml
in configs/archive/imagenet/anynet
39 -
X-101-32x4d_step_1gpu.yaml
in configs/archive/imagenet/anynet
39 -
R-50-1x64d_step_8gpu.yaml
in configs/archive/imagenet/anynet
39 -
R-101-1x64d_step_8gpu.yaml
in configs/archive/imagenet/anynet
39 -
X-50-32x4d_step_2gpu.yaml
in configs/archive/imagenet/anynet
39 -
Files With Most Units (Top 20)
File# lines# units
anynet.py
in pycls/models
301 39
meters.py
in pycls/core
194 27
resnet.py
in pycls/models
220 27
blocks.py
in pycls/models
152 26
vit.py
in pycls/models
223 24
effnet.py
in pycls/models
155 16
plotting.py
in pycls/sweep
230 12
model_zoo.py
in pycls/models
128 10
random.py
in pycls/sweep
70 10
optimizer.py
in pycls/core
78 9
trainer.py
in pycls/core
153 9
samplers.py
in pycls/sweep
73 9
logging.py
in pycls/core
84 8
checkpoint.py
in pycls/core
83 8
net.py
in pycls/core
81 8
analysis.py
in pycls/sweep
111 8
distributed.py
in pycls/core
83 7
augment.py
in pycls/datasets
141 7
sweep_launch_job.py
in tools
89 6
builders.py
in pycls/core
31 6
Files With Long Lines (Top 0)

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

File# lines# units# long lines