Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
11 | 2 | 3 | 0.952 | statement_list[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 11 | 185 | src/NHibernate/Engine/Query/HQLQueryPlan.cs |
2 | 11 | 136 | src/NHibernate/Engine/Query/QueryPlanCache.cs |
| ||||
Dictionary<string, NamedParameterDescriptor> namedParamDescriptorMap = new Dictionary<string, NamedParameterDescriptor> (); foreach (KeyValuePair<string, ParamLocationRecognizer.NamedParameterDescription> entry in recognizer.NamedParameterDescriptionMap) { string name = entry.Key; ParamLocationRecognizer.NamedParameterDescription description = entry.Value; namedParamDescriptorMap[name] = new NamedParameterDescriptor(name, parameterTranslations.GetNamedParameterExpectedType(name), description.BuildPositionsArray(), description.JpaStyle); } return new ParameterMetadata(ordinalParamDescriptors, namedParamDescriptorMap); |
| ||||
IDictionary<string, NamedParameterDescriptor> namedParamDescriptorMap = new Dictionary<string, NamedParameterDescriptor> (); foreach (KeyValuePair<string, ParamLocationRecognizer.NamedParameterDescription> entry in recognizer.NamedParameterDescriptionMap) { string name = entry.Key; ParamLocationRecognizer.NamedParameterDescription description = entry.Value; namedParamDescriptorMap[name] = new NamedParameterDescriptor(name, null, description.BuildPositionsArray(), description.JpaStyle); } return new ParameterMetadata(ordinalDescriptors, namedParamDescriptorMap); |
| |||
[[#variable70854500]]<string, NamedParameterDescriptor> namedParamDescriptorMap = new Dictionary<string, NamedParameterDescriptor> (); foreach (KeyValuePair<string, ParamLocationRecognizer.NamedParameterDescription> entry in recognizer.NamedParameterDescriptionMap) { string name = entry.Key; ParamLocationRecognizer.NamedParameterDescription description = entry.Value; namedParamDescriptorMap[name] = new NamedParameterDescriptor(name, [[#variable70048820]], description.BuildPositionsArray(), description.JpaStyle); } return new ParameterMetadata( [[#variable70854420]], namedParamDescriptorMap); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#70854500]] | IDictionary |
1 | 2 | [[#70854500]] | Dictionary |
2 | 1 | [[#70048820]] | null |
2 | 2 | [[#70048820]] | parameterTranslations.GetNamedParameterExpectedType(name) |
3 | 1 | [[#70854420]] | ordinalDescriptors |
3 | 2 | [[#70854420]] | ordinalParamDescriptors |