CloneSet138


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14330.985non_pp_embedded_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11485
src/NHibernate.Test/QueryTest/MultipleQueriesFixture.cs
214136
src/NHibernate.Test/QueryTest/MultipleQueriesFixture.cs
314189
src/NHibernate.Test/QueryTest/MultipleQueriesFixture.cs
Clone Instance
1
Line Count
14
Source Line
85
Source File
src/NHibernate.Test/QueryTest/MultipleQueriesFixture.cs

                        using (ISession s = sessions.OpenSession())
                        {
                                IMultiQuery MultiQuery = s.CreateMultiQuery().
                                         Add             (s.CreateQuery("from Item i where i.Id > ?").
                                                                       SetInt32(0, 50).
                                                                       SetFirstResult(10)).
                                         Add             (s.CreateQuery("select count(*) from Item i where i.Id > ?").
                                                                       SetInt32(0, 50));
                                MultiQuery.SetCacheable(true);
                                IList results = MultiQuery.List();
                                IList items = (IList)results[0];
                                Assert.AreEqual(2, items.Count);
                                long count = (long)((IList)results[1])[0];
                                Assert.AreEqual(2L, count);
                        }


Clone Instance
2
Line Count
14
Source Line
136
Source File
src/NHibernate.Test/QueryTest/MultipleQueriesFixture.cs

                        using (ISession s = OpenSession())
                        {
                                IMultiQuery MultiQuery = s.CreateMultiQuery().
                                         Add             (s.CreateQuery("from Item i where i.Id > ?").
                                                                       SetInt32(0, 50).
                                                                       SetFirstResult(10)).
                                         Add             (s.CreateQuery("select count(*) from Item i where i.Id > ?").
                                                                       SetInt32(0, 50));
                                MultiQuery.SetCacheable(true);
                                IList results = MultiQuery.List();
                                IList items = (IList)results[0];
                                Assert.AreEqual(89, items.Count);
                                long count = (long)((IList)results[1])[0];
                                Assert.AreEqual(99L, count);
                        }


Clone Instance
3
Line Count
14
Source Line
189
Source File
src/NHibernate.Test/QueryTest/MultipleQueriesFixture.cs

                        using (ISession s = OpenSession())
                        {
                                IMultiQuery MultiQuery = s.CreateMultiQuery().
                                         Add             (s.CreateQuery("from Item i where i.Id > ?").
                                                                       SetInt32(0, 50).
                                                                       SetFirstResult(10)).
                                         Add             (s.CreateQuery("select count(*) from Item i where i.Id > ?").
                                                                       SetInt32(0, 50));
                                MultiQuery.SetCacheable(true);
                                IList results = MultiQuery.List();
                                IList items = (IList)results[0];
                                Assert.AreEqual(89, items.Count);
                                long count = (long)((IList)results[1])[0];
                                Assert.AreEqual(99L, count);
                        }


Clone AbstractionParameter Count: 3Parameter Bindings

using (ISession s = [[#variable703d7be0]]())
{
   IMultiQuery MultiQuery = s.CreateMultiQuery().Add(s.CreateQuery("from Item i where i.Id > ?").SetInt32(0, 50).SetFirstResult(10)).Add(s.CreateQuery("select count(*) from Item i where i.Id > ?").SetInt32(0, 50));
   MultiQuery.SetCacheable(true);
   IList results = MultiQuery.List();
   IList items = (IList)results[0];
   Assert.AreEqual( [[#variable6e453200]], items.Count);
   long count = (long)((IList)results[1])[0];
   Assert.AreEqual( [[#variable703d7aa0]], count);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#703d7be0]]
OpenSession 
12[[#703d7be0]]
sessions.OpenSession 
13[[#703d7be0]]
OpenSession 
21[[#6e453200]]
89 
22[[#6e453200]]
2 
23[[#6e453200]]
89 
31[[#703d7aa0]]
99L 
32[[#703d7aa0]]
2L 
33[[#703d7aa0]]
99L