aws-samples / research-pacs-on-aws
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:
    • 4,877 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 878 duplicated lines
  • 151 duplicates
system18% (878 lines)
Duplication per Extension
yaml34% (718 lines)
py5% (132 lines)
Dockerfile46% (28 lines)
Duplication per Component (primary)
cfn-template34% (718 lines)
python/website-worker/research_pacs21% (48 lines)
python/de-identifier/research_pacs5% (41 lines)
dockerfile29% (28 lines)
python/change-pooler/research_pacs19% (16 lines)
python/website/research_pacs1% (15 lines)
python/shared/research_pacs1% (12 lines)
python/website0% (0 lines)
python/website-worker0% (0 lines)
python/change-pooler0% (0 lines)
python/shared0% (0 lines)
python/de-identifier0% (0 lines)

Duplication Between Components (50+ lines)

G python/de-identifier/research_pacs python/de-identifier/research_pacs python/website-worker/research_pacs python/website-worker/research_pacs python/de-identifier/research_pacs--python/website-worker/research_pacs 82

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 151 duplicates...
Size#FoldersFilesLinesCode
26 x 2 python/de-identifier/research_pacs/de_identifier
python/website-worker/research_pacs/website_worker
main.py
main.py
42:76 (12%)
42:76 (12%)
view
19 x 2 cfn-template
cfn-template
template.yaml
template.yaml
1461:1479 (<1%)
1768:1786 (<1%)
view
18 x 2 cfn-template
cfn-template
template.yaml
template.yaml
1645:1662 (<1%)
2111:2128 (<1%)
view
18 x 2 cfn-template
cfn-template
template.yaml
template.yaml
1903:1920 (<1%)
2136:2153 (<1%)
view
18 x 2 cfn-template
cfn-template
template.yaml
template.yaml
1620:1637 (<1%)
1729:1746 (<1%)
view
17 x 2 cfn-template
cfn-template
template.yaml
template.yaml
2018:2034 (<1%)
2136:2152 (<1%)
view
17 x 2 cfn-template
cfn-template
template.yaml
template.yaml
1943:1959 (<1%)
2176:2192 (<1%)
view
17 x 2 cfn-template
cfn-template
template.yaml
template.yaml
1459:1475 (<1%)
1643:1659 (<1%)
view
17 x 2 cfn-template
cfn-template
template.yaml
template.yaml
1459:1475 (<1%)
1555:1571 (<1%)
view
17 x 2 cfn-template
cfn-template
template.yaml
template.yaml
1903:1919 (<1%)
2018:2034 (<1%)
view
17 x 2 cfn-template
cfn-template
template.yaml
template.yaml
1555:1571 (<1%)
1643:1659 (<1%)
view
16 x 2 cfn-template
cfn-template
template.yaml
template.yaml
1985:2000 (<1%)
2110:2125 (<1%)
view
16 x 2 cfn-template
cfn-template
template.yaml
template.yaml
1767:1782 (<1%)
1985:2000 (<1%)
view
16 x 2 cfn-template
cfn-template
template.yaml
template.yaml
1767:1782 (<1%)
2110:2125 (<1%)
view
16 x 2 cfn-template
cfn-template
template.yaml
template.yaml
1767:1782 (<1%)
1880:1895 (<1%)
view
16 x 2 cfn-template
cfn-template
template.yaml
template.yaml
1880:1895 (<1%)
1985:2000 (<1%)
view
16 x 2 cfn-template
cfn-template
template.yaml
template.yaml
1880:1895 (<1%)
2110:2125 (<1%)
view
15 x 2 cfn-template
cfn-template
template.yaml
template.yaml
1461:1475 (<1%)
2111:2125 (<1%)
view
15 x 2 cfn-template
cfn-template
template.yaml
template.yaml
1461:1475 (<1%)
1986:2000 (<1%)
view
15 x 2 cfn-template
cfn-template
template.yaml
template.yaml
1645:1659 (<1%)
1986:2000 (<1%)
view