Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
10 | 2 | 3 | 0.961 | statement_list[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 13 | 167 | src/NHibernate/Hql/Ast/ANTLR/Loader/QueryLoader.cs |
2 | 10 | 1536 | src/NHibernate/Hql/Classic/QueryTranslator.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; |
| ||||
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; |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#276604a0]] | names |
1 | 2 | [[#276604a0]] | _entityAliases |
2 | 1 | [[#27661a00]] | lm |
2 | 2 | [[#27661a00]] | lockMode |
3 | 1 | [[#26f0a1e0]] | nameLockModes |
3 | 2 | [[#26f0a1e0]] | lockModes |