awslabs / or-rl-benchmarks
Duplication

Places in code with 6 or more lines that are exactly the same.

Intro
  • For duplication, we look at places in code where there are 6 or more lines of code that are exactly the same.
  • Before duplication is calculated, the code is cleaned to remove empty lines, comments, and frequently duplicated constructs such as imports.
  • You should aim at having as little as possible (<5%) of duplicated code as high-level of duplication can lead to maintenance difficulties, poor factoring, and logical contradictions.
Learn more...
Duplication Overall
  • 76% duplication:
    • 5,545 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 4,260 duplicated lines
  • 78 duplicates
system76% (4,260 lines)
Duplication per Extension
py76% (4,260 lines)
Duplication per Component (primary)
common/sagemaker_rl99% (803 lines)
News Vendor/common/sagemaker_rl99% (803 lines)
Vehicle Routing Problem/common/sagemaker_rl99% (803 lines)
Bin Packing/common/sagemaker_rl99% (803 lines)
common100% (229 lines)
Vehicle Routing Problem/common100% (229 lines)
News Vendor/common100% (229 lines)
Bin Packing/common100% (229 lines)
Bin Packing/src24% (100 lines)
Vehicle Routing Problem/src4% (32 lines)
News Vendor/src0% (0 lines)

Duplication Between Components (50+ lines)

