CloneSet1147


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7220.957statement_list[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11064
src/NHibernate/Hql/Ast/ANTLR/Loader/QueryLoader.cs
27105
src/NHibernate/Loader/Criteria/CriteriaLoader.cs
Clone Instance
1
Line Count
10
Source Line
64
Source File
src/NHibernate/Hql/Ast/ANTLR/Loader/QueryLoader.cs

                        if (lockModes == null || lockModes.Count == 0)
                        {
                                return sql;
                        }

                        // can't cache this stuff either (per-invocation)
                        // we are given a map of user-alias -> lock mode
                        // create a new map of sql-alias -> lock mode
                        var aliasedLockModes = new Dictionary<string, LockMode> ();
                        Dictionary<string, string[]> keyColumnNames = dialect.ForUpdateOfColumns ? new Dictionary<string, string[]> (): null;


Clone Instance
2
Line Count
7
Source Line
105
Source File
src/NHibernate/Loader/Criteria/CriteriaLoader.cs

                        if (lockModes == null || lockModes.Count == 0)
                        {
                                return sqlSelectString;
                        }

                        Dictionary<string, LockMode> aliasedLockModes = new Dictionary<string, LockMode> ();
                        Dictionary<string, string[]> keyColumnNames = dialect.ForUpdateOfColumns ? new Dictionary<string, string[]> (): null;


Clone AbstractionParameter Count: 2Parameter Bindings

if (lockModes == null || lockModes.Count == 0)
{
   return [[#variable5f4f0ce0]];
}
 [[#variable29369f80]]aliasedLockModes = new Dictionary<string, LockMode> ();
Dictionary<string, string[]> keyColumnNames = dialect.ForUpdateOfColumns ?
                                              new Dictionary<string, string[]> (): null;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5f4f0ce0]]
sqlSelectString 
12[[#5f4f0ce0]]
sql 
21[[#29369f80]]
Dictionary<string, LockMode> 
22[[#29369f80]]
// can't cache this stuff either (per-invocation)
// we are given a map of user-alias -> lock mode
// create a new map of sql-alias -> lock mode
var