CloneSet1428


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11240.969class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
111477
src/NHibernate/AdoNet/AbstractBatcher.cs
211491
src/NHibernate/AdoNet/AbstractBatcher.cs
Clone Instance
1
Line Count
11
Source Line
477
Source File
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();
                        }
                }



Clone Instance
2
Line Count
11
Source Line
491
Source File
src/NHibernate/AdoNet/AbstractBatcher.cs

                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();
                        }
                }



Clone AbstractionParameter Count: 4Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#27ecf500]]
LogClosePreparedCommand 
12[[#27ecf500]]
LogOpenPreparedCommand 
21[[#27ece8a0]]
Decrement 
22[[#27ece8a0]]
Increment 
31[[#27ece1a0]]
"Closed IDbCommand, open IDbCommands: " 
32[[#27ece1a0]]
"Opened new IDbCommand, open IDbCommands: " 
41[[#27ecf400]]
CloseStatement 
42[[#27ecf400]]
PrepareStatement