aws-samples / flink-stream-processing-refarch
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,322 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 198 duplicated lines
  • 17 duplicates
system14% (198 lines)
Duplication per Extension
yml26% (198 lines)
Duplication per Component (primary)
cfn-templates26% (198 lines)
flink-taxi-stream-processor/src/main/java/com/amazonaws/flink/refarch0% (0 lines)
flink-taxi-stream-processor/src/main/java/com/amazonaws/flink/refarch/events/kinesis0% (0 lines)
flink-taxi-stream-processor/src/main/java/com/amazonaws/flink/refarch/events0% (0 lines)
flink-taxi-stream-processor/src/main/java/com/amazonaws/flink/refarch/events/es0% (0 lines)
flink-taxi-stream-processor/src/main/java/com/amazonaws/flink/refarch/utils0% (0 lines)
kinesis-taxi-stream-producer/src/main/java/com/amazonaws/flink/refarch0% (0 lines)
kinesis-taxi-stream-producer/src/main/java/com/amazonaws/flink/refarch/events0% (0 lines)
kinesis-taxi-stream-producer/src/main/java/com/amazonaws/flink/refarch/utils0% (0 lines)
Longest Duplicates
The list of 17 longest duplicates.
See data for all 17 duplicates...
Size#FoldersFilesLinesCode
16 x 2 cfn-templates
cfn-templates
flink-refarch-build-artifacts.yml
flink-refarch-build-artifacts.yml
133:149 (5%)
196:212 (5%)
view
14 x 2 cfn-templates
cfn-templates
flink-refarch-build-artifacts.yml
flink-refarch-build-artifacts.yml
167:181 (4%)
196:210 (4%)
view
14 x 2 cfn-templates
cfn-templates
flink-refarch-build-artifacts.yml
flink-refarch-build-artifacts.yml
133:147 (4%)
167:181 (4%)
view
12 x 2 cfn-templates
cfn-templates
flink-refarch-infrastructure.yml
flink-refarch-infrastructure.yml
173:184 (2%)
195:206 (2%)
view
8 x 2 cfn-templates
cfn-templates
flink-refarch-build-artifacts.yml
flink-refarch-build-artifacts.yml
246:253 (2%)
284:291 (2%)
view
8 x 2 cfn-templates
cfn-templates
flink-refarch-infrastructure.yml
flink-refarch-infrastructure.yml
413:420 (1%)
438:445 (1%)
view
7 x 2 cfn-templates
cfn-templates
flink-refarch-infrastructure.yml
flink-refarch-infrastructure.yml
397:403 (1%)
422:428 (1%)
view
7 x 2 cfn-templates
cfn-templates
flink-refarch-build-artifacts.yml
flink-refarch-build-artifacts.yml
238:244 (2%)
276:282 (2%)
view
6 x 2 cfn-templates
cfn-templates
flink-refarch-build-artifacts.yml
flink-refarch-build-artifacts.yml
35:40 (1%)
47:52 (1%)
view
6 x 2 cfn-templates
cfn-templates
flink-refarch-infrastructure.yml
flink-refarch-infrastructure.yml
394:399 (1%)
445:450 (1%)
view
6 x 2 cfn-templates
cfn-templates
flink-refarch-build-artifacts.yml
flink-refarch-build-artifacts.yml
65:70 (1%)
91:96 (1%)
view
6 x 2 cfn-templates
cfn-templates
flink-refarch-infrastructure.yml
flink-refarch-infrastructure.yml
405:410 (1%)
430:435 (1%)
view
6 x 2 cfn-templates
cfn-templates
flink-refarch-infrastructure.yml
flink-refarch-infrastructure.yml
382:387 (1%)
405:410 (1%)
view
6 x 2 cfn-templates
cfn-templates
flink-refarch-build-artifacts.yml
flink-refarch-build-artifacts.yml
78:83 (1%)
91:96 (1%)
view
6 x 2 cfn-templates
cfn-templates
flink-refarch-build-artifacts.yml
flink-refarch-build-artifacts.yml
65:70 (1%)
78:83 (1%)
view
6 x 2 cfn-templates
cfn-templates
flink-refarch-infrastructure.yml
flink-refarch-infrastructure.yml
123:128 (1%)
223:228 (1%)
view
6 x 2 cfn-templates
cfn-templates
flink-refarch-infrastructure.yml
flink-refarch-infrastructure.yml
382:387 (1%)
430:435 (1%)
view