aws-samples / amazon-a2i-sample-task-uis
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
  • 26% duplication:
    • 1,869 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 493 duplicated lines
  • 49 duplicates
system26% (493 lines)
Duplication per Extension
html26% (493 lines)
Duplication per Component (primary)
images24% (239 lines)
text19% (92 lines)
other32% (69 lines)
audio35% (48 lines)
video68% (45 lines)

Duplication Between Components (50+ lines)

G images images other other images--other 238

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 49 duplicates...
Size#FoldersFilesLinesCode
51 x 2 images
other
ocr.liquid.html
receipt-transcription.liquid.html
1:69 (100%)
1:69 (100%)
view
22 x 2 images
images
instance-segmentation-custom-values.l...
semantic-segmentation-custom-labels.l...
5:37 (47%)
5:37 (47%)
view
20 x 2 images
images
ocr.liquid.html
semantic-segmentation-custom-labels.l...
47:69 (39%)
39:61 (43%)
view
20 x 2 images
images
instance-segmentation-custom-values.l...
ocr.liquid.html
39:61 (43%)
47:69 (39%)
view
20 x 2 images
other
bounding-box-custom-labels.liquid.html
receipt-transcription.liquid.html
39:61 (43%)
47:69 (39%)
view
20 x 2 images
images
keypoint-custom-labels.liquid.html
ocr.liquid.html
39:61 (43%)
47:69 (39%)
view
20 x 2 images
images
instance-segmentation-custom-values.l...
semantic-segmentation-custom-labels.l...
39:61 (43%)
39:61 (43%)
view
20 x 2 images
images
bounding-box-custom-labels.liquid.html
instance-segmentation-custom-values.l...
39:61 (43%)
39:61 (43%)
view
20 x 2 images
other
keypoint-custom-labels.liquid.html
receipt-transcription.liquid.html
39:61 (43%)
47:69 (39%)
view
20 x 2 images
images
bounding-box-custom-labels.liquid.html
semantic-segmentation-custom-labels.l...
39:61 (43%)
39:61 (43%)
view
20 x 2 images
other
instance-segmentation-custom-values.l...
receipt-transcription.liquid.html
39:61 (43%)
47:69 (39%)
view
20 x 2 images
images
keypoint-custom-labels.liquid.html
semantic-segmentation-custom-labels.l...
39:61 (43%)
39:61 (43%)
view
20 x 2 images
other
semantic-segmentation-custom-labels.l...
receipt-transcription.liquid.html
39:61 (43%)
47:69 (39%)
view
20 x 2 images
images
instance-segmentation-custom-values.l...
keypoint-custom-labels.liquid.html
39:61 (43%)
39:61 (43%)
view
20 x 2 images
images
bounding-box-custom-labels.liquid.html
ocr.liquid.html
39:61 (43%)
47:69 (39%)
view
20 x 2 images
images
bounding-box-custom-labels.liquid.html
keypoint-custom-labels.liquid.html
39:61 (43%)
39:61 (43%)
view
19 x 2 audio
audio
audio-classification.liquid.html
sentiment-analysis-audio.liquid.html
1:25 (100%)
1:25 (100%)
view
18 x 2 images
images
bounding-box-custom-labels.liquid.html
semantic-segmentation-custom-labels.l...
9:37 (39%)
9:37 (39%)
view
18 x 2 images
images
keypoint-custom-labels.liquid.html
semantic-segmentation-custom-labels.l...
9:37 (39%)
9:37 (39%)
view
18 x 2 images
images
instance-segmentation-custom-values.l...
keypoint-custom-labels.liquid.html
9:37 (39%)
9:37 (39%)
view