G News Vendor/common/sagemaker_rl News Vendor/common/sagemaker_rl Vehicle Routing Problem/common/sagemaker_rl Vehicle Routing Problem/common/sagemaker_rl News Vendor/common/sagemaker_rl--Vehicle Routing Problem/common/sagemaker_rl 1606 common/sagemaker_rl common/sagemaker_rl News Vendor/common/sagemaker_rl--common/sagemaker_rl 1606 Vehicle Routing Problem/common/sagemaker_rl--common/sagemaker_rl 1606 Bin Packing/common/sagemaker_rl Bin Packing/common/sagemaker_rl Bin Packing/common/sagemaker_rl--News Vendor/common/sagemaker_rl 1606 Bin Packing/common/sagemaker_rl--Vehicle Routing Problem/common/sagemaker_rl 1606 Bin Packing/common/sagemaker_rl--common/sagemaker_rl 1606 Bin Packing/common Bin Packing/common Vehicle Routing Problem/common Vehicle Routing Problem/common Bin Packing/common--Vehicle Routing Problem/common 458 News Vendor/common News Vendor/common Bin Packing/common--News Vendor/common 458 common common Bin Packing/common--common 458 Vehicle Routing Problem/common--common 458 News Vendor/common--Vehicle Routing Problem/common 458 News Vendor/common--common 458 Bin Packing/src Bin Packing/src Vehicle Routing Problem/src Vehicle Routing Problem/src Bin Packing/src--Vehicle Routing Problem/src 64

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 20 longest duplicates.
See data for all 78 duplicates...
Size#FoldersFilesLinesCode
181 x 2 News Vendor/common/sagemaker_rl
Vehicle Routing&nbs...lem/common/sagemaker_rl
coach_launcher.py
coach_launcher.py
23:316 (100%)
23:316 (100%)
view
181 x 2 Bin Packing/common/sagemaker_rl
common/sagemaker_rl
coach_launcher.py
coach_launcher.py
23:316 (100%)
23:316 (100%)
view
181 x 2 News Vendor/common/sagemaker_rl
common/sagemaker_rl
coach_launcher.py
coach_launcher.py
23:316 (100%)
23:316 (100%)
view
181 x 2 Bin Packing/common/sagemaker_rl
News Vendor/common/sagemaker_rl
coach_launcher.py
coach_launcher.py
23:316 (100%)
23:316 (100%)
view
181 x 2 Vehicle Routing&nbs...lem/common/sagemaker_rl
common/sagemaker_rl
coach_launcher.py
coach_launcher.py
23:316 (100%)
23:316 (100%)
view
181 x 2 Bin Packing/common/sagemaker_rl
Vehicle Routing&nbs...lem/common/sagemaker_rl
coach_launcher.py
coach_launcher.py
23:316 (100%)
23:316 (100%)
view
145 x 2 Bin Packing/common/sagemaker_rl
News Vendor/common/sagemaker_rl
ray_launcher.py
ray_launcher.py
20:249 (100%)
20:249 (100%)
view
145 x 2 News Vendor/common/sagemaker_rl
Vehicle Routing&nbs...lem/common/sagemaker_rl
ray_launcher.py
ray_launcher.py
20:249 (100%)
20:249 (100%)
view
145 x 2 Bin Packing/common/sagemaker_rl
common/sagemaker_rl
ray_launcher.py
ray_launcher.py
20:249 (100%)
20:249 (100%)
view
145 x 2 Vehicle Routing&nbs...lem/common/sagemaker_rl
common/sagemaker_rl
ray_launcher.py
ray_launcher.py
20:249 (100%)
20:249 (100%)
view
145 x 2 Bin Packing/common/sagemaker_rl
Vehicle Routing&nbs...lem/common/sagemaker_rl
ray_launcher.py
ray_launcher.py
20:249 (100%)
20:249 (100%)
view
145 x 2 News Vendor/common/sagemaker_rl
common/sagemaker_rl
ray_launcher.py
ray_launcher.py
20:249 (100%)
20:249 (100%)
view
143 x 2 Bin Packing/common/sagemaker_rl
News Vendor/common/sagemaker_rl
mpi_launcher.py
mpi_launcher.py
21:295 (100%)
21:295 (100%)
view
143 x 2 News Vendor/common/sagemaker_rl
common/sagemaker_rl
mpi_launcher.py
mpi_launcher.py
21:295 (100%)
21:295 (100%)
view
143 x 2 Bin Packing/common/sagemaker_rl
common/sagemaker_rl
mpi_launcher.py
mpi_launcher.py
21:295 (100%)
21:295 (100%)
view
143 x 2 Bin Packing/common/sagemaker_rl
Vehicle Routing&nbs...lem/common/sagemaker_rl
mpi_launcher.py
mpi_launcher.py
21:295 (100%)
21:295 (100%)
view
143 x 2 Vehicle Routing&nbs...lem/common/sagemaker_rl
common/sagemaker_rl
mpi_launcher.py
mpi_launcher.py
21:295 (100%)
21:295 (100%)
view
143 x 2 News Vendor/common/sagemaker_rl
Vehicle Routing&nbs...lem/common/sagemaker_rl
mpi_launcher.py
mpi_launcher.py
21:295 (100%)
21:295 (100%)
view
106 x 2 News Vendor/common/sagemaker_rl
common/sagemaker_rl
sage_cluster_communicator.py
sage_cluster_communicator.py
8:130 (100%)
8:130 (100%)
view
106 x 2 Bin Packing/common/sagemaker_rl
Vehicle Routing&nbs...lem/common/sagemaker_rl
sage_cluster_communicator.py
sage_cluster_communicator.py
8:130 (100%)
8:130 (100%)
view
Duplicated Units
The list of top 20 duplicated units.
See data for all 70 unit duplicates...
Size#FoldersFilesLinesCode
58 x 4 Bin Packing/common
common
Vehicle Routing Problem/common
News Vendor/common
misc.py
misc.py
misc.py
misc.py
0:0 
0:0 
0:0 
0:0 
view
35 x 4 Bin Packing/common/sagemaker_rl
common/sagemaker_rl
Vehicle Routing&nbs...lem/common/sagemaker_rl
News Vendor/common/sagemaker_rl
mpi_launcher.py
mpi_launcher.py
mpi_launcher.py
mpi_launcher.py
0:0 
0:0 
0:0 
0:0 
view
39 x 4 Bin Packing/common/sagemaker_rl
common/sagemaker_rl
Vehicle Routing&nbs...lem/common/sagemaker_rl
News Vendor/common/sagemaker_rl
coach_launcher.py
coach_launcher.py
coach_launcher.py
coach_launcher.py
0:0 
0:0 
0:0 
0:0 
view
36 x 4 Bin Packing/common
common
Vehicle Routing Problem/common
News Vendor/common
misc.py
misc.py
misc.py
misc.py
0:0 
0:0 
0:0 
0:0 
view
28 x 4 Bin Packing/common/sagemaker_rl
common/sagemaker_rl
Vehicle Routing&nbs...lem/common/sagemaker_rl
News Vendor/common/sagemaker_rl
ray_launcher.py
ray_launcher.py
ray_launcher.py
ray_launcher.py
0:0 
0:0 
0:0 
0:0 
view
26 x 4 Bin Packing/common/sagemaker_rl
common/sagemaker_rl
Vehicle Routing&nbs...lem/common/sagemaker_rl
News Vendor/common/sagemaker_rl
stable_baselines_launcher.py
stable_baselines_launcher.py
stable_baselines_launcher.py
stable_baselines_launcher.py
0:0 
0:0 
0:0 
0:0 
view
23 x 2 Bin Packing/src
Vehicle Routing Problem/src
model.py
model.py
0:0 
0:0 
view
20 x 4 Bin Packing/common/sagemaker_rl
common/sagemaker_rl
Vehicle Routing&nbs...lem/common/sagemaker_rl
News Vendor/common/sagemaker_rl
tf_serving_utils.py
tf_serving_utils.py
tf_serving_utils.py
tf_serving_utils.py
0:0 
0:0 
0:0 
0:0 
view
19 x 4 Bin Packing/common/sagemaker_rl
common/sagemaker_rl
Vehicle Routing&nbs...lem/common/sagemaker_rl
News Vendor/common/sagemaker_rl
sage_cluster_communicator.py
sage_cluster_communicator.py
sage_cluster_communicator.py
sage_cluster_communicator.py
0:0 
0:0 
0:0 
0:0 
view
26 x 4 Bin Packing/common/sagemaker_rl
common/sagemaker_rl
Vehicle Routing&nbs...lem/common/sagemaker_rl
News Vendor/common/sagemaker_rl
coach_launcher.py
coach_launcher.py
coach_launcher.py
coach_launcher.py
0:0 
0:0 
0:0 
0:0 
view
24 x 4 Bin Packing/common/sagemaker_rl
common/sagemaker_rl
Vehicle Routing&nbs...lem/common/sagemaker_rl
News Vendor/common/sagemaker_rl
ray_launcher.py
ray_launcher.py
ray_launcher.py
ray_launcher.py
0:0 
0:0 
0:0 
0:0 
view
24 x 4 Bin Packing/common/sagemaker_rl
common/sagemaker_rl
Vehicle Routing&nbs...lem/common/sagemaker_rl
News Vendor/common/sagemaker_rl
coach_launcher.py
coach_launcher.py
coach_launcher.py
coach_launcher.py
0:0 
0:0 
0:0 
0:0 
view
20 x 4 Bin Packing/common/sagemaker_rl
common/sagemaker_rl
Vehicle Routing&nbs...lem/common/sagemaker_rl
News Vendor/common/sagemaker_rl
configuration_list.py
configuration_list.py
configuration_list.py
configuration_list.py
0:0 
0:0 
0:0 
0:0 
view
17 x 4 Bin Packing/common/sagemaker_rl
common/sagemaker_rl
Vehicle Routing&nbs...lem/common/sagemaker_rl
News Vendor/common/sagemaker_rl
docker_utils.py
docker_utils.py
docker_utils.py
docker_utils.py
0:0 
0:0 
0:0 
0:0 
view
16 x 4 Bin Packing/common/sagemaker_rl
common/sagemaker_rl
Vehicle Routing&nbs...lem/common/sagemaker_rl
News Vendor/common/sagemaker_rl
ray_launcher.py
ray_launcher.py
ray_launcher.py
ray_launcher.py
0:0 
0:0 
0:0 
0:0 
view
18 x 4 Bin Packing/common/sagemaker_rl
common/sagemaker_rl
Vehicle Routing&nbs...lem/common/sagemaker_rl
News Vendor/common/sagemaker_rl
coach_launcher.py
coach_launcher.py
coach_launcher.py
coach_launcher.py
0:0 
0:0 
0:0 
0:0 
view
18 x 4 Bin Packing/common/sagemaker_rl
common/sagemaker_rl
Vehicle Routing&nbs...lem/common/sagemaker_rl
News Vendor/common/sagemaker_rl
coach_launcher.py
coach_launcher.py
coach_launcher.py
coach_launcher.py
0:0 
0:0 
0:0 
0:0 
view
22 x 4 Bin Packing/common
common
Vehicle Routing Problem/common
News Vendor/common
docker_utils.py
docker_utils.py
docker_utils.py
docker_utils.py
0:0 
0:0 
0:0 
0:0 
view
13 x 4 Bin Packing/common
common
Vehicle Routing Problem/common
News Vendor/common
docker_utils.py
docker_utils.py
docker_utils.py
docker_utils.py
0:0 
0:0 
0:0 
0:0 
view
13 x 4 Bin Packing/common/sagemaker_rl
common/sagemaker_rl
Vehicle Routing&nbs...lem/common/sagemaker_rl
News Vendor/common/sagemaker_rl
sage_cluster_communicator.py
sage_cluster_communicator.py
sage_cluster_communicator.py
sage_cluster_communicator.py
0:0 
0:0 
0:0 
0:0 
view