| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 5 | 15 | 2 | 0.970 | non_pp_embedded_statement |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 5 | 218 | src/NHibernate.Test/HQL/HQLFunctions.cs |
| 2 | 5 | 285 | src/NHibernate.Test/HQL/HQLFunctions.cs |
| 3 | 5 | 445 | src/NHibernate.Test/HQL/HQLFunctions.cs |
| 4 | 5 | 471 | src/NHibernate.Test/HQL/HQLFunctions.cs |
| 5 | 5 | 497 | src/NHibernate.Test/HQL/HQLFunctions.cs |
| 6 | 5 | 519 | src/NHibernate.Test/HQL/HQLFunctions.cs |
| 7 | 5 | 545 | src/NHibernate.Test/HQL/HQLFunctions.cs |
| 8 | 5 | 579 | src/NHibernate.Test/HQL/HQLFunctions.cs |
| 9 | 5 | 723 | src/NHibernate.Test/HQL/HQLFunctions.cs |
| 10 | 5 | 743 | src/NHibernate.Test/HQL/HQLFunctions.cs |
| 11 | 5 | 761 | src/NHibernate.Test/HQL/HQLFunctions.cs |
| 12 | 5 | 783 | src/NHibernate.Test/HQL/HQLFunctions.cs |
| 13 | 5 | 816 | src/NHibernate.Test/HQL/HQLFunctions.cs |
| 14 | 5 | 868 | src/NHibernate.Test/HQL/HQLFunctions.cs |
| 15 | 5 | 946 | src/NHibernate.Test/HQL/HQLFunctions.cs |
| ||||
using (ISession s = OpenSession())
{
Animal a1 = new Animal("abcdef", 20);
s.Save(a1);
s.Flush();
}
|
| ||||
using (ISession s = OpenSession())
{
Animal a1 = new Animal("abcdef", 20);
s.Save(a1);
s.Flush();
}
|
| ||||
using (ISession s = OpenSession())
{
Animal a1 = new Animal("Dog", 9);
s.Save(a1);
s.Flush();
}
|
| ||||
using (ISession s = OpenSession())
{
Animal a1 = new Animal("abcdef", 20);
s.Save(a1);
s.Flush();
}
|
| ||||
using (ISession s = OpenSession())
{
Animal a1 = new Animal("abcdef", 65536F);
s.Save(a1);
s.Flush();
}
|
| ||||
using (ISession s = OpenSession())
{
Animal a1 = new Animal("abcdef", 1F);
s.Save(a1);
s.Flush();
}
|
| ||||
using (ISession s = OpenSession())
{
Animal a1 = new Animal("ABCDEF", 1F);
s.Save(a1);
s.Flush();
}
|
| ||||
// The cast is used to test various cases of a function render
// Cast was selected because represent a special case for:
// 1) Has more then 1 argument
// 2) The argument separator is "as" (for the other function is ',' or ' ')
// 3) The ReturnType is not fixed (depend on a column type)
// 4) The 2th argument is parsed by NH and traslated for a specific Dialect (can't be interpreted directly by RDBMS)
using (ISession s = OpenSession())
{
Animal a1 = new Animal("abcdef", 1.3F);
s.Save(a1);
s.Flush();
}
|
| ||||
using (ISession s = OpenSession())
{
Animal a1 = new Animal("abcdef", 1.3F);
s.Save(a1);
s.Flush();
}
|
| ||||
using (ISession s = OpenSession())
{
Animal a1 = new Animal("abcdef", 1.3F);
s.Save(a1);
s.Flush();
}
|
| ||||
using (ISession s = OpenSession())
{
Animal a1 = new Animal("abcdef", 1.3F);
s.Save(a1);
s.Flush();
}
|
| ||||
using (ISession s = OpenSession())
{
Animal a1 = new Animal("abcdef", 1.3F);
s.Save(a1);
s.Flush();
}
|
| ||||
using (ISession s = OpenSession())
{
Animal a1 = new Animal("abcdef", 1F);
s.Save(a1);
s.Flush();
}
|
| ||||
using (ISession s = OpenSession())
{
Animal a1 = new Animal("abcdef", 20);
s.Save(a1);
s.Flush();
}
|
| ||||
using (ISession s = OpenSession())
{
Animal a1 = new Animal("abcdef", 1.3F);
s.Save(a1);
s.Flush();
}
|
| |||
// The cast is used to test various cases of a function render
// Cast was selected because represent a special case for:
// 1) Has more then 1 argument
// 2) The argument separator is "as" (for the other function is ',' or ' ')
// 3) The ReturnType is not fixed (depend on a column type)
// 4) The 2th argument is parsed by NH and traslated for a specific Dialect (can't be interpreted directly by RDBMS)
using (ISession s = OpenSession())
{
Animal a1 = new Animal( [[#variable55364860]], [[#variable55364840]]);
s.Save(a1);
s.Flush();
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#55364860]] | "abcdef" |
| 1 | 2 | [[#55364860]] | "Dog" |
| 1 | 3 | [[#55364860]] | "abcdef" |
| 1 | 4 | [[#55364860]] | "abcdef" |
| 1 | 5 | [[#55364860]] | "ABCDEF" |
| 1 | 6 | [[#55364860]] | "abcdef" |
| 1 | 7 | [[#55364860]] | "abcdef" |
| 1 | 8 | [[#55364860]] | "abcdef" |
| 1 | 9 | [[#55364860]] | "abcdef" |
| 1 | 10 | [[#55364860]] | "abcdef" |
| 1 | 11 | [[#55364860]] | "abcdef" |
| 1 | 12 | [[#55364860]] | "abcdef" |
| 1 | 13 | [[#55364860]] | "abcdef" |
| 1 | 14 | [[#55364860]] | "abcdef" |
| 1 | 15 | [[#55364860]] | "abcdef" |
| 2 | 1 | [[#55364840]] | 20 |
| 2 | 2 | [[#55364840]] | 9 |
| 2 | 3 | [[#55364840]] | 65536F |
| 2 | 4 | [[#55364840]] | 1F |
| 2 | 5 | [[#55364840]] | 1F |
| 2 | 6 | [[#55364840]] | 1.3F |
| 2 | 7 | [[#55364840]] | 20 |
| 2 | 8 | [[#55364840]] | 20 |
| 2 | 9 | [[#55364840]] | 1.3F |
| 2 | 10 | [[#55364840]] | 1.3F |
| 2 | 11 | [[#55364840]] | 1.3F |
| 2 | 12 | [[#55364840]] | 1.3F |
| 2 | 13 | [[#55364840]] | 1F |
| 2 | 14 | [[#55364840]] | 20 |
| 2 | 15 | [[#55364840]] | 1.3F |