CloneSet275


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
111512
src/NHibernate/Stat/StatisticsImpl.cs
211526
src/NHibernate/Stat/StatisticsImpl.cs
311540
src/NHibernate/Stat/StatisticsImpl.cs
411554
src/NHibernate/Stat/StatisticsImpl.cs
511568
src/NHibernate/Stat/StatisticsImpl.cs
Clone Instance
1
Line Count
11
Source Line
512
Source File
src/NHibernate/Stat/StatisticsImpl.cs

                [MethodImpl(MethodImplOptions.Synchronized)]
                public void LoadEntity(string entityName, TimeSpan time)
                {
                        lock (SyncRoot)
                        {
                                entityLoadCount++;
                                GetEntityStatistics(entityName).loadCount++;
                        }
                        if (operationThreshold < time)
                        {
                                LogOperation(OperationLoad, entityName, time);
                        }
                }



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

                [MethodImpl(MethodImplOptions.Synchronized)]
                public void FetchEntity(string entityName, TimeSpan time)
                {
                        lock (SyncRoot)
                        {
                                entityFetchCount++;
                                GetEntityStatistics(entityName).fetchCount++;
                        }
                        if (operationThreshold < time)
                        {
                                LogOperation(OperationLoad, entityName, time);
                        }
                }



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

                [MethodImpl(MethodImplOptions.Synchronized)]
                public void UpdateEntity(string entityName, TimeSpan time)
                {
                        lock (SyncRoot)
                        {
                                entityUpdateCount++;
                                GetEntityStatistics(entityName).updateCount++;
                        }
                        if (operationThreshold < time)
                        {
                                LogOperation(OperationUpdate, entityName, time);
                        }
                }



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

                [MethodImpl(MethodImplOptions.Synchronized)]
                public void InsertEntity(string entityName, TimeSpan time)
                {
                        lock (SyncRoot)
                        {
                                entityInsertCount++;
                                GetEntityStatistics(entityName).insertCount++;
                        }
                        if (operationThreshold < time)
                        {
                                LogOperation(OperationInsert, entityName, time);
                        }
                }



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

                [MethodImpl(MethodImplOptions.Synchronized)]
                public void DeleteEntity(string entityName, TimeSpan time)
                {
                        lock (SyncRoot)
                        {
                                entityDeleteCount++;
                                GetEntityStatistics(entityName).deleteCount++;
                        }
                        if (operationThreshold < time)
                        {
                                LogOperation(OperationDelete, entityName, time);
                        }
                }



Clone AbstractionParameter Count: 4Parameter Bindings

[MethodImpl(MethodImplOptions.Synchronized)]
public void [[#variable28dabfc0]](string entityName, TimeSpan time)
{
   lock (SyncRoot)
   {
       [[#variable28dabf40]]++;
      GetEntityStatistics(entityName). [[#variable28dabee0]]++;
   }
   if (operationThreshold < time)
   {
      LogOperation( [[#variable28dabe60]], entityName, time);
   }
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#28dabfc0]]
DeleteEntity 
12[[#28dabfc0]]
InsertEntity 
13[[#28dabfc0]]
UpdateEntity 
14[[#28dabfc0]]
FetchEntity 
15[[#28dabfc0]]
LoadEntity 
21[[#28dabf40]]
entityDeleteCount 
22[[#28dabf40]]
entityInsertCount 
23[[#28dabf40]]
entityUpdateCount 
24[[#28dabf40]]
entityFetchCount 
25[[#28dabf40]]
entityLoadCount 
31[[#28dabee0]]
deleteCount 
32[[#28dabee0]]
insertCount 
33[[#28dabee0]]
updateCount 
34[[#28dabee0]]
fetchCount 
35[[#28dabee0]]
loadCount 
41[[#28dabe60]]
OperationDelete 
42[[#28dabe60]]
OperationInsert 
43[[#28dabe60]]
OperationUpdate 
44[[#28dabe60]]
OperationLoad 
45[[#28dabe60]]
OperationLoad