Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
2 | 24 | 3 | 0.965 | statement_list[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 5 | 496 | src/NHibernate.Test/Legacy/FooBarTest.cs |
2 | 2 | 507 | src/NHibernate.Test/Legacy/FooBarTest.cs |
3 | 3 | 534 | src/NHibernate.Test/Legacy/FooBarTest.cs |
4 | 2 | 537 | src/NHibernate.Test/Legacy/FooBarTest.cs |
5 | 2 | 539 | src/NHibernate.Test/Legacy/FooBarTest.cs |
6 | 2 | 560 | src/NHibernate.Test/Legacy/FooBarTest.cs |
7 | 2 | 563 | src/NHibernate.Test/Legacy/FooBarTest.cs |
8 | 5 | 566 | src/NHibernate.Test/Legacy/FooBarTest.cs |
9 | 4 | 572 | src/NHibernate.Test/Legacy/FooBarTest.cs |
10 | 2 | 577 | src/NHibernate.Test/Legacy/FooBarTest.cs |
11 | 2 | 587 | src/NHibernate.Test/Legacy/FooBarTest.cs |
12 | 2 | 591 | src/NHibernate.Test/Legacy/FooBarTest.cs |
13 | 2 | 658 | src/NHibernate.Test/Legacy/FooBarTest.cs |
14 | 2 | 661 | src/NHibernate.Test/Legacy/FooBarTest.cs |
15 | 2 | 664 | src/NHibernate.Test/Legacy/FooBarTest.cs |
16 | 4 | 676 | src/NHibernate.Test/Legacy/FooBarTest.cs |
17 | 2 | 680 | src/NHibernate.Test/Legacy/FooBarTest.cs |
18 | 2 | 3890 | src/NHibernate.Test/Legacy/FooBarTest.cs |
19 | 2 | 3892 | src/NHibernate.Test/Legacy/FooBarTest.cs |
20 | 2 | 3933 | src/NHibernate.Test/Legacy/FooBarTest.cs |
21 | 2 | 3940 | src/NHibernate.Test/Legacy/FooBarTest.cs |
22 | 5 | 4603 | src/NHibernate.Test/Legacy/FooBarTest.cs |
23 | 4 | 4608 | src/NHibernate.Test/Legacy/FooBarTest.cs |
24 | 2 | 502 | src/NHibernate.Test/Legacy/FumTest.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"); |
| ||||
list = s.CreateQuery("select foo.TheFoo from foo in class NHibernate.DomainModel.Foo").List(); Assert.AreEqual(1, list.Count, "query"); |
| ||||
list = s.CreateQuery("from foo in class NHibernate.DomainModel.Foo where size(foo.Component.ImportantDates) = 3").List(); Assert.AreEqual(2, list.Count, "component query"); |
| ||||
list = s.CreateQuery("from foo in class Foo where 0 = size(foo.Component.ImportantDates)").List(); Assert.AreEqual(0, list.Count, "component query"); |
| ||||
list = s.CreateQuery("from foo in class Foo where exists elements(foo.Component.ImportantDates)").List(); Assert.AreEqual(2, list.Count, "component query"); |
| ||||
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"); |
| ||||
list = s.CreateQuery("from foo in class Foo where foo.Component.Name='foo'").List(); Assert.AreEqual(2, list.Count, "component query"); |
| ||||
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"); |
| ||||
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"); |
| ||||
list = s.CreateQuery("select foo.TheFoo from foo in class Foo").List(); Assert.AreEqual(2, list.Count, "query"); |
| ||||
list = s.CreateQuery("select foo.TheFoo from foo in class Foo where foo.String='fizard'").List(); Assert.AreEqual(1, list.Count, "query"); |
| ||||
list = s.CreateQuery("from foo in class Foo where foo.Component.Subcomponent.Name='bar'").List(); Assert.AreEqual(2, list.Count, "components of components"); |
| ||||
list = s.CreateQuery("from foo in class Foo where foo.String='from BoogieDown -tinsel town =!@#$^&*())'").List(); Assert.AreEqual(1, list.Count, "single quotes"); |
| ||||
list = s.CreateQuery("from foo in class Foo where not foo.String='foo''bar'").List(); Assert.AreEqual(2, list.Count, "single quotes"); |
| ||||
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"); |
| ||||
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"); |
| ||||
list = s.CreateQuery(" from i in class Bar where i.Baz.Name='Bazza'").List(); Assert.AreEqual(1, list.Count, "query many-to-one"); |
| ||||
list = s.CreateQuery("from g in class NHibernate.DomainModel.Glarch").List(); Assert.AreEqual(6, list.Count, "recursive iter"); |
| ||||
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"); |
| ||||
list = s.CreateQuery("from foo in class NHibernate.DomainModel.Foo").List(); Assert.AreEqual(6, list.Count, "recursive find"); |
| ||||
list = s.CreateQuery("from foo in class NHibernate.DomainModel.Foo").List(); Assert.AreEqual(6, list.Count, "recursive iter"); |
| ||||
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"); |
| ||||
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"); |
| ||||
list = s.CreateQuery("from fum in class NHibernate.DomainModel.Fum where not fum.FumString='FRIEND'").List(); Assert.AreEqual(2, list.Count, "deleted owner"); |
| |||
list = s.CreateQuery( [[#variable6e3a64a0]]).List(); Assert.AreEqual( [[#variable5684bb40]], list.Count, [[#variable6e3a64e0]]); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#6e3a64a0]] | "from foo in class NHibernate.DomainModel.Foo" |
1 | 2 | [[#6e3a64a0]] | "select foo from foo in class NHibernate.DomainModel.Foo order by foo.Dependent.id, foo.Dependent.Fi" |
1 | 3 | [[#6e3a64a0]] | "select foo.TheFoo, foo.Dependent from foo in class Foo order by foo.TheFoo.String desc, foo.Component.Count asc, foo.Dependent.id" |
1 | 4 | [[#6e3a64a0]] | "from g in class NHibernate.DomainModel.Glarch where g.Next is not null" |
1 | 5 | [[#6e3a64a0]] | "from g in class NHibernate.DomainModel.Glarch" |
1 | 6 | [[#6e3a64a0]] | " from i in class Bar where i.Baz.Name='Bazza'" |
1 | 7 | [[#6e3a64a0]] | " from bar in class Bar where bar.Baz.Count=667 and bar.Baz.Count!=123 and not bar.Baz.Name='1-E-1'" |
1 | 8 | [[#6e3a64a0]] | "from foo in class Foo where foo.Component.Glarch.Next is null" |
1 | 9 | [[#6e3a64a0]] | "from foo in class Foo where not foo.String='foo''bar'" |
1 | 10 | [[#6e3a64a0]] | "from foo in class Foo where foo.String='from BoogieDown -tinsel town =!@#$^&*())'" |
1 | 11 | [[#6e3a64a0]] | "from foo in class Foo where foo.Component.Subcomponent.Name='bar'" |
1 | 12 | [[#6e3a64a0]] | "select foo.TheFoo from foo in class Foo where foo.String='fizard'" |
1 | 13 | [[#6e3a64a0]] | "select foo.TheFoo from foo in class Foo" |
1 | 14 | [[#6e3a64a0]] | "select distinct foo.Component.Name, foo.id from foo in class Foo where foo.Component.Name='foo'" |
1 | 15 | [[#6e3a64a0]] | "select distinct foo.Component.Name, foo.Component.Name from foo in class Foo where foo.Component.Name='foo'" |
1 | 16 | [[#6e3a64a0]] | "from foo in class Foo where foo.Component.Name='foo'" |
1 | 17 | [[#6e3a64a0]] | "from foo in class Foo where foo.Component.Count is null order by foo.Component.Count" |
1 | 18 | [[#6e3a64a0]] | "from foo in class Foo where exists elements(foo.Component.ImportantDates)" |
1 | 19 | [[#6e3a64a0]] | "from foo in class Foo where 0 = size(foo.Component.ImportantDates)" |
1 | 20 | [[#6e3a64a0]] | "from foo in class NHibernate.DomainModel.Foo where size(foo.Component.ImportantDates) = 3" |
1 | 21 | [[#6e3a64a0]] | "select foo.TheFoo from foo in class NHibernate.DomainModel.Foo" |
1 | 22 | [[#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" |
1 | 23 | [[#6e3a64a0]] | "from fum in class NHibernate.DomainModel.Fum where not fum.FumString='FRIEND'" |
1 | 24 | [[#6e3a64a0]] | "from foo in class NHibernate.DomainModel.Foo" |
2 | 1 | [[#5684bb40]] | 6 |
2 | 2 | [[#5684bb40]] | 2 |
2 | 3 | [[#5684bb40]] | 1 |
2 | 4 | [[#5684bb40]] | 5 |
2 | 5 | [[#5684bb40]] | 6 |
2 | 6 | [[#5684bb40]] | 1 |
2 | 7 | [[#5684bb40]] | 1 |
2 | 8 | [[#5684bb40]] | 2 |
2 | 9 | [[#5684bb40]] | 2 |
2 | 10 | [[#5684bb40]] | 1 |
2 | 11 | [[#5684bb40]] | 2 |
2 | 12 | [[#5684bb40]] | 1 |
2 | 13 | [[#5684bb40]] | 2 |
2 | 14 | [[#5684bb40]] | 2 |
2 | 15 | [[#5684bb40]] | 1 |
2 | 16 | [[#5684bb40]] | 2 |
2 | 17 | [[#5684bb40]] | 0 |
2 | 18 | [[#5684bb40]] | 2 |
2 | 19 | [[#5684bb40]] | 0 |
2 | 20 | [[#5684bb40]] | 2 |
2 | 21 | [[#5684bb40]] | 1 |
2 | 22 | [[#5684bb40]] | 0 |
2 | 23 | [[#5684bb40]] | 2 |
2 | 24 | [[#5684bb40]] | 6 |
3 | 1 | [[#6e3a64e0]] | "recursive iter" |
3 | 2 | [[#6e3a64e0]] | "order by" |
3 | 3 | [[#6e3a64e0]] | "order by" |
3 | 4 | [[#6e3a64e0]] | "exclude the null next" |
3 | 5 | [[#6e3a64e0]] | "recursive iter" |
3 | 6 | [[#6e3a64e0]] | "query many-to-one" |
3 | 7 | [[#6e3a64e0]] | "query many-to-one" |
3 | 8 | [[#6e3a64e0]] | "query association in component" |
3 | 9 | [[#6e3a64e0]] | "single quotes" |
3 | 10 | [[#6e3a64e0]] | "single quotes" |
3 | 11 | [[#6e3a64e0]] | "components of components" |
3 | 12 | [[#6e3a64e0]] | "query" |
3 | 13 | [[#6e3a64e0]] | "query" |
3 | 14 | [[#6e3a64e0]] | "component query" |
3 | 15 | [[#6e3a64e0]] | "component query" |
3 | 16 | [[#6e3a64e0]] | "component query" |
3 | 17 | [[#6e3a64e0]] | "component query" |
3 | 18 | [[#6e3a64e0]] | "component query" |
3 | 19 | [[#6e3a64e0]] | "component query" |
3 | 20 | [[#6e3a64e0]] | "component query" |
3 | 21 | [[#6e3a64e0]] | "query" |
3 | 22 | [[#6e3a64e0]] | "empty query" |
3 | 23 | [[#6e3a64e0]] | "deleted owner" |
3 | 24 | [[#6e3a64e0]] | "recursive find" |