Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
10 | 2 | 4 | 0.957 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 10 | 84 | src/NHibernate/Impl/SessionFactoryObjectFactory.cs |
2 | 10 | 101 | 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; } |
| ||||
/// <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; } |
| |||
/// <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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#293e67e0]] | GetNamedInstance |
1 | 2 | [[#293e67e0]] | GetInstance |
2 | 1 | [[#293e6820]] | name |
2 | 2 | [[#293e6820]] | uid |
3 | 1 | [[#293e68c0]] | "lookup: name=" |
3 | 2 | [[#293e68c0]] | "lookup: uid=" |
4 | 1 | [[#293e6860]] | NamedInstances |
4 | 2 | [[#293e6860]] | Instances |