awslabs / aws-htc-grid
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:
    • 9,048 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,629 duplicated lines
  • 177 duplicates
system18% (1,629 lines)
Duplication per Extension
yaml32% (903 lines)
tf15% (522 lines)
tpl38% (112 lines)
py3% (92 lines)
Duplication per Component (primary)
deployment/grid/terraform21% (1,192 lines)
source/control_plane/openapi92% (284 lines)
source/client/python5% (76 lines)
deployment/grid/charts19% (49 lines)
source/control_plane/python3% (16 lines)
deployment/dev_environment_cloud9/cfn3% (12 lines)
source/compute_plane/python0% (0 lines)
ROOT0% (0 lines)
deployment/image_repository/terraform0% (0 lines)
deployment/grid/scripts0% (0 lines)
deployment/init_grid/cloudformation0% (0 lines)

Duplication Between Components (50+ lines)

G deployment/grid/charts deployment/grid/charts deployment/grid/terraform deployment/grid/terraform deployment/grid/charts--deployment/grid/terraform 164

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 177 duplicates...
Size#FoldersFilesLinesCode
49 x 2 source/control_plane/openapi/private
source/control_plane/openapi/public
api_definition.yaml
api_definition.yaml
106:154 (32%)
111:159 (31%)
view
42 x 2 deployment/grid/terrafor...ndler/v1.10.0/templates
deployment/grid/terrafor...ndler/v1.10.0/templates
daemonset.linux.yaml
daemonset.windows.yaml
135:176 (21%)
109:150 (25%)
view
33 x 2 deployment/grid/terrafor...ndler/v1.10.0/templates
deployment/grid/terrafor...ndler/v1.10.0/templates
daemonset.linux.yaml
daemonset.windows.yaml
94:126 (17%)
75:107 (19%)
view
28 x 2 source/control_plane/openapi/private
source/control_plane/openapi/public
api_definition.yaml
api_definition.yaml
9:36 (18%)
9:36 (17%)
view
27 x 2 source/control_plane/openapi/private
source/control_plane/openapi/public
api_definition.yaml
api_definition.yaml
66:92 (17%)
66:92 (17%)
view
27 x 2 source/control_plane/openapi/private
source/control_plane/openapi/public
api_definition.yaml
api_definition.yaml
38:64 (17%)
38:64 (17%)
view
21 x 2 deployment/grid/terrafor...ndler/v1.10.0/templates
deployment/grid/terrafor...ndler/v1.10.0/templates
daemonset.windows.yaml
deployment.yaml
78:98 (12%)
65:85 (12%)
view
21 x 2 deployment/grid/terrafor...ndler/v1.10.0/templates
deployment/grid/terrafor...ndler/v1.10.0/templates
daemonset.linux.yaml
deployment.yaml
97:117 (10%)
65:85 (12%)
view
17 x 2 deployment/grid/terrafor...ndler/v1.10.0/templates
deployment/grid/terrafor...ndler/v1.10.0/templates
daemonset.linux.yaml
deployment.yaml
120:136 (8%)
86:102 (10%)
view
17 x 2 deployment/grid/terraform/control_plane
deployment/grid/terraform/control_plane
lambda.tf
lambda.tf
90:106 (4%)
154:170 (4%)
view
17 x 2 deployment/grid/terraform/control_plane
deployment/grid/terraform/control_plane
lambda.tf
lambda.tf
90:106 (4%)
214:230 (4%)
view
17 x 2 deployment/grid/terraform/control_plane
deployment/grid/terraform/control_plane
lambda.tf
lambda.tf
154:170 (4%)
280:296 (4%)
view
17 x 2 deployment/grid/terraform/control_plane
deployment/grid/terraform/control_plane
lambda.tf
lambda.tf
214:230 (4%)
280:296 (4%)
view
17 x 2 deployment/grid/terraform/control_plane
deployment/grid/terraform/control_plane
lambda.tf
lambda.tf
90:106 (4%)
280:296 (4%)
view
17 x 2 deployment/grid/terraform/control_plane
deployment/grid/terraform/control_plane
lambda.tf
lambda.tf
154:170 (4%)
214:230 (4%)
view
16 x 2 deployment/grid/terraform/compute_plane
deployment/grid/terraform/control_plane
lambda_scaling.tf
lambda.tf
9:24 (12%)
29:44 (3%)
view
16 x 2 deployment/grid/terraform/compute_plane
deployment/grid/terraform/control_plane
lambda_scaling.tf
lambda.tf
9:24 (12%)
48:63 (3%)
view
16 x 2 deployment/grid/terraform/compute_plane
deployment/grid/terraform/control_plane
lambda_scaling.tf
lambda.tf
9:24 (12%)
68:83 (3%)
view
16 x 2 deployment/grid/terraform/compute_plane
deployment/grid/terraform/control_plane
lambda_drainer.tf
lambda.tf
38:53 (13%)
68:83 (3%)
view
16 x 2 deployment/grid/terraform/compute_plane
deployment/grid/terraform/control_plane
lambda_drainer.tf
lambda.tf
38:53 (13%)
48:63 (3%)
view