CloneSet1144


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8320.954class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1671
src/Iesi.Collections/DictionarySet.cs
26140
src/Iesi.Collections/DictionarySet.cs
3828
src/NHibernate/Util/IdentitySet.cs
Clone Instance
1
Line Count
6
Source Line
71
Source File
src/Iesi.Collections/DictionarySet.cs

                /// <summary>
                /// Adds all the elements in the specified collection to the set if they are not already present.
                /// </summary>
                /// <param name="c">A collection of objects to add to the set.</param>
                /// <returns><see langword="true" /> is the set changed as a result of this operation, <see langword="false" /> if not.</returns>
                public override bool AddAll(ICollection c)
                {
                        bool changed = false;
                        foreach (object o in c)
                                changed |= this.Add(o);
                        return changed;
                }



Clone Instance
2
Line Count
6
Source Line
140
Source File
src/Iesi.Collections/DictionarySet.cs

                /// <summary>
                /// Remove all the specified elements from this set, if they exist in this set.
                /// </summary>
                /// <param name="c">A collection of elements to remove.</param>
                /// <returns><see langword="true" /> if the set was modified as a result of this operation.</returns>
                public override bool RemoveAll(ICollection c)
                {
                        bool changed = false;
                        foreach (object o in c)
                                changed |= this.Remove(o);
                        return changed;
                }



Clone Instance
3
Line Count
8
Source Line
28
Source File
src/NHibernate/Util/IdentitySet.cs

                public override bool AddAll(ICollection c)
                {
                        bool changed = false;

                        foreach (object o in c)
                                changed |= Add(o);

                        return changed;
                }



Clone AbstractionParameter Count: 2Parameter Bindings

/// <summary>
/// Adds all the elements in the specified collection to the set if they are not already present.
/// Remove all the specified elements from this set, if they exist in this set.
/// </summary>
/// <param name="c">A collection of objects to add to the set.</param>
/// <returns><see langword="true" /> is the set changed as a result of this operation, <see langword="false" /> if not.</returns>
/// <param name="c">A collection of elements to remove.</param>
/// <returns><see langword="true" /> if the set was modified as a result of this operation.</returns>
public override bool [[#variable5f4f1620]](ICollection c)
{
   bool changed = false;
   foreach (object o in c)
      changed |= [[#variable5f4f1600]](o);
   return changed;
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5f4f1620]]
AddAll 
12[[#5f4f1620]]
AddAll 
13[[#5f4f1620]]
RemoveAll 
21[[#5f4f1600]]
Add 
22[[#5f4f1600]]
this.Add 
23[[#5f4f1600]]
this.Remove