neo-ai / neo-ai-dlr
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
  • 10% duplication:
    • 5,861 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 592 duplicated lines
  • 41 duplicates
system10% (592 lines)
Duplication per Extension
py15% (382 lines)
cc5% (131 lines)
h14% (79 lines)
Duplication per Component (primary)
container15% (274 lines)
install100% (108 lines)
src4% (102 lines)
include14% (79 lines)
sagemaker-neo-notebooks7% (29 lines)
cmake0% (0 lines)
aar0% (0 lines)
ROOT0% (0 lines)
python0% (0 lines)
doc0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 41 duplicates...
Size#FoldersFilesLinesCode
36 x 2 install/dlr-1.0-py2.py3-armv7l
install/dlr-1.0-py2.py3-opencl-x86_64
test-dlr.py
test-dlr.py
8:55 (100%)
8:55 (100%)
view
36 x 2 install/dlr-1.0-py2.py3-armv7l
install/dlr-1.0-py2.py3-cuda90-aarch64
test-dlr.py
test-dlr.py
8:55 (100%)
8:55 (100%)
view
36 x 2 install/dlr-1.0-py2.py3-cuda90-aarch64
install/dlr-1.0-py2.py3-opencl-x86_64
test-dlr.py
test-dlr.py
8:55 (100%)
8:55 (100%)
view
19 x 2 container
container
neo_template_image_classification.py
neo_template_mxnet_byom.py
78:99 (17%)
115:136 (11%)
view
18 x 2 container
container
neo_template_mxnet_byom.py
neo_template_xgboost.py
116:136 (11%)
32:52 (17%)
view
18 x 2 container
container
neo_template_image_classification.py
neo_template_xgboost.py
79:99 (16%)
32:52 (17%)
view
17 x 2 container
container
inf1_mx_entry.py
inf1_pyt_entry.py
19:39 (100%)
20:40 (100%)
view
17 x 2 include
include
dlr_pipeline.h
dlr_treelite.h
34:53 (51%)
66:85 (34%)
view
15 x 2 container
container
neo_template_image_classification.py
neo_template_mxnet_byom.py
50:65 (13%)
72:87 (9%)
view
11 x 2 sagemaker-neo-notebooks/edge/cpp-integration
sagemaker-neo-notebooks/edge/cpp-integration
tutorial.cc
tutorial.cc
86:98 (2%)
435:447 (2%)
view
11 x 2 src
src
dlr_relayvm.cc
dlr_tvm.cc
29:40 (3%)
31:42 (3%)
view
10 x 2 container/sample-inf1
container/sample-inf1
inf1_tf_handler.py
inf1_tf_io_handler.py
43:52 (28%)
30:39 (38%)
view
10 x 2 container
container
neo_template_mxnet_byom.py
neo_template_xgboost.py
204:214 (6%)
108:118 (9%)
view
10 x 2 src
src
dlr.cc
dlr.cc
87:97 (2%)
147:157 (2%)
view
10 x 2 container
container
neo_template_image_classification.py
neo_template_xgboost.py
129:139 (9%)
108:118 (9%)
view
10 x 2 container
container
neo_template_mxnet_byom.py
neo_template_xgboost.py
72:82 (6%)
20:30 (9%)
view
10 x 2 container
container
neo_template_image_classification.py
neo_template_mxnet_byom.py
129:139 (9%)
204:214 (6%)
view
10 x 2 container
container
neo_template_image_classification.py
neo_template_xgboost.py
50:60 (9%)
20:30 (9%)
view
9 x 2 include
include
dlr_pipeline.h
dlr_tvm.h
48:61 (27%)
72:85 (19%)
view
9 x 2 container/sagemaker-pyto...entia_serving_container
container/sample-inf1
default_inference_handler.py
inf1_pt.py
32:40 (36%)
28:36 (28%)
view
Duplicated Units
The list of top 2 duplicated units.
See data for all 2 unit duplicates...
Size#FoldersFilesLinesCode
28 x 3 install/dlr-1.0-py2.py3-cuda90-aarch64
install/dlr-1.0-py2.py3-opencl-x86_64
install/dlr-1.0-py2.py3-armv7l
test-dlr.py
test-dlr.py
test-dlr.py
0:0 
0:0 
0:0 
view
7 x 2 src
src
dlr_tvm.cc
dlr_relayvm.cc
457:465 
528:536 
view