facebookresearch / ELF
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 238 files with 20,941 lines of code.
    • 1 very long files (1,247 lines of code)
    • 0 long files (0 lines of code)
    • 14 medium size files (4,024 lines of codeclsfd_ftr_w_mp_ins)
    • 57 small files (8,043 lines of code)
    • 166 very small files (7,627 lines of code)
5% | 0% | 19% | 38% | 36%
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
cc19% | 0% | 19% | 35% | 25%
h0% | 0% | 19% | 37% | 42%
py0% | 0% | 14% | 43% | 41%
js0% | 0% | 100% | 0% | 0%
hh0% | 0% | 0% | 63% | 36%
cpp0% | 0% | 0% | 0% | 100%
html0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
go40% | 0% | 0% | 30% | 28%
rts/engine0% | 0% | 34% | 39% | 26%
elf0% | 0% | 31% | 40% | 27%
rts/frontend0% | 0% | 98% | 0% | 1%
elf_python0% | 0% | 33% | 28% | 38%
rlpytorch/utils0% | 0% | 75% | 0% | 24%
rts/backend0% | 0% | 34% | 37% | 27%
rts/game_MC0% | 0% | 0% | 46% | 53%
rlpytorch0% | 0% | 0% | 98% | 1%
atari0% | 0% | 0% | 35% | 64%
ROOT0% | 0% | 0% | 44% | 55%
rlpytorch/trainer0% | 0% | 0% | 71% | 28%
rts/game_CF0% | 0% | 0% | 30% | 69%
rlpytorch/runner0% | 0% | 0% | 48% | 51%
rlpytorch/stats0% | 0% | 0% | 99% | <1%
rlpytorch/methods0% | 0% | 0% | 26% | 73%
elf/lib0% | 0% | 0% | 49% | 50%
rlpytorch/sampler0% | 0% | 0% | 74% | 25%
rts/game_TD0% | 0% | 0% | 0% | 100%
rts0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
cc
board.cc
in go
1247 63
game.js
in rts/frontend
460 19
serializer.h
in rts/engine
407 17
utils_elf.py
in elf
313 28
comm_template.h
in elf
304 24
memory_receiver.py
in elf_python
301 31
utils.py
in rlpytorch/utils
300 42
locality_search.h
in rts/engine
282 21
cc
game_env.cc
in rts/engine
257 22
cc
main_loop.cc
in rts/backend
254 12
cc
player.cc
in rts/engine
251 13
cc
rule_actor.cc
in rts/engine
243 7
tree_search.h
in elf
229 16
state_collector.h
in elf
219 22
cc
map.cc
in rts/engine
204 20
cc
mc_rule_actor.cc
in rts/game_MC
199 5
board.h
in go
195 1
cc
sgf.cc
in go
194 11
pybind_helper.h
in elf
193 -
game_env.h
in rts/engine
182 15
cc
cmd_specific.cc
in rts/engine
181 9
ctpl_stl.h
in elf
180 13
tree_search_node.h
in elf
179 13
common.h
in rts/engine
175 32
df_console.py
in root
175 11
hh
copier.hh
in elf
174 14
parameter_server.py
in rlpytorch/runner
172 14
hh
collector.hh
in elf
169 12
args_provider.py
in rlpytorch
168 17
args_utils.py
in rlpytorch
168 17
trainer.py
in rlpytorch/trainer
165 12
mcts.h
in rts/game_MC
160 15
common_loader.py
in rts/engine
158 11
cc
atari_game.cc
in atari
154 11
rule_actor.h
in rts/engine
150 15
cc
save2json.cc
in rts/backend
148 14
stats.py
in rlpytorch/stats
145 34
primitive.h
in elf
140 19
cc
cmd.cc
in rts/engine
139 12
assembler.py
in elf_python
139 12
cc
board_feature.cc
in go
138 10
game.py
in go
138 3
state_feature.h
in rts/game_MC
137 14
sgf.h
in go
136 17
game.py
in atari
136 4
model_interface.py
in rlpytorch
135 9
game_stats.h
in rts/engine
132 15
cc
raw2cmd.cc
in rts/backend
129 7
cmd_interface.h
in rts/engine
128 12
ai.h
in elf
128 19
Files With Most Units (Top 20)
File# lines# units
cc
board.cc
in go
1247 63
utils.py
in rlpytorch/utils
300 42
stats.py
in rlpytorch/stats
145 34
common.h
in rts/engine
175 32
memory_receiver.py
in elf_python
301 31
utils_elf.py
in elf
313 28
cmd.h
in rts/engine
124 25
comm_template.h
in elf
304 24
cc
game_env.cc
in rts/engine
257 22
state_collector.h
in elf
219 22
locality_search.h
in rts/engine
282 21
cc
map.cc
in rts/engine
204 20
game.js
in rts/frontend
460 19
primitive.h
in elf
140 19
ai.h
in elf
128 19
sgf.h
in go
136 17
player.h
in rts/engine
116 17
serializer.h
in rts/engine
407 17
args_provider.py
in rlpytorch
168 17
args_utils.py
in rlpytorch
168 17
Files With Long Lines (Top 20)

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

File# lines# units# long lines
pybind_helper.h
in elf
193 - 22
cc
board.cc
in go
1247 63 16
utils.py
in rlpytorch/utils
300 42 13
args_provider.py
in rlpytorch
168 17 8
args_utils.py
in rlpytorch
168 17 8
comm_template.h
in elf
304 24 8
cc
mc_rule_actor.cc
in rts/game_MC
199 5 6
cc
player.cc
in rts/engine
251 13 6
game.py
in go
138 3 5
cc
main_loop.cc
in rts/backend
254 12 4
cc
game.cc
in rts/engine
125 6 4
model_loader.py
in rlpytorch
105 5 4
utils_elf.py
in elf
313 28 4
go_game_specific.h
in go
64 4 3
board.h
in go
195 1 3
cc
python_wrapper.cc
in rts/game_MC
107 6 3
rule_actor.h
in rts/engine
150 15 3
python_common_options.h
in rts/engine
61 3 3
cmd_interface.h
in rts/engine
128 12 3
memory_receiver.py
in elf_python
301 31 3