aws-samples / amazon-neptune-samples
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
  • 86% duplication:
    • 31,013 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 26,981 duplicated lines
  • 967 duplicates
system86% (26,981 lines)
Duplication per Extension
html98% (26,212 lines)
yaml54% (582 lines)
ts16% (112 lines)
java5% (63 lines)
py1% (12 lines)
Duplication per Component (primary)
gremlin/property-graph-data-modelling99% (26,192 lines)
gremlin/chatbot-full-stack-application28% (360 lines)
amazon-neptune-and-aws-cdk-for-amundsen/lib13% (112 lines)
neptune-sagemaker/cloudformation-templates100% (111 lines)
neptune-workbench-cloudformation100% (111 lines)
gremlin/neptune-social-media-utils8% (63 lines)
gremlin/visjs-neptune6% (20 lines)
gremlin/glue-neptune4% (12 lines)
amazon-neptune-and-aws-cdk-for-amundsen0% (0 lines)
neptune-sagemaker/lambda0% (0 lines)
neptune-sagemaker/notebooks0% (0 lines)
gremlin/gremlin-java-client-demo0% (0 lines)
gremlin/neptune-streams0% (0 lines)

Duplication Between Components (50+ lines)

G neptune-sagemaker/cloudformation-templates neptune-sagemaker/cloudformation-templates neptune-workbench-cloudformation neptune-workbench-cloudformation neptune-sagemaker/cloudformation-templates--neptune-workbench-cloudformation 222

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 967 duplicates...
Size#FoldersFilesLinesCode
13085 x 2 gremlin/property-graph-data-modelling/html
gremlin/property-graph-data-modelling/html
00-introduction.html
data-model-1.html
7:13118 (99%)
7:13118 (98%)
view
111 x 2 neptune-sagemaker/cloudf...lates/neptune-workbench
neptune-workbench-cloudformation
neptune-workbench-stack.yaml
neptune-workbench-stack.yaml
1:121 (100%)
1:121 (100%)
view
29 x 2 amazon-neptune-and-aws-cdk-for-amundsen/lib
amazon-neptune-and-aws-cdk-for-amundsen/lib
amundsen-stack.ts
databuilder-stack.ts
216:247 (9%)
59:90 (27%)
view
23 x 2 gremlin/chatbot-full-sta...plication/cfn-templates
gremlin/chatbot-full-sta...plication/cfn-templates
chatbot.yaml
chatbot.yaml
282:304 (4%)
318:340 (4%)
view
22 x 2 gremlin/chatbot-full-sta...plication/cfn-templates
gremlin/chatbot-full-sta...plication/cfn-templates
chatbot.yaml
chatbot.yaml
229:250 (4%)
259:280 (4%)
view
21 x 2 gremlin/property-graph-data-modelling/html
gremlin/property-graph-data-modelling/html
00-introduction.html
00-introduction.html
11580:11600 (<1%)
11687:11707 (<1%)
view
21 x 2 gremlin/property-graph-data-modelling/html
gremlin/property-graph-data-modelling/html
00-introduction.html
data-model-1.html
11580:11600 (<1%)
11687:11707 (<1%)
view
21 x 2 gremlin/property-graph-data-modelling/html
gremlin/property-graph-data-modelling/html
data-model-1.html
data-model-1.html
11580:11600 (<1%)
11687:11707 (<1%)
view
21 x 2 gremlin/property-graph-data-modelling/html
gremlin/property-graph-data-modelling/html
00-introduction.html
data-model-1.html
11687:11707 (<1%)
11580:11600 (<1%)
view
17 x 2 gremlin/chatbot-full-sta...plication/cfn-templates
gremlin/chatbot-full-sta...plication/cfn-templates
blog-parser.yaml
lexbot-deploy.yaml
9:26 (14%)
5:22 (15%)
view
16 x 2 gremlin/property-graph-data-modelling/html
gremlin/property-graph-data-modelling/html
00-introduction.html
data-model-1.html
11687:11702 (<1%)
2553:2568 (<1%)
view
16 x 2 gremlin/property-graph-data-modelling/html
gremlin/property-graph-data-modelling/html
data-model-1.html
data-model-1.html
10604:10619 (<1%)
11299:11314 (<1%)
view
16 x 2 gremlin/property-graph-data-modelling/html
gremlin/property-graph-data-modelling/html
data-model-1.html
data-model-1.html
10603:10618 (<1%)
10929:10944 (<1%)
view
16 x 2 gremlin/property-graph-data-modelling/html
gremlin/property-graph-data-modelling/html
00-introduction.html
data-model-1.html
10929:10944 (<1%)
10603:10618 (<1%)
view
16 x 2 gremlin/property-graph-data-modelling/html
gremlin/property-graph-data-modelling/html
00-introduction.html
data-model-1.html
10604:10619 (<1%)
11299:11314 (<1%)
view
16 x 2 gremlin/property-graph-data-modelling/html
gremlin/property-graph-data-modelling/html
00-introduction.html
data-model-1.html
11299:11314 (<1%)
10604:10619 (<1%)
view
16 x 2 gremlin/property-graph-data-modelling/html
gremlin/property-graph-data-modelling/html
00-introduction.html
00-introduction.html
10604:10619 (<1%)
11299:11314 (<1%)
view
16 x 2 gremlin/property-graph-data-modelling/html
gremlin/property-graph-data-modelling/html
data-model-1.html
data-model-1.html
2553:2568 (<1%)
11687:11702 (<1%)
view
16 x 2 gremlin/property-graph-data-modelling/html
gremlin/property-graph-data-modelling/html
data-model-1.html
data-model-1.html
2553:2568 (<1%)
11580:11595 (<1%)
view
16 x 2 gremlin/property-graph-data-modelling/html
gremlin/property-graph-data-modelling/html
00-introduction.html
00-introduction.html
10603:10618 (<1%)
10929:10944 (<1%)
view