aws-samples / aws-textract-comprehend-lex-chatbot
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
  • 16% duplication:
    • 718 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 116 duplicated lines
  • 12 duplicates
system16% (116 lines)
Duplication per Extension
yml23% (87 lines)
py8% (29 lines)
Duplication per Component (primary)
ROOT23% (87 lines)
src/lambda8% (29 lines)
Longest Duplicates
The list of 12 longest duplicates.
See data for all 12 duplicates...
Size#FoldersFilesLinesCode
14 x 2 ROOT
ROOT
cfntemplate.yml
cfntemplate.yml
131:144 (3%)
180:193 (3%)
view
14 x 2 ROOT
ROOT
cfntemplate.yml
cfntemplate.yml
45:58 (3%)
180:193 (3%)
view
14 x 2 ROOT
ROOT
cfntemplate.yml
cfntemplate.yml
45:58 (3%)
131:144 (3%)
view
10 x 2 src/lambda
src/lambda
meaningful-conversations-lex-lambda.py
meaningful-conversations-lex-lambda.py
136:147 (5%)
176:188 (5%)
view
9 x 2 src/lambda
src/lambda
meaningful-conversations-lex-lambda.py
meaningful-conversations-lex-lambda.py
136:146 (4%)
231:240 (4%)
view
9 x 2 src/lambda
src/lambda
meaningful-conversations-lex-lambda.py
meaningful-conversations-lex-lambda.py
176:185 (4%)
231:240 (4%)
view
8 x 2 ROOT
ROOT
cfntemplate.yml
cfntemplate.yml
146:153 (2%)
195:202 (2%)
view
8 x 2 ROOT
ROOT
cfntemplate.yml
cfntemplate.yml
60:67 (2%)
146:153 (2%)
view
8 x 2 ROOT
ROOT
cfntemplate.yml
cfntemplate.yml
60:67 (2%)
195:202 (2%)
view
7 x 2 ROOT
ROOT
cfntemplate.yml
cfntemplate.yml
111:117 (1%)
166:172 (1%)
view
7 x 2 ROOT
ROOT
cfntemplate.yml
cfntemplate.yml
19:25 (1%)
166:172 (1%)
view
7 x 2 ROOT
ROOT
cfntemplate.yml
cfntemplate.yml
19:25 (1%)
111:117 (1%)
view