Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
11 | 2 | 4 | 0.969 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 11 | 477 | src/NHibernate/AdoNet/AbstractBatcher.cs |
2 | 11 | 491 | src/NHibernate/AdoNet/AbstractBatcher.cs |
| ||||
private void LogOpenPreparedCommand() { if (log.IsDebugEnabled) { int currentOpenCommandCount = Interlocked.Increment( ref openCommandCount); log.Debug("Opened new IDbCommand, open IDbCommands: " + currentOpenCommandCount); } if (factory.Statistics.IsStatisticsEnabled) { factory.StatisticsImplementor.PrepareStatement(); } } |
| ||||
private void LogClosePreparedCommand() { if (log.IsDebugEnabled) { int currentOpenCommandCount = Interlocked.Decrement( ref openCommandCount); log.Debug("Closed IDbCommand, open IDbCommands: " + currentOpenCommandCount); } if (factory.Statistics.IsStatisticsEnabled) { factory.StatisticsImplementor.CloseStatement(); } } |
| |||
private void [[#variable27ecf500]]() { if (log.IsDebugEnabled) { int currentOpenCommandCount = Interlocked. [[#variable27ece8a0]]( ref openCommandCount); log.Debug( [[#variable27ece1a0]]+ currentOpenCommandCount); } if (factory.Statistics.IsStatisticsEnabled) { factory.StatisticsImplementor. [[#variable27ecf400]](); } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#27ecf500]] | LogClosePreparedCommand |
1 | 2 | [[#27ecf500]] | LogOpenPreparedCommand |
2 | 1 | [[#27ece8a0]] | Decrement |
2 | 2 | [[#27ece8a0]] | Increment |
3 | 1 | [[#27ece1a0]] | "Closed IDbCommand, open IDbCommands: " |
3 | 2 | [[#27ece1a0]] | "Opened new IDbCommand, open IDbCommands: " |
4 | 1 | [[#27ecf400]] | CloseStatement |
4 | 2 | [[#27ecf400]] | PrepareStatement |