facebookresearch / fairring
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 15 files with 2,500 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (637 lines of code)
    • 3 medium size files (995 lines of codeclsfd_ftr_w_mp_ins)
    • 3 small files (506 lines of code)
    • 8 very small files (362 lines of code)
0% | 25% | 39% | 20% | 14%
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
cc0% | 41% | 44% | 11% | 2%
h0% | 0% | 55% | 23% | 20%
py0% | 0% | 0% | 51% | 48%
yaml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
fairring0% | 32% | 51% | 6% | 9%
benchmark0% | 0% | 0% | 80% | 19%
ROOT0% | 0% | 0% | 0% | 100%
packaging/fairring0% | 0% | 0% | 0% | 100%
Longest Files (Top 15)
File# lines# units
cc
device.cc
in fairring
637 13
cc
process_group.cc
in fairring
417 20
utils.h
in fairring
309 24
cc
machine.cc
in fairring
269 4
launch_benchmark.py
in benchmark
190 3
cc
benchmark.cc
in benchmark
182 6
process_group.h
in fairring
134 -
device.h
in fairring
76 -
setup.py
in root
53 4
utils.py
in benchmark
48 1
setup.py
in benchmark
43 1
machine.h
in fairring
41 -
meta.yaml
in packaging/fairring
35 -
cc
bindings.cc
in fairring
34 -
__init__.py
in fairring
32 1
Files With Most Units (Top 10)
File# lines# units
utils.h
in fairring
309 24
cc
process_group.cc
in fairring
417 20
cc
device.cc
in fairring
637 13
cc
benchmark.cc
in benchmark
182 6
setup.py
in root
53 4
cc
machine.cc
in fairring
269 4
launch_benchmark.py
in benchmark
190 3
setup.py
in benchmark
43 1
utils.py
in benchmark
48 1
__init__.py
in fairring
32 1
Files With Long Lines (Top 1)

There is only one file with lines longer than 120 characters. In total, there are 3 long lines.

File# lines# units# long lines
meta.yaml
in packaging/fairring
35 - 3