CloneSet143


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
31050.958statement_list[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12119
src/NHibernate/Dialect/Dialect.cs
22121
src/NHibernate/Dialect/Dialect.cs
33123
src/NHibernate/Dialect/Dialect.cs
42111
src/NHibernate/Dialect/MsSql2000Dialect.cs
52113
src/NHibernate/Dialect/MsSql2000Dialect.cs
62115
src/NHibernate/Dialect/MsSql2000Dialect.cs
72199
src/NHibernate/Dialect/Oracle8iDialect.cs
8250
src/NHibernate/Dialect/SQLiteDialect.cs
9252
src/NHibernate/Dialect/SQLiteDialect.cs
10254
src/NHibernate/Dialect/SQLiteDialect.cs
Clone Instance
1
Line Count
2
Source Line
119
Source File
src/NHibernate/Dialect/Dialect.cs

                        RegisterFunction("minute", new SQLFunctionTemplate(NHibernateUtil.Int32, "extract(minute from ?1)"));
                        RegisterFunction("hour", new SQLFunctionTemplate(NHibernateUtil.Int32, "extract(hour from ?1)"));


Clone Instance
2
Line Count
2
Source Line
121
Source File
src/NHibernate/Dialect/Dialect.cs

                        RegisterFunction("day", new SQLFunctionTemplate(NHibernateUtil.Int32, "extract(day from ?1)"));
                        RegisterFunction("month", new SQLFunctionTemplate(NHibernateUtil.Int32, "extract(month from ?1)"));


Clone Instance
3
Line Count
3
Source Line
123
Source File
src/NHibernate/Dialect/Dialect.cs

                        RegisterFunction("year", new SQLFunctionTemplate(NHibernateUtil.Int32, "extract(year from ?1)"));

                        RegisterFunction("str", new SQLFunctionTemplate(NHibernateUtil.String, "cast(?1 as char)"));


Clone Instance
4
Line Count
2
Source Line
111
Source File
src/NHibernate/Dialect/MsSql2000Dialect.cs

                        RegisterFunction("second", new SQLFunctionTemplate(NHibernateUtil.Int32, "datepart(second, ?1)"));
                        RegisterFunction("minute", new SQLFunctionTemplate(NHibernateUtil.Int32, "datepart(minute, ?1)"));


Clone Instance
5
Line Count
2
Source Line
113
Source File
src/NHibernate/Dialect/MsSql2000Dialect.cs

                        RegisterFunction("hour", new SQLFunctionTemplate(NHibernateUtil.Int32, "datepart(hour, ?1)"));
                        RegisterFunction("day", new SQLFunctionTemplate(NHibernateUtil.Int32, "datepart(day, ?1)"));


Clone Instance
6
Line Count
2
Source Line
115
Source File
src/NHibernate/Dialect/MsSql2000Dialect.cs

                        RegisterFunction("month", new SQLFunctionTemplate(NHibernateUtil.Int32, "datepart(month, ?1)"));
                        RegisterFunction("year", new SQLFunctionTemplate(NHibernateUtil.Int32, "datepart(year, ?1)"));


Clone Instance
7
Line Count
2
Source Line
199
Source File
src/NHibernate/Dialect/Oracle8iDialect.cs

                        RegisterFunction("locate", new SQLFunctionTemplate(NHibernateUtil.Int32, "instr(?2,?1)"));
                        RegisterFunction("bit_length", new SQLFunctionTemplate(NHibernateUtil.Int32, "vsize(?1)*8"));


Clone Instance
8
Line Count
2
Source Line
50
Source File
src/NHibernate/Dialect/SQLiteDialect.cs

                        RegisterFunction("second", new SQLFunctionTemplate(NHibernateUtil.Int32, "strftime(\"%S\", ?1)"));
                        RegisterFunction("minute", new SQLFunctionTemplate(NHibernateUtil.Int32, "strftime(\"%M\", ?1)"));


Clone Instance
9
Line Count
2
Source Line
52
Source File
src/NHibernate/Dialect/SQLiteDialect.cs

                        RegisterFunction("hour", new SQLFunctionTemplate(NHibernateUtil.Int32, "strftime(\"%H\", ?1)"));
                        RegisterFunction("day", new SQLFunctionTemplate(NHibernateUtil.Int32, "strftime(\"%d\", ?1)"));


Clone Instance
10
Line Count
2
Source Line
54
Source File
src/NHibernate/Dialect/SQLiteDialect.cs

                        RegisterFunction("month", new SQLFunctionTemplate(NHibernateUtil.Int32, "strftime(\"%m\", ?1)"));
                        RegisterFunction("year", new SQLFunctionTemplate(NHibernateUtil.Int32, "strftime(\"%Y\", ?1)"));


Clone AbstractionParameter Count: 5Parameter Bindings

RegisterFunction( [[#variable657d1620]], new SQLFunctionTemplate(NHibernateUtil.Int32, [[#variable657d15c0]]));
RegisterFunction( [[#variable7005ad60]], new SQLFunctionTemplate(NHibernateUtil. [[#variable7005b4c0]], [[#variable657d1460]]));
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#657d1620]]
"year" 
12[[#657d1620]]
"day" 
13[[#657d1620]]
"minute" 
14[[#657d1620]]
"month" 
15[[#657d1620]]
"hour" 
16[[#657d1620]]
"second" 
17[[#657d1620]]
"locate" 
18[[#657d1620]]
"month" 
19[[#657d1620]]
"hour" 
110[[#657d1620]]
"second" 
21[[#657d15c0]]
"extract(year from ?1)" 
22[[#657d15c0]]
"extract(day from ?1)" 
23[[#657d15c0]]
"extract(minute from ?1)" 
24[[#657d15c0]]
"datepart(month, ?1)" 
25[[#657d15c0]]
"datepart(hour, ?1)" 
26[[#657d15c0]]
"datepart(second, ?1)" 
27[[#657d15c0]]
"instr(?2,?1)" 
28[[#657d15c0]]
"strftime(\"%m\", ?1)" 
29[[#657d15c0]]
"strftime(\"%H\", ?1)" 
210[[#657d15c0]]
"strftime(\"%S\", ?1)" 
31[[#7005ad60]]
"str" 
32[[#7005ad60]]
"month" 
33[[#7005ad60]]
"hour" 
34[[#7005ad60]]
"year" 
35[[#7005ad60]]
"day" 
36[[#7005ad60]]
"minute" 
37[[#7005ad60]]
"bit_length" 
38[[#7005ad60]]
"year" 
39[[#7005ad60]]
"day" 
310[[#7005ad60]]
"minute" 
41[[#7005b4c0]]
String 
42[[#7005b4c0]]
Int32 
43[[#7005b4c0]]
Int32 
44[[#7005b4c0]]
Int32 
45[[#7005b4c0]]
Int32 
46[[#7005b4c0]]
Int32 
47[[#7005b4c0]]
Int32 
48[[#7005b4c0]]
Int32 
49[[#7005b4c0]]
Int32 
410[[#7005b4c0]]
Int32 
51[[#657d1460]]
"cast(?1 as char)" 
52[[#657d1460]]
"extract(month from ?1)" 
53[[#657d1460]]
"extract(hour from ?1)" 
54[[#657d1460]]
"datepart(year, ?1)" 
55[[#657d1460]]
"datepart(day, ?1)" 
56[[#657d1460]]
"datepart(minute, ?1)" 
57[[#657d1460]]
"vsize(?1)*8" 
58[[#657d1460]]
"strftime(\"%Y\", ?1)" 
59[[#657d1460]]
"strftime(\"%d\", ?1)" 
510[[#657d1460]]
"strftime(\"%M\", ?1)"