awslabs / or-rl-benchmarks
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 68 files with 5,984 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 7 medium size files (1,630 lines of codeclsfd_ftr_w_mp_ins)
    • 18 small files (2,389 lines of code)
    • 43 very small files (1,965 lines of code)
0% | 0% | 27% | 39% | 32%
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% | 27% | 39% | 32%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
Vehicle Routing Problem/src0% | 0% | 69% | 13% | 16%
Bin Packing/src0% | 0% | 65% | 0% | 34%
Bin Packing/common/sagemaker_rl0% | 0% | 23% | 48% | 28%
common/sagemaker_rl0% | 0% | 23% | 48% | 28%
Vehicle Routing Problem/common/sagemaker_rl0% | 0% | 23% | 48% | 28%
News Vendor/common/sagemaker_rl0% | 0% | 23% | 48% | 28%
Bin Packing/common0% | 0% | 0% | 45% | 54%
common0% | 0% | 0% | 45% | 54%
Vehicle Routing Problem/common0% | 0% | 0% | 45% | 54%
News Vendor/common0% | 0% | 0% | 45% | 54%
News Vendor/src0% | 0% | 0% | 43% | 56%
Longest Files (Top 50)
File# lines# units
vrp_environment.py
in Vehicle Routing Problem/src
336 15
bin_packing_environment.py
in Bin Packing/src
273 18
baseline_model.py
in Vehicle Routing Problem/src
213 3
coach_launcher.py
in Bin Packing/common/sagemaker_rl
202 18
coach_launcher.py
in common/sagemaker_rl
202 18
coach_launcher.py
in Vehicle Routing Problem/common/sagemaker_rl
202 18
coach_launcher.py
in News Vendor/common/sagemaker_rl
202 18
ray_launcher.py
in Bin Packing/common/sagemaker_rl
160 15
ray_launcher.py
in common/sagemaker_rl
160 15
ray_launcher.py
in Vehicle Routing Problem/common/sagemaker_rl
160 15
ray_launcher.py
in News Vendor/common/sagemaker_rl
160 15
mpi_launcher.py
in Bin Packing/common/sagemaker_rl
157 17
mpi_launcher.py
in common/sagemaker_rl
157 17
mpi_launcher.py
in Vehicle Routing Problem/common/sagemaker_rl
157 17
mpi_launcher.py
in News Vendor/common/sagemaker_rl
157 17
docker_utils.py
in Bin Packing/common
114 12
docker_utils.py
in common
114 12
docker_utils.py
in Vehicle Routing Problem/common
114 12
docker_utils.py
in News Vendor/common
114 12
sage_cluster_communicator.py
in Bin Packing/common/sagemaker_rl
111 12
sage_cluster_communicator.py
in common/sagemaker_rl
111 12
sage_cluster_communicator.py
in Vehicle Routing Problem/common/sagemaker_rl
111 12
news_vendor_environment.py
in News Vendor/src
111 9
sage_cluster_communicator.py
in News Vendor/common/sagemaker_rl
111 12
vrp_view_2D.py
in Vehicle Routing Problem/src
110 11
misc.py
in Bin Packing/common
84 2
misc.py
in common
84 2
misc.py
in Vehicle Routing Problem/common
84 2
misc.py
in News Vendor/common
84 2
stable_baselines_launcher.py
in Bin Packing/common/sagemaker_rl
76 8
stable_baselines_launcher.py
in common/sagemaker_rl
76 8
stable_baselines_launcher.py
in Vehicle Routing Problem/common/sagemaker_rl
76 8
stable_baselines_launcher.py
in News Vendor/common/sagemaker_rl
76 8
configuration_list.py
in Bin Packing/common/sagemaker_rl
58 6
onnx_utils.py
in Bin Packing/common/sagemaker_rl
58 6
configuration_list.py
in common/sagemaker_rl
58 6
onnx_utils.py
in common/sagemaker_rl
58 6
configuration_list.py
in Vehicle Routing Problem/common/sagemaker_rl
58 6
onnx_utils.py
in Vehicle Routing Problem/common/sagemaker_rl
58 6
configuration_list.py
in News Vendor/common/sagemaker_rl
58 6
onnx_utils.py
in News Vendor/common/sagemaker_rl
58 6
heuristic_baseline.py
in News Vendor/src
56 1
markdown_helper.py
in Bin Packing/common
55 5
markdown_helper.py
in common
55 5
markdown_helper.py
in Vehicle Routing Problem/common
55 5
markdown_helper.py
in News Vendor/common
55 5
multiperiod_vlt_heuristic.py
in News Vendor/src
52 5
train_baseline_mip.py
in Vehicle Routing Problem/src
46 1
train_ppo.py
in Bin Packing/src
43 2
baseline_sum_of_squares.py
in Bin Packing/src
41 1
Files With Most Units (Top 20)
File# lines# units
bin_packing_environment.py
in Bin Packing/src
273 18
coach_launcher.py
in Bin Packing/common/sagemaker_rl
202 18
coach_launcher.py
in common/sagemaker_rl
202 18
coach_launcher.py
in Vehicle Routing Problem/common/sagemaker_rl
202 18
coach_launcher.py
in News Vendor/common/sagemaker_rl
202 18
mpi_launcher.py
in Bin Packing/common/sagemaker_rl
157 17
mpi_launcher.py
in common/sagemaker_rl
157 17
mpi_launcher.py
in Vehicle Routing Problem/common/sagemaker_rl
157 17
mpi_launcher.py
in News Vendor/common/sagemaker_rl
157 17
ray_launcher.py
in Bin Packing/common/sagemaker_rl
160 15
ray_launcher.py
in common/sagemaker_rl
160 15
vrp_environment.py
in Vehicle Routing Problem/src
336 15
ray_launcher.py
in Vehicle Routing Problem/common/sagemaker_rl
160 15
ray_launcher.py
in News Vendor/common/sagemaker_rl
160 15
docker_utils.py
in Bin Packing/common
114 12
sage_cluster_communicator.py
in Bin Packing/common/sagemaker_rl
111 12
docker_utils.py
in common
114 12
sage_cluster_communicator.py
in common/sagemaker_rl
111 12
docker_utils.py
in Vehicle Routing Problem/common
114 12
sage_cluster_communicator.py
in Vehicle Routing Problem/common/sagemaker_rl
111 12
Files With Long Lines (Top 16)

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

File# lines# units# long lines
coach_launcher.py
in Bin Packing/common/sagemaker_rl
202 18 2
coach_launcher.py
in common/sagemaker_rl
202 18 2
coach_launcher.py
in Vehicle Routing Problem/common/sagemaker_rl
202 18 2
coach_launcher.py
in News Vendor/common/sagemaker_rl
202 18 2
markdown_helper.py
in Bin Packing/common
55 5 1
misc.py
in Bin Packing/common
84 2 1
configuration_list.py
in Bin Packing/common/sagemaker_rl
58 6 1
markdown_helper.py
in common
55 5 1
misc.py
in common
84 2 1
configuration_list.py
in common/sagemaker_rl
58 6 1
markdown_helper.py
in Vehicle Routing Problem/common
55 5 1
misc.py
in Vehicle Routing Problem/common
84 2 1
configuration_list.py
in Vehicle Routing Problem/common/sagemaker_rl
58 6 1
markdown_helper.py
in News Vendor/common
55 5 1
misc.py
in News Vendor/common
84 2 1
configuration_list.py
in News Vendor/common/sagemaker_rl
58 6 1