Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
6 | 3 | 3 | 0.972 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 6 | 11 | src/NHibernate/Util/PropertiesHelper.cs |
2 | 5 | 26 | src/NHibernate/Util/PropertiesHelper.cs |
3 | 5 | 33 | src/NHibernate/Util/PropertiesHelper.cs |
| ||||
public static bool GetBoolean(string property, IDictionary<string, string> properties, bool defaultValue) { string toParse; properties.TryGetValue(property, out toParse); return toParse == null ? defaultValue: bool.Parse(toParse); } |
| ||||
public static int GetInt32(string property, IDictionary<string, string> properties, int defaultValue) { string toParse; properties.TryGetValue(property, out toParse); return toParse == null ? defaultValue: int.Parse(toParse); } |
| ||||
public static long GetInt64(string property, IDictionary<string, string> properties, long defaultValue) { string toParse; properties.TryGetValue(property, out toParse); return toParse == null ? defaultValue: long.Parse(toParse); } |
| |||
public static [[#variable2d079940]] [[#variable2d078840]](string property, IDictionary<string, string> properties, [[#variable2d079940]]defaultValue) { string toParse; properties.TryGetValue(property, out toParse); return toParse == null ? defaultValue: [[#variable2d079880]].Parse(toParse); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#2d079940]] | bool |
1 | 2 | [[#2d079940]] | int |
1 | 3 | [[#2d079940]] | long |
2 | 1 | [[#2d078840]] | GetBoolean |
2 | 2 | [[#2d078840]] | GetInt32 |
2 | 3 | [[#2d078840]] | GetInt64 |
3 | 1 | [[#2d079880]] | bool |
3 | 2 | [[#2d079880]] | int |
3 | 3 | [[#2d079880]] | long |