aws-samples / sagemaker-rl-energy-storage-system
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 40 files with 5,400 lines of code.
    • 1 very long files (1,375 lines of code)
    • 0 long files (0 lines of code)
    • 6 medium size files (1,913 lines of codeclsfd_ftr_w_mp_ins)
    • 9 small files (1,222 lines of code)
    • 24 very small files (890 lines of code)
25% | 0% | 35% | 22% | 16%
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
py26% | 0% | 36% | 20% | 16%
yaml0% | 0% | 0% | 100% | 0%
toml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src/sagemaker_rl/orchestrator/workflow57% | 0% | 31% | 5% | 5%
src/sagemaker_rl0% | 0% | 46% | 35% | 17%
src/sagemaker_rl/orchestrator0% | 0% | 71% | 28% | <1%
src/sagemaker_rl/orchestrator/utils0% | 0% | 100% | 0% | 0%
src/sagemaker_rl/orchestrator/clients0% | 0% | 0% | 100% | 0%
src/energy_storage_system0% | 0% | 0% | 51% | 48%
src/energy_storage_system/utils0% | 0% | 0% | 0% | 100%
src/smnb_utils0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
notebooks0% | 0% | 0% | 0% | 100%
src/source_dir0% | 0% | 0% | 0% | 100%
src/sagemaker_rl/orchestrator/exceptions0% | 0% | 0% | 0% | 100%
Longest Files (Top 40)
File# lines# units
experiment_manager.py
in src/sagemaker_rl/orchestrator/workflow/manager
1375 41
join_manager.py
in src/sagemaker_rl/orchestrator/workflow/manager
416 20
resource_manager.py
in src/sagemaker_rl/orchestrator
415 25
model_manager.py
in src/sagemaker_rl/orchestrator/workflow/manager
337 13
ray_launcher.py
in src/sagemaker_rl
289 17
coach_launcher.py
in src/sagemaker_rl
228 18
cloudwatch_logger.py
in src/sagemaker_rl/orchestrator/utils
228 8
envs.py
in src/energy_storage_system
187 5
mpi_launcher.py
in src/sagemaker_rl
168 17
cloudformation.yaml
in src/sagemaker_rl/orchestrator
162 -
model_db_client.py
in src/sagemaker_rl/orchestrator/clients/ddb
140 24
model_record.py
in src/sagemaker_rl/orchestrator/workflow/datatypes
121 15
sage_cluster_communicator.py
in src/sagemaker_rl
120 12
experiment_db_client.py
in src/sagemaker_rl/orchestrator/clients/ddb
118 19
stable_baselines_launcher.py
in src/sagemaker_rl
104 8
join_db_client.py
in src/sagemaker_rl/orchestrator/clients/ddb
102 15
misc.py
in src/smnb_utils
96 3
bokeh_report.py
in src/energy_storage_system
87 4
_report.py
in src/energy_storage_system/utils
77 7
join_job_record.py
in src/sagemaker_rl/orchestrator/workflow/datatypes
76 6
configuration_list.py
in src/sagemaker_rl
65 6
experiment_record.py
in src/sagemaker_rl/orchestrator/workflow/datatypes
63 3
onnx_utils.py
in src/sagemaker_rl
60 6
setup.py
in root
59 1
_rl.py
in src/energy_storage_system/utils
56 4
tf_serving_utils.py
in src/sagemaker_rl
46 4
bokeh_energy_inventory.py
in src/energy_storage_system
44 3
agents.py
in src/energy_storage_system
37 5
ipython_config.py
in notebooks
28 1
train_battery_sm.py
in src/source_dir
24 2
docker_utils.py
in src/sagemaker_rl
23 1
_data.py
in src/energy_storage_system/utils
16 1
workflow_exceptions.py
in src/sagemaker_rl/orchestrator/exceptions
14 -
ddb_client_exceptions.py
in src/sagemaker_rl/orchestrator/exceptions
6 -
__init__.py
in src/energy_storage_system
5 -
__init__.py
in src/energy_storage_system/utils
3 -
pyproject.toml
in root
2 -
__init__.py
in src/smnb_utils
1 -
__init__.py
in src/sagemaker_rl
1 -
__init__.py
in src/sagemaker_rl/orchestrator
1 -
Files With Most Units (Top 20)
File# lines# units
experiment_manager.py
in src/sagemaker_rl/orchestrator/workflow/manager
1375 41
resource_manager.py
in src/sagemaker_rl/orchestrator
415 25
model_db_client.py
in src/sagemaker_rl/orchestrator/clients/ddb
140 24
join_manager.py
in src/sagemaker_rl/orchestrator/workflow/manager
416 20
experiment_db_client.py
in src/sagemaker_rl/orchestrator/clients/ddb
118 19
coach_launcher.py
in src/sagemaker_rl
228 18
mpi_launcher.py
in src/sagemaker_rl
168 17
ray_launcher.py
in src/sagemaker_rl
289 17
model_record.py
in src/sagemaker_rl/orchestrator/workflow/datatypes
121 15
join_db_client.py
in src/sagemaker_rl/orchestrator/clients/ddb
102 15
model_manager.py
in src/sagemaker_rl/orchestrator/workflow/manager
337 13
sage_cluster_communicator.py
in src/sagemaker_rl
120 12
cloudwatch_logger.py
in src/sagemaker_rl/orchestrator/utils
228 8
stable_baselines_launcher.py
in src/sagemaker_rl
104 8
_report.py
in src/energy_storage_system/utils
77 7
configuration_list.py
in src/sagemaker_rl
65 6
onnx_utils.py
in src/sagemaker_rl
60 6
join_job_record.py
in src/sagemaker_rl/orchestrator/workflow/datatypes
76 6
agents.py
in src/energy_storage_system
37 5
envs.py
in src/energy_storage_system
187 5
Files With Long Lines (Top 3)

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

File# lines# units# long lines
cloudwatch_logger.py
in src/sagemaker_rl/orchestrator/utils
228 8 3
experiment_manager.py
in src/sagemaker_rl/orchestrator/workflow/manager
1375 41 3
resource_manager.py
in src/sagemaker_rl/orchestrator
415 25 1