CloneSet1003


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
2340.964class_member_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1223
src/NHibernate/Dialect/Function/AnsiTrimEmulationFunction.cs
2526
src/NHibernate/Dialect/Function/AnsiTrimEmulationFunction.cs
3732
src/NHibernate/Dialect/Function/AnsiTrimEmulationFunction.cs
Clone Instance
1
Line Count
2
Source Line
23
Source File
src/NHibernate/Dialect/Function/AnsiTrimEmulationFunction.cs

                private static readonly ISQLFunction LeadingSpaceTrim = new SQLFunctionTemplate(NHibernateUtil.String, "ltrim( ?1 )");

                private static readonly ISQLFunction TrailingSpaceTrim = new SQLFunctionTemplate(NHibernateUtil.String, "rtrim( ?1 )");



Clone Instance
2
Line Count
5
Source Line
26
Source File
src/NHibernate/Dialect/Function/AnsiTrimEmulationFunction.cs

                private static readonly ISQLFunction BothSpaceTrim =
                        new SQLFunctionTemplate(NHibernateUtil.String, "ltrim( rtrim( ?1 ) )");

                private static readonly ISQLFunction BothSpaceTrimFrom =
                        new SQLFunctionTemplate(NHibernateUtil.String, "ltrim( rtrim( ?2 ) )");



Clone Instance
3
Line Count
7
Source Line
32
Source File
src/NHibernate/Dialect/Function/AnsiTrimEmulationFunction.cs

                private static readonly ISQLFunction LeadingTrim =
                        new SQLFunctionTemplate(NHibernateUtil.String,
                                                "replace( replace( rtrim( replace( replace( ?1, ' ', '${space}$' ), ?2, ' ' ) ), ' ', ?2 ), '${space}$', ' ' )");

                private static readonly ISQLFunction TrailingTrim =
                        new SQLFunctionTemplate(NHibernateUtil.String,
                                                "replace( replace( ltrim( replace( replace( ?1, ' ', '${space}$' ), ?2, ' ' ) ), ' ', ?2 ), '${space}$', ' ' )");



Clone AbstractionParameter Count: 4Parameter Bindings

private static readonly ISQLFunction [[#variable5510eba0]]= new SQLFunctionTemplate(NHibernateUtil.String, [[#variable2bc17da0]]);

private static readonly ISQLFunction [[#variable56aceda0]]= new SQLFunctionTemplate(NHibernateUtil.String, [[#variable5510eb40]]);

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5510eba0]]
LeadingSpaceTrim 
12[[#5510eba0]]
BothSpaceTrim 
13[[#5510eba0]]
LeadingTrim 
21[[#2bc17da0]]
"ltrim( ?1 )" 
22[[#2bc17da0]]
"ltrim( rtrim( ?1 ) )" 
23[[#2bc17da0]]
"replace( replace( rtrim( replace( replace( ?1, ' ', '${space}$' ), ?2, ' ' ) ), ' ', ?2 ), '${space}$', ' ' )" 
31[[#56aceda0]]
TrailingSpaceTrim 
32[[#56aceda0]]
BothSpaceTrimFrom 
33[[#56aceda0]]
TrailingTrim 
41[[#5510eb40]]
"rtrim( ?1 )" 
42[[#5510eb40]]
"ltrim( rtrim( ?2 ) )" 
43[[#5510eb40]]
"replace( replace( ltrim( replace( replace( ?1, ' ', '${space}$' ), ?2, ' ' ) ), ' ', ?2 ), '${space}$', ' ' )"