facebookresearch / mbrl-lib
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 52 files with 6,024 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 8 medium size files (2,581 lines of codeclsfd_ftr_w_mp_ins)
    • 16 small files (2,361 lines of code)
    • 28 very small files (1,082 lines of code)
0% | 0% | 42% | 39% | 17%
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% | 43% | 39% | 17%
cfg0% | 0% | 0% | 0% | 100%
toml0% | 0% | 0% | 0% | 100%
in0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
mbrl/util0% | 0% | 49% | 40% | 10%
mbrl/models0% | 0% | 40% | 58% | <1%
mbrl/diagnostics0% | 0% | 50% | 40% | 8%
mbrl/planning0% | 0% | 84% | 0% | 15%
mbrl/algorithms0% | 0% | 48% | 51% | <1%
mbrl/env0% | 0% | 0% | 19% | 80%
ROOT0% | 0% | 0% | 0% | 100%
mbrl0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
trajectory_opt.py
in mbrl/planning
428 23
planet.py
in mbrl/models
424 24
replay_buffer.py
in mbrl/util
395 42
common.py
in mbrl/util
329 9
training_browser.py
in mbrl/diagnostics
287 22
visualize_model_preds.py
in mbrl/diagnostics
260 9
mbpo.py
in mbrl/algorithms
243 4
gaussian_mlp.py
in mbrl/models
215 16
model.py
in mbrl/models
182 24
one_dim_tr_model.py
in mbrl/models
180 16
control_env.py
in mbrl/diagnostics
176 7
math.py
in mbrl/util
175 17
model_trainer.py
in mbrl/models
171 5
planet_visualizer.py
in mbrl/diagnostics
157 2
planet.py
in mbrl/algorithms
149 4
cartpole_continuous.py
in mbrl/env
147 6
env.py
in mbrl/util
146 11
logger.py
in mbrl/util
144 19
basic_ensemble.py
in mbrl/models
141 13
util.py
in mbrl/models
136 12
pybullet.py
in mbrl/util
135 14
model_env.py
in mbrl/models
109 5
pets.py
in mbrl/algorithms
107 1
finetune_model_with_controller.py
in mbrl/diagnostics
106 2
pets_halfcheetah.py
in mbrl/env
95 9
eval_model_on_dataset.py
in mbrl/diagnostics
94 3
pets_reacher.py
in mbrl/env
90 7
mujoco_pixel_wrapper.py
in mbrl/env
88 8
mujoco.py
in mbrl/util
70 8
pets_cartpole.py
in mbrl/env
69 7
termination_fns.py
in mbrl/env
61 7
humanoid_truncated_obs.py
in mbrl/env
60 6
core.py
in mbrl/planning
59 7
pets_pusher.py
in mbrl/env
54 6
types.py
in mbrl
49 5
ant_truncated_obs.py
in mbrl/env
49 5
dmcontrol.py
in mbrl/util
47 8
__init__.py
in mbrl/util
35 2
setup.py
in root
34 1
reward_fns.py
in mbrl/env
31 5
cfg
setup.cfg
in root
19 -
toml
pyproyect.toml
in root
19 -
sac_wrapper.py
in mbrl/planning
13 2
__init__.py
in mbrl/models
13 -
__init__.py
in mbrl/planning
9 -
mujoco_envs.py
in mbrl/env
7 -
in
MANIFEST.in
in root
6 -
constants.py
in mbrl
5 -
__init__.py
in mbrl/diagnostics
3 -
__init__.py
in mbrl/algorithms
1 -
Files With Most Units (Top 20)
File# lines# units
replay_buffer.py
in mbrl/util
395 42
model.py
in mbrl/models
182 24
planet.py
in mbrl/models
424 24
trajectory_opt.py
in mbrl/planning
428 23
training_browser.py
in mbrl/diagnostics
287 22
logger.py
in mbrl/util
144 19
math.py
in mbrl/util
175 17
one_dim_tr_model.py
in mbrl/models
180 16
gaussian_mlp.py
in mbrl/models
215 16
pybullet.py
in mbrl/util
135 14
basic_ensemble.py
in mbrl/models
141 13
util.py
in mbrl/models
136 12
env.py
in mbrl/util
146 11
common.py
in mbrl/util
329 9
pets_halfcheetah.py
in mbrl/env
95 9
visualize_model_preds.py
in mbrl/diagnostics
260 9
mujoco.py
in mbrl/util
70 8
dmcontrol.py
in mbrl/util
47 8
mujoco_pixel_wrapper.py
in mbrl/env
88 8
core.py
in mbrl/planning
59 7
Files With Long Lines (Top 0)

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

File# lines# units# long lines