| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 24 | 3 | 1 | 0.953 | statement_list[21] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 24 | 42 | src/NHibernate.Test/CompositeId/CompositeIdFixture.cs |
| 2 | 24 | 140 | src/NHibernate.Test/CompositeId/CompositeIdFixture.cs |
| 3 | 24 | 208 | src/NHibernate.Test/CompositeId/CompositeIdFixture.cs |
| ||||
Product p = new Product();
p.ProductId = "A123";
p.Description = "nipple ring";
p.Price = 1.0M;
p.NumberAvailable = 1004;
s.Persist(p);
p2 = new Product();
p2.ProductId = "X525";
p2.Description = "nose stud";
p2.Price = 3.0M;
p2.NumberAvailable = 105;
s.Persist(p2);
Customer c = new Customer();
c.Address = "St Kilda Rd, MEL, 3000";
c.Name = "Virginia";
c.CustomerId = "C111";
s.Persist(c);
Order o = new Order(c);
o.OrderDate = DateTime.Today;
LineItem li = new LineItem(o, p);
li.Quantity = 2;
|
| ||||
Product p = new Product();
p.ProductId = "A123";
p.Description = "nipple ring";
p.Price = 1.0M;
p.NumberAvailable = 1004;
s.Persist(p);
Product p2 = new Product();
p2.ProductId = "X525";
p2.Description = "nose stud";
p2.Price = 3.0M;
p2.NumberAvailable = 105;
s.Persist(p2);
Customer c = new Customer();
c.Address = "St Kilda Rd, MEL, 3000";
c.Name = "Virginia";
c.CustomerId = "C111";
s.Persist(c);
Order o = new Order(c);
o.OrderDate = DateTime.Today;
LineItem li = new LineItem(o, p);
li.Quantity = 2;
|
| ||||
Product p = new Product();
p.ProductId = "A123";
p.Description = "nipple ring";
p.Price = 1.0M;
p.NumberAvailable = 1004;
s.Persist(p);
Product p2 = new Product();
p2.ProductId = "X525";
p2.Description = "nose stud";
p2.Price = 3.0M;
p2.NumberAvailable = 105;
s.Persist(p2);
Customer c = new Customer();
c.Address = "St Kilda Rd, MEL, 3000";
c.Name = "Virginia";
c.CustomerId = "C111";
s.Persist(c);
Order o = new Order(c);
o.OrderDate = DateTime.Today;
LineItem li = new LineItem(o, p);
li.Quantity = 2;
|
| |||
Product p = new Product(); p.ProductId = "A123"; p.Description = "nipple ring"; p.Price = 1.0M; p.NumberAvailable = 1004; s.Persist(p); [[#variable6b97c160]] p2.ProductId = "X525"; p2.Description = "nose stud"; p2.Price = 3.0M; p2.NumberAvailable = 105; s.Persist(p2); Customer c = new Customer(); c.Address = "St Kilda Rd, MEL, 3000"; c.Name = "Virginia"; c.CustomerId = "C111"; s.Persist(c); Order o = new Order(c); o.OrderDate = DateTime.Today; LineItem li = new LineItem(o, p); li.Quantity = 2; |
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#6b97c160]] | p2 = new Product(); |
| 1 | 2 | [[#6b97c160]] | Product p2 = new Product(); |
| 1 | 3 | [[#6b97c160]] | Product p2 = new Product(); |