Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
13 | 2 | 2 | 0.986 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 13 | 1420 | src/NHibernate/Hql/Classic/QueryTranslator.cs |
2 | 13 | 15 | src/NHibernate/Hql/NameGenerator.cs |
| ||||
private static string[][] GenerateColumnNames(IType[] types, ISessionFactoryImplementor f) { string[][] names = new string[types.Length][]; for (int i = 0; i < types.Length; i++) { int span = types[i].GetColumnSpan(f); names[i] = new string[span]; for (int j = 0; j < span; j++) { names[i][j] = ScalarName(i, j); } } return names; } |
| ||||
public static string[][] GenerateColumnNames(IType[] types, ISessionFactoryImplementor f) { string[][] columnNames = new string[types.Length][]; for (int i = 0; i < types.Length; i++) { int span = types[i].GetColumnSpan(f); columnNames[i] = new string[span]; for (int j = 0; j < span; j++) { columnNames[i][j] = ScalarName(i, j); } } return columnNames; } |
| |||
[[#variable2ba1af40]]static string[][] GenerateColumnNames(IType[] types, ISessionFactoryImplementor f) { string[][] [[#variable2ba1af20]]= new string[types.Length][]; for (int i = 0; i < types.Length; i++) { int span = types[i].GetColumnSpan(f); [[#variable2ba1af20]][i] = new string[span]; for (int j = 0; j < span; j++) { [[#variable2ba1af20]][i][j] = ScalarName(i, j); } } return [[#variable2ba1af20]]; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#2ba1af40]] | public |
1 | 2 | [[#2ba1af40]] | private |
2 | 1 | [[#2ba1af20]] | columnNames |
2 | 2 | [[#2ba1af20]] | names |