CloneSet1419


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7240.957block
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
18448
src/NHibernate/Collection/PersistentBag.cs
27467
src/NHibernate/Collection/PersistentBag.cs
Clone Instance
1
Line Count
8
Source Line
448
Source File
src/NHibernate/Collection/PersistentBag.cs

                                        {
                                                for (int i = 0; i < bag.Count; i++)
                                                {
                                                        // we are using ReferenceEquals to be sure that is exactly the same queued instance 
                                                        if (ReferenceEquals(o, bag[i]))
                                                        {
                                                                additionQueue.Add(o);
                                                                break;
                                                        }
                                                }
                                        }


Clone Instance
2
Line Count
7
Source Line
467
Source File
src/NHibernate/Collection/PersistentBag.cs

                                        {
                                                for (int i = additionStartFrom; i < bag.Count; i++)
                                                {
                                                        if (ReferenceEquals(o, bag[i]))
                                                        {
                                                                bag.RemoveAt(i);
                                                                break;
                                                        }
                                                }
                                        }


Clone AbstractionParameter Count: 4Parameter Bindings

{
   for (int i = [[#variable27d12780]]; i < bag.Count; i++)
   {
      // we are using ReferenceEquals to be sure that is exactly the same queued instance 
      if (ReferenceEquals(o, bag[i]))
      {
          [[#variable27c35e80]]. [[#variable27d12680]]( [[#variable27d12660]]);
         break;
      }
   }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#27d12780]]
additionStartFrom 
12[[#27d12780]]
0 
21[[#27c35e80]]
bag 
22[[#27c35e80]]
additionQueue 
31[[#27d12680]]
RemoveAt 
32[[#27d12680]]
Add 
41[[#27d12660]]
i 
42[[#27d12660]]
o