CloneSet53


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13320.955non_pp_embedded_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1119
src/NHibernate.Test/HQL/SimpleFunctionsTest.cs
2123
src/NHibernate.Test/HQL/SimpleFunctionsTest.cs
3143
src/NHibernate.Test/HQL/SimpleFunctionsTest.cs
4147
src/NHibernate.Test/HQL/SimpleFunctionsTest.cs
5170
src/NHibernate.Test/HQL/SimpleFunctionsTest.cs
6192
src/NHibernate.Test/HQL/SimpleFunctionsTest.cs
7195
src/NHibernate.Test/HQL/SimpleFunctionsTest.cs
81101
src/NHibernate.Test/HQL/SimpleFunctionsTest.cs
91111
src/NHibernate.Test/HQL/SimpleFunctionsTest.cs
101117
src/NHibernate.Test/HQL/SimpleFunctionsTest.cs
111128
src/NHibernate.Test/HQL/SimpleFunctionsTest.cs
121134
src/NHibernate.Test/HQL/SimpleFunctionsTest.cs
131149
src/NHibernate.Test/HQL/SimpleFunctionsTest.cs
141154
src/NHibernate.Test/HQL/SimpleFunctionsTest.cs
151179
src/NHibernate.Test/HQL/SimpleFunctionsTest.cs
161183
src/NHibernate.Test/HQL/SimpleFunctionsTest.cs
171211
src/NHibernate.Test/HQL/SimpleFunctionsTest.cs
181216
src/NHibernate.Test/HQL/SimpleFunctionsTest.cs
191239
src/NHibernate.Test/HQL/SimpleFunctionsTest.cs
201244
src/NHibernate.Test/HQL/SimpleFunctionsTest.cs
211284
src/NHibernate.Test/HQL/SimpleFunctionsTest.cs
221287
src/NHibernate.Test/HQL/SimpleFunctionsTest.cs
23119
src/NHibernate.Test/HQL/SQLFunctionTemplateTest.cs
24123
src/NHibernate.Test/HQL/SQLFunctionTemplateTest.cs
25127
src/NHibernate.Test/HQL/SQLFunctionTemplateTest.cs
26131
src/NHibernate.Test/HQL/SQLFunctionTemplateTest.cs
27345
src/NHibernate.Test/HQL/SQLFunctionTemplateTest.cs
28154
src/NHibernate.Test/HQL/SQLFunctionTemplateTest.cs
29171
src/NHibernate.Test/HQL/SQLFunctionTemplateTest.cs
30182
src/NHibernate.Test/HQL/SQLFunctionTemplateTest.cs
31188
src/NHibernate.Test/HQL/SQLFunctionTemplateTest.cs
32196
src/NHibernate.Test/HQL/SQLFunctionTemplateTest.cs
331104
src/NHibernate.Test/HQL/SQLFunctionTemplateTest.cs
Clone Instance
1
Line Count
1
Source Line
19
Source File
src/NHibernate.Test/HQL/SimpleFunctionsTest.cs

                        Assert.AreEqual("noArgs()", nf.Render(args, factoryImpl).ToString());


Clone Instance
2
Line Count
1
Source Line
23
Source File
src/NHibernate.Test/HQL/SimpleFunctionsTest.cs

                        Assert.AreEqual("noArgs", nf.Render(args, factoryImpl).ToString());


Clone Instance
3
Line Count
1
Source Line
43
Source File
src/NHibernate.Test/HQL/SimpleFunctionsTest.cs

                        Assert.AreEqual("fname()", sf.Render(args, factoryImpl).ToString());


Clone Instance
4
Line Count
1
Source Line
47
Source File
src/NHibernate.Test/HQL/SimpleFunctionsTest.cs

                        Assert.AreEqual("fname(1, 2)", sf.Render(args, factoryImpl).ToString());


Clone Instance
5
Line Count
1
Source Line
70
Source File
src/NHibernate.Test/HQL/SimpleFunctionsTest.cs

                        Assert.AreEqual(expected, cf.Render(args, factoryImpl).ToString());


Clone Instance
6
Line Count
1
Source Line
92
Source File
src/NHibernate.Test/HQL/SimpleFunctionsTest.cs

                        Assert.AreEqual("()", vf.Render(args, factoryImpl).ToString());


Clone Instance
7
Line Count
1
Source Line
95
Source File
src/NHibernate.Test/HQL/SimpleFunctionsTest.cs

                        Assert.AreEqual("(va1)", vf.Render(args, factoryImpl).ToString());


Clone Instance
8
Line Count
1
Source Line
101
Source File
src/NHibernate.Test/HQL/SimpleFunctionsTest.cs

                        Assert.AreEqual("(va1 || va2 || va3)", vf.Render(args, factoryImpl).ToString());


Clone Instance
9
Line Count
1
Source Line
111
Source File
src/NHibernate.Test/HQL/SimpleFunctionsTest.cs

                        Assert.AreEqual("va1", nf.Render(args, factoryImpl).ToString());


