facebookresearch / DynamicsAware
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 294 files with 22,234 lines of code.
    • 0 very long files (0 lines of code)
    • 5 long files (3,307 lines of code)
    • 16 medium size files (4,708 lines of codeclsfd_ftr_w_mp_ins)
    • 19 small files (2,512 lines of code)
    • 254 very small files (11,707 lines of code)
0% | 14% | 21% | 11% | 52%
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% | 13% | 15% | 9% | 60%
js0% | 64% | 29% | 0% | 6%
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
agents0% | 56% | 30% | 3% | 9%
src/viz0% | 57% | 26% | 8% | 8%
src/python0% | 5% | 19% | 13% | 60%
src/simulator0% | 0% | 59% | 26% | 14%
data/task_scripts0% | 0% | 0% | 4% | 95%
agents/report_web_viewer0% | 0% | 0% | 52% | 47%
scripts0% | 0% | 0% | 0% | 100%
src/if0% | 0% | 0% | 0% | 100%
scripts/offline_simulation0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
App.js
in src/viz/src
832 73
neural_agent_contrastive.py
in agents
767 35
neural_agent.py
in agents
631 16
offline_agents.py
in agents
570 33
eval_task_complexity.py
in src/python/phyre
507 27
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
task_validation.cpp
in src/simulator
333 22
psim.py
in agents
312 13
shapes.py
in src/python/phyre/creator
312 37
simulator_bindings.cpp
in src/simulator
312 8
metrics.py
in src/python/phyre
292 27
nets.py
in agents
288 23
benchmark_box2d.cpp
in src/simulator
263 11
run_experiment.py
in agents
248 13
virtual_tools.py
in src/python/phyre
240 9
run_sweep_file.py
in agents
218 6
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
200 20
simulator.py
in src/python/phyre
194 14
factories.py
in src/python/phyre/creator
182 14
img_browse.py
in agents/report_web_viewer
180 7
task_utils_parallel.cpp
in src/simulator
153 3
thrift_box2d_conversion.cpp
in src/simulator
152 8
train.py
in agents
138 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
visualize_policy.py
in agents
99 3
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
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
neural_agent_contrastive.py
in agents
767 35
offline_agents.py
in agents
570 33
metrics.py
in src/python/phyre
292 27
eval_task_complexity.py
in src/python/phyre
507 27
nets.py
in agents
288 23
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
200 20
action_mappers.py
in src/python/phyre
202 18
neural_agent.py
in agents
631 16
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
194 14
psim.py
in agents
312 13
run_experiment.py
in agents
248 13
Files With Long Lines (Top 12)

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

File# lines# units# long lines
psim.py
in agents
312 13 4
auccess_report.html
in agents/report_web_viewer
60 - 3
run_sweep_file.py
in agents
218 6 3
neural_agent_contrastive.py
in agents
767 35 3
visualize_policy.py
in agents
99 3 2
App.js
in src/viz/src
832 73 2
neural_agent.py
in agents
631 16 1
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