aws-samples / amazon-rekognition-custom-labels-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
  • 18% duplication:
    • 464 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 86 duplicated lines
  • 7 duplicates
system18% (86 lines)
Duplication per Extension
yaml22% (68 lines)
py11% (18 lines)
Duplication per Component (primary)
ROOT22% (68 lines)
functions/start_model31% (9 lines)
functions/stop_model34% (9 lines)
functions/sqs_poller0% (0 lines)
functions/analyse_image0% (0 lines)
functions0% (0 lines)
functions/toggle_trigger0% (0 lines)
Longest Duplicates
The list of 7 longest duplicates.
See data for all 7 duplicates...
Size#FoldersFilesLinesCode
12 x 2 ROOT
ROOT
template.yaml
template.yaml
193:204 (3%)
218:229 (3%)
view
9 x 2 functions/start_model
functions/stop_model
app.py
app.py
29:40 (32%)
30:40 (36%)
view
7 x 2 ROOT
ROOT
template.yaml
template.yaml
20:26 (2%)
261:267 (2%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
198:203 (1%)
247:252 (1%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
29:34 (1%)
36:41 (1%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
223:228 (1%)
247:252 (1%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
206:211 (1%)
231:236 (1%)
view