CloneSet527


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11230.952statement_list[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
111185
src/NHibernate/Engine/Query/HQLQueryPlan.cs
211136
src/NHibernate/Engine/Query/QueryPlanCache.cs
Clone Instance
1
Line Count
11
Source Line
185
Source File
src/NHibernate/Engine/Query/HQLQueryPlan.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);


Clone Instance
2
Line Count
11
Source Line
136
Source File
src/NHibernate/Engine/Query/QueryPlanCache.cs

                        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);


Clone AbstractionParameter Count: 3Parameter Bindings

 [[#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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#70854500]]
IDictionary 
12[[#70854500]]
Dictionary 
21[[#70048820]]
null 
22[[#70048820]]
parameterTranslations.GetNamedParameterExpectedType(name) 
31[[#70854420]]
ordinalDescriptors 
32[[#70854420]]
ordinalParamDescriptors