aws / aws-neuron-sdk
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
  • 19% duplication:
    • 2,616 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 502 duplicated lines
  • 11 duplicates
system19% (502 lines)
Duplication per Extension
py19% (444 lines)
yml16% (58 lines)
Duplication per Component (primary)
src/neuron-gatherinfo44% (396 lines)
src/k816% (58 lines)
_ext5% (36 lines)
src/helperscripts1% (12 lines)
static0% (0 lines)
neuron-guide/neuron-frameworks/tensorflow-neuron/tutorials/bert_demo0% (0 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 11 longest duplicates.
See data for all 11 duplicates...
Size#FoldersFilesLinesCode
185 x 2 src/neuron-gatherinfo
src/neuron-gatherinfo
mx_neuron_check_model.py
tf_neuron_check_model.py
13:217 (97%)
13:216 (97%)
view
29 x 2 src/k8
src/k8
k8s-neuron-device-plugin-rbac.yml
k8s-neuron-scheduler.yml
7:35 (50%)
7:35 (25%)
view
12 x 2 _ext
_ext
symlink.py
symlink.py
7:19 (35%)
24:38 (35%)
view
7 x 2 src/neuron-gatherinfo
src/neuron-gatherinfo
neuron-gatherinfo.py
neuron-gatherinfo.py
358:367 (1%)
404:413 (1%)
view
6 x 2 src/k8
src/k8
k8s-neuron-scheduler.yml
k8s-neuron-scheduler.yml
13:18 (5%)
30:35 (5%)
view
6 x 2 src/helperscripts
src/helperscripts
release-manifest-def.py
release-manifest-def.py
40:45 (6%)
101:106 (6%)
view
6 x 2 src/neuron-gatherinfo
src/neuron-gatherinfo
neuron-gatherinfo.py
neuron-gatherinfo.py
387:392 (1%)
545:550 (1%)
view
6 x 2 _ext
_ext
df_tables.py
sphinx_plotly_directive.py
48:53 (16%)
476:481 (1%)
view
6 x 2 src/k8
src/k8
k8s-neuron-device-plugin-rbac.yml
k8s-neuron-device-plugin-rbac.yml
13:18 (10%)
30:35 (10%)
view
6 x 2 src/k8
src/k8
k8s-neuron-device-plugin-rbac.yml
k8s-neuron-scheduler.yml
30:35 (10%)
13:18 (5%)
view
6 x 2 src/k8
src/k8
k8s-neuron-device-plugin-rbac.yml
k8s-neuron-scheduler.yml
13:18 (10%)
30:35 (5%)
view
Duplicated Units
The list of top 11 duplicated units.
See data for all 11 unit duplicates...
Size#FoldersFilesLinesCode
33 x 2 src/neuron-gatherinfo
src/neuron-gatherinfo
tf_neuron_check_model.py
mx_neuron_check_model.py
0:0 
0:0 
view
19 x 2 src/neuron-gatherinfo
src/neuron-gatherinfo
tf_neuron_check_model.py
mx_neuron_check_model.py
0:0 
0:0 
view
17 x 2 src/neuron-gatherinfo
src/neuron-gatherinfo
tf_neuron_check_model.py
mx_neuron_check_model.py
0:0 
0:0 
view
15 x 2 src/neuron-gatherinfo
src/neuron-gatherinfo
tf_neuron_check_model.py
mx_neuron_check_model.py
0:0 
0:0 
view
14 x 2 src/neuron-gatherinfo
src/neuron-gatherinfo
tf_neuron_check_model.py
mx_neuron_check_model.py
0:0 
0:0 
view
13 x 2 src/neuron-gatherinfo
src/neuron-gatherinfo
tf_neuron_check_model.py
mx_neuron_check_model.py
0:0 
0:0 
view
8 x 2 src/neuron-gatherinfo
src/neuron-gatherinfo
tf_neuron_check_model.py
mx_neuron_check_model.py
0:0 
0:0 
view
8 x 2 src/neuron-gatherinfo
src/neuron-gatherinfo
tf_neuron_check_model.py
mx_neuron_check_model.py
0:0 
0:0 
view
7 x 2 src/neuron-gatherinfo
src/neuron-gatherinfo
tf_neuron_check_model.py
mx_neuron_check_model.py
0:0 
0:0 
view
7 x 2 src/neuron-gatherinfo
src/neuron-gatherinfo
tf_neuron_check_model.py
mx_neuron_check_model.py
0:0 
0:0 
view
7 x 2 src/neuron-gatherinfo
src/neuron-gatherinfo
tf_neuron_check_model.py
mx_neuron_check_model.py
0:0 
0:0 
view