aws-samples / amazon-eks-autonomous-driving-data-service
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
  • 29% duplication:
    • 5,075 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,478 duplicated lines
  • 421 duplicates
system29% (1,478 lines)
Duplication per Extension
py28% (698 lines)
yml27% (588 lines)
yaml41% (192 lines)
Duplication per Component (primary)
cfn27% (588 lines)
a2d2/src30% (503 lines)
scripts23% (195 lines)
a2d2/charts/a2d2-data-service/templates47% (47 lines)
a2d2/charts/a2d2-rosbridge/templates67% (47 lines)
a2d2/efs41% (43 lines)
a2d2/fsx41% (43 lines)
a2d2/charts/a2d2-data-service9% (6 lines)
a2d2/charts/a2d2-rosbridge24% (6 lines)
a2d2/ddl0% (0 lines)

Duplication Between Components (50+ lines)

G a2d2/src a2d2/src scripts scripts a2d2/src--scripts 336 a2d2/charts/a2d2-data-service/templates a2d2/charts/a2d2-data-service/templates a2d2/charts/a2d2-rosbridge/templates a2d2/charts/a2d2-rosbridge/templates a2d2/charts/a2d2-data-service/templates--a2d2/charts/a2d2-rosbridge/templates 94 a2d2/efs a2d2/efs a2d2/fsx a2d2/fsx a2d2/efs--a2d2/fsx 86

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 421 duplicates...
Size#FoldersFilesLinesCode
28 x 2 cfn
cfn
mozart.yml
mozart.yml
1048:1075 (1%)
1122:1149 (1%)
view
24 x 2 scripts
scripts
glue-etl-job.py
s3-extract-load.py
1:34 (37%)
1:35 (24%)
view
20 x 2 scripts
scripts
setup-redshift-db.py
update-kafka-cluster-config.py
1:32 (45%)
1:29 (40%)
view
18 x 2 cfn
cfn
mozart.yml
mozart.yml
1599:1616 (<1%)
1824:1841 (<1%)
view
17 x 2 a2d2/src
a2d2/src
bus_dataset.py
manifest_dataset.py
46:69 (24%)
49:72 (23%)
view
16 x 2 a2d2/efs
a2d2/fsx
stage-data-a2d2.yaml
stage-data-a2d2.yaml
29:44 (29%)
29:44 (29%)
view
15 x 2 scripts
scripts
s3-extract-load.py
s3-extract-tar.py
68:82 (15%)
161:175 (4%)
view
15 x 2 scripts
scripts
setup-redshift-db.py
step-functions.py
1:26 (34%)
1:24 (40%)
view
15 x 2 scripts
scripts
step-functions.py
update-kafka-cluster-config.py
1:24 (40%)
1:23 (30%)
view
14 x 2 scripts
scripts
a2d2-metadata-etl.py
setup-redshift-db.py
1:16 (22%)
1:16 (31%)
view
14 x 2 a2d2/src
scripts
rosbag_consumer.py
step-functions.py
1:16 (10%)
1:16 (37%)
view
14 x 2 a2d2/src
a2d2/src
bus_dataset.py
data_response.py
1:16 (20%)
2:17 (23%)
view
14 x 2 a2d2/src
scripts
s3_deleter.py
s3-extract-load.py
1:16 (34%)
1:16 (14%)
view
14 x 2 scripts
scripts
a2d2-metadata-etl.py
update-kafka-cluster-config.py
1:16 (22%)
1:16 (28%)
view
14 x 2 a2d2/src
scripts
s3_deleter.py
extract-bus-data.py
1:16 (34%)
1:16 (9%)
view
14 x 2 a2d2/src
scripts
s3_reader.py
update-kafka-cluster-config.py
1:16 (32%)
1:16 (28%)
view
14 x 2 a2d2/src
a2d2/src
data_request.py
rosbag_consumer.py
1:16 (19%)
1:16 (10%)
view
14 x 2 a2d2/src
scripts
data_request.py
step-functions.py
1:16 (19%)
1:16 (37%)
view
14 x 2 a2d2/src
a2d2/src
rosbag_producer.py
util.py
2:17 (3%)
1:16 (8%)
view
14 x 2 a2d2/src
scripts
data_client.py
a2d2-metadata-etl.py
1:16 (25%)
1:16 (22%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
10 x 2 scripts
scripts
s3-extract-load.py
glue-etl-job.py
0:0 
0:0 
view