apache / struts-examples
Duplication

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

Intro
Learn more...
Duplication Overall
system44% (6,240 lines)
dependency graphs: 2D graph | 3D graph | 3D graph (with duplicates)...
Duplication per Extension
ftl55% (2,030 lines)
java56% (1,597 lines)
xml52% (1,329 lines)
jsp49% (1,045 lines)
css21% (133 lines)
html4% (90 lines)
js5% (16 lines)
Duplication per Component (primary)
themes-override58% (2,216 lines)
exclude-parameters82% (225 lines)
preparable-interface83% (224 lines)
control-tags81% (211 lines)
form-xml-validation75% (200 lines)
themes77% (190 lines)
spring-struts88% (190 lines)
bean-validation81% (180 lines)
form-validation92% (166 lines)
form-tags78% (162 lines)
exception-handling62% (161 lines)
debugging-struts59% (156 lines)
message-resource76% (150 lines)
tiles45% (130 lines)
mailreader24% (111 lines)
form-processing55% (107 lines)
interceptors84% (106 lines)
crud20% (101 lines)
unit-testing76% (92 lines)
rest-angular9% (81 lines)
blank46% (81 lines)
http-session65% (77 lines)
annotations46% (75 lines)
coding-actions76% (74 lines)
using-tags80% (66 lines)
validation-messages60% (60 lines)
shiro-basic19% (55 lines)
helloworld50% (55 lines)
json46% (50 lines)
wildcard-method-selection20% (43 lines)
message-store50% (39 lines)
json-customize71% (38 lines)
unknown-handler18% (36 lines)
wildcard-regex40% (36 lines)
restful2actionmapper48% (35 lines)
file-upload43% (34 lines)
sitemesh325% (34 lines)
quarkus75% (30 lines)
basic-struts76% (29 lines)
action-chaining40% (25 lines)
dynamic-href31% (22 lines)
jfreechart28% (22 lines)
type-conversion10% (21 lines)
text-provider11% (15 lines)
jasperreports11% (15 lines)
expression-cache27% (14 lines)
src0% (0 lines)

Duplication Between Components (50+ lines)

