CloneSet128


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
17250.957statement_list[15]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
115193
src/NHibernate.Test/QueryTest/DetachedQueryFixture.cs
217274
src/NHibernate.Test/QueryTest/DetachedQueryFixture.cs
Clone Instance
1
Line Count
15
Source Line
193
Source File
src/NHibernate.Test/QueryTest/DetachedQueryFixture.cs

                        TestDetachedQuery tdq = new TestDetachedQuery();
                        tdq.SetLockMode("LM1", LockMode.Read);
                        tdq.SetLockMode("LM2", LockMode.Write);
                        tdq.SetProperties(new Foo("Fulano", "De Tal"));
                        tdq.SetAnsiString(1, ""); //will be override
                        tdq.SetByte(4, 255);
                        tdq.SetCharacter(5, 'A');
                        tdq.SetDateTime(6, DateTime.MinValue); // will be override
                        tdq.SetDateTime("6", DateTime.MinValue); // will be override
                        tdq.SetDouble("8", 8.1F);
                        tdq.SetEntity("9", new Foo("Fulano", "De Tal"));
                        tdq.SetParameterList("UntypedList", new int[] { 5, 6, 7, 8
                                                                      } );             // will be override
                        tdq.SetParameterList("TypedList", new Int64[] { 5, 6, 7, 8
                                                                      } ,             NHibernateUtil.Int64); // will be override
                        tdq.SetComment("other comment"); // will be override
                        origin.CopyTo(tdq);


Clone Instance
2
Line Count
17
Source Line
274
Source File
src/NHibernate.Test/QueryTest/DetachedQueryFixture.cs

                        TestDetachedQuery tdq = new TestDetachedQuery();
                        tdq.SetLockMode("LM1", LockMode.Read);
                        tdq.SetLockMode("LM2", LockMode.Write);
                        tdq.SetProperties(new Foo("Fulano", "De Tal"));
                        tdq.SetAnsiString(1, ""); //will be override
                        tdq.SetByte(4, 255);
                        tdq.SetCharacter(5, 'A');
                        tdq.SetDateTime(6, DateTime.MinValue); // will be override
                        tdq.SetDateTime("6", DateTime.MinValue); // will be override
                        tdq.SetDouble("8", 8.1F);
                        tdq.SetEntity("9", new Foo("Fulano", "De Tal"));
                        tdq.SetParameterList("UntypedList", new int[] { 5, 6, 7, 8
                                                                      } );             // will be override
                        tdq.SetParameterList("TypedList", new Int64[] { 5, 6, 7, 8
                                                                      } ,             NHibernateUtil.Int64); // will be override
                        tdq.OverrideInfoFrom(origin);
                        Assert.AreEqual(5, tdq.Selection.FirstRow);


Clone AbstractionParameter Count: 5Parameter Bindings

TestDetachedQuery tdq = new TestDetachedQuery();
tdq.SetLockMode("LM1", LockMode.Read);
tdq.SetLockMode("LM2", LockMode.Write);
tdq.SetProperties(new Foo("Fulano", "De Tal"));
tdq.SetAnsiString(1, ""); //will be override
tdq.SetByte(4, 255);
tdq.SetCharacter(5, 'A');
tdq.SetDateTime(6, DateTime.MinValue); // will be override
tdq.SetDateTime("6", DateTime.MinValue); // will be override
tdq.SetDouble("8", 8.1F);
tdq.SetEntity("9", new Foo("Fulano", "De Tal"));
tdq.SetParameterList("UntypedList", new int[]
                                    {
                                       5, 6, 7, 8
                                    } ); // will be override
tdq.SetParameterList("TypedList", new Int64[]
                                  {
                                     5, 6, 7, 8
                                  } , NHibernateUtil.Int64); // will be override
tdq. [[#variable70af98c0]]( [[#variable70b54680]]); // will be override
 [[#variable70af9800]]. [[#variable70af9380]]( [[#variable70af9220]]);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#70af98c0]]
OverrideInfoFrom 
12[[#70af98c0]]
SetComment 
21[[#70b54680]]
origin 
22[[#70b54680]]
"other comment" 
31[[#70af9800]]
Assert 
32[[#70af9800]]
origin 
41[[#70af9380]]
AreEqual 
42[[#70af9380]]
CopyTo 
51[[#70af9220]]
5, tdq.Selection.FirstRow 
52[[#70af9220]]
tdq