Clone Instance
10
Line Count
1
Source Line
117
Source File
src/NHibernate.Test/HQL/SimpleFunctionsTest.cs

                        Assert.AreEqual("nvl(va1, nvl(va2, va3))", nf.Render(args, factoryImpl).ToString());


Clone Instance
11
Line Count
1
Source Line
128
Source File
src/NHibernate.Test/HQL/SimpleFunctionsTest.cs

                        Assert.AreEqual("position('a' in va2)", psf.Render(args, factoryImpl).ToString());


Clone Instance
12
Line Count
1
Source Line
134
Source File
src/NHibernate.Test/HQL/SimpleFunctionsTest.cs

                        Assert.AreEqual("(position('a' in substring(va2, 2))+2-1)", psf.Render(args, factoryImpl).ToString());


Clone Instance
13
Line Count
1
Source Line
149
Source File
src/NHibernate.Test/HQL/SimpleFunctionsTest.cs

                        Assert.AreEqual("sum(va1)", csf.Render(args, factoryImpl).ToString());


Clone Instance
14
Line Count
1
Source Line
154
Source File
src/NHibernate.Test/HQL/SimpleFunctionsTest.cs

                        Assert.AreEqual("sum(distinct va2)", csf.Render(args, factoryImpl).ToString());


Clone Instance
15
Line Count
1
Source Line
179
Source File
src/NHibernate.Test/HQL/SimpleFunctionsTest.cs

                        Assert.AreEqual("count(va1)", ccf.Render(args, factoryImpl).ToString());


Clone Instance
16
Line Count
1
Source Line
183
Source File
src/NHibernate.Test/HQL/SimpleFunctionsTest.cs

                        Assert.AreEqual("count(*)", ccf.Render(args, factoryImpl).ToString());


Clone Instance
17
Line Count
1
Source Line
211
Source File
src/NHibernate.Test/HQL/SimpleFunctionsTest.cs

                        Assert.AreEqual("avg(va1)", caf.Render(args, factoryImpl).ToString());


Clone Instance
18
Line Count
1
Source Line
216
Source File
src/NHibernate.Test/HQL/SimpleFunctionsTest.cs

                        Assert.AreEqual("avg(distinct va2)", caf.Render(args, factoryImpl).ToString());


Clone Instance
19
Line Count
1
Source Line
239
Source File
src/NHibernate.Test/HQL/SimpleFunctionsTest.cs

                        Assert.AreEqual("max(va1)", caf.Render(args, factoryImpl).ToString());


Clone Instance
20
Line Count
1
Source Line
244
Source File
src/NHibernate.Test/HQL/SimpleFunctionsTest.cs

                        Assert.AreEqual("max(distinct va2)", caf.Render(args, factoryImpl).ToString());


Clone Instance
21
Line Count
1
Source Line
284
Source File
src/NHibernate.Test/HQL/SimpleFunctionsTest.cs

                        Assert.AreEqual("substring(var1 from 3)", asf.Render(args, factoryImpl).ToString());


Clone Instance
22
Line Count
1
Source Line
287
Source File
src/NHibernate.Test/HQL/SimpleFunctionsTest.cs

                        Assert.AreEqual("substring(var1 from 3 for 4)", asf.Render(args, factoryImpl).ToString());


Clone Instance
23
Line Count
1
Source Line
19
Source File
src/NHibernate.Test/HQL/SQLFunctionTemplateTest.cs

                        Assert.AreEqual("ltrim( 'abcd   <' )", ft.Render(args, factoryImpl).ToString());


Clone Instance
24
Line Count
1
Source Line
23
Source File
src/NHibernate.Test/HQL/SQLFunctionTemplateTest.cs

                        Assert.AreEqual("ltrim( Az?ab )", ft.Render(args, factoryImpl).ToString());


Clone Instance
25
Line Count
1
Source Line
27
Source File
src/NHibernate.Test/HQL/SQLFunctionTemplateTest.cs

                        Assert.AreEqual("function( 'abcd   <' )? 5:6", ft.Render(args, factoryImpl).ToString());


Clone Instance
26
Line Count
1
Source Line
31
Source File
src/NHibernate.Test/HQL/SQLFunctionTemplateTest.cs

                        Assert.AreEqual("???????'abcd   <'?", ft.Render(args, factoryImpl).ToString());


Clone Instance
27
Line Count
3
Source Line
45
Source File
src/NHibernate.Test/HQL/SQLFunctionTemplateTest.cs

                        Assert.AreEqual(
                                "replace( replace( rtrim( replace( replace( 'param1  ', ' ', '${space}$' ), 'param2 ab ', ' ' ) ), ' ', 'param2 ab ' ), '${space}$', ' ' )",
                                ft.Render(args, factoryImpl).ToString());


Clone Instance
28
Line Count
1
Source Line
54
Source File
src/NHibernate.Test/HQL/SQLFunctionTemplateTest.cs

                        Assert.AreEqual("1 3 2 3 1", ft.Render(args, factoryImpl).ToString());


