aws-samples / aws-games-sa-kr
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
  • 29% duplication:
    • 287 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 84 duplicated lines
  • 7 duplicates
system29% (84 lines)
Duplication per Extension
py49% (84 lines)
Duplication per Component (primary)
optimize-serverless-application-on-aws/module3/src50% (40 lines)
optimize-serverless-application-on-aws/module4/src64% (24 lines)
optimize-serverless-application-on-aws/module2/src13% (20 lines)
optimize-serverless-application-on-aws/module1/src0% (0 lines)
optimize-serverless-application-on-aws0% (0 lines)

Duplication Between Components (50+ lines)

G optimize-serverless-application-on-aws/module3/src optimize-serverless-application-on-aws/module3/src optimize-serverless-application-on-aws/module4/src optimize-serverless-application-on-aws/module4/src optimize-serverless-application-on-aws/module3/src--optimize-serverless-application-on-aws/module4/src 54

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 7 longest duplicates.
See data for all 7 duplicates...
Size#FoldersFilesLinesCode
17 x 2 contributor/anhyobin/opt...tion-on-aws/module3/src
contributor/anhyobin/opt...tion-on-aws/module4/src
module3_lambda_function.py
lambda_function.py
8:27 (51%)
6:25 (51%)
view
10 x 2 contributor/anhyobin/opt...tion-on-aws/module2/src
contributor/anhyobin/opt...tion-on-aws/module2/src
lambda_function.py
module2_lambda.py
9:22 (66%)
9:22 (66%)
view
10 x 2 contributor/anhyobin/opt...tion-on-aws/module2/src
contributor/anhyobin/opt...tion-on-aws/module3/src
lambda_function.py
module3_lambda.py
9:22 (66%)
19:32 (21%)
view
10 x 2 contributor/anhyobin/opt...tion-on-aws/module2/src
contributor/anhyobin/opt...tion-on-aws/module3/src
module2_lambda.py
module3_lambda.py
9:22 (66%)
19:32 (21%)
view
7 x 2 contributor/anhyobin/opt...tion-on-aws/module3/src
contributor/anhyobin/opt...tion-on-aws/module4/src
module3_lambda_function.py
lambda_function.py
41:49 (21%)
39:47 (21%)
view
6 x 2 contributor/anhyobin/opt...tion-on-aws/module3/src
contributor/anhyobin/opt...tion-on-aws/module4/src
module3_lambda.py
lambda_function.py
75:80 (12%)
20:25 (18%)
view
6 x 2 contributor/anhyobin/opt...tion-on-aws/module3/src
contributor/anhyobin/opt...tion-on-aws/module3/src
module3_lambda.py
module3_lambda_function.py
75:80 (12%)
22:27 (18%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
14 x 2 contributor/anhyobin/opt...tion-on-aws/module4/src
contributor/anhyobin/opt...tion-on-aws/module3/src
lambda_function.py
module3_lambda_function.py
0:0 
0:0 
view