Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
2 | 3 | 4 | 0.964 | class_member_declarations[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 2 | 23 | src/NHibernate/Dialect/Function/AnsiTrimEmulationFunction.cs |
2 | 5 | 26 | src/NHibernate/Dialect/Function/AnsiTrimEmulationFunction.cs |
3 | 7 | 32 | 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 )"); |
| ||||
private static readonly ISQLFunction BothSpaceTrim = new SQLFunctionTemplate(NHibernateUtil.String, "ltrim( rtrim( ?1 ) )"); private static readonly ISQLFunction BothSpaceTrimFrom = new SQLFunctionTemplate(NHibernateUtil.String, "ltrim( rtrim( ?2 ) )"); |
| ||||
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}$', ' ' )"); |
| |||
private static readonly ISQLFunction [[#variable5510eba0]]= new SQLFunctionTemplate(NHibernateUtil.String, [[#variable2bc17da0]]); private static readonly ISQLFunction [[#variable56aceda0]]= new SQLFunctionTemplate(NHibernateUtil.String, [[#variable5510eb40]]); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5510eba0]] | LeadingSpaceTrim |
1 | 2 | [[#5510eba0]] | BothSpaceTrim |
1 | 3 | [[#5510eba0]] | LeadingTrim |
2 | 1 | [[#2bc17da0]] | "ltrim( ?1 )" |
2 | 2 | [[#2bc17da0]] | "ltrim( rtrim( ?1 ) )" |
2 | 3 | [[#2bc17da0]] | "replace( replace( rtrim( replace( replace( ?1, ' ', '${space}$' ), ?2, ' ' ) ), ' ', ?2 ), '${space}$', ' ' )" |
3 | 1 | [[#56aceda0]] | TrailingSpaceTrim |
3 | 2 | [[#56aceda0]] | BothSpaceTrimFrom |
3 | 3 | [[#56aceda0]] | TrailingTrim |
4 | 1 | [[#5510eb40]] | "rtrim( ?1 )" |
4 | 2 | [[#5510eb40]] | "ltrim( rtrim( ?2 ) )" |
4 | 3 | [[#5510eb40]] | "replace( replace( ltrim( replace( replace( ?1, ' ', '${space}$' ), ?2, ' ' ) ), ' ', ?2 ), '${space}$', ' ' )" |