Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
7 | 2 | 5 | 0.950 | statement_list[7] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 202 | src/NHibernate.Test/EntityModeTest/Xml/Basic/XmlFixture.cs |
2 | 7 | 210 | src/NHibernate.Test/EntityModeTest/Xml/Basic/XmlFixture.cs |
| ||||
XmlElement a1 = cust.OwnerDocument.CreateElement("account"); XmlElement b1 = a1.OwnerDocument.CreateElement("balance"); b1.InnerText = "12.67"; a1.AppendChild(b1); a1.SetAttribute("id", "lkj345"); a1.SetAttribute("acnum", "0"); cust.SelectSingleNode("accounts").AppendChild(a1); |
| ||||
XmlElement a2 = cust.OwnerDocument.CreateElement("account"); XmlElement b2 = a1.OwnerDocument.CreateElement("balance"); b2.InnerText = "10000.00"; a2.AppendChild(b2); a2.SetAttribute("id", "hsh987"); a2.SetAttribute("acnum", "1"); cust.SelectSingleNode("accounts").AppendChild(a2); |
| |||
XmlElement [[#variable26f27500]]= cust.OwnerDocument.CreateElement("account"); XmlElement [[#variable6fd638a0]]= a1.OwnerDocument.CreateElement("balance"); [[#variable6fd638a0]].InnerText = [[#variable6fd638e0]]; [[#variable26f27500]].AppendChild( [[#variable6fd638a0]]); [[#variable26f27500]].SetAttribute("id", [[#variable6fd637e0]]); [[#variable26f27500]].SetAttribute("acnum", [[#variable6fd635c0]]); cust.SelectSingleNode("accounts").AppendChild( [[#variable26f27500]]); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#26f27500]] | a2 |
1 | 2 | [[#26f27500]] | a1 |
2 | 1 | [[#6fd638a0]] | b2 |
2 | 2 | [[#6fd638a0]] | b1 |
3 | 1 | [[#6fd638e0]] | "10000.00" |
3 | 2 | [[#6fd638e0]] | "12.67" |
4 | 1 | [[#6fd637e0]] | "hsh987" |
4 | 2 | [[#6fd637e0]] | "lkj345" |
5 | 1 | [[#6fd635c0]] | "1" |
5 | 2 | [[#6fd635c0]] | "0" |