CloneSet1051


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10240.957class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11084
src/NHibernate/Impl/SessionFactoryObjectFactory.cs
210101
src/NHibernate/Impl/SessionFactoryObjectFactory.cs
Clone Instance
1
Line Count
10
Source Line
84
Source File
src/NHibernate/Impl/SessionFactoryObjectFactory.cs

                /// <summary>
                /// Returns a Named Instance of the SessionFactory from the local "cache" identified by name.
                /// </summary>
                /// <param name="name">The name of the ISessionFactory.</param>
                /// <returns>An instantiated ISessionFactory.</returns>
                public static ISessionFactory GetNamedInstance(string name)
                {
                        log.Debug("lookup: name=" + name);
                        ISessionFactory factory;
                        bool found = NamedInstances.TryGetValue(name, out factory);
                        if ( !found)
                        {
                                log.Warn("Not found: " + name);
                        }
                        return factory;
                }



Clone Instance
2
Line Count
10
Source Line
101
Source File
src/NHibernate/Impl/SessionFactoryObjectFactory.cs

                /// <summary>
                /// Returns an Instance of the SessionFactory from the local "cache" identified by UUID.
                /// </summary>
                /// <param name="uid">The identifier of the ISessionFactory.</param>
                /// <returns>An instantiated ISessionFactory.</returns>
                public static ISessionFactory GetInstance(string uid)
                {
                        log.Debug("lookup: uid=" + uid);
                        ISessionFactory factory;
                        bool found = Instances.TryGetValue(uid, out factory);
                        if ( !found)
                        {
                                log.Warn("Not found: " + uid);
                        }
                        return factory;
                }



Clone AbstractionParameter Count: 4Parameter Bindings

/// <summary>
/// Returns a Named Instance of the SessionFactory from the local "cache" identified by name.
/// Returns an Instance of the SessionFactory from the local "cache" identified by UUID.
/// </summary>
/// <param name="name">The name of the ISessionFactory.</param>
/// <param name="uid">The identifier of the ISessionFactory.</param>
/// <returns>An instantiated ISessionFactory.</returns>
public static ISessionFactory [[#variable293e67e0]](string [[#variable293e6820]])
{
   log.Debug( [[#variable293e68c0]]+ [[#variable293e6820]]);
   ISessionFactory factory;
   bool found = [[#variable293e6860]].TryGetValue( [[#variable293e6820]], out factory);
   if ( !found)
   {
      log.Warn("Not found: " + [[#variable293e6820]]);
   }
   return factory;
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#293e67e0]]
GetNamedInstance 
12[[#293e67e0]]
GetInstance 
21[[#293e6820]]
name 
22[[#293e6820]]
uid 
31[[#293e68c0]]
"lookup: name=" 
32[[#293e68c0]]
"lookup: uid=" 
41[[#293e6860]]
NamedInstances 
42[[#293e6860]]
Instances