G exclude-parameters exclude-parameters preparable-interface preparable-interface exclude-parameters--preparable-interface 432 spring-struts spring-struts exclude-parameters--spring-struts 262 themes themes exclude-parameters--themes 264 themes-override themes-override exclude-parameters--themes-override 316 form-xml-validation form-xml-validation exclude-parameters--form-xml-validation 268 form-tags form-tags exclude-parameters--form-tags 138 preparable-interface--spring-struts 244 preparable-interface--themes 248 preparable-interface--themes-override 300 spring-struts--themes 368 spring-struts--themes-override 304 themes-override--themes 316 form-xml-validation--preparable-interface 284 form-xml-validation--spring-struts 164 form-xml-validation--themes 168 form-xml-validation--themes-override 206 control-tags control-tags control-tags--exclude-parameters 220 control-tags--preparable-interface 236 control-tags--spring-struts 142 control-tags--themes 142 control-tags--themes-override 130 control-tags--form-xml-validation 280 control-tags--form-tags 232 bean-validation bean-validation bean-validation--exclude-parameters 230 bean-validation--preparable-interface 246 bean-validation--spring-struts 174 bean-validation--themes 178 bean-validation--themes-override 180 bean-validation--form-xml-validation 208 bean-validation--control-tags 264 bean-validation--form-tags 198 form-tags--preparable-interface 154 form-tags--spring-struts 178 form-tags--themes 182 form-tags--themes-override 162 form-tags--form-xml-validation 226 form-validation form-validation message-resource message-resource form-validation--message-resource 224 interceptors interceptors form-validation--interceptors 211 http-session http-session form-validation--http-session 126 unit-testing unit-testing message-resource--unit-testing 143 interceptors--message-resource 122 exception-handling exception-handling exception-handling--form-validation 180 exception-handling--message-resource 174 form-processing form-processing exception-handling--form-processing 108 coding-actions coding-actions coding-actions--exception-handling 156 debugging-struts debugging-struts debugging-struts--exception-handling 144 form-processing--form-validation 126 form-processing--message-resource 108 crud crud crud--form-xml-validation 110 shiro-basic shiro-basic crud--shiro-basic 110

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 4,674 duplicates...
Size#FoldersFilesLinesCode
56 x 2 exclude-parameters/src/m...pache/struts/edit/model
preparable-interface/src...pache/struts/edit/model
12:117 (100%)
12:117 (100%)
view
49 x 2 crud/src/main/webapp/css
shiro-basic/src/main/webapp/css
1:56 (100%)
1:56 (100%)
view
47 x 2 bean-validation/src/main...pache/struts/edit/model
control-tags/src/main/ja...pache/struts/edit/model
36:119 (75%)
17:100 (83%)
view
44 x 2 spring-struts/src/main/j...pache/struts/edit/model
themes-override/src/main...pache/struts/edit/model
11:93 (100%)
11:93 (100%)
view
44 x 2 spring-struts/src/main/j...pache/struts/edit/model
themes/src/main/java/org/apache/struts/edit/model
11:93 (100%)
11:93 (100%)
view
44 x 2 themes-override/src/main...pache/struts/edit/model
themes/src/main/java/org/apache/struts/edit/model
11:93 (100%)
11:93 (100%)
view
35 x 2 preparable-interface/src...pache/struts/edit/model
themes/src/main/java/org/apache/struts/edit/model
26:96 (62%)
22:92 (79%)
view
35 x 2 exclude-parameters/src/m...pache/struts/edit/model
spring-struts/src/main/j...pache/struts/edit/model
26:96 (62%)
22:92 (79%)
view
35 x 2 preparable-interface/src...pache/struts/edit/model
spring-struts/src/main/j...pache/struts/edit/model
26:96 (62%)
22:92 (79%)
view
35 x 2 exclude-parameters/src/m...pache/struts/edit/model
themes/src/main/java/org/apache/struts/edit/model
26:96 (62%)
22:92 (79%)
view
35 x 2 exclude-parameters/src/m...pache/struts/edit/model
themes-override/src/main...pache/struts/edit/model
26:96 (62%)
22:92 (79%)
view
35 x 2 preparable-interface/src...pache/struts/edit/model
themes-override/src/main...pache/struts/edit/model
26:96 (62%)
22:92 (79%)
view
30 x 2 spring-struts/src/main/j...ache/struts/edit/action
themes/src/main/java/org/apache/struts/edit/action
25:93 (81%)
26:94 (90%)
view
28 x 2 control-tags/src/main/ja...pache/struts/edit/model
form-xml-validation/src/...pache/struts/edit/model
19:72 (50%)
21:74 (43%)
view
28 x 2 control-tags/src/main/ja...pache/struts/edit/model
form-tags/src/main/java/...pache/struts/edit/model
19:72 (50%)
18:71 (56%)
view
28 x 2 form-tags/src/main/java/...pache/struts/edit/model
form-xml-validation/src/...pache/struts/edit/model
18:71 (56%)
21:74 (43%)
view
28 x 2 bean-validation/src/main...pache/struts/edit/model
form-xml-validation/src/...pache/struts/edit/model
38:91 (45%)
21:74 (43%)
view
28 x 2 bean-validation/src/main...pache/struts/edit/model
form-tags/src/main/java/...pache/struts/edit/model
38:91 (45%)
18:71 (56%)
view
27 x 2 exclude-parameters/src/m...ache/struts/edit/action
preparable-interface/src...ache/struts/edit/action
1:33 (100%)
1:33 (100%)
view
26 x 2 bean-validation/src/main...che/struts/edit/service
exclude-parameters/src/m...che/struts/edit/service
15:49 (100%)
15:56 (100%)
view
26 x 2 bean-validation/src/main...che/struts/edit/service
preparable-interface/src...che/struts/edit/service
15:49 (100%)
15:56 (100%)
view
26 x 2 exclude-parameters/src/m...che/struts/edit/service
preparable-interface/src...che/struts/edit/service
15:56 (100%)
15:56 (100%)
view
26 x 2 themes-override/src/main.../WEB-INF/template/xhtml
themes-override/src/main.../WEB-INF/template/xhtml
1:26 (89%)
1:26 (96%)
view
25 x 2 control-tags/src/main/re...ache/struts/edit/action
preparable-interface/src...ache/struts/edit/action
2:32 (96%)
3:33 (92%)
view
25 x 2 control-tags/src/main/re...ache/struts/edit/action
exclude-parameters/src/m...ache/struts/edit/action
2:32 (96%)
3:33 (92%)
view
24 x 2 exception-handling/src/m...e/struts/register/model
message-resource/src/mai...e/struts/register/model
9:60 (100%)
9:60 (100%)
view
24 x 2 message-resource/src/mai...e/struts/register/model
unit-testing/src/main/ja...e/struts/register/model
9:60 (100%)
9:60 (100%)
view
24 x 2 exception-handling/src/m...e/struts/register/model
unit-testing/src/main/ja...e/struts/register/model
9:60 (100%)
9:60 (100%)
view
24 x 2 exception-handling/src/m...truts/helloworld/action
message-resource/src/mai...truts/helloworld/action
15:74 (100%)
15:74 (100%)
view
24 x 2 exception-handling/src/m...e/struts/register/model
interceptors/src/main/ja...e/struts/register/model
9:60 (100%)
9:60 (100%)
view
24 x 2 form-processing/src/main...truts/helloworld/action
form-validation/src/main...truts/helloworld/action
15:71 (100%)
15:74 (100%)
view
24 x 2 exception-handling/src/m...truts/helloworld/action
form-validation/src/main...truts/helloworld/action
15:74 (100%)
15:74 (100%)
view
24 x 2 form-validation/src/main...truts/helloworld/action
message-resource/src/mai...truts/helloworld/action
15:74 (100%)
15:74 (100%)
view
24 x 2 exception-handling/src/m...e/struts/register/model
form-validation/src/main...e/struts/register/model
9:60 (100%)
9:60 (100%)
view
24 x 2 annotations/src/main/java/example/model
debugging-struts/src/mai...e/struts/register/model
9:50 (100%)
6:47 (100%)
view
24 x 2 form-processing/src/main...truts/helloworld/action
message-resource/src/mai...truts/helloworld/action
15:71 (100%)
15:74 (100%)
view
24 x 2 themes-override/src/main...WEB-INF/template/simple
themes-override/src/main...WEB-INF/template/simple
23:46 (26%)
63:86 (26%)
view
24 x 2 interceptors/src/main/ja...e/struts/register/model
unit-testing/src/main/ja...e/struts/register/model
9:60 (100%)
9:60 (100%)
view
24 x 2 themes-override/src/main...WEB-INF/template/simple
themes-override/src/main...WEB-INF/template/simple
1:24 (8%)
1:24 (43%)
view
24 x 2 exception-handling/src/m...truts/helloworld/action
form-processing/src/main...truts/helloworld/action
15:74 (100%)
15:71 (100%)
view
24 x 2 form-validation/src/main...e/struts/register/model
interceptors/src/main/ja...e/struts/register/model
9:60 (100%)
9:60 (100%)
view
24 x 2 form-validation/src/main...e/struts/register/model
unit-testing/src/main/ja...e/struts/register/model
9:60 (100%)
9:60 (100%)
view
24 x 2 interceptors/src/main/ja...e/struts/register/model
message-resource/src/mai...e/struts/register/model
9:60 (100%)
9:60 (100%)
view
24 x 2 form-validation/src/main...e/struts/register/model
message-resource/src/mai...e/struts/register/model
9:60 (100%)
9:60 (100%)
view
23 x 2 exclude-parameters/src/main/webapp
preparable-interface/src/main/webapp
1:26 (100%)
1:26 (100%)
view
23 x 2 themes-override/src/main.../WEB-INF/template/xhtml
themes-override/src/main.../WEB-INF/template/xhtml
43:65 (18%)
75:97 (18%)
view
22 x 2 themes-override/src/main...WEB-INF/template/simple
themes-override/src/main...WEB-INF/template/simple
61:82 (21%)
32:53 (23%)
view
22 x 2 themes-override/src/main...che/struts/edit/service
themes/src/main/java/org...che/struts/edit/service
12:47 (100%)
12:47 (100%)
view
22 x 2 spring-struts/src/main/j...che/struts/edit/service
themes-override/src/main...che/struts/edit/service
12:47 (100%)
12:47 (100%)
view
22 x 2 spring-struts/src/main/j...che/struts/edit/service
themes/src/main/java/org...che/struts/edit/service
12:47 (100%)
12:47 (100%)
view
Duplicated Units
The list of top 13 duplicated units.
See data for all 13 unit duplicates...
Size#FoldersFilesLinesCode
10 x 3 bean-validation/src/main...che/struts/edit/service
preparable-interface/src...che/struts/edit/service
exclude-parameters/src/m...che/struts/edit/service
20:31 
22:37 
22:37 
view
10 x 2 preparable-interface/src...pache/struts/edit/model
exclude-parameters/src/m...pache/struts/edit/model
89:102 
89:102 
view
9 x 2 bean-validation/src/main...pache/struts/edit/model
control-tags/src/main/ja...pache/struts/edit/model
94:104 
75:85 
view
9 x 3 bean-validation/src/main...che/struts/edit/service
preparable-interface/src...che/struts/edit/service
exclude-parameters/src/m...che/struts/edit/service
39:51 
46:58 
46:58 
view
9 x 3 form-validation/src/main.../struts/register/action
interceptors/src/main/ja.../struts/register/action
message-resource/src/mai.../struts/register/action
28:50 
28:50 
28:50 
view
8 x 3 themes/src/main/java/org/apache/struts/edit/model
themes-override/src/main...pache/struts/edit/model
spring-struts/src/main/j...pache/struts/edit/model
85:95 
85:95 
85:95 
view
8 x 3 themes/src/main/java/org...che/struts/edit/service
themes-override/src/main...che/struts/edit/service
spring-struts/src/main/j...che/struts/edit/service
19:30 
19:30 
19:30 
view
7 x 2 bean-validation/src/main...ache/struts/edit/action
form-tags/src/main/java/...ache/struts/edit/action
63:72 
57:66 
view
7 x 3 preparable-interface/src...ache/struts/edit/action
control-tags/src/main/ja...ache/struts/edit/action
form-xml-validation/src/...ache/struts/edit/action
83:93 
56:65 
59:68 
view
7 x 4 exclude-parameters/src/m...ache/struts/edit/action
themes/src/main/java/org/apache/struts/edit/action
themes-override/src/main...ache/struts/edit/action
spring-struts/src/main/j...ache/struts/edit/action
82:92 
79:89 
77:87 
78:88 
view
7 x 3 themes/src/main/java/org...che/struts/edit/service
themes-override/src/main...che/struts/edit/service
spring-struts/src/main/j...che/struts/edit/service
39:49 
39:49 
39:49 
view
6 x 5 coding-actions/src/main/...truts/helloworld/action
form-validation/src/main...truts/helloworld/action
form-processing/src/main...truts/helloworld/action
exception-handling/src/m...truts/helloworld/action
message-resource/src/mai...truts/helloworld/action
48:60 
52:67 
52:64 
52:67 
52:67 
view
6 x 2 rest-angular/src/main/webapp/js/controllers
rest-angular/src/main/webapp/js/controllers
33:40 
34:41 
view