Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
12 | 2 | 0 | 1.000 | statement_list[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 12 | 689 | src/NHibernate.Test/Criteria/CriteriaQueryTest.cs |
2 | 12 | 879 | src/NHibernate.Test/Criteria/CriteriaQueryTest.cs |
| ||||
ProjectionList p1 = Projections.ProjectionList(). Add (Projections.Count("StudentNumber")). Add (Projections.Max("StudentNumber")). Add (Projections.RowCount()); ProjectionList p2 = Projections.ProjectionList(). Add (Projections.Min("StudentNumber")). Add (Projections.Avg("StudentNumber")). Add (Projections.SqlProjection( "1 as constOne, count(*) as countStar", new String[] { "constOne", "countStar" } , new IType[] { NHibernateUtil.Int32, NHibernateUtil.Int32 } )); |
| ||||
ProjectionList p1 = Projections.ProjectionList(). Add (Projections.Count("StudentNumber")). Add (Projections.Max("StudentNumber")). Add (Projections.RowCount()); ProjectionList p2 = Projections.ProjectionList(). Add (Projections.Min("StudentNumber")). Add (Projections.Avg("StudentNumber")). Add (Projections.SqlProjection( "1 as constOne, count(*) as countStar", new String[] { "constOne", "countStar" } , new IType[] { NHibernateUtil.Int32, NHibernateUtil.Int32 } )); |
| |||
ProjectionList p1 = Projections.ProjectionList().Add(Projections.Count("StudentNumber")).Add(Projections.Max("StudentNumber")).Add(Projections.RowCount()); ProjectionList p2 = Projections.ProjectionList().Add(Projections.Min("StudentNumber")).Add(Projections.Avg("StudentNumber")).Add(Projections.SqlProjection("1 as constOne, count(*) as countStar", new String[] { "constOne", "countStar" } , new IType[] { NHibernateUtil.Int32, NHibernateUtil.Int32 } )); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
None |