CloneSet335


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12201.000statement_list[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1121064
src/NHibernate.Test/Criteria/CriteriaQueryTest.cs
2121248
src/NHibernate.Test/Criteria/CriteriaQueryTest.cs
Clone Instance
1
Line Count
12
Source Line
1064
Source File
src/NHibernate.Test/Criteria/CriteriaQueryTest.cs

                        ProjectionList p1 = Projections.ProjectionList().
                                 Add        (Property.ForName("StudentNumber").Count()).
                                 Add        (Property.ForName("StudentNumber").Max()).
                                 Add        (Projections.RowCount());

                        ProjectionList p2 = Projections.ProjectionList().
                                 Add        (Property.ForName("StudentNumber").Min()).
                                 Add        (Property.ForName("StudentNumber").Avg()).
                                 Add        (Projections.SqlProjection(
                                                        "1 as constOne, count(*) as countStar",
                                                        new String[] { "constOne", "countStar"
                                                                     } , new IType[] { NHibernateUtil.Int32, NHibernateUtil.Int32
                                                                                     } ));


Clone Instance
2
Line Count
12
Source Line
1248
Source File
src/NHibernate.Test/Criteria/CriteriaQueryTest.cs

                        ProjectionList p1 = Projections.ProjectionList().
                                 Add        (Property.ForName("StudentNumber").Count()).
                                 Add        (Property.ForName("StudentNumber").Max()).
                                 Add        (Projections.RowCount());

                        ProjectionList p2 = Projections.ProjectionList().
                                 Add        (Property.ForName("StudentNumber").Min()).
                                 Add        (Property.ForName("StudentNumber").Avg()).
                                 Add        (Projections.SqlProjection(
                                                        "1 as constOne, count(*) as countStar",
                                                        new String[] { "constOne", "countStar"
                                                                     } , new IType[] { NHibernateUtil.Int32, NHibernateUtil.Int32
                                                                                     } ));


Clone AbstractionParameter Count: 0Parameter Bindings

ProjectionList p1 = Projections.ProjectionList().Add(Property.ForName("StudentNumber").Count()).Add(Property.ForName("StudentNumber").Max()).Add(Projections.RowCount());
ProjectionList p2 = Projections.ProjectionList().Add(Property.ForName("StudentNumber").Min()).Add(Property.ForName("StudentNumber").Avg()).Add(Projections.SqlProjection("1 as constOne, count(*) as countStar", new String[]
                                                                                                                                                                                                                 {
                                                                                                                                                                                                                    "constOne", "countStar"
                                                                                                                                                                                                                 } , new IType[]
                                                                                                                                                                                                                     {
                                                                                                                                                                                                                        NHibernateUtil.Int32, NHibernateUtil.Int32
                                                                                                                                                                                                                     } ));
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None