aws / amazon-braket-containers
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
  • 9% duplication:
    • 1,064 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 99 duplicated lines
  • 6 duplicates
system9% (99 lines)
Duplication per Extension
yml50% (83 lines)
py1% (16 lines)
Duplication per Component (primary)
tensorflow71% (23 lines)
pytorch71% (23 lines)
ROOT43% (22 lines)
src1% (16 lines)
base48% (15 lines)
pytorch/jobs/docker/artifacts0% (0 lines)
base/jobs/docker/artifacts0% (0 lines)
tensorflow/jobs/docker/artifacts0% (0 lines)
Longest Duplicates
The list of 6 longest duplicates.
See data for all 6 duplicates...
Size#FoldersFilesLinesCode
15 x 2 pytorch
tensorflow
buildspec.yml
buildspec.yml
7:23 (46%)
7:23 (46%)
view
15 x 2 base
tensorflow
buildspec.yml
buildspec.yml
6:22 (48%)
7:23 (46%)
view
15 x 2 base
pytorch
buildspec.yml
buildspec.yml
6:22 (48%)
7:23 (46%)
view
11 x 2 ROOT
ROOT
buildspec.yml
testspec.yml
1:12 (40%)
1:11 (45%)
view
8 x 2 src
src
image.py
image.py
147:157 (7%)
180:189 (7%)
view
8 x 2 pytorch
tensorflow
buildspec.yml
buildspec.yml
28:35 (25%)
28:35 (25%)
view