aws / aws-parallelcluster-node
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
  • 4% duplication:
    • 2,185 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 104 duplicated lines
  • 8 duplicates
system4% (104 lines)
Duplication per Extension
py4% (104 lines)
Duplication per Component (primary)
src/slurm_plugin4% (74 lines)
src/common20% (30 lines)
src0% (0 lines)
src/common/schedulers0% (0 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 8 longest duplicates.
See data for all 8 duplicates...
Size#FoldersFilesLinesCode
9 x 2 src/common
src/common
utils.py
utils.py
86:94 (6%)
122:130 (6%)
view
7 x 2 src/slurm_plugin
src/slurm_plugin
instance_manager.py
instance_manager.py
263:269 (2%)
347:353 (2%)
view
6 x 2 src/slurm_plugin
src/slurm_plugin
clustermgtd.py
resume.py
153:160 (<1%)
43:50 (4%)
view
6 x 2 src/common
src/common
utils.py
utils.py
78:83 (4%)
116:121 (4%)
view
6 x 2 src/slurm_plugin
src/slurm_plugin
slurm_resources.py
slurm_resources.py
51:58 (1%)
252:259 (1%)
view
6 x 2 src/slurm_plugin
src/slurm_plugin
slurm_resources.py
slurm_resources.py
344:350 (1%)
411:417 (1%)
view
6 x 2 src/slurm_plugin
src/slurm_plugin
resume.py
suspend.py
56:61 (4%)
33:38 (9%)
view
6 x 2 src/slurm_plugin
src/slurm_plugin
slurm_resources.py
slurm_resources.py
288:293 (1%)
301:306 (1%)
view