CloneSet301


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
15240.959block
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
116338
src/NHibernate/Hql/Ast/ANTLR/Loader/QueryLoader.cs
2151442
src/NHibernate/Hql/Classic/QueryTranslator.cs
Clone Instance
1
Line Count
16
Source Line
338
Source File
src/NHibernate/Hql/Ast/ANTLR/Loader/QueryLoader.cs

                        {
                                string[][] scalarColumns = _scalarColumnNames;
                                int queryCols = _queryReturnTypes.Length;

                                if ( !hasTransform && queryCols == 1)
                                {
                                        return _queryReturnTypes[0].NullSafeGet(rs, scalarColumns[0], session, null);
                                }
                                else
                                {
                                        row = new object[queryCols];
                                        for (int i = 0; i < queryCols; i++)
                                        {
                                                row[i] = _queryReturnTypes[i].NullSafeGet(rs, scalarColumns[i], session, null);
                                        }
                                        return row;
                                }
                        }


Clone Instance
2
Line Count
15
Source Line
1442
Source File
src/NHibernate/Hql/Classic/QueryTranslator.cs

                        {
                                string[][] _names = ScalarColumnNames;
                                int queryCols = _returnTypes.Length;
                                if (holderClass == null && queryCols == 1)
                                {
                                        return _returnTypes[0].NullSafeGet(rs, _names[0], session, null);
                                }
                                else
                                {
                                        row = new object[queryCols];
                                        for (int i = 0; i < queryCols; i++)
                                        {
                                                row[i] = _returnTypes[i].NullSafeGet(rs, _names[i], session, null);
                                        }
                                        return row;
                                }
                        }


Clone AbstractionParameter Count: 4Parameter Bindings

{
   string[][] [[#variable5503e9e0]]= [[#variable5503ea20]];
   int queryCols = [[#variable5503e9a0]].Length;
   if ( [[#variable5503e980]]&& queryCols == 1)
   {
      return [[#variable5503e9a0]][0].NullSafeGet(rs, [[#variable5503e9e0]][0], session, null);
   }
   else
   {
      row = new object[queryCols];
      for (int i = 0; i < queryCols; i++)
      {
         row[i] = [[#variable5503e9a0]][i].NullSafeGet(rs, [[#variable5503e9e0]][i], session, null);
      }
      return row;
   }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5503e9e0]]
_names 
12[[#5503e9e0]]
scalarColumns 
21[[#5503ea20]]
ScalarColumnNames 
22[[#5503ea20]]
_scalarColumnNames 
31[[#5503e9a0]]
_returnTypes 
32[[#5503e9a0]]
_queryReturnTypes 
41[[#5503e980]]
holderClass == null 
42[[#5503e980]]
!hasTransform