CloneSet329


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13220.986class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1131420
src/NHibernate/Hql/Classic/QueryTranslator.cs
21315
src/NHibernate/Hql/NameGenerator.cs
Clone Instance
1
Line Count
13
Source Line
1420
Source File
src/NHibernate/Hql/Classic/QueryTranslator.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;
                }



Clone Instance
2
Line Count
13
Source Line
15
Source File
src/NHibernate/Hql/NameGenerator.cs

                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;
                }



Clone AbstractionParameter Count: 2Parameter Bindings

 [[#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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#2ba1af40]]
public 
12[[#2ba1af40]]
private 
21[[#2ba1af20]]
columnNames 
22[[#2ba1af20]]
names