aws-samples / amazon-eks-kubeflow-multitenancy
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
  • 14% duplication:
    • 1,392 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 201 duplicated lines
  • 126 duplicates
system14% (201 lines)
Duplication per Extension
tf19% (187 lines)
py4% (14 lines)
Duplication per Component (primary)
ROOT16% (187 lines)
lambdas/kf_profile_manager4% (14 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 126 duplicates...
Size#FoldersFilesLinesCode
10 x 2 ROOT
ROOT
cognito.tf
cognito.tf
96:105 (2%)
191:200 (2%)
view
10 x 2 ROOT
ROOT
cognito.tf
cognito.tf
129:138 (2%)
224:233 (2%)
view
10 x 2 ROOT
ROOT
cognito.tf
cognito.tf
191:200 (2%)
224:233 (2%)
view
10 x 2 ROOT
ROOT
cognito.tf
cognito.tf
96:105 (2%)
107:116 (2%)
view
10 x 2 ROOT
ROOT
cognito.tf
cognito.tf
85:94 (2%)
224:233 (2%)
view
10 x 2 ROOT
ROOT
cognito.tf
cognito.tf
140:149 (2%)
191:200 (2%)
view
10 x 2 ROOT
ROOT
cognito.tf
cognito.tf
140:149 (2%)
162:171 (2%)
view
10 x 2 ROOT
ROOT
cognito.tf
cognito.tf
96:105 (2%)
162:171 (2%)
view
10 x 2 ROOT
ROOT
cognito.tf
cognito.tf
85:94 (2%)
118:127 (2%)
view
10 x 2 ROOT
ROOT
cognito.tf
cognito.tf
85:94 (2%)
235:244 (2%)
view
10 x 2 ROOT
ROOT
cognito.tf
cognito.tf
129:138 (2%)
235:244 (2%)
view
10 x 2 ROOT
ROOT
cognito.tf
cognito.tf
85:94 (2%)
129:138 (2%)
view
10 x 2 ROOT
ROOT
cognito.tf
cognito.tf
85:94 (2%)
140:149 (2%)
view
10 x 2 ROOT
ROOT
cognito.tf
cognito.tf
129:138 (2%)
140:149 (2%)
view
10 x 2 ROOT
ROOT
cognito.tf
cognito.tf
85:94 (2%)
151:160 (2%)
view
10 x 2 ROOT
ROOT
cognito.tf
cognito.tf
129:138 (2%)
151:160 (2%)
view
10 x 2 ROOT
ROOT
cognito.tf
cognito.tf
85:94 (2%)
162:171 (2%)
view
10 x 2 ROOT
ROOT
cognito.tf
cognito.tf
96:105 (2%)
213:222 (2%)
view
10 x 2 ROOT
ROOT
cognito.tf
cognito.tf
129:138 (2%)
162:171 (2%)
view
10 x 2 ROOT
ROOT
cognito.tf
cognito.tf
140:149 (2%)
213:222 (2%)
view