| 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 | 582 | src/NHibernate/Stat/StatisticsImpl.cs |
| 2 | 11 | 596 | src/NHibernate/Stat/StatisticsImpl.cs |
| 3 | 11 | 610 | src/NHibernate/Stat/StatisticsImpl.cs |
| 4 | 11 | 624 | src/NHibernate/Stat/StatisticsImpl.cs |
| 5 | 11 | 638 | 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);
}
}
|
| ||||
[MethodImpl(MethodImplOptions.Synchronized)]
public void FetchCollection(string role, TimeSpan time)
{
lock (SyncRoot)
{
collectionFetchCount++;
GetCollectionStatistics(role).fetchCount++;
}
if (operationThreshold < time)
{
LogOperation(OperationFetchCollection, role, time);
}
}
|
| ||||
[MethodImpl(MethodImplOptions.Synchronized)]
public void UpdateCollection(string role, TimeSpan time)
{
lock (SyncRoot)
{
collectionUpdateCount++;
GetCollectionStatistics(role).updateCount++;
}
if (operationThreshold < time)
{
LogOperation(OperationUpdateCollection, role, time);
}
}
|
| ||||
[MethodImpl(MethodImplOptions.Synchronized)]
public void RecreateCollection(string role, TimeSpan time)
{
lock (SyncRoot)
{
collectionRecreateCount++;
GetCollectionStatistics(role).recreateCount++;
}
if (operationThreshold < time)
{
LogOperation(OperationRecreateCollection, role, time);
}
}
|
| ||||
[MethodImpl(MethodImplOptions.Synchronized)]
public void RemoveCollection(string role, TimeSpan time)
{
lock (SyncRoot)
{
collectionRemoveCount++;
GetCollectionStatistics(role).removeCount++;
}
if (operationThreshold < time)
{
LogOperation(OperationRecreateCollection, role, time);
}
}
|
| |||
[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 Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#6dbc5fc0]] | RemoveCollection |
| 1 | 2 | [[#6dbc5fc0]] | RecreateCollection |
| 1 | 3 | [[#6dbc5fc0]] | UpdateCollection |
| 1 | 4 | [[#6dbc5fc0]] | FetchCollection |
| 1 | 5 | [[#6dbc5fc0]] | LoadCollection |
| 2 | 1 | [[#6dbc5f20]] | collectionRemoveCount |
| 2 | 2 | [[#6dbc5f20]] | collectionRecreateCount |
| 2 | 3 | [[#6dbc5f20]] | collectionUpdateCount |
| 2 | 4 | [[#6dbc5f20]] | collectionFetchCount |
| 2 | 5 | [[#6dbc5f20]] | collectionLoadCount |
| 3 | 1 | [[#6dbc5ec0]] | removeCount |
| 3 | 2 | [[#6dbc5ec0]] | recreateCount |
| 3 | 3 | [[#6dbc5ec0]] | updateCount |
| 3 | 4 | [[#6dbc5ec0]] | fetchCount |
| 3 | 5 | [[#6dbc5ec0]] | loadCount |
| 4 | 1 | [[#6dbc5de0]] | OperationRecreateCollection |
| 4 | 2 | [[#6dbc5de0]] | OperationRecreateCollection |
| 4 | 3 | [[#6dbc5de0]] | OperationUpdateCollection |
| 4 | 4 | [[#6dbc5de0]] | OperationFetchCollection |
| 4 | 5 | [[#6dbc5de0]] | OperationLoadCollection |