Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
17 | 2 | 4 | 0.954 | block |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 17 | 249 | src/NHibernate/Collection/Generic/PersistentGenericMap.cs |
2 | 17 | 363 | src/NHibernate/Collection/PersistentMap.cs |
| ||||
{ int c = Count; TKey[] keys = new TKey[c]; TValue[] values = new TValue[c]; if (Keys != null) { Keys.CopyTo(keys, arrayIndex); } if (Values != null) { Values.CopyTo(values, arrayIndex); } for (int i = arrayIndex; i < c; i++) { if (keys[i] != null || values[i] != null) { array.SetValue(new KeyValuePair<TKey, TValue> (keys[i], values[i]), i); } } } |
| ||||
{ int c = Count; object[] keys = new object[c]; object[] values = new object[c]; if (Keys != null) { Keys.CopyTo(keys, index); } if (Values != null) { Values.CopyTo(values, index); } for (int i = index; i < c; i++) { if (keys[i] != null || values[i] != null) { array.SetValue(new DictionaryEntry(keys[i], values[i]), i); } } } |
| |||
{ int c = Count; [[#variable70aad280]][] keys = new [[#variable70aad280]][c]; [[#variable70aad200]][] values = new [[#variable70aad200]][c]; if (Keys != null) { Keys.CopyTo(keys, [[#variable70aad160]]); } if (Values != null) { Values.CopyTo(values, [[#variable70aad160]]); } for (int i = [[#variable70aad160]]; i < c; i++) { if (keys[i] != null || values[i] != null) { array.SetValue(new [[#variable70aad020]](keys[i], values[i]), i); } } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#70aad280]] | TKey |
1 | 2 | [[#70aad280]] | object |
2 | 1 | [[#70aad200]] | TValue |
2 | 2 | [[#70aad200]] | object |
3 | 1 | [[#70aad160]] | arrayIndex |
3 | 2 | [[#70aad160]] | index |
4 | 1 | [[#70aad020]] | KeyValuePair<TKey, TValue> |
4 | 2 | [[#70aad020]] | DictionaryEntry |