aws-samples / aws-autonomous-driving-data-lake-image-extraction-pipeline-from-ros-bagfiles
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
  • 12% duplication:
    • 19,763 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 2,563 duplicated lines
  • 141 duplicates
system12% (2,563 lines)
Duplication per Extension
py12% (2,563 lines)
Duplication per Component (primary)
service91% (1,838 lines)
infrastructure/pillow-layer3% (617 lines)
infrastructure14% (62 lines)
service/app6% (20 lines)
infrastructure/S3Batch35% (14 lines)
infrastructure/select-labelling-imgs6% (12 lines)
object-detection/ground_truth0% (0 lines)
object-detection0% (0 lines)
ROOT0% (0 lines)
infrastructure/s3-upload-trigger0% (0 lines)
infrastructure/process-queue-sync0% (0 lines)
infrastructure/bag-queue-proc0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 141 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
18 x 2 infrastructure/pillow-layer/python/PIL
infrastructure/pillow-layer/python/PIL
ImageDraw.py
ImageDraw.py
395:414 (2%)
584:603 (2%)
view
Duplicated Units
The list of top 4 duplicated units.
See data for all 4 unit duplicates...
Size#FoldersFilesLinesCode
12 x 2 infrastructure/pillow-layer/python/PIL
infrastructure/pillow-layer/python/PIL
ImageDraw.py
ImageDraw.py
0:0 
0:0 
view
8 x 2 infrastructure/pillow-layer/python/PIL
infrastructure/pillow-layer/python/PIL
ImageDraw.py
ImageDraw.py
0:0 
0:0 
view
7 x 10 infrastructure/pillow-layer/python/PIL
infrastructure/pillow-layer/python/PIL
infrastructure/pillow-layer/python/PIL
infrastructure/pillow-layer/python/PIL
infrastructure/pillow-layer/python/PIL
infrastructure/pillow-layer/python/PIL
infrastructure/pillow-layer/python/PIL
infrastructure/pillow-layer/python/PIL
infrastructure/pillow-layer/python/PIL
infrastructure/pillow-layer/python/PIL
TiffImagePlugin.py
PsdImagePlugin.py
GifImagePlugin.py
DcxImagePlugin.py
MicImagePlugin.py
SpiderImagePlugin.py
PngImagePlugin.py
ImImagePlugin.py
MpoImagePlugin.py
FliImagePlugin.py
0:0 
0:0 
0:0 
0:0 
0:0 
0:0 
0:0 
0:0 
0:0 
0:0 
view
6 x 2 infrastructure/pillow-layer/python/PIL
infrastructure/pillow-layer/python/PIL
ImageTk.py
ImageTk.py
0:0 
0:0 
view