Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
6 | 2 | 2 | 0.978 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 6 | 205 | src/NHibernate.Test/HQL/HQLFunctions.cs |
2 | 6 | 8 | src/NHibernate.Test/NHSpecificTest/NH1400/Fixture.cs |
| ||||
[Test] public void AggregatesAndMathNH959() { using (ISession s = OpenSession()) { Assert.DoesNotThrow(() => s.CreateQuery("select a.Id, sum(BodyWeight)/avg(BodyWeight) from Animal a group by a.Id having sum(BodyWeight)>0").List()); } } |
| ||||
[Test] public void DotInStringLiteralsConstant() { using (ISession s = OpenSession()) { Assert.DoesNotThrow(() => s.CreateQuery("from SimpleGeographicalAddress as dga where dga.Line2 = 'B1 P9, Scb, Ap. 18'").List()); } } |
| |||
[Test] public void [[#variable700e3240]]() { using (ISession s = OpenSession()) { Assert.DoesNotThrow(() => s.CreateQuery( [[#variable700e3120]]).List()); } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#700e3240]] | DotInStringLiteralsConstant |
1 | 2 | [[#700e3240]] | AggregatesAndMathNH959 |
2 | 1 | [[#700e3120]] | "from SimpleGeographicalAddress as dga where dga.Line2 = 'B1 P9, Scb, Ap. 18'" |
2 | 2 | [[#700e3120]] | "select a.Id, sum(BodyWeight)/avg(BodyWeight) from Animal a group by a.Id having sum(BodyWeight)>0" |