| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 16 | 4 | 2 | 0.981 | statement_list[2] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 16 | 149 | src/NHibernate/SqlCommand/SqlDeleteBuilder.cs |
| 2 | 17 | 183 | src/NHibernate/SqlCommand/SqlInsertBuilder.cs |
| 3 | 17 | 273 | src/NHibernate/SqlCommand/SqlSelectBuilder.cs |
| 4 | 17 | 302 | 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 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();
|
| ||||
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();
|
| ||||
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();
|
| ||||
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();
|
| |||
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 Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#70625e60]] | " for the DeleteSqlBuilder " |
| 1 | 2 | [[#70625e60]] | " for the InsertSqlBuilder " |
| 1 | 3 | [[#70625e60]] | " for the SelectSqlBuilder " |
| 1 | 4 | [[#70625e60]] | " for the UpdateSqlBuilder " |
| 2 | 1 | [[#70625b80]] | tableName |
| 2 | 2 | [[#70625b80]] | tableName |
| 2 | 3 | [[#70625b80]] | fromClause |
| 2 | 4 | [[#70625b80]] | tableName |