facebookresearch / mtrl
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 116 files with 6,494 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 9 medium size files (2,632 lines of codeclsfd_ftr_w_mp_ins)
    • 11 small files (1,513 lines of code)
    • 96 very small files (2,349 lines of code)
0% | 0% | 40% | 23% | 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
py0% | 0% | 50% | 29% | 20%
yaml0% | 0% | 0% | 0% | 100%
bib0% | 0% | 0% | 0% | 100%
cfg0% | 0% | 0% | 0% | 100%
toml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
mtrl/agent0% | 0% | 64% | 23% | 12%
mtrl0% | 0% | 59% | 40% | <1%
mtrl/experiment0% | 0% | 0% | 86% | 13%
config/agent0% | 0% | 0% | 0% | 100%
config/metrics0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
mtrl/env0% | 0% | 0% | 0% | 100%
mtrl/utils0% | 0% | 0% | 0% | 100%
config/env0% | 0% | 0% | 0% | 100%
docs_src/source0% | 0% | 0% | 0% | 100%
config/experiment0% | 0% | 0% | 0% | 100%
config/setup0% | 0% | 0% | 0% | 100%
config0% | 0% | 0% | 0% | 100%
mtrl/app0% | 0% | 0% | 0% | 100%
config/replay_buffer0% | 0% | 0% | 0% | 100%
config/logbook0% | 0% | 0% | 0% | 100%
config/logger0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
sac.py
in mtrl/agent
468 19
distral.py
in mtrl/agent
434 26
critic.py
in mtrl/agent/components
311 12
actor.py
in mtrl/agent/components
284 15
replay_buffer.py
in mtrl
236 13
encoder.py
in mtrl/agent/components
234 20
moe_layer.py
in mtrl/agent/components
226 16
deepmdp.py
in mtrl/agent
225 3
abstract.py
in mtrl/agent
214 22
multitask.py
in mtrl/experiment
189 6
logger.py
in mtrl
161 22
metaworld.py
in mtrl/experiment
155 6
hipbmdp.py
in mtrl/agent
153 4
experiment.py
in mtrl/experiment
143 10
sac_ae.py
in mtrl/agent
133 2
pcgrad.py
in mtrl/agent
128 5
gradnorm.py
in mtrl/agent
123 3
soft_modularization.py
in mtrl/agent/components
113 5
transition_model.py
in mtrl/agent/components
109 12
utils.py
in mtrl/agent
106 13
hipbmdp_theta.py
in mtrl/agent/components
99 3
grad_manipulation.py
in mtrl/agent
98 5
wrapper.py
in mtrl/agent
94 13
vec_env.py
in mtrl/env
88 13
config.py
in mtrl/utils
76 12
all.yaml
in config/metrics
74 -
hipbmdp.yaml
in config/metrics
71 -
metaworld_encoder.yaml
in config/agent/components
70 -
bib
refs.bib
in docs_src/source/pages/bib
67 -
builder.py
in mtrl/env
64 3
cfg
setup.cfg
in root
64 -
task_encoder.py
in mtrl/agent/components
61 2
metaworld-mt50.yaml
in config/env
60 -
dmcontrol.py
in mtrl/experiment
58 3
decoder.py
in mtrl/agent/components
55 4
setup.py
in root
54 3
metaworld.yaml
in config/metrics
45 -
distral.yaml
in config/agent
42 -
utils.py
in mtrl/utils
41 8
gradnorm_state_deepmdp.yaml
in config/agent
38 -
gradnorm_deepmdp.yaml
in config/agent
38 -
pcgrad_deepmdp.yaml
in config/agent
35 -
pcgrad_state_deepmdp.yaml
in config/agent
35 -
hipbmdp_multitask.yaml
in config/agent/components
33 -
dmcontrol-finger-spin-distribution-v0.yaml
in config/env
33 -
toml
towncrier.toml
in root
33 -
hipbmdp.yaml
in config/agent
32 -
state_deepmdp.yaml
in config/agent
32 -
deepmdp.yaml
in config/agent
32 -
metaworld_multitask.yaml
in config/agent/components
30 -
Files With Most Units (Top 20)
File# lines# units
distral.py
in mtrl/agent
434 26
abstract.py
in mtrl/agent
214 22
logger.py
in mtrl
161 22
encoder.py
in mtrl/agent/components
234 20
sac.py
in mtrl/agent
468 19
moe_layer.py
in mtrl/agent/components
226 16
actor.py
in mtrl/agent/components
284 15
wrapper.py
in mtrl/agent
94 13
utils.py
in mtrl/agent
106 13
vec_env.py
in mtrl/env
88 13
replay_buffer.py
in mtrl
236 13
config.py
in mtrl/utils
76 12
transition_model.py
in mtrl/agent/components
109 12
critic.py
in mtrl/agent/components
311 12
experiment.py
in mtrl/experiment
143 10
utils.py
in mtrl/utils
41 8
multitask.py
in mtrl/experiment
189 6
metaworld.py
in mtrl/experiment
155 6
pcgrad.py
in mtrl/agent
128 5
soft_modularization.py
in mtrl/agent/components
113 5
Files With Long Lines (Top 3)

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

File# lines# units# long lines
bib
refs.bib
in docs_src/source/pages/bib
67 - 2
config.py
in mtrl/utils
76 12 1
moe_layer.py
in mtrl/agent/components
226 16 1