CloneSet1117


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
4430.961block
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1102522
src/NHibernate.Test/Legacy/FooBarTest.cs
24330
src/NHibernate.Test/Legacy/MultiTableTest.cs
34336
src/NHibernate.Test/Legacy/MultiTableTest.cs
44425
src/NHibernate.Test/Legacy/SQLFunctionsTest.cs
Clone Instance
1
Line Count
10
Source Line
2522
Source File
src/NHibernate.Test/Legacy/FooBarTest.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();
                                }


Clone Instance
2
Line Count
4
Source Line
330
Source File
src/NHibernate.Test/Legacy/MultiTableTest.cs

            {
                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();
            }


Clone Instance
3
Line Count
4
Source Line
336
Source File
src/NHibernate.Test/Legacy/MultiTableTest.cs

            {
                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();
            }


Clone Instance
4
Line Count
4
Source Line
425
Source File
src/NHibernate.Test/Legacy/SQLFunctionsTest.cs

                                {
                                        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();
                                }


Clone AbstractionParameter Count: 3Parameter Bindings

{
   s.CreateQuery( [[#variable26cbf8c0]]).List();
   s.CreateQuery( [[#variable26cbf820]]).List();
   s.CreateQuery( [[#variable26cbf7a0]]).List();
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#26cbf8c0]]
"from ls in class Lower, s in ls.Bag.elements where s.id is not null" 
12[[#26cbf8c0]]
"from ls in class Lower, s in elements(ls.Bag) where s.id is not null" 
13[[#26cbf8c0]]
"from s in class Simple where repeat('foo', 3) = 'foofoofoo'" 
14[[#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)" 
21[[#26cbf820]]
"from ls in class Lower, s in ls.Set.elements where s.id is not null" 
22[[#26cbf820]]
"from ls in class Lower, s in elements(ls.Set) where s.id is not null" 
23[[#26cbf820]]
"from s in class Simple where repeat(s.Name, 3) = 'foofoofoo'" 
24[[#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)" 
31[[#26cbf7a0]]
"from sm in class SubMulti where exists sm.Children.elements" 
32[[#26cbf7a0]]
"from sm in class SubMulti where exists elements(sm.Children)" 
33[[#26cbf7a0]]
"from s in class Simple where repeat( lower(s.Name), 3 + (1-1) / 2) = 'foofoofoo'" 
34[[#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)"