facebookresearch / fvcore
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 31 files with 2,546 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 5 medium size files (1,513 lines of codeclsfd_ftr_w_mp_ins)
    • 2 small files (231 lines of code)
    • 24 very small files (802 lines of code)
0% | 0% | 59% | 9% | 31%
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% | 60% | 9% | 30%
yaml0% | 0% | 0% | 0% | 100%
cfg0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
fvcore/nn0% | 0% | 51% | 18% | 30%
fvcore/common0% | 0% | 63% | 0% | 36%
fvcore/transforms0% | 0% | 89% | 0% | 10%
ROOT0% | 0% | 0% | 0% | 100%
packaging/fvcore0% | 0% | 0% | 0% | 100%
fvcore0% | 0% | 0% | 0% | 100%
Longest Files (Top 31)
File# lines# units
transform.py
in fvcore/transforms
349 58
jit_analysis.py
in fvcore/nn
345 29
checkpoint.py
in fvcore/common
310 23
print_model_statistics.py
in fvcore/nn
307 17
param_scheduler.py
in fvcore/common
202 19
jit_handles.py
in fvcore/nn
124 12
precise_bn.py
in fvcore/nn
107 8
squeeze_excitation.py
in fvcore/nn
90 6
config.py
in fvcore/common
87 8
benchmark.py
in fvcore/common
79 3
flop_count.py
in fvcore/nn
55 2
focal_loss.py
in fvcore/nn
48 2
parameter_count.py
in fvcore/nn
47 2
distributed.py
in fvcore/nn
42 6
setup.py
in root
42 1
registry.py
in fvcore/common
40 7
transform_util.py
in fvcore/transforms
40 2
activation_count.py
in fvcore/nn
35 2
giou_loss.py
in fvcore/nn
32 1
file_io.py
in fvcore/common
31 1
timer.py
in fvcore/common
30 7
meta.yaml
in packaging/fvcore
26 -
history_buffer.py
in fvcore/common
26 7
__init__.py
in fvcore/nn
15 -
smooth_l1_loss.py
in fvcore/nn
15 1
weight_init.py
in fvcore/nn
9 2
cfg
setup.cfg
in root
8 -
download.py
in fvcore/common
2 -
__init__.py
in fvcore
1 -
__init__.py
in fvcore/common
1 -
__init__.py
in fvcore/transforms
1 -
Files With Most Units (Top 20)
File# lines# units
transform.py
in fvcore/transforms
349 58
jit_analysis.py
in fvcore/nn
345 29
checkpoint.py
in fvcore/common
310 23
param_scheduler.py
in fvcore/common
202 19
print_model_statistics.py
in fvcore/nn
307 17
jit_handles.py
in fvcore/nn
124 12
precise_bn.py
in fvcore/nn
107 8
config.py
in fvcore/common
87 8
registry.py
in fvcore/common
40 7
timer.py
in fvcore/common
30 7
history_buffer.py
in fvcore/common
26 7
squeeze_excitation.py
in fvcore/nn
90 6
distributed.py
in fvcore/nn
42 6
benchmark.py
in fvcore/common
79 3
flop_count.py
in fvcore/nn
55 2
activation_count.py
in fvcore/nn
35 2
focal_loss.py
in fvcore/nn
48 2
weight_init.py
in fvcore/nn
9 2
parameter_count.py
in fvcore/nn
47 2
transform_util.py
in fvcore/transforms
40 2
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