CloneSet58


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
22430.965statement_list[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
15496
src/NHibernate.Test/Legacy/FooBarTest.cs
22507
src/NHibernate.Test/Legacy/FooBarTest.cs
33534
src/NHibernate.Test/Legacy/FooBarTest.cs
42537
src/NHibernate.Test/Legacy/FooBarTest.cs
52539
src/NHibernate.Test/Legacy/FooBarTest.cs
62560
src/NHibernate.Test/Legacy/FooBarTest.cs
72563
src/NHibernate.Test/Legacy/FooBarTest.cs
85566
src/NHibernate.Test/Legacy/FooBarTest.cs
94572
src/NHibernate.Test/Legacy/FooBarTest.cs
102577
src/NHibernate.Test/Legacy/FooBarTest.cs
112587
src/NHibernate.Test/Legacy/FooBarTest.cs
122591
src/NHibernate.Test/Legacy/FooBarTest.cs
132658
src/NHibernate.Test/Legacy/FooBarTest.cs
142661
src/NHibernate.Test/Legacy/FooBarTest.cs
152664
src/NHibernate.Test/Legacy/FooBarTest.cs
164676
src/NHibernate.Test/Legacy/FooBarTest.cs
172680
src/NHibernate.Test/Legacy/FooBarTest.cs
1823890
src/NHibernate.Test/Legacy/FooBarTest.cs
1923892
src/NHibernate.Test/Legacy/FooBarTest.cs
2023933
src/NHibernate.Test/Legacy/FooBarTest.cs
2123940
src/NHibernate.Test/Legacy/FooBarTest.cs
2254603
src/NHibernate.Test/Legacy/FooBarTest.cs
2344608
src/NHibernate.Test/Legacy/FooBarTest.cs
242502
src/NHibernate.Test/Legacy/FumTest.cs
Clone Instance
1
Line Count
5
Source Line
496
Source File
src/NHibernate.Test/Legacy/FooBarTest.cs

                        list =
                                s.CreateQuery(
                                        "from foo in class NHibernate.DomainModel.Foo where foo.String='osama bin laden' and foo.Boolean = true order by foo.String asc, foo.Component.Count desc").
                                         List();
                        Assert.AreEqual(0, list.Count, "empty query");


Clone Instance
2
Line Count
2
Source Line
507
Source File
src/NHibernate.Test/Legacy/FooBarTest.cs

                        list = s.CreateQuery("select foo.TheFoo from foo in class NHibernate.DomainModel.Foo").List();
                        Assert.AreEqual(1, list.Count, "query");


Clone Instance
3
Line Count
3
Source Line
534
Source File
src/NHibernate.Test/Legacy/FooBarTest.cs

                                list =
                                        s.CreateQuery("from foo in class NHibernate.DomainModel.Foo where size(foo.Component.ImportantDates) = 3").List();
                                Assert.AreEqual(2, list.Count, "component query");


Clone Instance
4
Line Count
2
Source Line
537
Source File
src/NHibernate.Test/Legacy/FooBarTest.cs

                                list = s.CreateQuery("from foo in class Foo where 0 = size(foo.Component.ImportantDates)").List();
                                Assert.AreEqual(0, list.Count, "component query");


Clone Instance
5
Line Count
2
Source Line
539
Source File
src/NHibernate.Test/Legacy/FooBarTest.cs

                                list = s.CreateQuery("from foo in class Foo where exists elements(foo.Component.ImportantDates)").List();
                                Assert.AreEqual(2, list.Count, "component query");


Clone Instance
6
Line Count
2
Source Line
560
Source File
src/NHibernate.Test/Legacy/FooBarTest.cs

                        list = s.CreateQuery("from foo in class Foo where foo.Component.Count is null order by foo.Component.Count").List();
                        Assert.AreEqual(0, list.Count, "component query");


Clone Instance
7
Line Count
2
Source Line
563
Source File
src/NHibernate.Test/Legacy/FooBarTest.cs

                        list = s.CreateQuery("from foo in class Foo where foo.Component.Name='foo'").List();
                        Assert.AreEqual(2, list.Count, "component query");


Clone Instance
8
Line Count
5
Source Line
566
Source File
src/NHibernate.Test/Legacy/FooBarTest.cs

                        list =
                                s.CreateQuery(
                                        "select distinct foo.Component.Name, foo.Component.Name from foo in class Foo where foo.Component.Name='foo'").List();

                        Assert.AreEqual(1, list.Count, "component query");


Clone Instance
9
Line Count
4
Source Line
572
Source File
src/NHibernate.Test/Legacy/FooBarTest.cs

                        list =
                                s.CreateQuery("select distinct foo.Component.Name, foo.id from foo in class Foo where foo.Component.Name='foo'").
                                        List();
                        Assert.AreEqual(2, list.Count, "component query");


Clone Instance
10
Line Count
2
Source Line
577
Source File
src/NHibernate.Test/Legacy/FooBarTest.cs

                        list = s.CreateQuery("select foo.TheFoo from foo in class Foo").List();
                        Assert.AreEqual(2, list.Count, "query");


Clone Instance
11
Line Count
2
Source Line
587
Source File
src/NHibernate.Test/Legacy/FooBarTest.cs

                        list = s.CreateQuery("select foo.TheFoo from foo in class Foo where foo.String='fizard'").List();
                        Assert.AreEqual(1, list.Count, "query");


Clone Instance
12
Line Count
2
Source Line
591
Source File
src/NHibernate.Test/Legacy/FooBarTest.cs

                        list = s.CreateQuery("from foo in class Foo where foo.Component.Subcomponent.Name='bar'").List();
                        Assert.AreEqual(2, list.Count, "components of components");


Clone Instance
13
Line Count
2
Source Line
658
Source File
src/NHibernate.Test/Legacy/FooBarTest.cs

                        list = s.CreateQuery("from foo in class Foo where foo.String='from BoogieDown  -tinsel town  =!@#$^&*())'").List();
                        Assert.AreEqual(1, list.Count, "single quotes");


Clone Instance
14
Line Count
2
Source Line
661
Source File
src/NHibernate.Test/Legacy/FooBarTest.cs

                        list = s.CreateQuery("from foo in class Foo where not foo.String='foo''bar'").List();
                        Assert.AreEqual(2, list.Count, "single quotes");


Clone Instance
15
Line Count
2
Source Line
664
Source File
src/NHibernate.Test/Legacy/FooBarTest.cs

                        list = s.CreateQuery("from foo in class Foo where foo.Component.Glarch.Next is null").List();
                        Assert.AreEqual(2, list.Count, "query association in component");


Clone Instance
16
Line Count
4
Source Line
676
Source File
src/NHibernate.Test/Legacy/FooBarTest.cs

                        list =
                                s.CreateQuery(" from bar in class Bar where bar.Baz.Count=667 and bar.Baz.Count!=123 and not bar.Baz.Name='1-E-1'").
                                        List();
                        Assert.AreEqual(1, list.Count, "query many-to-one");


Clone Instance
17
Line Count
2
Source Line
680
Source File
src/NHibernate.Test/Legacy/FooBarTest.cs

                        list = s.CreateQuery(" from i in class Bar where i.Baz.Name='Bazza'").List();
                        Assert.AreEqual(1, list.Count, "query many-to-one");


Clone Instance
18
Line Count
2
Source Line
3890
Source File
src/NHibernate.Test/Legacy/FooBarTest.cs

                        list = s.CreateQuery("from g in class NHibernate.DomainModel.Glarch").List();
                        Assert.AreEqual(6, list.Count, "recursive iter");


Clone Instance
19
Line Count
2
Source Line
3892
Source File
src/NHibernate.Test/Legacy/FooBarTest.cs

                        list = s.CreateQuery("from g in class NHibernate.DomainModel.Glarch where g.Next is not null").List();
                        Assert.AreEqual(5, list.Count, "exclude the null next");


Clone Instance
20
Line Count
2
Source Line
3933
Source File
src/NHibernate.Test/Legacy/FooBarTest.cs

                        list = s.CreateQuery("from foo in class NHibernate.DomainModel.Foo").List();
                        Assert.AreEqual(6, list.Count, "recursive find");


Clone Instance
21
Line Count
2
Source Line
3940
Source File
src/NHibernate.Test/Legacy/FooBarTest.cs

                        list = s.CreateQuery("from foo in class NHibernate.DomainModel.Foo").List();
                        Assert.AreEqual(6, list.Count, "recursive iter");


Clone Instance
22
Line Count
5
Source Line
4603
Source File
src/NHibernate.Test/Legacy/FooBarTest.cs

                        list =
                                s.CreateQuery(
                                        "select foo.TheFoo, foo.Dependent from foo in class Foo order by foo.TheFoo.String desc, foo.Component.Count asc, foo.Dependent.id").
                                         List();
                        Assert.AreEqual(1, list.Count, "order by");


Clone Instance
23
Line Count
4
Source Line
4608
Source File
src/NHibernate.Test/Legacy/FooBarTest.cs

                        list =
                                s.CreateQuery("select foo from foo in class NHibernate.DomainModel.Foo order by foo.Dependent.id, foo.Dependent.Fi").
                                         List();
                        Assert.AreEqual(2, list.Count, "order by");


Clone Instance
24
Line Count
2
Source Line
502
Source File
src/NHibernate.Test/Legacy/FumTest.cs

                        list = s.CreateQuery("from fum in class NHibernate.DomainModel.Fum where not fum.FumString='FRIEND'").List();
                        Assert.AreEqual(2, list.Count, "deleted owner");


Clone AbstractionParameter Count: 3Parameter Bindings

list = s.CreateQuery( [[#variable6e3a64a0]]).List();
Assert.AreEqual( [[#variable5684bb40]], list.Count, [[#variable6e3a64e0]]);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#6e3a64a0]]
"from foo in class NHibernate.DomainModel.Foo" 
12[[#6e3a64a0]]
"select foo from foo in class NHibernate.DomainModel.Foo order by foo.Dependent.id, foo.Dependent.Fi" 
13[[#6e3a64a0]]
"select foo.TheFoo, foo.Dependent from foo in class Foo order by foo.TheFoo.String desc, foo.Component.Count asc, foo.Dependent.id" 
14[[#6e3a64a0]]
"from g in class NHibernate.DomainModel.Glarch where g.Next is not null" 
15[[#6e3a64a0]]
"from g in class NHibernate.DomainModel.Glarch" 
16[[#6e3a64a0]]
" from i in class Bar where i.Baz.Name='Bazza'" 
17[[#6e3a64a0]]
" from bar in class Bar where bar.Baz.Count=667 and bar.Baz.Count!=123 and not bar.Baz.Name='1-E-1'" 
18[[#6e3a64a0]]
"from foo in class Foo where foo.Component.Glarch.Next is null" 
19[[#6e3a64a0]]
"from foo in class Foo where not foo.String='foo''bar'" 
110[[#6e3a64a0]]
"from foo in class Foo where foo.String='from BoogieDown  -tinsel town  =!@#$^&*())'" 
111[[#6e3a64a0]]
"from foo in class Foo where foo.Component.Subcomponent.Name='bar'" 
112[[#6e3a64a0]]
"select foo.TheFoo from foo in class Foo where foo.String='fizard'" 
113[[#6e3a64a0]]
"select foo.TheFoo from foo in class Foo" 
114[[#6e3a64a0]]
"select distinct foo.Component.Name, foo.id from foo in class Foo where foo.Component.Name='foo'" 
115[[#6e3a64a0]]
"select distinct foo.Component.Name, foo.Component.Name from foo in class Foo where foo.Component.Name='foo'" 
116[[#6e3a64a0]]
"from foo in class Foo where foo.Component.Name='foo'" 
117[[#6e3a64a0]]
"from foo in class Foo where foo.Component.Count is null order by foo.Component.Count" 
118[[#6e3a64a0]]
"from foo in class Foo where exists elements(foo.Component.ImportantDates)" 
119[[#6e3a64a0]]
"from foo in class Foo where 0 = size(foo.Component.ImportantDates)" 
120[[#6e3a64a0]]
"from foo in class NHibernate.DomainModel.Foo where size(foo.Component.ImportantDates) = 3" 
121[[#6e3a64a0]]
"select foo.TheFoo from foo in class NHibernate.DomainModel.Foo" 
122[[#6e3a64a0]]
"from foo in class NHibernate.DomainModel.Foo where foo.String='osama bin laden' and foo.Boolean = true order by foo.String asc, foo.Component.Count desc" 
123[[#6e3a64a0]]
"from fum in class NHibernate.DomainModel.Fum where not fum.FumString='FRIEND'" 
124[[#6e3a64a0]]
"from foo in class NHibernate.DomainModel.Foo" 
21[[#5684bb40]]
6 
22[[#5684bb40]]
2 
23[[#5684bb40]]
1 
24[[#5684bb40]]
5 
25[[#5684bb40]]
6 
26[[#5684bb40]]
1 
27[[#5684bb40]]
1 
28[[#5684bb40]]
2 
29[[#5684bb40]]
2 
210[[#5684bb40]]
1 
211[[#5684bb40]]
2 
212[[#5684bb40]]
1 
213[[#5684bb40]]
2 
214[[#5684bb40]]
2 
215[[#5684bb40]]
1 
216[[#5684bb40]]
2 
217[[#5684bb40]]
0 
218[[#5684bb40]]
2 
219[[#5684bb40]]
0 
220[[#5684bb40]]
2 
221[[#5684bb40]]
1 
222[[#5684bb40]]
0 
223[[#5684bb40]]
2 
224[[#5684bb40]]
6 
31[[#6e3a64e0]]
"recursive iter" 
32[[#6e3a64e0]]
"order by" 
33[[#6e3a64e0]]
"order by" 
34[[#6e3a64e0]]
"exclude the null next" 
35[[#6e3a64e0]]
"recursive iter" 
36[[#6e3a64e0]]
"query many-to-one" 
37[[#6e3a64e0]]
"query many-to-one" 
38[[#6e3a64e0]]
"query association in component" 
39[[#6e3a64e0]]
"single quotes" 
310[[#6e3a64e0]]
"single quotes" 
311[[#6e3a64e0]]
"components of components" 
312[[#6e3a64e0]]
"query" 
313[[#6e3a64e0]]
"query" 
314[[#6e3a64e0]]
"component query" 
315[[#6e3a64e0]]
"component query" 
316[[#6e3a64e0]]
"component query" 
317[[#6e3a64e0]]
"component query" 
318[[#6e3a64e0]]
"component query" 
319[[#6e3a64e0]]
"component query" 
320[[#6e3a64e0]]
"component query" 
321[[#6e3a64e0]]
"query" 
322[[#6e3a64e0]]
"empty query" 
323[[#6e3a64e0]]
"deleted owner" 
324[[#6e3a64e0]]
"recursive find"