aws-samples / amazon-sagemaker-unity-game-simulation
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 58 files with 8,984 lines of code.
    • 1 very long files (1,383 lines of code)
    • 2 long files (1,479 lines of code)
    • 9 medium size files (2,934 lines of codeclsfd_ftr_w_mp_ins)
    • 14 small files (1,827 lines of code)
    • 32 very small files (1,361 lines of code)
15% | 16% | 32% | 20% | 15%
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% | 28% | 8%
unity0% | 62% | 37% | 0% | 0%
asset0% | 40% | 32% | 0% | 26%
yaml0% | 0% | 0% | 87% | 12%
cs0% | 0% | 0% | 71% | 28%
mat0% | 0% | 0% | 0% | 100%
prefab0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
common/sagemaker_rl/orchestrator/workflow57% | 0% | 31% | 5% | 5%
RollerBall/Assets0% | 79% | 0% | 14% | 5%
RollerBall/ProjectSettings0% | 40% | 32% | 0% | 26%
common/sagemaker_rl0% | 0% | 46% | 35% | 17%
RollerBall/Assets/Scenes0% | 0% | 100% | 0% | 0%
common/sagemaker_rl/orchestrator0% | 0% | 71% | 28% | <1%
common/sagemaker_rl/orchestrator/utils0% | 0% | 100% | 0% | 0%
common0% | 0% | 0% | 100% | 0%
common/sagemaker_rl/orchestrator/clients0% | 0% | 0% | 100% | 0%
src0% | 0% | 0% | 65% | 34%
RollerBall/Assets/Resources0% | 0% | 0% | 0% | 100%
RollerBall/Assets/Prefabs0% | 0% | 0% | 0% | 100%
RollerBall/Assets/Resources/Config0% | 0% | 0% | 0% | 100%
common/sagemaker_rl/orchestrator/exceptions0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
experiment_manager.py
in common/sagemaker_rl/orchestrator/workflow/manager
1383 41
RollerBall.unity
in RollerBall/Assets
819 -
asset
ProjectSettings.asset
in RollerBall/ProjectSettings
660 -
SampleScene.unity
in RollerBall/Assets/Scenes
485 -
join_manager.py
in common/sagemaker_rl/orchestrator/workflow/manager
419 20
resource_manager.py
in common/sagemaker_rl/orchestrator
415 25
model_manager.py
in common/sagemaker_rl/orchestrator/workflow/manager
340 13
asset
InputManager.asset
in RollerBall/ProjectSettings
295 -
ray_launcher.py
in common/sagemaker_rl
290 17
asset
QualitySettings.asset
in RollerBall/ProjectSettings
232 -
coach_launcher.py
in common/sagemaker_rl
230 18
cloudwatch_logger.py
in common/sagemaker_rl/orchestrator/utils
228 8
mpi_launcher.py
in common/sagemaker_rl
168 17
cloudformation.yaml
in common/sagemaker_rl/orchestrator
162 -
evaluate-unity.py
in src
158 6
RollerAgent.cs
in RollerBall/Assets
152 8
env_utils.py
in common
151 15
model_db_client.py
in common/sagemaker_rl/orchestrator/clients/ddb
140 24
model_record.py
in common/sagemaker_rl/orchestrator/workflow/datatypes
121 15
sage_cluster_communicator.py
in common/sagemaker_rl
120 12
experiment_db_client.py
in common/sagemaker_rl/orchestrator/clients/ddb
118 19
markdown_helper.py
in common
116 9
docker_utils.py
in common
112 12
stable_baselines_launcher.py
in common/sagemaker_rl
104 8
misc.py
in common
103 3
join_db_client.py
in common/sagemaker_rl/orchestrator/clients/ddb
102 15
Obstacle.prefab
in RollerBall/Assets/Prefabs
96 -
asset
NavMeshAreas.asset
in RollerBall/ProjectSettings
91 -
train-unity.py
in src
83 5
mat
FloorMaterial.mat
in RollerBall/Assets/Resources
77 -
mat
AgentMaterial.mat
in RollerBall/Assets/Resources
77 -
mat
ObstacleMaterial.mat
in RollerBall/Assets/Resources
77 -
mat
TargetMaterial.mat
in RollerBall/Assets/Resources
77 -
join_job_record.py
in common/sagemaker_rl/orchestrator/workflow/datatypes
76 6
asset
GraphicsSettings.asset
in RollerBall/ProjectSettings
66 -
configuration_list.py
in common/sagemaker_rl
65 6
experiment_record.py
in common/sagemaker_rl/orchestrator/workflow/datatypes
63 3
ObstacleManager.cs
in RollerBall/Assets
61 3
onnx_utils.py
in common/sagemaker_rl
60 6
asset
Physics2DSettings.asset
in RollerBall/ProjectSettings
56 -
tf_serving_utils.py
in common/sagemaker_rl
46 4
asset
TagManager.asset
in RollerBall/ProjectSettings
44 -
asset
EditorSettings.asset
in RollerBall/ProjectSettings
35 -
asset
UnityConnectSettings.asset
in RollerBall/ProjectSettings
34 -
asset
DynamicsManager.asset
in RollerBall/ProjectSettings
34 -
rollerball_visual_obs_config.yaml
in RollerBall/Assets/Resources/Config
24 -
docker_utils.py
in common/sagemaker_rl
23 1
asset
AudioManager.asset
in RollerBall/ProjectSettings
19 -
workflow_exceptions.py
in common/sagemaker_rl/orchestrator/exceptions
14 -
asset
VFXManager.asset
in RollerBall/ProjectSettings
12 -
Files With Most Units (Top 20)
File# lines# units
experiment_manager.py
in common/sagemaker_rl/orchestrator/workflow/manager
1383 41
resource_manager.py
in common/sagemaker_rl/orchestrator
415 25
model_db_client.py
in common/sagemaker_rl/orchestrator/clients/ddb
140 24
join_manager.py
in common/sagemaker_rl/orchestrator/workflow/manager
419 20
experiment_db_client.py
in common/sagemaker_rl/orchestrator/clients/ddb
118 19
coach_launcher.py
in common/sagemaker_rl
230 18
mpi_launcher.py
in common/sagemaker_rl
168 17
ray_launcher.py
in common/sagemaker_rl
290 17
model_record.py
in common/sagemaker_rl/orchestrator/workflow/datatypes
121 15
join_db_client.py
in common/sagemaker_rl/orchestrator/clients/ddb
102 15
env_utils.py
in common
151 15
model_manager.py
in common/sagemaker_rl/orchestrator/workflow/manager
340 13
docker_utils.py
in common
112 12
sage_cluster_communicator.py
in common/sagemaker_rl
120 12
markdown_helper.py
in common
116 9
RollerAgent.cs
in RollerBall/Assets
152 8
cloudwatch_logger.py
in common/sagemaker_rl/orchestrator/utils
228 8
stable_baselines_launcher.py
in common/sagemaker_rl
104 8
evaluate-unity.py
in src
158 6
configuration_list.py
in common/sagemaker_rl
65 6
Files With Long Lines (Top 5)

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

File# lines# units# long lines
cloudwatch_logger.py
in common/sagemaker_rl/orchestrator/utils
228 8 3
experiment_manager.py
in common/sagemaker_rl/orchestrator/workflow/manager
1383 41 3
asset
Physics2DSettings.asset
in RollerBall/ProjectSettings
56 - 1
asset
DynamicsManager.asset
in RollerBall/ProjectSettings
34 - 1
resource_manager.py
in common/sagemaker_rl/orchestrator
415 25 1