CloneSet365


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
23210.994non_pp_embedded_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
123133
src/NHibernate/Hql/Ast/ANTLR/Tree/AbstractNullnessCheckNode.cs
223212
src/NHibernate/Hql/Ast/ANTLR/Tree/BinaryLogicOperatorNode.cs
Clone Instance
1
Line Count
23
Source Line
133
Source File
src/NHibernate/Hql/Ast/ANTLR/Tree/AbstractNullnessCheckNode.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);
                        }


Clone Instance
2
Line Count
23
Source Line
212
Source File
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);
                        }


Clone AbstractionParameter Count: 1Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#68797c40]]
string 
12[[#68797c40]]
String