facebookresearch / level-replay
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,177 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 5 medium size files (1,240 lines of codeclsfd_ftr_w_mp_ins)
    • 5 small files (759 lines of code)
    • 5 very small files (178 lines of code)
0% | 0% | 56% | 34% | 8%
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% | 56% | 34% | 8%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
level_replay0% | 0% | 69% | 23% | 6%
ROOT0% | 0% | 61% | 38% | 0%
custom_envs0% | 0% | 0% | 99% | <1%
level_replay/algo0% | 0% | 0% | 0% | 100%
Longest Files (Top 15)
File# lines# units
model.py
in level_replay
328 34
envs.py
in level_replay
240 26
arguments.py
in level_replay
229 -
level_sampler.py
in level_replay
228 21
train.py
in root
215 3
file_writer.py
in level_replay
178 7
storage.py
in level_replay
160 8
obstructedmaze_fixedgrid.py
in custom_envs
154 15
test.py
in root
136 2
obstructedmaze_gamut.py
in custom_envs
131 33
ppo.py
in level_replay/algo
74 2
utils.py
in level_replay
73 11
distributions.py
in level_replay
29 5
__init__.py
in level_replay/algo
1 -
__init__.py
in custom_envs
1 -
Files With Most Units (Top 12)
File# lines# units
model.py
in level_replay
328 34
obstructedmaze_gamut.py
in custom_envs
131 33
envs.py
in level_replay
240 26
level_sampler.py
in level_replay
228 21
obstructedmaze_fixedgrid.py
in custom_envs
154 15
utils.py
in level_replay
73 11
storage.py
in level_replay
160 8
file_writer.py
in level_replay
178 7
distributions.py
in level_replay
29 5
train.py
in root
215 3
ppo.py
in level_replay/algo
74 2
test.py
in root
136 2
Files With Long Lines (Top 3)

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

File# lines# units# long lines
arguments.py
in level_replay
229 - 1
level_sampler.py
in level_replay
228 21 1
train.py
in root
215 3 1