| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 11 | 5 | 4 | 0.975 | class_member_declaration |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 11 | 512 | src/NHibernate/Stat/StatisticsImpl.cs |
| 2 | 11 | 526 | src/NHibernate/Stat/StatisticsImpl.cs |
| 3 | 11 | 540 | src/NHibernate/Stat/StatisticsImpl.cs |
| 4 | 11 | 554 | src/NHibernate/Stat/StatisticsImpl.cs |
| 5 | 11 | 568 | 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);
}
}
|
| ||||
[MethodImpl(MethodImplOptions.Synchronized)]
public void FetchEntity(string entityName, TimeSpan time)
{
lock (SyncRoot)
{
entityFetchCount++;
GetEntityStatistics(entityName).fetchCount++;
}
if (operationThreshold < time)
{
LogOperation(OperationLoad, entityName, time);
}
}
|
| ||||
[MethodImpl(MethodImplOptions.Synchronized)]
public void UpdateEntity(string entityName, TimeSpan time)
{
lock (SyncRoot)
{
entityUpdateCount++;
GetEntityStatistics(entityName).updateCount++;
}
if (operationThreshold < time)
{
LogOperation(OperationUpdate, entityName, time);
}
}
|
| ||||
[MethodImpl(MethodImplOptions.Synchronized)]
public void InsertEntity(string entityName, TimeSpan time)
{
lock (SyncRoot)
{
entityInsertCount++;
GetEntityStatistics(entityName).insertCount++;
}
if (operationThreshold < time)
{
LogOperation(OperationInsert, entityName, time);
}
}
|
| ||||
[MethodImpl(MethodImplOptions.Synchronized)]
public void DeleteEntity(string entityName, TimeSpan time)
{
lock (SyncRoot)
{
entityDeleteCount++;
GetEntityStatistics(entityName).deleteCount++;
}
if (operationThreshold < time)
{
LogOperation(OperationDelete, entityName, time);
}
}
|
| |||
[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 Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#28dabfc0]] | DeleteEntity |
| 1 | 2 | [[#28dabfc0]] | InsertEntity |
| 1 | 3 | [[#28dabfc0]] | UpdateEntity |
| 1 | 4 | [[#28dabfc0]] | FetchEntity |
| 1 | 5 | [[#28dabfc0]] | LoadEntity |
| 2 | 1 | [[#28dabf40]] | entityDeleteCount |
| 2 | 2 | [[#28dabf40]] | entityInsertCount |
| 2 | 3 | [[#28dabf40]] | entityUpdateCount |
| 2 | 4 | [[#28dabf40]] | entityFetchCount |
| 2 | 5 | [[#28dabf40]] | entityLoadCount |
| 3 | 1 | [[#28dabee0]] | deleteCount |
| 3 | 2 | [[#28dabee0]] | insertCount |
| 3 | 3 | [[#28dabee0]] | updateCount |
| 3 | 4 | [[#28dabee0]] | fetchCount |
| 3 | 5 | [[#28dabee0]] | loadCount |
| 4 | 1 | [[#28dabe60]] | OperationDelete |
| 4 | 2 | [[#28dabe60]] | OperationInsert |
| 4 | 3 | [[#28dabe60]] | OperationUpdate |
| 4 | 4 | [[#28dabe60]] | OperationLoad |
| 4 | 5 | [[#28dabe60]] | OperationLoad |