CloneSet116


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
71330.961non_pp_embedded_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1719
src/NHibernate.Test/NHSpecificTest/NH1291AnonExample/NH1291AnonExampleFixture.cs
21168
src/NHibernate.Test/NHSpecificTest/NH1507/Fixture.cs
37126
src/NHibernate.Test/NHSpecificTest/NH1601/Fixture1.cs
47135
src/NHibernate.Test/NHSpecificTest/NH1601/Fixture2.cs
5717
src/NHibernate.Test/NHSpecificTest/NH1611OneToOneIdentity/NH1611OneToOneIdentityFixture.cs
67322
src/NHibernate.Test/NHSpecificTest/NH1612/NativeSqlCollectionLoaderFixture.cs
77335
src/NHibernate.Test/NHSpecificTest/NH1612/NativeSqlCollectionLoaderFixture.cs
8741
src/NHibernate.Test/NHSpecificTest/NH1617/Fixture.cs
9745
src/NHibernate.Test/NHSpecificTest/NH1694/Fixture.cs
10732
src/NHibernate.Test/NHSpecificTest/NH1868/Fixture.cs
11731
src/NHibernate.Test/NHSpecificTest/NH1927/Fixture.cs
12746
src/NHibernate.Test/NHSpecificTest/NH2009/Fixture.cs
13742
src/NHibernate.Test/NHSpecificTest/NH2011/Fixture.cs
Clone Instance
1
Line Count
7
Source Line
19
Source File
src/NHibernate.Test/NHSpecificTest/NH1291AnonExample/NH1291AnonExampleFixture.cs

                        using (ISession session = OpenSession())
                        {
                                using (ITransaction tx = session.BeginTransaction())
                                {
                                        session.Delete("from Person");
                                        session.Delete("from Home");
                                        tx.Commit();
                                }
                        }


Clone Instance
2
Line Count
11
Source Line
68
Source File
src/NHibernate.Test/NHSpecificTest/NH1507/Fixture.cs

                        using (ISession session = OpenSession())
                        {
                                using (ITransaction tx = session.BeginTransaction())
                                {
                                        //delete empolyee and related orders
                                        session.Delete("from Employee ee where ee.PostalCode = '66666'");

                                        //delete order not related to employee
                                        session.Delete("from Order oo where oo.ShipCountry = 'Deadville'");

                                        tx.Commit();
                                }
                        }


Clone Instance
3
Line Count
7
Source Line
126
Source File
src/NHibernate.Test/NHSpecificTest/NH1601/Fixture1.cs

            using (ISession session = OpenSession())
            {
                using (ITransaction tx = session.BeginTransaction())
                {
                    session.Delete(" from ProjectWithOneList");
                    session.Delete( "from Scenario");
                    tx.Commit();
                }
            }


Clone Instance
4
Line Count
7
Source Line
135
Source File
src/NHibernate.Test/NHSpecificTest/NH1601/Fixture2.cs

            using (ISession session = OpenSession())
            {
                using (ITransaction tx = session.BeginTransaction())
                {
                    session.Delete( "from Project");
                    session.Delete( "from Scenario");
                    tx.Commit();
                }
            }


Clone Instance
5
Line Count
7
Source Line
17
Source File
src/NHibernate.Test/NHSpecificTest/NH1611OneToOneIdentity/NH1611OneToOneIdentityFixture.cs

                        using (ISession session = OpenSession())
                        {
                                using (ITransaction tx = session.BeginTransaction())
                                {
                                        session.Delete("from Adjunct");
                                        session.Delete("from Primary");
                                        tx.Commit();
                                }
                        }


Clone Instance
6
Line Count
7
Source Line
322
Source File
src/NHibernate.Test/NHSpecificTest/NH1612/NativeSqlCollectionLoaderFixture.cs

                        using (ISession session = OpenSession())
                        {
                                using (ITransaction tx = session.BeginTransaction())
                                {
                                        session.Delete("from Person");
                                        session.Delete("from Country");
                                        tx.Commit();
                                }
                        }


Clone Instance
7
Line Count
7
Source Line
335
Source File
src/NHibernate.Test/NHSpecificTest/NH1612/NativeSqlCollectionLoaderFixture.cs

                        using (ISession session = OpenSession())
                        {
                                using (ITransaction tx = session.BeginTransaction())
                                {
                                        session.Delete("from City");
                                        session.Delete("from Country");
                                        tx.Commit();
                                }
                        }


Clone Instance
8
Line Count
7
Source Line
41
Source File
src/NHibernate.Test/NHSpecificTest/NH1617/Fixture.cs

                        using (ISession session = OpenSession())
                        {
                                using (ITransaction tran = session.BeginTransaction())
                                {
                                        session.Delete("from Order");
                                        session.Delete("from User");
                                        tran.Commit();
                                }
                        }


