facebookresearch / phyre
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 283 files with 19,861 lines of code.
    • 0 very long files (0 lines of code)
    • 2 long files (1,339 lines of code)
    • 15 medium size files (4,671 lines of codeclsfd_ftr_w_mp_ins)
    • 19 small files (2,504 lines of code)
    • 247 very small files (11,347 lines of code)
0% | 6% | 23% | 12% | 57%
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
js0% | 64% | 29% | 0% | 6%
py0% | 3% | 17% | 11% | 67%
cpp0% | 0% | 70% | 20% | 9%
h0% | 0% | 0% | 59% | 40%
css0% | 0% | 0% | 95% | 4%
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
src/viz/src0% | 58% | 26% | 8% | 6%
src/python/phyre0% | 5% | 20% | 13% | 60%
src/simulator0% | 0% | 63% | 23% | 12%
agents0% | 0% | 70% | 21% | 8%
data/task_scripts/main0% | 0% | 0% | 4% | 95%
src/simulator/utils0% | 0% | 0% | 63% | 36%
scripts0% | 0% | 0% | 0% | 100%
src/if0% | 0% | 0% | 0% | 100%
src/python0% | 0% | 0% | 0% | 100%
scripts/offline_simulation0% | 0% | 0% | 0% | 100%
src/viz/public0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
App.js
in src/viz/src
832 73
eval_task_complexity.py
in src/python/phyre
507 27
offline_agents.py
in agents
448 31
creator.py
in src/python/phyre/creator
380 43
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
361 22
neural_agent.py
in agents
347 12
task_validation.cpp
in src/simulator
333 22
shapes.py
in src/python/phyre/creator
312 37
simulator_bindings.cpp
in src/simulator
302 8
metrics.py
in src/python/phyre
292 27
benchmark_box2d.cpp
in src/simulator
263 11
run_experiment.py
in agents
244 12
virtual_tools.py
in src/python/phyre
240 9
action_mappers.py
in src/python/phyre
202 18
benchmark_user_input_box2d.cpp
in src/simulator
202 8
action_simulator.py
in src/python/phyre
198 20
simulator.py
in src/python/phyre
190 14
nets.py
in agents
182 19
factories.py
in src/python/phyre/creator
182 14
task_utils_parallel.cpp
in src/simulator
153 3
thrift_box2d_conversion.cpp
in src/simulator
152 8
train.py
in agents
134 5
geometry.h
in src/simulator
127 15
simulation.py
in src/python/phyre
123 9
App.css
in src/viz/src
118 -
loader.py
in src/python/phyre
114 7
task_io.cpp
in src/simulator
113 6
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
bruteforce_solutions_in_tier.py
in src/python
97 3
compute_solution_power.py
in src/python/phyre
94 4
task01002.py
in data/task_scripts/main
88 1
task00360.py
in data/task_scripts/main
88 1
task01002.py
in src/python/phyre/data/task_scripts/main
88 1
task00360.py
in src/python/phyre/data/task_scripts/main
88 1
vis.py
in src/python/phyre
84 7
task_utils.cpp
in src/simulator
82 1
save_partial_simulation.py
in scripts/offline_simulation
80 7
task.thrift
in src/if
79 -
registerServiceWorker.js
in src/viz/src
79 4
simulation_cache.py
in src/python/phyre
77 10
task00274.py
in data/task_scripts/main
74 2
task00274.py
in src/python/phyre/data/task_scripts/main
74 2
Files With Most Units (Top 20)
File# lines# units
App.js
in src/viz/src
832 73
creator.py
in src/python/phyre/creator
380 43
shapes.py
in src/python/phyre/creator
312 37
offline_agents.py
in agents
448 31
metrics.py
in src/python/phyre
292 27
eval_task_complexity.py
in src/python/phyre
507 27
handler.py
in src/python/phyre/viz_server
361 22
task_validation.cpp
in src/simulator
333 22
canvas.js
in src/viz/src
378 21
action_simulator.py
in src/python/phyre
198 20
nets.py
in agents
182 19
action_mappers.py
in src/python/phyre
202 18
image_to_box2d.cpp
in src/simulator
367 16
geometry.h
in src/simulator
127 15
factories.py
in src/python/phyre/creator
182 14
simulator.py
in src/python/phyre
190 14
server.py
in src/python/phyre/viz_server
105 13
run_experiment.py
in agents
244 12
neural_agent.py
in agents
347 12
benchmark_box2d.cpp
in src/simulator
263 11
Files With Long Lines (Top 6)

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

File# lines# units# long lines
App.js
in src/viz/src
832 73 2
task01002.py
in data/task_scripts/main
88 1 1
task01003.py
in data/task_scripts/main
56 1 1
__init__.py
in src/python/phyre
10 - 1
task01002.py
in src/python/phyre/data/task_scripts/main
88 1 1
task01003.py
in src/python/phyre/data/task_scripts/main
56 1 1