Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
7 | 2 | 2 | 0.991 | statement_list[7] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 28 | src/NHibernate.Test/UtilityTest/StringTokenizerFixture.cs |
2 | 7 | 62 | src/NHibernate.Test/UtilityTest/StringTokenizerFixture.cs |
| ||||
StringTokenizer st = new StringTokenizer(s, " ", true); IEnumerator enumerator = st.GetEnumerator(); enumerator.MoveNext(); Assert.AreEqual("Hello", (string) enumerator.Current, "Can't get first token"); enumerator.MoveNext(); Assert.AreEqual(" ", (string) enumerator.Current, "Can't get first space"); enumerator.MoveNext(); |
| ||||
StringTokenizer st = new StringTokenizer(s, " .", true); IEnumerator enumerator = st.GetEnumerator(); enumerator.MoveNext(); Assert.AreEqual("The", (string) enumerator.Current, "Can't get first token"); enumerator.MoveNext(); Assert.AreEqual(" ", (string) enumerator.Current, "Can't get first space"); enumerator.MoveNext(); |
| |||
StringTokenizer st = new StringTokenizer(s, [[#variable678af300]], true); IEnumerator enumerator = st.GetEnumerator(); enumerator.MoveNext(); Assert.AreEqual( [[#variable678af240]], (string)enumerator.Current, "Can't get first token"); enumerator.MoveNext(); Assert.AreEqual(" ", (string)enumerator.Current, "Can't get first space"); enumerator.MoveNext(); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#678af300]] | " " |
1 | 2 | [[#678af300]] | " ." |
2 | 1 | [[#678af240]] | "Hello" |
2 | 2 | [[#678af240]] | "The" |