Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
9 | 2 | 4 | 0.950 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 9 | 107 | src/NHibernate.Test/BulkManipulation/NativeSQLBulkOperations.cs |
2 | 7 | 136 | src/NHibernate.Test/TypeParameters/TypeParameterTest.cs |
| ||||
public void CleanupData() { ISession s = OpenSession(); ITransaction txn = s.BeginTransaction(); s.Delete("from Vehicle"); txn.Commit(); s.Close(); } |
| ||||
private void DeleteData() { ISession s = OpenSession(); ITransaction t = s.BeginTransaction(); s.Delete("from Widget"); t.Commit(); s.Close(); } |
| |||
[[#variable57f480c0]]void [[#variable57f48060]]() { ISession s = OpenSession(); ITransaction [[#variable57f48000]]= s.BeginTransaction(); s.Delete( [[#variable65a0df80]]); [[#variable57f48000]].Commit(); s.Close(); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#57f480c0]] | public |
1 | 2 | [[#57f480c0]] | private |
2 | 1 | [[#57f48060]] | CleanupData |
2 | 2 | [[#57f48060]] | DeleteData |
3 | 1 | [[#57f48000]] | txn |
3 | 2 | [[#57f48000]] | t |
4 | 1 | [[#65a0df80]] | "from Vehicle" |
4 | 2 | [[#65a0df80]] | "from Widget" |