awsdocs / amazon-rekognition-developer-guide
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
  • 11% duplication:
    • 1,979 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 224 duplicated lines
  • 21 duplicates
system11% (224 lines)
Duplication per Extension
cs16% (70 lines)
py11% (62 lines)
java6% (56 lines)
html26% (36 lines)
Duplication per Component (primary)
dotnet_examples/image16% (70 lines)
java_examples/image12% (56 lines)
javascript_examples26% (36 lines)
python_examples/image9% (32 lines)
python_examples/stored_video16% (30 lines)
java_examples/streaming_video0% (0 lines)
java_examples/stored_video0% (0 lines)
php_examples0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 21 duplicates...
Size#FoldersFilesLinesCode
22 x 2 code_examples/java_examples/image
code_examples/java_examples/image
java-list-faces-In-collection.java
java-list-faces-in-collection.java
15:45 (100%)
15:45 (100%)
view
18 x 2 code_examples/javascript_examples
code_examples/javascript_examples
js-estimate-age-snippet.html
js-estimate-age.html
19:36 (47%)
34:51 (18%)
view
10 x 2 code_examples/dotnet_examples/image
code_examples/dotnet_examples/image
net-add-faces.cs
net-search-faces-matching-image.cs
11:26 (43%)
10:26 (45%)
view
8 x 2 code_examples/dotnet_examples/image
code_examples/dotnet_examples/image
net-detect-labels-local-file.cs
net-detect-labels.cs
39:50 (30%)
29:40 (34%)
view
8 x 2 code_examples/dotnet_examples/image
code_examples/dotnet_examples/image
net-detect-labels-local-file.cs
net-image-orientation-bounding-box.cs
16:29 (30%)
19:32 (11%)
view
8 x 2 code_examples/python_examples/image
code_examples/python_examples/image
python-search-faces-by-image-collecti...
python-search-faces-collection.py
19:28 (47%)
19:28 (47%)
view
8 x 2 code_examples/python_examples/image
code_examples/python_examples/image
python-image-orientation-bounding-box.py
python-show-faces-bounding-exif.py
53:61 (17%)
22:30 (11%)
view
6 x 2 code_examples/java_examples/image
code_examples/java_examples/image
java-detect-labels-local-file.java
java-detect-labels.java
39:46 (30%)
32:38 (31%)
view
6 x 2 code_examples/dotnet_examples/image
code_examples/dotnet_examples/image
net-detect-faces.cs
net-detect-labels.cs
20:27 (20%)
19:26 (26%)
view
6 x 2 code_examples/python_examples/stored_video
code_examples/python_examples/stored_video
python-rek-video.py
python-rek-video.py
138:144 (3%)
228:234 (3%)
view
6 x 2 code_examples/python_examples/stored_video
code_examples/python_examples/stored_video
python-rek-video.py
python-rek-video.py
165:171 (3%)
228:234 (3%)
view
6 x 2 code_examples/python_examples/stored_video
code_examples/python_examples/stored_video
python-rek-video.py
python-rek-video.py
138:144 (3%)
165:171 (3%)
view
6 x 2 code_examples/dotnet_examples/image
code_examples/dotnet_examples/image
net-detect-labels.cs
net-detect-moderation-labels.cs
19:26 (26%)
19:26 (26%)
view
6 x 2 code_examples/python_examples/stored_video
code_examples/python_examples/stored_video
python-rek-video.py
python-rek-video.py
198:204 (3%)
261:267 (3%)
view
6 x 2 code_examples/python_examples/stored_video
code_examples/python_examples/stored_video
python-rek-video.py
python-rek-video.py
228:234 (3%)
261:267 (3%)
view
6 x 2 code_examples/python_examples/stored_video
code_examples/python_examples/stored_video
python-rek-video.py
python-rek-video.py
198:204 (3%)
228:234 (3%)
view
6 x 2 code_examples/dotnet_examples/image
code_examples/dotnet_examples/image
net-detect-faces.cs
net-detect-moderation-labels.cs
20:27 (20%)
19:26 (26%)
view
6 x 2 code_examples/python_examples/stored_video
code_examples/python_examples/stored_video
python-rek-video.py
python-rek-video.py
165:171 (3%)
198:204 (3%)
view
6 x 2 code_examples/python_examples/stored_video
code_examples/python_examples/stored_video
python-rek-video.py
python-rek-video.py
138:144 (3%)
198:204 (3%)
view
6 x 2 code_examples/python_examples/stored_video
code_examples/python_examples/stored_video
python-rek-video.py
python-rek-video.py
138:144 (3%)
261:267 (3%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
22 x 2 code_examples/java_examples/image
code_examples/java_examples/image
java-list-faces-In-collection.java
java-list-faces-in-collection.java
18:46 
18:46 
view