facebookresearch / ReAgent
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 387 files with 33,074 lines of code.
    • 1 very long files (1,160 lines of code)
    • 8 long files (5,211 lines of code)
    • 31 medium size files (8,911 lines of codeclsfd_ftr_w_mp_ins)
    • 60 small files (8,041 lines of code)
    • 287 very small files (9,751 lines of code)
3% | 15% | 26% | 24% | 29%
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
py3% | 17% | 27% | 26% | 25%
scala0% | 0% | 74% | 0% | 25%
h0% | 0% | 25% | 0% | 74%
cpp0% | 0% | 0% | 10% | 89%
yaml0% | 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
reagent/ope30% | 31% | 34% | 0% | 2%
reagent/core0% | 42% | 0% | 25% | 31%
reagent/lite0% | 99% | 0% | 0% | <1%
reagent/models0% | 24% | 39% | 16% | 19%
reagent/prediction0% | 80% | 0% | 0% | 19%
reagent/evaluation0% | 26% | 41% | 28% | 3%
reagent/replay_memory0% | 71% | 0% | 0% | 28%
reagent/training0% | 0% | 29% | 56% | 14%
reagent/gym0% | 0% | 30% | 38% | 30%
reagent/preprocessing0% | 0% | 68% | 18% | 13%
reagent/model_managers0% | 0% | 27% | 48% | 24%
reagent/data0% | 0% | 84% | 0% | 15%
preprocessing/src0% | 0% | 74% | 0% | 25%
reagent/workflow0% | 0% | 28% | 38% | 33%
serving/reagent0% | 0% | 9% | 5% | 85%
reagent/mab0% | 0% | 0% | 63% | 36%
reagent/scripts0% | 0% | 0% | 99% | <1%
reagent/reporting0% | 0% | 0% | 20% | 79%
reagent/model_utils0% | 0% | 0% | 99% | <1%
reagent/samplers0% | 0% | 0% | 98% | 1%
reagent/net_builder0% | 0% | 0% | 0% | 100%
reagent/optimizer0% | 0% | 0% | 0% | 100%
reagent/publishers0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
reagent/validators0% | 0% | 0% | 0% | 100%
serving/scripts0% | 0% | 0% | 0% | 100%
serving0% | 0% | 0% | 0% | 100%
reagent0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
slate_estimators.py
in reagent/ope/estimators
1160 108
types.py
in reagent/core
852 54
optimizer.py
in reagent/lite
766 60
predictor_wrapper.py
in reagent/prediction
671 56
seq2slate.py
in reagent/models
671 46
sequential_estimators.py
in reagent/ope/estimators
624 36
contextual_bandits_estimators.py
in reagent/ope/estimators
571 24
evaluation_data_page.py
in reagent/evaluation
534 10
circular_replay_buffer.py
in reagent/replay_memory
522 54
preprocessor.py
in reagent/preprocessing
486 30
types.py
in reagent/ope/estimators
433 63
pocman.py
in reagent/gym/envs/pomdp
395 32
trainer_preprocessor.py
in reagent/gym/preprocessors
386 25
synthetic_reward.py
in reagent/models
355 25
transforms.py
in reagent/preprocessing
344 42
rl_tabular_trainers.py
in reagent/ope/trainers
337 31
utils.py
in reagent/gym
331 12
weighted_sequential_doubly_robust_estimator.py
in reagent/evaluation
324 9
seq2slate_reward.py
in reagent/models
313 17
linear_trainers.py
in reagent/ope/trainers
306 24
Timeline.scala
in preprocessing/src/main/scala/com/facebook/spark/rl
302 4
oss_data_fetcher.py
in reagent/data
299 23
sac_trainer.py
in reagent/training
281 5
doubly_robust_estimator.py
in reagent/evaluation
280 6
discrete_crr_trainer.py
in reagent/training
269 9
training.py
in reagent/workflow
261 6
dqn_trainer_base.py
in reagent/training
254 12
discrete_crr.py
in reagent/model_managers/discrete
253 17
ope_adapter.py
in reagent/evaluation
252 16
normalization.py
in reagent/preprocessing
250 11
manual_data_module.py
in reagent/data
247 23
dqn_trainer.py
in reagent/training
234 9
Containers.h
in serving/reagent/serving/core
229 23
estimator.py
in reagent/ope/estimators
222 16
seq2slate_trainer.py
in reagent/training/ranking
218 6
cem_planner.py
in reagent/models
217 8
MultiStepTimeline.scala
in preprocessing/src/main/scala/com/facebook/spark/rl
215 3
synthetic_reward.py
in reagent/model_managers/model_based
209 11
actor.py
in reagent/models
208 20
actor_critic_base.py
in reagent/model_managers
201 14
dueling_q_network.py
in reagent/models
193 12
slate_q_trainer.py
in reagent/training
192 11
world_model_evaluator.py
in reagent/evaluation
186 7
seq2reward_trainer.py
in reagent/training/world_model
179 9
changing_arms.py
in reagent/gym/envs
179 17
qrdqn_trainer.py
in reagent/training
174 7
replay_buffer_dataset.py
in reagent/gym/datasets
171 6
discrete_dqn_base.py
in reagent/model_managers
171 13
discrete_dqn.py
in reagent/model_managers/discrete
169 10
ppo_trainer.py
in reagent/training
167 7
Files With Most Units (Top 20)
File# lines# units
slate_estimators.py
in reagent/ope/estimators
1160 108
types.py
in reagent/ope/estimators
433 63
optimizer.py
in reagent/lite
766 60
predictor_wrapper.py
in reagent/prediction
671 56
types.py
in reagent/core
852 54
circular_replay_buffer.py
in reagent/replay_memory
522 54
seq2slate.py
in reagent/models
671 46
transforms.py
in reagent/preprocessing
344 42
sequential_estimators.py
in reagent/ope/estimators
624 36
pocman.py
in reagent/gym/envs/pomdp
395 32
rl_tabular_trainers.py
in reagent/ope/trainers
337 31
preprocessor.py
in reagent/preprocessing
486 30
synthetic_reward.py
in reagent/models
355 25
trainer_preprocessor.py
in reagent/gym/preprocessors
386 25
linear_trainers.py
in reagent/ope/trainers
306 24
contextual_bandits_estimators.py
in reagent/ope/estimators
571 24
Containers.h
in serving/reagent/serving/core
229 23
aggregators.py
in reagent/core
144 23
manual_data_module.py
in reagent/data
247 23
oss_data_fetcher.py
in reagent/data
299 23
Files With Long Lines (Top 5)

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

File# lines# units# long lines
frechet.py
in reagent/samplers
101 3 2
reagent_lightning_module.py
in reagent/training
135 20 1
seq2slate_trainer.py
in reagent/training/ranking
218 6 1
mdnrnn_trainer.py
in reagent/training/world_model
120 6 1
synthetic_reward.py
in reagent/model_managers/model_based
209 11 1