aws / aws-parallelcluster-cookbook
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
  • 3% duplication:
    • 7,096 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 241 duplicated lines
  • 36 duplicates
system3% (241 lines)
Duplication per Extension
rb3% (173 lines)
py2% (36 lines)
erb2% (32 lines)
Duplication per Component (primary)
cookbooks/aws-parallelcluster-config4% (80 lines)
cookbooks/aws-parallelcluster-slurm3% (54 lines)
cookbooks/aws-parallelcluster-install3% (52 lines)
cookbooks/aws-parallelcluster-scheduler-plugin1% (16 lines)
cookbooks/aws-parallelcluster-awsbatch23% (16 lines)
ROOT61% (16 lines)
cookbooks/aws-parallelcluster-test1% (7 lines)
templates/default0% (0 lines)
spec/unit0% (0 lines)
recipes0% (0 lines)
attributes0% (0 lines)
libraries0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 36 duplicates...
Size#FoldersFilesLinesCode
16 x 2 cookbooks/aws-parallelcluster-install
ROOT
metadata.rb
metadata.rb
7:24 (80%)
7:24 (61%)
view
16 x 2 cookbooks/aws-parallelcluster-config
ROOT
metadata.rb
metadata.rb
7:24 (80%)
7:24 (61%)
view
16 x 2 cookbooks/aws-parallelcluster-install
cookbooks/aws-parallelcluster-slurm
metadata.rb
metadata.rb
7:24 (80%)
7:24 (80%)
view
16 x 2 cookbooks/aws-parallelcluster-config
cookbooks/aws-parallelcluster-slurm
metadata.rb
metadata.rb
7:24 (80%)
7:24 (80%)
view
16 x 2 cookbooks/aws-parallelcluster-awsbatch
cookbooks/aws-parallelcluster-scheduler-plugin
metadata.rb
metadata.rb
7:24 (80%)
7:24 (80%)
view
16 x 2 cookbooks/aws-parallelcluster-slurm
ROOT
metadata.rb
metadata.rb
7:24 (80%)
7:24 (61%)
view
16 x 2 cookbooks/aws-parallelcluster-config
cookbooks/aws-parallelcluster-install
metadata.rb
metadata.rb
7:24 (80%)
7:24 (80%)
view
15 x 2 cookbooks/aws-parallelcluster-scheduler-plugin
ROOT
metadata.rb
metadata.rb
8:24 (75%)
8:24 (57%)
view
15 x 2 cookbooks/aws-parallelcluster-awsbatch
cookbooks/aws-parallelcluster-config
metadata.rb
metadata.rb
8:24 (75%)
8:24 (75%)
view
15 x 2 cookbooks/aws-parallelcluster-config
cookbooks/aws-parallelcluster-scheduler-plugin
metadata.rb
metadata.rb
8:24 (75%)
8:24 (75%)
view
15 x 2 cookbooks/aws-parallelcluster-awsbatch
ROOT
metadata.rb
metadata.rb
8:24 (75%)
8:24 (57%)
view
15 x 2 cookbooks/aws-parallelcluster-awsbatch
cookbooks/aws-parallelcluster-install
metadata.rb
metadata.rb
8:24 (75%)
8:24 (75%)
view
15 x 2 cookbooks/aws-parallelcluster-install
cookbooks/aws-parallelcluster-scheduler-plugin
metadata.rb
metadata.rb
8:24 (75%)
8:24 (75%)
view
15 x 2 cookbooks/aws-parallelcluster-scheduler-plugin
cookbooks/aws-parallelcluster-slurm
metadata.rb
metadata.rb
8:24 (75%)
8:24 (75%)
view
15 x 2 cookbooks/aws-parallelcluster-awsbatch
cookbooks/aws-parallelcluster-slurm
metadata.rb
metadata.rb
8:24 (75%)
8:24 (75%)
view
10 x 2 cookbooks/aws-parallelcl.../default/ec2_udev_rules
cookbooks/aws-parallelcl.../default/ec2_udev_rules
attachVolume.py
ec2_dev_2_volid.py
51:63 (10%)
12:24 (16%)
view
10 x 2 cookbooks/aws-parallelcl...templates/default/munge
cookbooks/aws-parallelcl...templates/default/munge
munge-init.erb
munge-init.erb
260:270 (1%)
358:368 (1%)
view
8 x 2 cookbooks/aws-parallelcl.../default/ec2_udev_rules
cookbooks/aws-parallelcl.../default/ec2_udev_rules
attachVolume.py
ec2_dev_2_volid.py
117:126 (8%)
64:73 (13%)
view
7 x 2 cookbooks/aws-parallelcluster-install
cookbooks/aws-parallelcluster-test
metadata.rb
metadata.rb
7:14 (35%)
7:14 (63%)
view
7 x 2 cookbooks/aws-parallelcluster-test
ROOT
metadata.rb
metadata.rb
7:14 (63%)
7:14 (26%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
9 x 2 cookbooks/aws-parallelcl.../default/ec2_udev_rules
cookbooks/aws-parallelcl.../default/ec2_udev_rules
ec2_dev_2_volid.py
attachVolume.py
0:0 
0:0 
view