Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
33 | 2 | 1 | 0.987 | class_member_declarations[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 33 | 86 | src/NHibernate/Loader/Custom/ColumnCollectionAliases.cs |
2 | 33 | 105 | src/NHibernate/Loader/GeneratedCollectionAliases.cs |
| ||||
private static string Join(IEnumerable aliases) { if (aliases == null) { return null; } return StringHelper.Join(", ", aliases); } private string[] GetUserProvidedAliases(string propertyPath, string[] defaultAliases) { string[] result; if ( !userProvidedAliases.TryGetValue(propertyPath, out result)) { return defaultAliases; } else { return result; } } private string GetUserProvidedAlias(string propertyPath, string defaultAlias) { string[] columns; if ( !userProvidedAliases.TryGetValue(propertyPath, out columns)) { return defaultAlias; } else { return columns[0]; } } |
| ||||
private static string Join(IEnumerable<string> aliases) { if (aliases == null) { return null; } return StringHelper.Join(", ", aliases); } private string[] GetUserProvidedAliases(string propertyPath, string[] defaultAliases) { string[] result; if ( !userProvidedAliases.TryGetValue(propertyPath, out result)) { return defaultAliases; } else { return result; } } private string GetUserProvidedAlias(string propertyPath, string defaultAlias) { string[] columns; if ( !userProvidedAliases.TryGetValue(propertyPath, out columns)) { return defaultAlias; } else { return columns[0]; } } |
| |||
private static string Join( [[#variable6c9db460]]aliases) { if (aliases == null) { return null; } return StringHelper.Join(", ", aliases); } private string[] GetUserProvidedAliases(string propertyPath, string[] defaultAliases) { string[] result; if ( !userProvidedAliases.TryGetValue(propertyPath, out result)) { return defaultAliases; } else { return result; } } private string GetUserProvidedAlias(string propertyPath, string defaultAlias) { string[] columns; if ( !userProvidedAliases.TryGetValue(propertyPath, out columns)) { return defaultAlias; } else { return columns[0]; } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#6c9db460]] | IEnumerable<string> |
1 | 2 | [[#6c9db460]] | IEnumerable |