Clone Instance
9
Line Count
7
Source Line
45
Source File
src/NHibernate.Test/NHSpecificTest/NH1694/Fixture.cs

                        using (ISession session = OpenSession())
                        {
                                using (ITransaction tran = session.BeginTransaction())
                                {
                                        session.Delete("from Orders");
                                        session.Delete("from User");
                                        tran.Commit();
                                }
                        }


Clone Instance
10
Line Count
7
Source Line
32
Source File
src/NHibernate.Test/NHSpecificTest/NH1868/Fixture.cs

                        using (ISession session = OpenSession())
                        {
                                using (ITransaction tx = session.BeginTransaction())
                                {
                                        session.Delete("from Category");
                                        session.Delete("from Package");
                                        tx.Commit();
                                }
                        }


Clone Instance
11
Line Count
7
Source Line
31
Source File
src/NHibernate.Test/NHSpecificTest/NH1927/Fixture.cs

            using (ISession session = OpenSession())
            {
                using (ITransaction tx = session.BeginTransaction())
                {
                    session.Delete("from Invoice");
                    session.Delete("from Customer");
                    tx.Commit();
                }
            }


Clone Instance
12
Line Count
7
Source Line
46
Source File
src/NHibernate.Test/NHSpecificTest/NH2009/Fixture.cs

                        //using (ISession session = OpenSession())
                        //{
                        //  var user = session.Get<BlogPost>(savedBlogPost.ID);
                        //}

                        using (ISession session = OpenSession())
                        {
                                using (ITransaction tx = session.BeginTransaction())
                                {
                                        session.Delete("from User");
                                        session.Delete("from BlogPost");
                                        tx.Commit();
                                }
                        }


Clone Instance
13
Line Count
7
Source Line
42
Source File
src/NHibernate.Test/NHSpecificTest/NH2011/Fixture.cs

                        using (ISession session = OpenSession())
                        {
                                using (ITransaction tx = session.BeginTransaction())
                                {
                                        session.Delete("from Order");
                                        session.Delete("from Country");
                                        tx.Commit();
                                }
                        }


Clone AbstractionParameter Count: 3Parameter Bindings

//using (ISession session = OpenSession())
//{
//  var user = session.Get<BlogPost>(savedBlogPost.ID);
//}
using (ISession session = OpenSession())
{
   using (ITransaction [[#variable6eb71420]]= session.BeginTransaction())
   {
      //delete empolyee and related orders
      session.Delete( [[#variable6eb71380]]);
      //delete order not related to employee
      session.Delete( [[#variable6eb710a0]]);
       [[#variable6eb71420]].Commit();
   }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#6eb71420]]
tx 
12[[#6eb71420]]
tx 
13[[#6eb71420]]
tx 
14[[#6eb71420]]
tx 
15[[#6eb71420]]
tran 
16[[#6eb71420]]
tran 
17[[#6eb71420]]
tx 
18[[#6eb71420]]
tx 
19[[#6eb71420]]
tx 
110[[#6eb71420]]
tx 
111[[#6eb71420]]
tx 
112[[#6eb71420]]
tx 
113[[#6eb71420]]
tx 
21[[#6eb71380]]
"from Order" 
22[[#6eb71380]]
"from User" 
23[[#6eb71380]]
"from Invoice" 
24[[#6eb71380]]
"from Category" 
25[[#6eb71380]]
"from Orders" 
26[[#6eb71380]]
"from Order" 
27[[#6eb71380]]
"from Person" 
28[[#6eb71380]]
"from City" 
29[[#6eb71380]]
"from Adjunct" 
210[[#6eb71380]]
"from Project" 
211[[#6eb71380]]
" from ProjectWithOneList" 
212[[#6eb71380]]
"from Employee ee where ee.PostalCode = '66666'" 
213[[#6eb71380]]
"from Person" 
31[[#6eb710a0]]
"from Country" 
32[[#6eb710a0]]
"from BlogPost" 
33[[#6eb710a0]]
"from Customer" 
34[[#6eb710a0]]
"from Package" 
35[[#6eb710a0]]
"from User" 
36[[#6eb710a0]]
"from User" 
37[[#6eb710a0]]
"from Country" 
38[[#6eb710a0]]
"from Country" 
39[[#6eb710a0]]
"from Primary" 
310[[#6eb710a0]]
"from Scenario" 
311[[#6eb710a0]]
"from Scenario" 
312[[#6eb710a0]]
"from Order oo where oo.ShipCountry = 'Deadville'" 
313[[#6eb710a0]]
"from Home"