aws-samples / amazon-lookout-for-vision-batch-processing
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
  • 21% duplication:
    • 493 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 108 duplicated lines
  • 22 duplicates
system21% (108 lines)
Duplication per Extension
yaml22% (84 lines)
py19% (24 lines)
Duplication per Component (primary)
ROOT22% (84 lines)
functions/start_model48% (12 lines)
functions/stop_model52% (12 lines)
functions/sqs_poller0% (0 lines)
functions/analyse_image0% (0 lines)
functions0% (0 lines)
functions/toggle_trigger0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 22 duplicates...
Size#FoldersFilesLinesCode
8 x 2 ROOT
ROOT
template.yaml
template.yaml
249:256 (2%)
275:282 (2%)
view
7 x 2 ROOT
ROOT
template.yaml
template.yaml
27:33 (1%)
313:319 (1%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
43:48 (1%)
64:69 (1%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
258:263 (1%)
284:289 (1%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
250:255 (1%)
300:305 (1%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
43:48 (1%)
71:76 (1%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
43:48 (1%)
50:55 (1%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
36:41 (1%)
43:48 (1%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
36:41 (1%)
64:69 (1%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
276:281 (1%)
300:305 (1%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
57:62 (1%)
71:76 (1%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
50:55 (1%)
71:76 (1%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
57:62 (1%)
64:69 (1%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
64:69 (1%)
71:76 (1%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
50:55 (1%)
64:69 (1%)
view
6 x 2 functions/start_model
functions/stop_model
app.py
app.py
29:35 (25%)
30:35 (27%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
43:48 (1%)
57:62 (1%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
36:41 (1%)
50:55 (1%)
view
6 x 2 functions/start_model
functions/stop_model
app.py
app.py
45:52 (25%)
42:49 (27%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
36:41 (1%)
71:76 (1%)
view