awslabs / spot-tagging-bot-for-digital-assets
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
  • 62% duplication:
    • 3,356 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 2,098 duplicated lines
  • 115 duplicates
system62% (2,098 lines)
Duplication per Extension
yaml93% (2,068 lines)
py2% (30 lines)
Duplication per Component (primary)
deployment97% (1,988 lines)
source45% (80 lines)
source/sam_spot_bot_create_job2% (23 lines)
source/sam_spot_bot_api_receiver12% (7 lines)
ROOT0% (0 lines)
source/sam_spot_bot_function0% (0 lines)
source/sam_spot_bot_get_job_status0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 115 duplicates...
Size#FoldersFilesLinesCode
242 x 2 deployment
deployment
spot-bot-vpc-china.yaml
spot-bot-vpc-global.yaml
1:265 (78%)
1:265 (79%)
view
173 x 2 deployment
deployment
spot-bot-china.yaml
spot-bot-global.yaml
128:318 (24%)
127:316 (24%)
view
135 x 2 deployment
deployment
spot-bot-china.yaml
spot-bot-global.yaml
630:767 (18%)
634:771 (18%)
view
110 x 2 deployment
deployment
spot-bot-china.yaml
spot-bot-global.yaml
3:125 (15%)
3:125 (15%)
view
63 x 2 deployment
deployment
spot-bot-china.yaml
spot-bot-global.yaml
452:516 (8%)
456:520 (8%)
view
53 x 2 deployment
deployment
spot-bot-vpc-china.yaml
spot-bot-vpc-global.yaml
281:334 (17%)
275:328 (17%)
view
47 x 2 deployment
deployment
spot-bot-china.yaml
spot-bot-global.yaml
403:450 (6%)
407:454 (6%)
view
37 x 2 deployment
deployment
spot-bot-china.yaml
spot-bot-global.yaml
363:399 (5%)
367:403 (5%)
view
35 x 2 deployment
deployment
spot-bot-china.yaml
spot-bot-global.yaml
585:619 (4%)
589:623 (4%)
view
28 x 2 deployment
deployment
spot-bot-china.yaml
spot-bot-global.yaml
200:228 (3%)
169:196 (3%)
view
28 x 2 deployment
deployment
spot-bot-china.yaml
spot-bot-china.yaml
171:198 (3%)
200:228 (3%)
view
28 x 2 deployment
deployment
spot-bot-global.yaml
spot-bot-global.yaml
169:196 (3%)
198:226 (3%)
view
28 x 2 deployment
deployment
spot-bot-china.yaml
spot-bot-global.yaml
171:198 (3%)
198:226 (3%)
view
26 x 2 deployment
deployment
spot-bot-china.yaml
spot-bot-global.yaml
320:346 (3%)
318:344 (3%)
view
18 x 2 deployment
deployment
spot-bot-china.yaml
spot-bot-global.yaml
563:582 (2%)
567:586 (2%)
view
14 x 2 deployment
deployment
spot-bot-china.yaml
spot-bot-vpc-global.yaml
42:57 (1%)
9:23 (4%)
view
14 x 2 deployment
deployment
spot-bot-global.yaml
spot-bot-vpc-china.yaml
42:57 (1%)
9:23 (4%)
view
14 x 2 deployment
deployment
spot-bot-global.yaml
spot-bot-vpc-global.yaml
42:57 (1%)
9:23 (4%)
view
14 x 2 deployment
deployment
spot-bot-china.yaml
spot-bot-vpc-china.yaml
42:57 (1%)
9:23 (4%)
view
13 x 2 deployment
deployment
spot-bot-china.yaml
spot-bot-global.yaml
200:212 (1%)
135:147 (1%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
7 x 2 source/sam_spot_bot_create_job
source/sam_spot_bot_api_receiver
app.py
app.py
0:0 
0:0 
view