Clone Instance
29
Line Count
1
Source Line
71
Source File
src/NHibernate.Test/HQL/SQLFunctionTemplateTest.cs

                        Assert.AreEqual(expected, ft.Render(args, factoryImpl).ToString());


Clone Instance
30
Line Count
1
Source Line
82
Source File
src/NHibernate.Test/HQL/SQLFunctionTemplateTest.cs

                        Assert.AreEqual("func(,)", ft.Render(args, factoryImpl).ToString());


Clone Instance
31
Line Count
1
Source Line
88
Source File
src/NHibernate.Test/HQL/SQLFunctionTemplateTest.cs

                        Assert.AreEqual("func(1,)", ft.Render(args, factoryImpl).ToString());


Clone Instance
32
Line Count
1
Source Line
96
Source File
src/NHibernate.Test/HQL/SQLFunctionTemplateTest.cs

                        Assert.AreEqual("func(1,3)", ft.Render(args, factoryImpl).ToString());


Clone Instance
33
Line Count
1
Source Line
104
Source File
src/NHibernate.Test/HQL/SQLFunctionTemplateTest.cs

                        Assert.AreEqual("func(2, 1, 3)", ft.Render(args, factoryImpl).ToString());


Clone AbstractionParameter Count: 2Parameter Bindings

Assert.AreEqual( [[#variable2cdd1160]], [[#variable2cdd1140]].Render(args, factoryImpl).ToString());
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#2cdd1160]]
"ltrim( 'abcd   <' )" 
12[[#2cdd1160]]
"ltrim( Az?ab )" 
13[[#2cdd1160]]
"function( 'abcd   <' )? 5:6" 
14[[#2cdd1160]]
"???????'abcd   <'?" 
15[[#2cdd1160]]
"replace( replace( rtrim( replace( replace( 'param1  ', ' ', '${space}$' ), 'param2 ab ', ' ' ) ), ' ', 'param2 ab ' ), '${space}$', ' ' )" 
16[[#2cdd1160]]
"1 3 2 3 1" 
17[[#2cdd1160]]
expected 
18[[#2cdd1160]]
"func(,)" 
19[[#2cdd1160]]
"func(1,)" 
110[[#2cdd1160]]
"func(1,3)" 
111[[#2cdd1160]]
"func(2, 1, 3)" 
112[[#2cdd1160]]
"noArgs()" 
113[[#2cdd1160]]
"noArgs" 
114[[#2cdd1160]]
"fname()" 
115[[#2cdd1160]]
"fname(1, 2)" 
116[[#2cdd1160]]
expected 
117[[#2cdd1160]]
"()" 
118[[#2cdd1160]]
"(va1)" 
119[[#2cdd1160]]
"(va1 || va2 || va3)" 
120[[#2cdd1160]]
"va1" 
121[[#2cdd1160]]
"nvl(va1, nvl(va2, va3))" 
122[[#2cdd1160]]
"position('a' in va2)" 
123[[#2cdd1160]]
"(position('a' in substring(va2, 2))+2-1)" 
124[[#2cdd1160]]
"sum(va1)" 
125[[#2cdd1160]]
"sum(distinct va2)" 
126[[#2cdd1160]]
"count(va1)" 
127[[#2cdd1160]]
"count(*)" 
128[[#2cdd1160]]
"avg(va1)" 
129[[#2cdd1160]]
"avg(distinct va2)" 
130[[#2cdd1160]]
"max(va1)" 
131[[#2cdd1160]]
"max(distinct va2)" 
132[[#2cdd1160]]
"substring(var1 from 3)" 
133[[#2cdd1160]]
"substring(var1 from 3 for 4)" 
21[[#2cdd1140]]
ft 
22[[#2cdd1140]]
ft 
23[[#2cdd1140]]
ft 
24[[#2cdd1140]]
ft 
25[[#2cdd1140]]
ft 
26[[#2cdd1140]]
ft 
27[[#2cdd1140]]
ft 
28[[#2cdd1140]]
ft 
29[[#2cdd1140]]
ft 
210[[#2cdd1140]]
ft 
211[[#2cdd1140]]
ft 
212[[#2cdd1140]]
nf 
213[[#2cdd1140]]
nf 
214[[#2cdd1140]]
sf 
215[[#2cdd1140]]
sf 
216[[#2cdd1140]]
cf 
217[[#2cdd1140]]
vf 
218[[#2cdd1140]]
vf 
219[[#2cdd1140]]
vf 
220[[#2cdd1140]]
nf 
221[[#2cdd1140]]
nf 
222[[#2cdd1140]]
psf 
223[[#2cdd1140]]
psf 
224[[#2cdd1140]]
csf 
225[[#2cdd1140]]
csf 
226[[#2cdd1140]]
ccf 
227[[#2cdd1140]]
ccf 
228[[#2cdd1140]]
caf 
229[[#2cdd1140]]
caf 
230[[#2cdd1140]]
caf 
231[[#2cdd1140]]
caf 
232[[#2cdd1140]]
asf 
233[[#2cdd1140]]
asf