CloneSet547


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
17220.992block
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11717
src/NHibernate.Test/NHSpecificTest/NH1756/Fixture.cs
21741
src/NHibernate.Test/NHSpecificTest/NH1756/Fixture.cs
Clone Instance
1
Line Count
17
Source Line
17
Source File
src/NHibernate.Test/NHSpecificTest/NH1756/Fixture.cs

                {
                        using (ISession session = OpenSession())
                        {
                                using (ITransaction transaction = session.BeginTransaction())
                                {
                                        var book = new BookNotGenerated { Name = "test book", Pages = new List<Page> ()
                                                                        ,
                                                                        } ;
                                        session.Save(book);
                                        book.Name = "modified test book";
                                        transaction.Commit();
                                }
                        }
                        using (ISession session = OpenSession())
                        {
                                using (ITransaction transaction = session.BeginTransaction())
                                {
                                        session.CreateQuery("delete from BookNotGenerated").ExecuteUpdate();
                                        transaction.Commit();
                                }
                        }
                }


Clone Instance
2
Line Count
17
Source Line
41
Source File
src/NHibernate.Test/NHSpecificTest/NH1756/Fixture.cs

                {
                        using (ISession session = OpenSession())
                        {
                                using (ITransaction transaction = session.BeginTransaction())
                                {
                                        var book = new Book { Name = "test book", Pages = new List<Page> ()
                                                            ,
                                                            } ;
                                        session.Save(book);
                                        book.Name = "modified test book";
                                        transaction.Commit();
                                }
                        }
                        using (ISession session = OpenSession())
                        {
                                using (ITransaction transaction = session.BeginTransaction())
                                {
                                        session.CreateQuery("delete from Book").ExecuteUpdate();
                                        transaction.Commit();
                                }
                        }
                }


Clone AbstractionParameter Count: 2Parameter Bindings

{
   using (ISession session = OpenSession())
   {
      using (ITransaction transaction = session.BeginTransaction())
      {
         var book = new [[#variable6ff311a0]]{
                                                Name = "test book", Pages = new List<Page> ()
                                             ,
                                             } ;
         session.Save(book);
         book.Name = "modified test book";
         transaction.Commit();
      }
   }
   using (ISession session = OpenSession())
   {
      using (ITransaction transaction = session.BeginTransaction())
      {
         session.CreateQuery( [[#variable6ff31100]]).ExecuteUpdate();
         transaction.Commit();
      }
   }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#6ff311a0]]
BookNotGenerated 
12[[#6ff311a0]]
Book 
21[[#6ff31100]]
"delete from BookNotGenerated" 
22[[#6ff31100]]
"delete from Book"