CloneSet880


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10230.961statement_list[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
113167
src/NHibernate/Hql/Ast/ANTLR/Loader/QueryLoader.cs
2101536
src/NHibernate/Hql/Classic/QueryTranslator.cs
Clone Instance
1
Line Count
13
Source Line
167
Source File
src/NHibernate/Hql/Ast/ANTLR/Loader/QueryLoader.cs

                                for (int i = 0; i < _entityAliases.Length; i++)
                                {
                                        LockMode lockMode;

                                        if ( !lockModes.TryGetValue(_entityAliases[i], out lockMode))
                                        {
                                                //NONE, because its the requested lock mode, not the actual! 
                                                lockMode = LockMode.None;
                                        }

                                        lockModeArray[i] = lockMode;
                                }
                                return lockModeArray;


Clone Instance
2
Line Count
10
Source Line
1536
Source File
src/NHibernate/Hql/Classic/QueryTranslator.cs

                        for (int i = 0; i < names.Length; i++)
                        {
                                LockMode lm;
                                if ( !nameLockModes.TryGetValue(names[i], out lm))
                                {
                                        lm = LockMode.None;
                                }
                                lockModeArray[i] = lm;
                        }
                        return lockModeArray;


Clone AbstractionParameter Count: 3Parameter Bindings

for (int i = 0; i < [[#variable276604a0]].Length; i++)
{
   LockMode [[#variable27661a00]];
   if ( ! [[#variable26f0a1e0]].TryGetValue( [[#variable276604a0]][i], out [[#variable27661a00]]))
   {
       [[#variable27661a00]]= LockMode.None;
   }
   lockModeArray[i] = [[#variable27661a00]];
}
return lockModeArray;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#276604a0]]
names 
12[[#276604a0]]
_entityAliases 
21[[#27661a00]]
lm 
22[[#27661a00]]
lockMode 
31[[#26f0a1e0]]
nameLockModes 
32[[#26f0a1e0]]
lockModes