CloneSet522


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
20220.966statement_list[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12080
src/NHibernate.Test/NHSpecificTest/NH1355/UserTypeTimestamp.cs
22088
src/NHibernate.Test/VersionTest/Db/MsSQL/BinaryTimestamp.cs
Clone Instance
1
Line Count
20
Source Line
80
Source File
src/NHibernate.Test/NHSpecificTest/NH1355/UserTypeTimestamp.cs

                        if (xbytes.Length < ybytes.Length)
                        {
                                return - 1;
                        }
                        if (xbytes.Length > ybytes.Length)
                        {
                                return 1;
                        }
                        for (int i = 0; i < xbytes.Length; i++)
                        {
                                if (xbytes[i] < ybytes[i])
                                {
                                        return - 1;
                                }
                                if (xbytes[i] > ybytes[i])
                                {
                                        return 1;
                                }
                        }
                        return 0;


Clone Instance
2
Line Count
20
Source Line
88
Source File
src/NHibernate.Test/VersionTest/Db/MsSQL/BinaryTimestamp.cs

                        if (x.Length < y.Length)
                        {
                                return - 1;
                        }
                        if (x.Length > y.Length)
                        {
                                return 1;
                        }
                        for (int i = 0; i < x.Length; i++)
                        {
                                if (x[i] < y[i])
                                {
                                        return - 1;
                                }
                                if (x[i] > y[i])
                                {
                                        return 1;
                                }
                        }
                        return 0;


Clone AbstractionParameter Count: 2Parameter Bindings

if ( [[#variable2dba5ae0]].Length < [[#variable4ef996e0]].Length)
{
   return - 1;
}
if ( [[#variable2dba5ae0]].Length > [[#variable4ef996e0]].Length)
{
   return 1;
}
for (int i = 0; i < [[#variable2dba5ae0]].Length; i++)
{
   if ( [[#variable2dba5ae0]][i] < [[#variable4ef996e0]][i])
   {
      return - 1;
   }
   if ( [[#variable2dba5ae0]][i] > [[#variable4ef996e0]][i])
   {
      return 1;
   }
}
return 0;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#2dba5ae0]]
x 
12[[#2dba5ae0]]
xbytes 
21[[#4ef996e0]]
y 
22[[#4ef996e0]]
ybytes