aws-samples / amazon-comprehend-medical-fhir-integration
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
  • 13% duplication:
    • 3,128 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 420 duplicated lines
  • 61 duplicates
system13% (420 lines)
Duplication per Extension
java11% (308 lines)
yaml34% (112 lines)
Duplication per Component (primary)
src/com/amazonaws/lab11% (308 lines)
resources31% (112 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 61 duplicates...
Size#FoldersFilesLinesCode
19 x 2 resources
resources
FHIR-CM-Integration.yaml
FHIR-CM-Integration.yaml
227:247 (5%)
257:277 (5%)
view
18 x 2 src/com/amazonaws/lab
src/com/amazonaws/lab
HL7DataHandler.java
HL7DataHandler.java
81:104 (14%)
152:174 (14%)
view
16 x 2 resources
resources
FHIR-CM-Integration.yaml
FHIR-CM-Integration.yaml
257:274 (4%)
283:298 (4%)
view
16 x 2 resources
resources
FHIR-CM-Integration.yaml
FHIR-CM-Integration.yaml
227:244 (4%)
283:298 (4%)
view
13 x 2 src/com/amazonaws/lab
src/com/amazonaws/lab
CMUtil.java
SendToCMUtil.java
26:44 (<1%)
18:36 (54%)
view
12 x 2 resources
resources
FHIR-CM-Integration.yaml
FHIR-CM-Integration.yaml
257:269 (3%)
312:323 (3%)
view
12 x 2 resources
resources
FHIR-CM-Integration.yaml
FHIR-CM-Integration.yaml
283:294 (3%)
312:323 (3%)
view
12 x 2 resources
resources
FHIR-CM-Integration.yaml
FHIR-CM-Integration.yaml
227:239 (3%)
312:323 (3%)
view
10 x 2 src/com/amazonaws/lab
src/com/amazonaws/lab
CMUtil.java
SendToCMUtil.java
2355:2368 (<1%)
20:33 (41%)
view
10 x 2 src/com/amazonaws/lab
src/com/amazonaws/lab
CMUtil.java
CMUtil.java
2309:2322 (<1%)
2355:2368 (<1%)
view
10 x 2 src/com/amazonaws/lab
src/com/amazonaws/lab
CMUtil.java
SendToCMUtil.java
2309:2322 (<1%)
20:33 (41%)
view
10 x 2 src/com/amazonaws/lab
src/com/amazonaws/lab
CMUtil.java
CMUtil.java
28:41 (<1%)
2309:2322 (<1%)
view
10 x 2 src/com/amazonaws/lab
src/com/amazonaws/lab
CMUtil.java
CMUtil.java
28:41 (<1%)
2355:2368 (<1%)
view
9 x 2 resources
resources
FHIR-CM-Integration.yaml
FHIR-CM-Integration.yaml
169:178 (2%)
257:266 (2%)
view
9 x 2 resources
resources
FHIR-CM-Integration.yaml
FHIR-CM-Integration.yaml
169:178 (2%)
283:291 (2%)
view
9 x 2 src/com/amazonaws/lab
src/com/amazonaws/lab
FHIRDataHandler.java
FHIRDataHandler.java
106:118 (13%)
125:135 (13%)
view
9 x 2 src/com/amazonaws/lab
src/com/amazonaws/lab
FHIRDataHandler.java
HL7DataHandler.java
56:66 (13%)
119:130 (7%)
view
9 x 2 resources
resources
FHIR-CM-Integration.yaml
FHIR-CM-Integration.yaml
169:178 (2%)
227:236 (2%)
view
9 x 2 resources
resources
FHIR-CM-Integration.yaml
FHIR-CM-Integration.yaml
169:178 (2%)
312:320 (2%)
view
8 x 2 src/com/amazonaws/lab
src/com/amazonaws/lab
FHIRDataHandler.java
HL7DataHandler.java
82:94 (11%)
213:225 (6%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
9 x 2 src/com/amazonaws/lab
src/com/amazonaws/lab
FHIRDataHandler.java
HL7DataHandler.java
82:95 
213:226 
view