CloneSet247


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
16420.981statement_list[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
116149
src/NHibernate/SqlCommand/SqlDeleteBuilder.cs
217183
src/NHibernate/SqlCommand/SqlInsertBuilder.cs
317273
src/NHibernate/SqlCommand/SqlSelectBuilder.cs
417302
src/NHibernate/SqlCommand/SqlUpdateBuilder.cs
Clone Instance
1
Line Count
16
Source Line
149
Source File
src/NHibernate/SqlCommand/SqlDeleteBuilder.cs

                        if (log.IsDebugEnabled)
                        {
                                if (initialCapacity < sqlBuilder.Count)
                                {
                                        log.Debug(
                                                "The initial capacity was set too low at: " + initialCapacity + " for the DeleteSqlBuilder " +
                                                "that needed a capacity of: " + sqlBuilder.Count + " for the table " + tableName);
                                }
                                else if (initialCapacity > 16 && ((float) initialCapacity / sqlBuilder.Count) > 1.2)
                                {
                                        log.Debug(
                                                "The initial capacity was set too high at: " + initialCapacity + " for the DeleteSqlBuilder " +
                                                "that needed a capacity of: " + sqlBuilder.Count + " for the table " + tableName);
                                }
                        }
                        return sqlBuilder.ToSqlString();


Clone Instance
2
Line Count
17
Source Line
183
Source File
src/NHibernate/SqlCommand/SqlInsertBuilder.cs

                        if (log.IsDebugEnabled)
                        {
                                if (initialCapacity < sqlBuilder.Count)
                                {
                                        log.Debug(
                                                "The initial capacity was set too low at: " + initialCapacity + " for the InsertSqlBuilder " +
                                                "that needed a capacity of: " + sqlBuilder.Count + " for the table " + tableName);
                                }
                                else if (initialCapacity > 16 && ((float) initialCapacity / sqlBuilder.Count) > 1.2)
                                {
                                        log.Debug(
                                                "The initial capacity was set too high at: " + initialCapacity + " for the InsertSqlBuilder " +
                                                "that needed a capacity of: " + sqlBuilder.Count + " for the table " + tableName);
                                }
                        }

                        return sqlBuilder.ToSqlString();


Clone Instance
3
Line Count
17
Source Line
273
Source File
src/NHibernate/SqlCommand/SqlSelectBuilder.cs

                        if (log.IsDebugEnabled)
                        {
                                if (initialCapacity < sqlBuilder.Count)
                                {
                                        log.Debug(
                                                "The initial capacity was set too low at: " + initialCapacity + " for the SelectSqlBuilder " +
                                                "that needed a capacity of: " + sqlBuilder.Count + " for the table " + fromClause);
                                }
                                else if (initialCapacity > 16 && ((float) initialCapacity / sqlBuilder.Count) > 1.2)
                                {
                                        log.Debug(
                                                "The initial capacity was set too high at: " + initialCapacity + " for the SelectSqlBuilder " +
                                                "that needed a capacity of: " + sqlBuilder.Count + " for the table " + fromClause);
                                }
                        }

                        return sqlBuilder.ToSqlString();


Clone Instance
4
Line Count
17
Source Line
302
Source File
src/NHibernate/SqlCommand/SqlUpdateBuilder.cs

                        if (log.IsDebugEnabled)
                        {
                                if (initialCapacity < sqlBuilder.Count)
                                {
                                        log.Debug(
                                                "The initial capacity was set too low at: " + initialCapacity + " for the UpdateSqlBuilder " +
                                                "that needed a capacity of: " + sqlBuilder.Count + " for the table " + tableName);
                                }
                                else if (initialCapacity > 16 && ((float) initialCapacity / sqlBuilder.Count) > 1.2)
                                {
                                        log.Debug(
                                                "The initial capacity was set too high at: " + initialCapacity + " for the UpdateSqlBuilder " +
                                                "that needed a capacity of: " + sqlBuilder.Count + " for the table " + tableName);
                                }
                        }

                        return sqlBuilder.ToSqlString();


Clone AbstractionParameter Count: 2Parameter Bindings

if (log.IsDebugEnabled)
{
   if (initialCapacity < sqlBuilder.Count)
   {
      log.Debug("The initial capacity was set too low at: " + initialCapacity + [[#variable70625e60]]+ "that needed a capacity of: " + sqlBuilder.Count + " for the table " + [[#variable70625b80]]);
   }
   else
   if (initialCapacity > 16 && ((float)initialCapacity / sqlBuilder.Count) > 1.2)
   {
      log.Debug("The initial capacity was set too high at: " + initialCapacity + [[#variable70625e60]]+ "that needed a capacity of: " + sqlBuilder.Count + " for the table " + [[#variable70625b80]]);
   }
}
return sqlBuilder.ToSqlString();
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#70625e60]]
" for the DeleteSqlBuilder " 
12[[#70625e60]]
" for the InsertSqlBuilder " 
13[[#70625e60]]
" for the SelectSqlBuilder " 
14[[#70625e60]]
" for the UpdateSqlBuilder " 
21[[#70625b80]]
tableName 
22[[#70625b80]]
tableName 
23[[#70625b80]]
fromClause 
24[[#70625b80]]
tableName