Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
20 | 2 | 0 | 1.000 | statement_list[5] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 20 | 39 | src/NHibernate.Test/EntityModeTest/Xml/Basic/XmlFixture.cs |
2 | 20 | 280 | src/NHibernate.Test/EntityModeTest/Xml/Basic/XmlFixture.cs |
| ||||
string xml = @"<account id='acb123'> \t<balance>123.45</balance> \t<customer id='xyz123'> \t\t<stuff> \t\t\t<foo bar='x'>foo</foo> \t\t\t<foo bar='y'>bar</foo> \t\t</stuff> \t\t<amount>45</amount> \t\tAn example customer \t\t<name> \t\t\t<first>Fabio</first> \t\t\t<last>Maulo</last> \t\t</name> \t</customer> </account>" ; var doc1 = new XmlDocument(); doc1.LoadXml(xml); XmlElement acct = doc1.DocumentElement; var cust = (XmlElement) acct.SelectSingleNode("customer"); |
| ||||
string xml = @"<account id='acb123'> \t<balance>123.45</balance> \t<customer id='xyz123'> \t\t<stuff> \t\t\t<foo bar='x'>foo</foo> \t\t\t<foo bar='y'>bar</foo> \t\t</stuff> \t\t<amount>45</amount> \t\tAn example customer \t\t<name> \t\t\t<first>Fabio</first> \t\t\t<last>Maulo</last> \t\t</name> \t</customer> </account>" ; var doc1 = new XmlDocument(); doc1.LoadXml(xml); XmlElement acct = doc1.DocumentElement; var cust = (XmlElement) acct.SelectSingleNode("customer"); |
| |||
string xml = @"<account id='acb123'> \t<balance>123.45</balance> \t<customer id='xyz123'> \t\t<stuff> \t\t\t<foo bar='x'>foo</foo> \t\t\t<foo bar='y'>bar</foo> \t\t</stuff> \t\t<amount>45</amount> \t\tAn example customer \t\t<name> \t\t\t<first>Fabio</first> \t\t\t<last>Maulo</last> \t\t</name> \t</customer> </account>"; var doc1 = new XmlDocument(); doc1.LoadXml(xml); XmlElement acct = doc1.DocumentElement; var cust = (XmlElement)acct.SelectSingleNode("customer"); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
None |