aws-samples / aws-autonomous-driving-data-lake-mwaa-ros-bag-image-extraction-pipeline
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
  • 58% duplication:
    • 3,227 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,900 duplicated lines
  • 48 duplicates
system58% (1,900 lines)
Duplication per Extension
py59% (1,900 lines)
Duplication per Component (primary)
service91% (1,838 lines)
infrastructure9% (42 lines)
service/app6% (20 lines)
dags0% (0 lines)
dags/processing0% (0 lines)
plugins0% (0 lines)
plugins/sensors0% (0 lines)
plugins/operators0% (0 lines)
plugins/hooks0% (0 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 48 duplicates...
Size#FoldersFilesLinesCode
66 x 2 service
service
check_pngs.py
check_pngs.py
174:239 (3%)
1140:1205 (3%)
view
66 x 2 service
service
check_pngs.py
check_pngs.py
764:829 (3%)
1763:1828 (3%)
view
59 x 2 service
service
check_pngs.py
check_pngs.py
240:298 (2%)
1207:1265 (2%)
view
56 x 2 service
service
check_pngs.py
check_pngs.py
660:715 (2%)
1651:1706 (2%)
view
54 x 2 service
service
check_pngs.py
check_pngs.py
299:352 (2%)
1267:1320 (2%)
view
45 x 2 service
service
check_pngs.py
check_pngs.py
484:528 (2%)
1463:1507 (2%)
view
43 x 2 service
service
check_pngs.py
check_pngs.py
830:872 (2%)
1830:1872 (2%)
view
32 x 2 service
service
check_pngs.py
check_pngs.py
891:922 (1%)
1893:1924 (1%)
view
30 x 2 service
service
check_pngs.py
check_pngs.py
617:646 (1%)
1606:1635 (1%)
view
29 x 2 service
service
check_pngs.py
check_pngs.py
86:114 (1%)
1048:1076 (1%)
view
29 x 2 service
service
check_pngs.py
check_pngs.py
434:462 (1%)
1409:1437 (1%)
view
28 x 2 service
service
check_pngs.py
check_pngs.py
360:387 (1%)
1330:1357 (1%)
view
24 x 2 service
service
check_pngs.py
check_pngs.py
716:739 (1%)
1708:1731 (1%)
view
24 x 2 service
service
check_pngs.py
check_pngs.py
130:153 (1%)
1093:1116 (1%)
view
22 x 2 service
service
check_pngs.py
check_pngs.py
396:417 (1%)
1369:1390 (1%)
view
22 x 2 service
service
check_pngs.py
check_pngs.py
60:81 (1%)
1017:1038 (1%)
view
21 x 2 service
service
check_pngs.py
check_pngs.py
4:24 (1%)
957:977 (1%)
view
18 x 2 service
service
check_pngs.py
check_pngs.py
154:171 (<1%)
1118:1135 (<1%)
view
18 x 2 service
service
check_pngs.py
check_pngs.py
873:890 (<1%)
1874:1891 (<1%)
view
17 x 2 service
service
check_pngs.py
check_pngs.py
569:585 (<1%)
1553:1569 (<1%)
view