Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
23 | 2 | 1 | 0.994 | non_pp_embedded_statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 23 | 133 | src/NHibernate/Hql/Ast/ANTLR/Tree/AbstractNullnessCheckNode.cs |
2 | 23 | 212 | src/NHibernate/Hql/Ast/ANTLR/Tree/BinaryLogicOperatorNode.cs |
| ||||
if ( operand is SqlNode) { string nodeText = operand.Text; if ( nodeText.StartsWith( "(")) { nodeText = nodeText.Substring( 1); } if ( nodeText.EndsWith( ")")) { nodeText = nodeText.Substring( 0, nodeText.Length - 1); } string[] splits = StringHelper.Split( ", ", nodeText); if ( count != splits.Length) { throw new HibernateException( "SqlNode's text did not reference expected number of columns"); } return splits; } else { throw new HibernateException( "dont know how to extract row value elements from node : " + operand); } |
| ||||
if ( operand is SqlNode) { string nodeText = operand.Text; if ( nodeText.StartsWith( "(")) { nodeText = nodeText.Substring( 1); } if ( nodeText.EndsWith( ")")) { nodeText = nodeText.Substring( 0, nodeText.Length - 1); } String[] splits = StringHelper.Split( ", ", nodeText); if ( count != splits.Length) { throw new HibernateException( "SqlNode's text did not reference expected number of columns"); } return splits; } else { throw new HibernateException( "dont know how to extract row value elements from node : " + operand); } |
| |||
if (operand is SqlNode) { string nodeText = operand.Text; if (nodeText.StartsWith("(")) { nodeText = nodeText.Substring(1); } if (nodeText.EndsWith(")")) { nodeText = nodeText.Substring(0, nodeText.Length - 1); } [[#variable68797c40]][] splits = StringHelper.Split(", ", nodeText); if (count != splits.Length) { throw new HibernateException("SqlNode's text did not reference expected number of columns"); } return splits; } else { throw new HibernateException("dont know how to extract row value elements from node : " + operand); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#68797c40]] | string |
1 | 2 | [[#68797c40]] | String |