apache / incubator-teaclave-sgx-sdk
Duplication

Places in code with 6 or more lines that are exactly the same.

Intro
Learn more...
Duplication Overall
system33% (33,488 lines)
dependency graphs: 2D graph | 3D graph | 3D graph (with duplicates)...
Duplication per Extension
rs28% (19,213 lines)
toml82% (5,353 lines)
h60% (3,150 lines)
cpp75% (3,121 lines)
c12% (1,853 lines)
lds100% (378 lines)
xml84% (370 lines)
proto22% (38 lines)
in<1% (12 lines)
Duplication per Component (primary)
samplecode66% (15,465 lines)
sgx_tstd16% (5,243 lines)
sgx_tcrypto95% (2,026 lines)
sgx_ucrypto96% (1,953 lines)
sgx_libc38% (1,763 lines)
sgx_edl94% (1,036 lines)
common86% (974 lines)
sgx_urts44% (934 lines)
sgx_backtrace_sys7% (736 lines)
sgx_tseal53% (602 lines)
sgx_crypto_helper62% (517 lines)
sgx_backtrace44% (479 lines)
sgx_unwind4% (272 lines)
sgx_types5% (238 lines)
sgx_serialize_derive28% (208 lines)
sgx_rand11% (170 lines)
sgx_alloc21% (142 lines)
sgx_align_struct_attribute43% (109 lines)
sgx_serialize11% (108 lines)
sgx_trts6% (81 lines)
sgx_signal11% (66 lines)
sgx_no_tstd66% (66 lines)
sgx_tdh9% (60 lines)
edl100% (54 lines)
sgx_build_helper11% (28 lines)
sgx_ustdc2% (27 lines)
sgx_tkey_exchange31% (20 lines)
sgx_tunittest18% (16 lines)
sgx_tprotected_fs6% (14 lines)
xargo23% (11 lines)
sgx_panic_unwind13% (11 lines)
sgx_panic_abort20% (11 lines)
sgx_cov3% (8 lines)
sgx_serialize_derive_internals7% (8 lines)
sgx_demangle<1% (8 lines)
sgx_tse11% (8 lines)
sgx_tcrypto_helper40% (8 lines)
sgx_rand_derive8% (8 lines)

Duplication Between Components (50+ lines)

G sgx_tcrypto sgx_tcrypto sgx_ucrypto sgx_ucrypto sgx_tcrypto--sgx_ucrypto 3914 common common sgx_edl sgx_edl common--sgx_edl 1948 sgx_backtrace sgx_backtrace sgx_tstd sgx_tstd sgx_backtrace--sgx_tstd 932 sgx_unwind sgx_unwind sgx_tstd--sgx_unwind 64 sgx_align_struct_attribute sgx_align_struct_attribute sgx_alloc sgx_alloc sgx_align_struct_attribute--sgx_alloc 202 sgx_libc sgx_libc sgx_libc--sgx_tstd 80 sgx_urts sgx_urts sgx_libc--sgx_urts 194 sgx_libc--sgx_unwind 68 sgx_no_tstd sgx_no_tstd sgx_no_tstd--sgx_unwind 130 edl edl edl--sgx_edl 108 samplecode samplecode sgx_crypto_helper sgx_crypto_helper samplecode--sgx_crypto_helper 72 sgx_trts sgx_trts sgx_trts--sgx_ucrypto 50

Download: SVG DOT (open online Graphviz editor)

