CloneSet74


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
38201.000class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
13879
src/NHibernate.Test/SubclassFilterTest/DiscrimSubclassFilterTest.cs
23898
src/NHibernate.Test/SubclassFilterTest/JoinedSubclassFilterTest.cs
Clone Instance
1
Line Count
38
Source Line
79
Source File
src/NHibernate.Test/SubclassFilterTest/DiscrimSubclassFilterTest.cs

                private static void PrepareTestData(ISession s)
                {
                        Employee john = new Employee("John Doe");
                        john.Company = ("JBoss");
                        john.Department = ("hr");
                        john.Title = ("hr guru");
                        john.Region = ("US");

                        Employee polli = new Employee("Polli Wog");
                        polli.Company = ("JBoss");
                        polli.Department = ("hr");
                        polli.Title = ("hr novice");
                        polli.Region = ("US");
                        polli.Manager = (john);
                        john.Minions.Add(polli);

                        Employee suzie = new Employee("Suzie Q");
                        suzie.Company = ("JBoss");
                        suzie.Department = ("hr");
                        suzie.Title = ("hr novice");
                        suzie.Region = ("EMEA");
                        suzie.Manager = (john);
                        john.Minions.Add(suzie);

                        Customer cust = new Customer("John Q Public");
                        cust.Company = ("Acme");
                        cust.Region = ("US");
                        cust.ContactOwner = (john);

                        Person ups = new Person("UPS guy");
                        ups.Company = ("UPS");
                        ups.Region = ("US");

                        s.Save(john);
                        s.Save(cust);
                        s.Save(ups);

                        s.Flush();
                }



Clone Instance
2
Line Count
38
Source Line
98
Source File
src/NHibernate.Test/SubclassFilterTest/JoinedSubclassFilterTest.cs

                private static void PrepareTestData(ISession s)
                {
                        Employee john = new Employee("John Doe");
                        john.Company = ("JBoss");
                        john.Department = ("hr");
                        john.Title = ("hr guru");
                        john.Region = ("US");

                        Employee polli = new Employee("Polli Wog");
                        polli.Company = ("JBoss");
                        polli.Department = ("hr");
                        polli.Title = ("hr novice");
                        polli.Region = ("US");
                        polli.Manager = (john);
                        john.Minions.Add(polli);

                        Employee suzie = new Employee("Suzie Q");
                        suzie.Company = ("JBoss");
                        suzie.Department = ("hr");
                        suzie.Title = ("hr novice");
                        suzie.Region = ("EMEA");
                        suzie.Manager = (john);
                        john.Minions.Add(suzie);

                        Customer cust = new Customer("John Q Public");
                        cust.Company = ("Acme");
                        cust.Region = ("US");
                        cust.ContactOwner = (john);

                        Person ups = new Person("UPS guy");
                        ups.Company = ("UPS");
                        ups.Region = ("US");

                        s.Save(john);
                        s.Save(cust);
                        s.Save(ups);

                        s.Flush();
                }



Clone AbstractionParameter Count: 0Parameter Bindings

private static void PrepareTestData(ISession s)
{
   Employee john = new Employee("John Doe");
   john.Company = ("JBoss");
   john.Department = ("hr");
   john.Title = ("hr guru");
   john.Region = ("US");
   Employee polli = new Employee("Polli Wog");
   polli.Company = ("JBoss");
   polli.Department = ("hr");
   polli.Title = ("hr novice");
   polli.Region = ("US");
   polli.Manager = (john);
   john.Minions.Add(polli);
   Employee suzie = new Employee("Suzie Q");
   suzie.Company = ("JBoss");
   suzie.Department = ("hr");
   suzie.Title = ("hr novice");
   suzie.Region = ("EMEA");
   suzie.Manager = (john);
   john.Minions.Add(suzie);
   Customer cust = new Customer("John Q Public");
   cust.Company = ("Acme");
   cust.Region = ("US");
   cust.ContactOwner = (john);
   Person ups = new Person("UPS guy");
   ups.Company = ("UPS");
   ups.Region = ("US");
   s.Save(john);
   s.Save(cust);
   s.Save(ups);
   s.Flush();
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None