Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
4 | 4 | 3 | 0.961 | block |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 10 | 2522 | src/NHibernate.Test/Legacy/FooBarTest.cs |
2 | 4 | 330 | src/NHibernate.Test/Legacy/MultiTableTest.cs |
3 | 4 | 336 | src/NHibernate.Test/Legacy/MultiTableTest.cs |
4 | 4 | 425 | src/NHibernate.Test/Legacy/SQLFunctionsTest.cs |
| ||||
{ s.CreateQuery( "select count(*) from Bar as bar join bar.Component.Glarch.ProxyArray as g where cast(g.id as Int32) in indices(bar.Baz.FooArray)"). List(); s.CreateQuery( "select max( elements(bar.Baz.FooArray) ) from Bar as bar join bar.Component.Glarch.ProxyArray as g where cast(g.id as Int32) in indices(bar.Baz.FooArray)"). List(); s.CreateQuery( "select count(*) from Bar as bar left outer join bar.Component.Glarch.ProxyArray as pg where '1' in (from g in bar.Component.Glarch.ProxyArray)"). List(); } |
| ||||
{ s.CreateQuery("from ls in class Lower, s in ls.Bag.elements where s.id is not null").List(); s.CreateQuery("from ls in class Lower, s in ls.Set.elements where s.id is not null").List(); s.CreateQuery("from sm in class SubMulti where exists sm.Children.elements").List(); } |
| ||||
{ s.CreateQuery("from ls in class Lower, s in elements(ls.Bag) where s.id is not null").List(); s.CreateQuery("from ls in class Lower, s in elements(ls.Set) where s.id is not null").List(); s.CreateQuery("from sm in class SubMulti where exists elements(sm.Children)").List(); } |
| ||||
{ s.CreateQuery("from s in class Simple where repeat('foo', 3) = 'foofoofoo'").List(); s.CreateQuery("from s in class Simple where repeat(s.Name, 3) = 'foofoofoo'").List(); s.CreateQuery("from s in class Simple where repeat( lower(s.Name), 3 + (1-1) / 2) = 'foofoofoo'").List(); } |
| |||
{ s.CreateQuery( [[#variable26cbf8c0]]).List(); s.CreateQuery( [[#variable26cbf820]]).List(); s.CreateQuery( [[#variable26cbf7a0]]).List(); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#26cbf8c0]] | "from ls in class Lower, s in ls.Bag.elements where s.id is not null" |
1 | 2 | [[#26cbf8c0]] | "from ls in class Lower, s in elements(ls.Bag) where s.id is not null" |
1 | 3 | [[#26cbf8c0]] | "from s in class Simple where repeat('foo', 3) = 'foofoofoo'" |
1 | 4 | [[#26cbf8c0]] | "select count(*) from Bar as bar join bar.Component.Glarch.ProxyArray as g where cast(g.id as Int32) in indices(bar.Baz.FooArray)" |
2 | 1 | [[#26cbf820]] | "from ls in class Lower, s in ls.Set.elements where s.id is not null" |
2 | 2 | [[#26cbf820]] | "from ls in class Lower, s in elements(ls.Set) where s.id is not null" |
2 | 3 | [[#26cbf820]] | "from s in class Simple where repeat(s.Name, 3) = 'foofoofoo'" |
2 | 4 | [[#26cbf820]] | "select max( elements(bar.Baz.FooArray) ) from Bar as bar join bar.Component.Glarch.ProxyArray as g where cast(g.id as Int32) in indices(bar.Baz.FooArray)" |
3 | 1 | [[#26cbf7a0]] | "from sm in class SubMulti where exists sm.Children.elements" |
3 | 2 | [[#26cbf7a0]] | "from sm in class SubMulti where exists elements(sm.Children)" |
3 | 3 | [[#26cbf7a0]] | "from s in class Simple where repeat( lower(s.Name), 3 + (1-1) / 2) = 'foofoofoo'" |
3 | 4 | [[#26cbf7a0]] | "select count(*) from Bar as bar left outer join bar.Component.Glarch.ProxyArray as pg where '1' in (from g in bar.Component.Glarch.ProxyArray)" |