facebookresearch / torchbeast
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 21 files with 2,943 lines of code.
    • 0 very long files (0 lines of code)
    • 2 long files (1,029 lines of code)
    • 3 medium size files (981 lines of codeclsfd_ftr_w_mp_ins)
    • 2 small files (316 lines of code)
    • 14 very small files (617 lines of code)
0% | 34% | 33% | 10% | 20%
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% | 29% | 39% | 9% | 21%
cc0% | 69% | 0% | 21% | 8%
h0% | 0% | 70% | 0% | 29%
proto0% | 0% | 0% | 0% | 100%
toml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
torchbeast0% | 40% | 53% | 0% | 6%
src/cc0% | 70% | 0% | 21% | 8%
nest/nest0% | 0% | 69% | 0% | 30%
torchbeast/core0% | 0% | 0% | 47% | 52%
ROOT0% | 0% | 0% | 0% | 100%
nest0% | 0% | 0% | 0% | 100%
src/proto0% | 0% | 0% | 0% | 100%
src/py0% | 0% | 0% | 0% | 100%
Longest Files (Top 21)
File# lines# units
monobeast.py
in torchbeast
523 14
cc
actorpool.cc
in src/cc
506 19
polybeast_learner.py
in torchbeast
481 11
nest.h
in nest/nest
288 12
atari_wrappers.py
in torchbeast
212 34
file_writer.py
in torchbeast/core
159 5
cc
rpcenv.cc
in src/cc
157 6
vtrace.py
in torchbeast/core
88 3
nest_pybind.h
in nest/nest
70 3
setup.py
in root
55 3
cc
nest_pybind.cc
in nest/nest
55 -
polybeast_env.py
in torchbeast
54 5
setup.py
in nest
50 3
nest_serialize.h
in src/cc
50 2
environment.py
in torchbeast/core
47 5
prof.py
in torchbeast/core
42 7
proto
rpcenv.proto
in src/proto
41 -
polybeast.py
in torchbeast
30 3
__init__.py
in src/py
17 -
toml
pyproject.toml
in root
10 -
cc
libtorchbeast.cc
in src/cc
8 -
Files With Most Units (Top 16)
File# lines# units
atari_wrappers.py
in torchbeast
212 34
cc
actorpool.cc
in src/cc
506 19
monobeast.py
in torchbeast
523 14
nest.h
in nest/nest
288 12
polybeast_learner.py
in torchbeast
481 11
prof.py
in torchbeast/core
42 7
cc
rpcenv.cc
in src/cc
157 6
file_writer.py
in torchbeast/core
159 5
environment.py
in torchbeast/core
47 5
polybeast_env.py
in torchbeast
54 5
vtrace.py
in torchbeast/core
88 3
polybeast.py
in torchbeast
30 3
setup.py
in root
55 3
setup.py
in nest
50 3
nest_pybind.h
in nest/nest
70 3
nest_serialize.h
in src/cc
50 2
Files With Long Lines (Top 1)

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

File# lines# units# long lines
atari_wrappers.py
in torchbeast
212 34 1