aws-samples / aws-batch-runtime-monitoring
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:
    • 1,898 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,181 duplicated lines
  • 1,011 duplicates
system62% (1,181 lines)
Duplication per Extension
yaml63% (1,107 lines)
py46% (74 lines)
Duplication per Component (primary)
ROOT63% (1,107 lines)
src/ECSRunTask/RunTaskToCW72% (34 lines)
src/BatchJobsStates/JobStatesToCW65% (34 lines)
src/ECSInstancesRegistration/MetricToCW13% (6 lines)
src/ASGMonitoring0% (0 lines)

Duplication Between Components (50+ lines)

G src/BatchJobsStates/JobStatesToCW src/BatchJobsStates/JobStatesToCW src/ECSRunTask/RunTaskToCW src/ECSRunTask/RunTaskToCW src/BatchJobsStates/JobStatesToCW--src/ECSRunTask/RunTaskToCW 68

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 20 longest duplicates.
See data for all 1,011 duplicates...
Size#FoldersFilesLinesCode
34 x 2 src/BatchJobsStates/JobStatesToCW
src/ECSRunTask/RunTaskToCW
app.py
app.py
31:75 (66%)
32:77 (73%)
view
16 x 2 ROOT
ROOT
template.yaml
template.yaml
1471:1486 (<1%)
1501:1516 (<1%)
view
16 x 2 ROOT
ROOT
template.yaml
template.yaml
1411:1426 (<1%)
1471:1486 (<1%)
view
16 x 2 ROOT
ROOT
template.yaml
template.yaml
1139:1154 (<1%)
1167:1182 (<1%)
view
16 x 2 ROOT
ROOT
template.yaml
template.yaml
1411:1426 (<1%)
1501:1516 (<1%)
view
16 x 2 ROOT
ROOT
template.yaml
template.yaml
1441:1456 (<1%)
1471:1486 (<1%)
view
16 x 2 ROOT
ROOT
template.yaml
template.yaml
1441:1456 (<1%)
1501:1516 (<1%)
view
16 x 2 ROOT
ROOT
template.yaml
template.yaml
367:382 (<1%)
479:494 (<1%)
view
16 x 2 ROOT
ROOT
template.yaml
template.yaml
1289:1304 (<1%)
1345:1360 (<1%)
view
16 x 2 ROOT
ROOT
template.yaml
template.yaml
1411:1426 (<1%)
1441:1456 (<1%)
view
16 x 2 ROOT
ROOT
template.yaml
template.yaml
395:410 (<1%)
451:466 (<1%)
view
15 x 2 ROOT
ROOT
template.yaml
template.yaml
1195:1209 (<1%)
1317:1331 (<1%)
view
15 x 2 ROOT
ROOT
template.yaml
template.yaml
1111:1125 (<1%)
1261:1275 (<1%)
view
15 x 2 ROOT
ROOT
template.yaml
template.yaml
1111:1125 (<1%)
1289:1303 (<1%)
view
15 x 2 ROOT
ROOT
template.yaml
template.yaml
423:437 (<1%)
451:465 (<1%)
view
15 x 2 ROOT
ROOT
template.yaml
template.yaml
423:437 (<1%)
479:493 (<1%)
view
15 x 2 ROOT
ROOT
template.yaml
template.yaml
1111:1125 (<1%)
1345:1359 (<1%)
view
15 x 2 ROOT
ROOT
template.yaml
template.yaml
1261:1275 (<1%)
1289:1303 (<1%)
view
15 x 2 ROOT
ROOT
template.yaml
template.yaml
1261:1275 (<1%)
1345:1359 (<1%)
view
15 x 2 ROOT
ROOT
template.yaml
template.yaml
367:381 (<1%)
451:465 (<1%)
view