aws-samples / annotate-medical-images-in-dicom-server-and-build-ml-models-on-amazon-sagemaker
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
  • 4% duplication:
    • 2,424 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 112 duplicated lines
  • 10 duplicates
system4% (112 lines)
Duplication per Extension
yaml11% (98 lines)
html4% (14 lines)
Duplication per Component (primary)
sagemaker-groundtruth8% (52 lines)
DICOM-WSI/src/resources35% (31 lines)
nginx-orthanc-plugins-container5% (22 lines)
DICOM-WSI/public22% (7 lines)
DICOM-WSI/src0% (0 lines)
DICOM-WSI/src/components0% (0 lines)
DICOM-WSI/src/components/styles0% (0 lines)
notebook/source0% (0 lines)

Duplication Between Components (50+ lines)

G DICOM-WSI/src/resources DICOM-WSI/src/resources sagemaker-groundtruth sagemaker-groundtruth DICOM-WSI/src/resources--sagemaker-groundtruth 62

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 10 longest duplicates.
See data for all 10 duplicates...
Size#FoldersFilesLinesCode
13 x 2 sagemaker-groundtruth
sagemaker-groundtruth
sagemaker_resources.yaml
sagemaker_resources.yaml
91:103 (3%)
106:118 (3%)
view
11 x 2 nginx-orthanc-plugins-container
nginx-orthanc-plugins-container
orthanc-ec2-cfn-tempalte.yaml
orthanc-ec2-cfn-tempalte.yaml
349:359 (2%)
363:373 (2%)
view
11 x 2 DICOM-WSI/src/resources
sagemaker-groundtruth
sagemaker_resources.yaml
sagemaker_resources.yaml
16:26 (29%)
68:78 (2%)
view
8 x 2 DICOM-WSI/src/resources
sagemaker-groundtruth
sagemaker_resources.yaml
sagemaker_resources.yaml
8:15 (21%)
58:65 (2%)
view
7 x 2 DICOM-WSI/src/resources
sagemaker-groundtruth
sagemaker_resources.yaml
sagemaker_resources.yaml
25:31 (18%)
83:89 (1%)
view
7 x 2 DICOM-WSI/public
DICOM-WSI/src/resources
index.html
template.liquid.html
32:38 (22%)
17:23 (14%)
view
6 x 2 DICOM-WSI/src/resources
sagemaker-groundtruth
sagemaker_resources.yaml
sagemaker_resources.yaml
18:23 (16%)
108:113 (1%)
view
6 x 2 sagemaker-groundtruth
sagemaker-groundtruth
sagemaker_resources.yaml
sagemaker_resources.yaml
70:75 (1%)
93:98 (1%)
view
6 x 2 DICOM-WSI/src/resources
sagemaker-groundtruth
sagemaker_resources.yaml
sagemaker_resources.yaml
18:23 (16%)
93:98 (1%)
view
6 x 2 sagemaker-groundtruth
sagemaker-groundtruth
sagemaker_resources.yaml
sagemaker_resources.yaml
70:75 (1%)
108:113 (1%)
view