awslabs / aws-streamer
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
  • 5% duplication:
    • 3,185 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 188 duplicated lines
  • 12 duplicates
system5% (188 lines)
Duplication per Extension
py4% (92 lines)
cpp15% (84 lines)
html3% (12 lines)
Duplication per Component (primary)
awstreamer/gst_plugins/mxnet8% (42 lines)
awstreamer/gst_plugins/cvmlfilter14% (42 lines)
awstreamer/gst_pipeline3% (36 lines)
awstreamer/gst_plugins/python10% (30 lines)
awstreamer/gst_configurer/templates3% (12 lines)
awstreamer/utils3% (12 lines)
awstreamer/gst_viewer33% (7 lines)
awstreamer/gst_configurer4% (7 lines)
ROOT0% (0 lines)
awstreamer0% (0 lines)
awstreamer/gst_viewer/templates0% (0 lines)
awstreamer/gst_metadata0% (0 lines)

Duplication Between Components (50+ lines)

G awstreamer/gst_plugins/cvmlfilter awstreamer/gst_plugins/cvmlfilter awstreamer/gst_plugins/mxnet awstreamer/gst_plugins/mxnet awstreamer/gst_plugins/cvmlfilter--awstreamer/gst_plugins/mxnet 84

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 12 longest duplicates.
See data for all 12 duplicates...
Size#FoldersFilesLinesCode
23 x 2 awstreamer/gst_plugins/cvmlfilter
awstreamer/gst_plugins/mxnet/src
gstcvmlfilter.cpp
gstmxnet.cpp
37:66 (13%)
33:62 (10%)
view
10 x 2 awstreamer/gst_plugins/python
awstreamer/gst_plugins/python
neodlr.py
osd.py
54:65 (7%)
47:58 (17%)
view
10 x 2 awstreamer/gst_plugins/cvmlfilter
awstreamer/gst_plugins/mxnet/src
gstcvmlfilter.cpp
gstmxnet.cpp
112:125 (6%)
114:127 (4%)
view
10 x 2 awstreamer/gst_plugins/python
awstreamer/gst_plugins/python
gaussian_blur.py
neodlr.py
57:70 (11%)
54:65 (7%)
view
10 x 2 awstreamer/gst_plugins/python
awstreamer/gst_plugins/python
gaussian_blur.py
osd.py
57:70 (11%)
47:58 (17%)
view
9 x 2 awstreamer/gst_plugins/cvmlfilter
awstreamer/gst_plugins/mxnet/src
gstcvmlfilter.cpp
gstmxnet.cpp
141:151 (5%)
159:169 (4%)
view
7 x 2 awstreamer/gst_configurer
awstreamer/gst_viewer
configurer_client.py
viewer_client.py
31:37 (4%)
11:17 (35%)
view
6 x 2 awstreamer/gst_pipeline
awstreamer/gst_pipeline
ds_pipeline.py
dvr_pipeline.py
22:30 (7%)
19:27 (15%)
view
6 x 2 awstreamer/gst_pipeline
awstreamer/gst_pipeline
cmd_pipeline.py
stream_client.py
28:33 (22%)
77:82 (3%)
view
6 x 2 awstreamer/gst_configurer/templates
awstreamer/gst_configurer/templates
index.html
index.html
277:282 (1%)
310:315 (1%)
view
6 x 2 awstreamer/gst_pipeline
awstreamer/gst_pipeline
cmd_pipeline.py
cv_pipeline.py
36:42 (22%)
98:104 (4%)
view
6 x 2 awstreamer/utils
awstreamer/utils
gst_hacks.py
gst_hacks.py
64:69 (10%)
92:97 (10%)
view
Duplicated Units
The list of top 2 duplicated units.
See data for all 2 unit duplicates...
Size#FoldersFilesLinesCode
19 x 2 awstreamer/gst_plugins/mxnet/src
awstreamer/gst_plugins/cvmlfilter
gstmxnet.cpp
gstcvmlfilter.cpp
33:54 
37:58 
view
7 x 2 awstreamer/gst_plugins/mxnet/src
awstreamer/gst_plugins/cvmlfilter
gstmxnet.cpp
gstcvmlfilter.cpp
56:63 
60:67 
view