CloneSet274


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11540.975class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
111582
src/NHibernate/Stat/StatisticsImpl.cs
211596
src/NHibernate/Stat/StatisticsImpl.cs
311610
src/NHibernate/Stat/StatisticsImpl.cs
411624
src/NHibernate/Stat/StatisticsImpl.cs
511638
src/NHibernate/Stat/StatisticsImpl.cs
Clone Instance
1
Line Count
11
Source Line
582
Source File
src/NHibernate/Stat/StatisticsImpl.cs

                [MethodImpl(MethodImplOptions.Synchronized)]
                public void LoadCollection(string role, TimeSpan time)
                {
                        lock (SyncRoot)
                        {
                                collectionLoadCount++;
                                GetCollectionStatistics(role).loadCount++;
                        }
                        if (operationThreshold < time)
                        {
                                LogOperation(OperationLoadCollection, role, time);
                        }
                }



Clone Instance
2
Line Count
11
Source Line
596
Source File
src/NHibernate/Stat/StatisticsImpl.cs

                [MethodImpl(MethodImplOptions.Synchronized)]
                public void FetchCollection(string role, TimeSpan time)
                {
                        lock (SyncRoot)
                        {
                                collectionFetchCount++;
                                GetCollectionStatistics(role).fetchCount++;
                        }
                        if (operationThreshold < time)
                        {
                                LogOperation(OperationFetchCollection, role, time);
                        }
                }



Clone Instance
3
Line Count
11
Source Line
610
Source File
src/NHibernate/Stat/StatisticsImpl.cs

                [MethodImpl(MethodImplOptions.Synchronized)]
                public void UpdateCollection(string role, TimeSpan time)
                {
                        lock (SyncRoot)
                        {
                                collectionUpdateCount++;
                                GetCollectionStatistics(role).updateCount++;
                        }
                        if (operationThreshold < time)
                        {
                                LogOperation(OperationUpdateCollection, role, time);
                        }
                }



Clone Instance
4
Line Count
11
Source Line
624
Source File
src/NHibernate/Stat/StatisticsImpl.cs

                [MethodImpl(MethodImplOptions.Synchronized)]
                public void RecreateCollection(string role, TimeSpan time)
                {
                        lock (SyncRoot)
                        {
                                collectionRecreateCount++;
                                GetCollectionStatistics(role).recreateCount++;
                        }
                        if (operationThreshold < time)
                        {
                                LogOperation(OperationRecreateCollection, role, time);
                        }
                }



Clone Instance
5
Line Count
11
Source Line
638
Source File
src/NHibernate/Stat/StatisticsImpl.cs

                [MethodImpl(MethodImplOptions.Synchronized)]
                public void RemoveCollection(string role, TimeSpan time)
                {
                        lock (SyncRoot)
                        {
                                collectionRemoveCount++;
                                GetCollectionStatistics(role).removeCount++;
                        }
                        if (operationThreshold < time)
                        {
                                LogOperation(OperationRecreateCollection, role, time);
                        }
                }



Clone AbstractionParameter Count: 4Parameter Bindings

[MethodImpl(MethodImplOptions.Synchronized)]
public void [[#variable6dbc5fc0]](string role, TimeSpan time)
{
   lock (SyncRoot)
   {
       [[#variable6dbc5f20]]++;
      GetCollectionStatistics(role). [[#variable6dbc5ec0]]++;
   }
   if (operationThreshold < time)
   {
      LogOperation( [[#variable6dbc5de0]], role, time);
   }
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#6dbc5fc0]]
RemoveCollection 
12[[#6dbc5fc0]]
RecreateCollection 
13[[#6dbc5fc0]]
UpdateCollection 
14[[#6dbc5fc0]]
FetchCollection 
15[[#6dbc5fc0]]
LoadCollection 
21[[#6dbc5f20]]
collectionRemoveCount 
22[[#6dbc5f20]]
collectionRecreateCount 
23[[#6dbc5f20]]
collectionUpdateCount 
24[[#6dbc5f20]]
collectionFetchCount 
25[[#6dbc5f20]]
collectionLoadCount 
31[[#6dbc5ec0]]
removeCount 
32[[#6dbc5ec0]]
recreateCount 
33[[#6dbc5ec0]]
updateCount 
34[[#6dbc5ec0]]
fetchCount 
35[[#6dbc5ec0]]
loadCount 
41[[#6dbc5de0]]
OperationRecreateCollection 
42[[#6dbc5de0]]
OperationRecreateCollection 
43[[#6dbc5de0]]
OperationUpdateCollection 
44[[#6dbc5de0]]
OperationFetchCollection 
45[[#6dbc5de0]]
OperationLoadCollection