Open 2D force graph... Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 50 longest duplicates.
See data for all 14,829 duplicates...
Size#FoldersFilesLinesCode
702 x 2 sgx_tcrypto/src
sgx_ucrypto/src
2733:4008 (33%)
2544:3819 (36%)
view
509 x 2 sgx_tcrypto/src
sgx_ucrypto/src
69:1192 (24%)
69:1192 (26%)
view
295 x 2 sgx_tcrypto/src
sgx_ucrypto/src
1887:2520 (14%)
1737:2370 (15%)
view
282 x 2 common/inc
sgx_edl/common/inc
26:428 (100%)
26:428 (100%)
view
181 x 2 samplecode/psi/Util
samplecode/remoteattestation/Util
22:306 (97%)
22:306 (100%)
view
166 x 2 samplecode/psi/SMCClient/worker
samplecode/remoteattesta...ovider/service_provider
333:576 (34%)
332:575 (47%)
view
155 x 2 samplecode/psi/SMCClient/worker
samplecode/remoteattesta...ovider/service_provider
55:305 (32%)
54:304 (44%)
view
143 x 2 samplecode/psi/WebService
samplecode/remoteattestation/WebService
21:250 (100%)
21:250 (100%)
view
133 x 2 samplecode/psi/SMCClient/worker
samplecode/remoteattesta...ovider/service_provider
27:224 (100%)
27:224 (100%)
view
129 x 2 samplecode/pcl/pcl-user/src
samplecode/ue-ra/ue-ra-client/src
1:192 (100%)
1:192 (100%)
view
127 x 2 samplecode/pcl/pcl-seal/enclave/src
samplecode/tr-mpc/tr-mpc-server/enclave/src
1:155 (100%)
1:155 (100%)
view
127 x 2 samplecode/tr-mpc/tr-mpc-server/enclave/src
samplecode/ue-ra/ue-ra-server/enclave/src
1:155 (100%)
1:155 (100%)
view
127 x 2 samplecode/pcl/pcl-seal/enclave/src
samplecode/ue-ra/ue-ra-server/enclave/src
1:155 (100%)
1:155 (100%)
view
113 x 2 samplecode/backtrace/app
samplecode/helloworld/app
31:193 (100%)
31:193 (100%)
view
113 x 2 samplecode/backtrace/app
samplecode/secretsharing/app
31:193 (100%)
31:193 (100%)
view
113 x 2 samplecode/helloworld/app
samplecode/secretsharing/app
31:193 (100%)
31:193 (100%)
view
104 x 2 samplecode/psi/SMCClient/worker
samplecode/remoteattesta...ovider/service_provider
33:193 (100%)
33:194 (100%)
view
103 x 2 samplecode/pcl/pcl-user/src
samplecode/ue-ra/ue-ra-client/src
1:130 (100%)
1:130 (100%)
view
103 x 2 sgx_tcrypto/src
sgx_ucrypto/src
4036:4178 (4%)
3819:3961 (5%)
view
103 x 2 samplecode/pcl/pcl-user/src
samplecode/tr-mpc/tr-mpc-client/src
1:130 (100%)
1:130 (100%)
view
103 x 2 samplecode/tr-mpc/tr-mpc-client/src
samplecode/ue-ra/ue-ra-client/src
1:130 (100%)
1:130 (100%)
view
98 x 2 samplecode/hello-regex/app
samplecode/secretsharing/app
31:167 (89%)
31:167 (86%)
view
98 x 2 samplecode/backtrace/app
samplecode/hugemem/app
31:167 (86%)
31:167 (86%)
view
98 x 2 samplecode/helloworld/app
samplecode/hugemem/app
31:167 (86%)
31:167 (86%)
view
98 x 2 samplecode/hello-regex/app
samplecode/hugemem/app
31:167 (89%)
31:167 (86%)
view
98 x 2 samplecode/backtrace/app
samplecode/hello-regex/app
31:167 (86%)
31:167 (89%)
view
98 x 2 samplecode/hello-regex/app
samplecode/helloworld/app
31:167 (89%)
31:167 (86%)
view
98 x 2 samplecode/hugemem/app
samplecode/secretsharing/app
31:167 (86%)
31:167 (86%)
view
96 x 2 samplecode/tr-mpc/tr-mpc-server/app/src
samplecode/ue-ra/ue-ra-server/app/src
18:148 (69%)
18:148 (73%)
view
96 x 2 samplecode/crypto/app
samplecode/thread/app
36:170 (35%)
31:164 (96%)
view
93 x 2 samplecode/tr-mpc/tr-mpc-client/src
samplecode/ue-ra/ue-ra-client/src
43:184 (58%)
40:181 (72%)
view
93 x 2 samplecode/pcl/pcl-user/src
samplecode/tr-mpc/tr-mpc-client/src
40:181 (72%)
43:184 (58%)
view
92 x 2 samplecode/hello-regex/app
samplecode/sealeddata/app
31:158 (84%)
32:159 (62%)
view
92 x 2 samplecode/sealeddata/app
samplecode/secretsharing/app
32:159 (62%)
31:158 (81%)
view
92 x 2 samplecode/hugemem/app
samplecode/sealeddata/app
31:158 (81%)
32:159 (62%)
view
92 x 2 samplecode/helloworld/app
samplecode/sealeddata/app
31:158 (81%)
32:159 (62%)
view
92 x 2 samplecode/backtrace/app
samplecode/sealeddata/app
31:158 (81%)
32:159 (62%)
view
91 x 2 samplecode/file/app
samplecode/hello-regex/app
31:157 (82%)
31:157 (83%)
view
91 x 2 samplecode/file/app
samplecode/helloworld/app
31:157 (82%)
31:157 (80%)
view
91 x 2 samplecode/backtrace/app
samplecode/file/app
31:157 (80%)
31:157 (82%)
view
91 x 2 samplecode/backtrace/app
samplecode/serialize/app
31:157 (80%)
31:157 (87%)
view
91 x 2 samplecode/file/app
samplecode/serialize/app
31:157 (82%)
31:157 (87%)
view
91 x 2 samplecode/helloworld/app
samplecode/serialize/app
31:157 (80%)
31:157 (87%)
view
91 x 2 samplecode/file/app
samplecode/hugemem/app
31:157 (82%)
31:157 (80%)
view
91 x 2 samplecode/file/app
samplecode/secretsharing/app
31:157 (82%)
31:157 (80%)
view
91 x 2 samplecode/hello-regex/app
samplecode/serialize/app
31:157 (83%)
31:157 (87%)
view
91 x 2 samplecode/hugemem/app
samplecode/serialize/app
31:157 (80%)
31:157 (87%)
view
91 x 2 samplecode/sealeddata/app
samplecode/serialize/app
32:158 (61%)
31:157 (87%)
view
91 x 2 samplecode/file/app
samplecode/sealeddata/app
31:157 (82%)
32:158 (61%)
view
91 x 2 samplecode/secretsharing/app
samplecode/serialize/app
31:157 (80%)
31:157 (87%)
view
Duplicated Units
The list of top 50 duplicated units.
See data for all 114 unit duplicates...
Size#FoldersFilesLinesCode
185 x 2 samplecode/remoteattesta...ovider/service_provider
samplecode/psi/SMCClient/worker
331:576 
332:577 
view
177 x 2 samplecode/remoteattesta...ovider/service_provider
samplecode/psi/SMCClient/worker
53:305 
54:306 
view
86 x 2 samplecode/remoteattesta...ovider/service_provider
samplecode/psi/SMCClient/worker
86:195 
86:194 
view
62 x 2 samplecode/remoteattesta...ovider/service_provider
samplecode/psi/SMCClient/worker
144:225 
144:225 
view
57 x 2 sgx_crypto_helper/src
sgx_crypto_helper/src
349:415 
359:425 
view
46 x 3 samplecode/ue-ra/ue-ra-server/enclave/src
samplecode/mutual-ra/enclave/src
samplecode/tr-mpc/tr-mpc-server/enclave/src
89:147 
92:150 
91:149 
view
44 x 2 sgx_ucrypto/src
sgx_tcrypto/src
3277:3323 
3466:3512 
view
43 x 2 samplecode/remoteattesta...ovider/service_provider
samplecode/psi/SMCClient/worker
74:129 
74:129 
view
37 x 4 samplecode/ue-ra/ue-ra-server/app/src
samplecode/mutual-ra/app/src
samplecode/tr-mpc/tr-mpc-server/app/src
samplecode/pcl/pcl-seal/app/src
75:120 
81:126 
75:120 
89:134 
view
37 x 2 sgx_ucrypto/src
sgx_tcrypto/src
2099:2138 
2249:2288 
view
37 x 2 sgx_ucrypto/src
sgx_tcrypto/src
2140:2179 
2290:2329 
view
36 x 2 samplecode/remoteattestation/MessageHandler
samplecode/psi/MessageHandler
248:302 
266:320 
view
33 x 2 sgx_align_struct_attribute/src
sgx_alloc/src
87:123 
271:307 
view
33 x 2 sgx_backtrace/src
sgx_tstd/src/sys/backtrace/printing
208:255 
161:208 
view
32 x 2 samplecode/remoteattestation/MessageHandler
samplecode/psi/MessageHandler
136:182 
152:198 
view
32 x 2 samplecode/remoteattestation/Util
samplecode/psi/Util
72:113 
72:113 
view
31 x 2 sgx_ucrypto/src
sgx_tcrypto/src
3325:3358 
3514:3547 
view
30 x 2 samplecode/remoteattestation/Util
samplecode/psi/Util
31:69 
31:69 
view
28 x 2 samplecode/remoteattestation/WebService
samplecode/psi/WebService
97:132 
97:132 
view
28 x 2 sgx_ucrypto/src
sgx_tcrypto/src
3837:3867 
4054:4084 
view
27 x 4 samplecode/helloworld/app
samplecode/hugemem/app
samplecode/secretsharing/app
samplecode/backtrace/app
155:194 
155:194 
155:194 
155:194 
view
26 x 3 samplecode/ue-ra/ue-ra-client/src
samplecode/tr-mpc/tr-mpc-client/src
samplecode/pcl/pcl-user/src
82:109 
82:109 
82:109 
view
26 x 2 sgx_ucrypto/src
sgx_tcrypto/src
2181:2208 
2331:2358 
view
26 x 2 sgx_ucrypto/src
sgx_tcrypto/src
3869:3897 
4086:4114 
view
25 x 2 samplecode/remoteattestation/WebService
samplecode/psi/WebService
153:186 
153:186 
view
25 x 2 sgx_ucrypto/src
sgx_tcrypto/src
3400:3427 
3589:3616 
view
25 x 2 sgx_ucrypto/src
sgx_tcrypto/src
3429:3456 
3618:3645 
view
24 x 2 sgx_ucrypto/src
sgx_tcrypto/src
2043:2069 
2193:2219 
view
24 x 2 sgx_ucrypto/src
sgx_tcrypto/src
2071:2097 
2221:2247 
view
24 x 2 sgx_ucrypto/src
sgx_tcrypto/src
3360:3386 
3549:3575 
view
22 x 2 samplecode/remoteattestation/WebService
samplecode/psi/WebService
189:220 
189:220 
view
21 x 2 samplecode/ue-ra/ue-ra-client/src
samplecode/pcl/pcl-user/src
35:58 
38:61 
view
20 x 2 sgx_backtrace/src/symbolize
sgx_tstd/src/sys_common/gnu
286:309 
164:187 
view
20 x 2 sgx_backtrace/src/symbolize
sgx_tstd/src/sys_common/gnu
346:368 
227:249 
view
20 x 3 samplecode/mio/server/enclave/src
samplecode/tls/tlsserver/enclave/src
samplecode/pcl/pcl-seal/enclave/src
394:418 
138:162 
511:534 
view
18 x 2 samplecode/remoteattestation/WebService
samplecode/psi/WebService
223:251 
223:251 
view
17 x 2 samplecode/mio/client/enclave/src
samplecode/tls/tlsclient/enclave/src
255:276 
180:201 
view
17 x 2 samplecode/tls/tlsserver/enclave/src
samplecode/tls/tlsclient/enclave/src
192:210 
256:274 
view
17 x 2 sgx_ucrypto/src
sgx_tcrypto/src
1255:1273 
1315:1333 
view
17 x 2 sgx_ucrypto/src
sgx_tcrypto/src
1633:1651 
1770:1788 
view
15 x 2 samplecode/mio/client/enclave/src
samplecode/tls/tlsclient/enclave/src
233:252 
158:177 
view
15 x 2 samplecode/remoteattesta...ovider/service_provider
samplecode/psi/SMCClient/worker
38:57 
38:57 
view
13 x 2 sgx_align_struct_attribute/src
sgx_alloc/src
55:69 
235:249 
view
13 x 10 samplecode/helloworld/app
samplecode/serialize/app
samplecode/file/app
samplecode/crypto/app
samplecode/hugemem/app
samplecode/secretsharing/app
samplecode/thread/app
samplecode/sealeddata/app
samplecode/backtrace/app
samplecode/hello-regex/app
119:135 
119:135 
119:135 
124:140 
119:135 
119:135 
119:135 
120:136 
119:135 
119:135 
view
13 x 2 samplecode/remoteattestation/Util
samplecode/psi/Util
52:66 
52:66 
view
13 x 2 sgx_ucrypto/src
sgx_tcrypto/src
2009:2023 
2159:2173 
view
13 x 2 sgx_ucrypto/src
sgx_tcrypto/src
2026:2040 
2176:2190 
view
12 x 2 sgx_align_struct_attribute/src
sgx_alloc/src
158:171 
339:352 
view
12 x 14 samplecode/wasmi/app
samplecode/kvdb-memdb/app
samplecode/logger/app
samplecode/mio/client/app
samplecode/mio/server/app
samplecode/protobuf/app
samplecode/machine-learning/app
samplecode/zlib-lazy-static-sample/app
samplecode/sgx-cov/app
samplecode/tls/tlsserver/app
...
20:36 
20:36 
20:36 
20:36 
20:36 
20:36 
20:36 
20:36 
20:36 
20:36 
...
view
12 x 2 samplecode/ue-ra/ue-ra-client/src
samplecode/pcl/pcl-user/src
61:80 
64:83 
view