facebookresearch / phyre-fwd
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 308 files with 22,071 lines of code.
    • 1 very long files (1,226 lines of code)
    • 5 long files (3,361 lines of code)
    • 15 medium size files (4,497 lines of codeclsfd_ftr_w_mp_ins)
    • 22 small files (2,949 lines of code)
    • 265 very small files (10,038 lines of code)
5% | 15% | 20% | 13% | 45%
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
py6% | 14% | 15% | 11% | 51%
js0% | 63% | 29% | 0% | 6%
cpp0% | 0% | 70% | 20% | 9%
h0% | 0% | 0% | 58% | 41%
css0% | 0% | 0% | 95% | 4%
yaml0% | 0% | 0% | 26% | 73%
thrift0% | 0% | 0% | 0% | 100%
html0% | 0% | 0% | 0% | 100%
yml0% | 0% | 0% | 0% | 100%
cfg0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
agents23% | 39% | 17% | 16% | 2%
src/viz0% | 57% | 26% | 8% | 8%
src/python0% | 6% | 21% | 12% | 59%
src/simulator0% | 0% | 58% | 26% | 14%
data/task_scripts0% | 0% | 0% | 4% | 95%
agents/conf0% | 0% | 0% | 26% | 73%
src/if0% | 0% | 0% | 0% | 100%
scripts/offline_simulation0% | 0% | 0% | 0% | 100%
scripts0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
nets.py
in agents
1226 99
obj_nets.py
in agents
936 39
App.js
in src/viz/src
824 73
offline_agents.py
in agents
584 33
im_fwd_agent.py
in agents
510 14
eval_task_complexity.py
in src/python/phyre
507 27
neural_agent.py
in agents
383 12
canvas.js
in src/viz/src
378 21
image_to_box2d.cpp
in src/simulator
367 16
handler.py
in src/python/phyre/viz_server
350 22
metrics.py
in src/python/phyre
343 32
creator.py
in src/python/phyre/creator
337 41
task_validation.cpp
in src/simulator
333 22
simulator_bindings.cpp
in src/simulator
308 8
obj_fwd_agent.py
in agents
307 4
shapes.py
in src/python/phyre/creator
273 33
benchmark_box2d.cpp
in src/simulator
263 11
launch.py
in agents
226 12
action_simulator.py
in src/python/phyre
225 20
action_mappers.py
in src/python/phyre
202 18
benchmark_user_input_box2d.cpp
in src/simulator
202 8
phyre_dataset.py
in agents
194 8
phyre_simulator.py
in agents
190 7
simulator.py
in src/python/phyre
188 14
factories.py
in src/python/phyre/creator
182 14
train2.py
in agents
177 5
pixel_acc_utils.py
in agents
164 9
task_utils_parallel.cpp
in src/simulator
157 3
thrift_box2d_conversion.cpp
in src/simulator
152 8
losses.py
in agents
127 14
geometry.h
in src/simulator
127 15
simulation.py
in src/python/phyre
123 9
App.css
in src/viz/src
118 -
config.yaml
in agents/conf
113 -
task_io.cpp
in src/simulator
113 6
vis.py
in src/python/phyre
106 8
logger.h
in src/simulator/utils
106 9
server.py
in src/python/phyre/viz_server
105 13
task00016.py
in data/task_scripts/main
102 1
task00016.py
in src/python/phyre/data/task_scripts/main
102 1
task00361.py
in data/task_scripts/main
101 4
task00361.py
in src/python/phyre/data/task_scripts/main
101 4
diversity.py
in src/python/phyre
101 4
loader.py
in src/python/phyre
99 6
task_utils.cpp
in src/simulator
97 2
compute_solution_power.py
in src/python/phyre
94 4
preproc.py
in agents
88 15
task00360.py
in data/task_scripts/main
88 1
task00360.py
in src/python/phyre/data/task_scripts/main
88 1
bruteforce_solutions_in_tier.py
in src/python
87 3
Files With Most Units (Top 20)
File# lines# units
nets.py
in agents
1226 99
App.js
in src/viz/src
824 73
creator.py
in src/python/phyre/creator
337 41
obj_nets.py
in agents
936 39
offline_agents.py
in agents
584 33
shapes.py
in src/python/phyre/creator
273 33
metrics.py
in src/python/phyre
343 32
eval_task_complexity.py
in src/python/phyre
507 27
handler.py
in src/python/phyre/viz_server
350 22
task_validation.cpp
in src/simulator
333 22
canvas.js
in src/viz/src
378 21
action_simulator.py
in src/python/phyre
225 20
action_mappers.py
in src/python/phyre
202 18
image_to_box2d.cpp
in src/simulator
367 16
preproc.py
in agents
88 15
geometry.h
in src/simulator
127 15
im_fwd_agent.py
in agents
510 14
losses.py
in agents
127 14
factories.py
in src/python/phyre/creator
182 14
simulator.py
in src/python/phyre
188 14
Files With Long Lines (Top 4)

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

File# lines# units# long lines
obj_fwd_agent.py
in agents
307 4 1
obj_nets.py
in agents
936 39 1
__init__.py
in src/python/phyre
10 - 1
App.js
in src/viz/src
824 73 1