nus-yam/ex-repair huggingface dataset:
Program: 112406
Project: 112406
Buggy source:
private void checkForLocalIndexColumnFamilies(Region region,List<IndexMaintainer> indexMaintainers) throws IOException {
  HTableDescriptor tableDesc=region.getTableDesc();
  String schemaName=tableDesc.getTableName().getNamespaceAsString().equals(NamespaceDescriptor.DEFAULT_NAMESPACE_NAME_STR) ? SchemaUtil.getSchemaNameFromFullName(tableDesc.getTableName().getNameAsString()) : tableDesc.getTableName().getNamespaceAsString();
  String tableName=SchemaUtil.getTableNameFromFullName(tableDesc.getTableName().getNameAsString());
  for (  IndexMaintainer indexMaintainer : indexMaintainers) {
    Set<ColumnReference> coveredColumns=indexMaintainer.getCoveredColumns();
    if (coveredColumns.isEmpty()) {
      byte[] localIndexCf=indexMaintainer.getEmptyKeyValueFamily().get();
      if (tableDesc.getFamily(localIndexCf) == null) {
        ServerUtil.throwIOException("String_Node_Str",new ColumnFamilyNotFoundException(schemaName,tableName,Bytes.toString(localIndexCf)));
      }
    }
    for (    ColumnReference reference : coveredColumns) {
      byte[] cf=IndexUtil.getLocalIndexColumnFamily(reference.getFamily());
      HColumnDescriptor family=region.getTableDesc().getFamily(cf);
      if (family == null) {
        ServerUtil.throwIOException("String_Node_Str",new ColumnFamilyNotFoundException(schemaName,tableName,Bytes.toString(cf)));
      }
    }
  }
}

Fixed version (ground truth):
private void checkForLocalIndexColumnFamilies(Region region,List<IndexMaintainer> indexMaintainers) throws IOException {
  TableDescriptor tableDesc=region.getTableDescriptor();
  String schemaName=tableDesc.getTableName().getNamespaceAsString().equals(NamespaceDescriptor.DEFAULT_NAMESPACE_NAME_STR) ? SchemaUtil.getSchemaNameFromFullName(tableDesc.getTableName().getNameAsString()) : tableDesc.getTableName().getNamespaceAsString();
  String tableName=SchemaUtil.getTableNameFromFullName(tableDesc.getTableName().getNameAsString());
  for (  IndexMaintainer indexMaintainer : indexMaintainers) {
    Set<ColumnReference> coveredColumns=indexMaintainer.getCoveredColumns();
    if (coveredColumns.isEmpty()) {
      byte[] localIndexCf=indexMaintainer.getEmptyKeyValueFamily().get();
      if (tableDesc.getColumnFamily(localIndexCf) == null) {
        ServerUtil.throwIOException("String_Node_Str",new ColumnFamilyNotFoundException(schemaName,tableName,Bytes.toString(localIndexCf)));
      }
    }
    for (    ColumnReference reference : coveredColumns) {
      byte[] cf=IndexUtil.getLocalIndexColumnFamily(reference.getFamily());
      ColumnFamilyDescriptor family=region.getTableDescriptor().getColumnFamily(cf);
      if (family == null) {
        ServerUtil.throwIOException("String_Node_Str",new ColumnFamilyNotFoundException(schemaName,tableName,Bytes.toString(cf)));
      }
    }
  }
}
Program: 112408
Project: 112408
Buggy source:
@Override public InternalScanner createCompactionScanner(RegionCoprocessorEnvironment env,Store store,InternalScanner s) throws IOException {
  if (logger.isDebugEnabled()) {
    logger.debug("String_Node_Str");
  }
  ImmutableBytesPtr cfKey=new ImmutableBytesPtr(store.getFamily().getName());
  init();
  StatisticsScanner scanner=new StatisticsScanner(this,statsWriter,env,s,cfKey);
  return scanner;
}

Fixed version (ground truth):
@Override public InternalScanner createCompactionScanner(RegionCoprocessorEnvironment env,Store store,InternalScanner s) throws IOException {
  if (logger.isDebugEnabled()) {
    logger.debug("String_Node_Str");
  }
  ImmutableBytesPtr cfKey=new ImmutableBytesPtr(store.getColumnFamilyDescriptor().getName());
  init();
  StatisticsScanner scanner=new StatisticsScanner(this,statsWriter,env,s,cfKey);
  return scanner;
}
Program: 112409
Project: 112409
Buggy source:
public MutationState(TableRef table,Map<ImmutableBytesPtr,RowMutationState> mutations,long sizeOffset,long maxSize,long maxSizeBytes,PhoenixConnection connection) throws SQLException {
  this(maxSize,maxSizeBytes,connection,false,null,sizeOffset);
  if (!mutations.isEmpty()) {
    this.mutations.put(table,mutations);
  }
  this.numRows=mutations.size();
  this.estimatedSize=KeyValueUtil.getEstimatedRowSize(table,mutations);
  throwIfTooBig();
}

Fixed version (ground truth):
public MutationState(TableRef table,Map<ImmutableBytesPtr,RowMutationState> mutations,long sizeOffset,long maxSize,long maxSizeBytes,PhoenixConnection connection) throws SQLException {
  this(maxSize,maxSizeBytes,connection,false,null,sizeOffset);
  if (!mutations.isEmpty()) {
    this.mutations.put(table,mutations);
  }
  this.numRows=mutations.size();
  this.estimatedSize=PhoenixKeyValueUtil.getEstimatedRowSize(table,mutations);
  throwIfTooBig();
}
Program: 112411
Project: 112411
Buggy source:
private synchronized Connection getConnection(Configuration conf) throws IOException {
  if (connection == null || connection.isClosed()) {
    connection=new CoprocessorHConnection(conf,server);
  }
  return connection;
}

Fixed version (ground truth):
private synchronized Connection getConnection(Configuration conf) throws IOException {
  if (connection == null || connection.isClosed()) {
    connection=env.createConnection(conf);
  }
  return connection;
}
Program: 112412
Project: 112412
Buggy source:
public static HTableFactory getDefaultDelegateHTableFactory(RegionCoprocessorEnvironment env){
  Configuration conf=env.getConfiguration();
  int htableThreads=conf.getInt(IndexWriterUtils.INDEX_WRITER_PER_TABLE_THREADS_CONF_KEY,IndexWriterUtils.DEFAULT_NUM_PER_TABLE_THREADS);
  LOG.trace("String_Node_Str" + htableThreads + "String_Node_Str");
  IndexManagementUtil.setIfNotSet(conf,HTABLE_THREAD_KEY,htableThreads);
  if (env instanceof RegionCoprocessorEnvironment) {
    RegionCoprocessorEnvironment e=(RegionCoprocessorEnvironment)env;
    RegionServerServices services=e.getRegionServerServices();
    if (services instanceof HRegionServer) {
      return new CoprocessorHConnectionTableFactory(conf,(HRegionServer)services);
    }
  }
  return new CoprocessorHTableFactory(env);
}

Fixed version (ground truth):
public static HTableFactory getDefaultDelegateHTableFactory(RegionCoprocessorEnvironment env){
  Configuration conf=env.getConfiguration();
  int htableThreads=conf.getInt(IndexWriterUtils.INDEX_WRITER_PER_TABLE_THREADS_CONF_KEY,IndexWriterUtils.DEFAULT_NUM_PER_TABLE_THREADS);
  LOG.trace("String_Node_Str" + htableThreads + "String_Node_Str");
  IndexManagementUtil.setIfNotSet(conf,HTABLE_THREAD_KEY,htableThreads);
  return new CoprocessorHConnectionTableFactory(conf,env);
}
Program: 112413
Project: 112413
Buggy source:
CoprocessorHConnectionTableFactory(Configuration conf,HRegionServer server){
  this.conf=conf;
  this.server=server;
}

Fixed version (ground truth):
CoprocessorHConnectionTableFactory(Configuration conf,RegionCoprocessorEnvironment env){
  this.conf=conf;
  this.env=env;
}
Program: 112417
Project: 112417
Buggy source:
@Override public void coerceBytes(ImmutableBytesWritable ptr,Object object,PDataType actualType,Integer maxLength,Integer scale,SortOrder actualModifier,Integer desiredMaxLength,Integer desiredScale,SortOrder expectedModifier){
  if (ptr.getLength() > getByteSize()) {
    ptr.set(ptr.get(),ptr.getOffset(),getByteSize());
  }
  super.coerceBytes(ptr,object,actualType,maxLength,scale,actualModifier,desiredMaxLength,desiredScale,expectedModifier);
}

Fixed version (ground truth):
@Override public void coerceBytes(ImmutableBytesWritable ptr,Object object,PDataType actualType,Integer maxLength,Integer scale,SortOrder actualModifier,Integer desiredMaxLength,Integer desiredScale,SortOrder expectedModifier){
  if (ptr.getLength() > getByteSize() && actualType.isCoercibleTo(PTimestamp.INSTANCE)) {
    ptr.set(ptr.get(),ptr.getOffset(),getByteSize());
  }
  super.coerceBytes(ptr,object,actualType,maxLength,scale,actualModifier,desiredMaxLength,desiredScale,expectedModifier);
}
Program: 112419
Project: 112419
Buggy source:
private void createTable(Connection conn,byte[][] splits) throws SQLException {
  PreparedStatement stmt=conn.prepareStatement("String_Node_Str" + tableName + "String_Node_Str"+ "String_Node_Str"+ Joiner.on(',').join(Collections.nCopies(splits.length,"String_Node_Str"))+ "String_Node_Str");
  for (int i=0; i < splits.length; i++) {
    stmt.setBytes(i + 1,splits[i]);
  }
  stmt.execute();
}

Fixed version (ground truth):
private void createTable(Connection conn,byte[][] splits) throws SQLException {
  List<String> splitsList=new ArrayList<String>(splits.length);
  for (  byte[] split : splits) {
    splitsList.add("String_Node_Str" + Bytes.toString(split) + "String_Node_Str");
  }
  conn.createStatement().execute("String_Node_Str" + tableName + "String_Node_Str"+ "String_Node_Str"+ Joiner.on(',').join(splitsList)+ "String_Node_Str");
}
Program: 112420
Project: 112420
Buggy source:
@Test public void testSkipScanIntersectionAtEnd() throws Exception {
  Connection conn=DriverManager.getConnection(getUrl());
  String tableName=generateUniqueName();
  PreparedStatement stmt=conn.prepareStatement("String_Node_Str" + tableName + "String_Node_Str"+ "String_Node_Str");
  stmt.setBytes(1,new byte[]{1,1});
  stmt.setBytes(2,new byte[]{2,1});
  stmt.setBytes(3,new byte[]{3,1});
  stmt.execute();
  conn.createStatement().execute("String_Node_Str" + tableName + "String_Node_Str");
  conn.createStatement().execute("String_Node_Str" + tableName + "String_Node_Str");
  conn.createStatement().execute("String_Node_Str" + tableName + "String_Node_Str");
  conn.createStatement().execute("String_Node_Str" + tableName + "String_Node_Str");
  conn.commit();
  ResultSet rs=conn.createStatement().executeQuery("String_Node_Str" + tableName + "String_Node_Str");
  assertTrue(rs.next());
  assertEquals(4,rs.getInt(1));
  assertFalse(rs.next());
}

Fixed version (ground truth):
@Test public void testSkipScanIntersectionAtEnd() throws Exception {
  Connection conn=DriverManager.getConnection(getUrl());
  String tableName=generateUniqueName();
  conn.createStatement().execute("String_Node_Str" + tableName + "String_Node_Str"+ "String_Node_Str"+ Bytes.toString(new byte[]{1,1})+ "String_Node_Str"+ Bytes.toString(new byte[]{2,1})+ "String_Node_Str"+ Bytes.toString(new byte[]{3,1})+ "String_Node_Str");
  conn.createStatement().execute("String_Node_Str" + tableName + "String_Node_Str");
  conn.createStatement().execute("String_Node_Str" + tableName + "String_Node_Str");
  conn.createStatement().execute("String_Node_Str" + tableName + "String_Node_Str");
  conn.createStatement().execute("String_Node_Str" + tableName + "String_Node_Str");
  conn.commit();
  ResultSet rs=conn.createStatement().executeQuery("String_Node_Str" + tableName + "String_Node_Str");
  assertTrue(rs.next());
  assertEquals(4,rs.getInt(1));
  assertFalse(rs.next());
}
Program: 112425
Project: 112425
Buggy source:
protected void helpTestInClauseWithIndex(boolean mutable,boolean localIndex) throws Exception {
  String dataTableName=generateUniqueName();
  String fullDataTableName=INDEX_DATA_SCHEMA + QueryConstants.NAME_SEPARATOR + dataTableName;
  String indexName=generateUniqueName();
  Properties props=PropertiesUtil.deepCopy(TEST_PROPERTIES);
  Connection conn=DriverManager.getConnection(getUrl(),props);
  try {
    conn.setAutoCommit(false);
    createDataTable(conn,fullDataTableName,mutable ? "String_Node_Str" : "String_Node_Str");
    populateDataTable(conn,fullDataTableName);
    String ddl="String_Node_Str" + (localIndex ? "String_Node_Str" : "String_Node_Str") + "String_Node_Str"+ indexName+ "String_Node_Str"+ fullDataTableName+ "String_Node_Str";
    PreparedStatement stmt=conn.prepareStatement(ddl);
    stmt.execute();
    String sql="String_Node_Str" + fullDataTableName + "String_Node_Str";
    ResultSet rs=conn.createStatement().executeQuery("String_Node_Str" + sql);
    assertEquals("String_Node_Str" + (localIndex ? fullDataTableName + "String_Node_Str" : "String_Node_Str" + indexName + "String_Node_Str"),QueryUtil.getExplainPlan(rs));
    rs=conn.createStatement().executeQuery(sql);
    assertTrue(rs.next());
    assertEquals(2,rs.getInt(1));
    assertFalse(rs.next());
    conn.createStatement().execute("String_Node_Str" + indexName + "String_Node_Str"+ fullDataTableName);
  }
  finally {
    conn.close();
  }
}

Fixed version (ground truth):
protected void helpTestInClauseWithIndex(boolean mutable,boolean localIndex) throws Exception {
  String dataTableName=generateUniqueName();
  String fullDataTableName=INDEX_DATA_SCHEMA + QueryConstants.NAME_SEPARATOR + dataTableName;
  String indexName=generateUniqueName();
  Properties props=PropertiesUtil.deepCopy(TEST_PROPERTIES);
  Connection conn=DriverManager.getConnection(getUrl(),props);
  try {
    conn.setAutoCommit(false);
    createDataTable(conn,fullDataTableName,mutable ? "String_Node_Str" : "String_Node_Str");
    populateDataTable(conn,fullDataTableName);
    String ddl="String_Node_Str" + (localIndex ? "String_Node_Str" : "String_Node_Str") + "String_Node_Str"+ indexName+ "String_Node_Str"+ fullDataTableName+ "String_Node_Str";
    conn.createStatement().execute(ddl);
    String sql="String_Node_Str" + fullDataTableName + "String_Node_Str";
    ResultSet rs=conn.createStatement().executeQuery("String_Node_Str" + sql);
    assertEquals("String_Node_Str" + (localIndex ? fullDataTableName + "String_Node_Str" : "String_Node_Str" + indexName + "String_Node_Str"),QueryUtil.getExplainPlan(rs));
    rs=conn.createStatement().executeQuery(sql);
    assertTrue(rs.next());
    assertEquals(2,rs.getInt(1));
    assertFalse(rs.next());
    conn.createStatement().execute("String_Node_Str" + indexName + "String_Node_Str"+ fullDataTableName);
  }
  finally {
    conn.close();
  }
}
Program: 112430
Project: 112430
Buggy source:
protected void helpTestSelectAliasAndOrderByWithIndex(boolean mutable,boolean localIndex) throws Exception {
  String dataTableName=generateUniqueName();
  String fullDataTableName=INDEX_DATA_SCHEMA + QueryConstants.NAME_SEPARATOR + dataTableName;
  String indexName=generateUniqueName();
  Properties props=PropertiesUtil.deepCopy(TEST_PROPERTIES);
  Connection conn=DriverManager.getConnection(getUrl(),props);
  try {
    conn.setAutoCommit(false);
    createDataTable(conn,fullDataTableName,mutable ? "String_Node_Str" : "String_Node_Str");
    populateDataTable(conn,fullDataTableName);
    String ddl="String_Node_Str" + (localIndex ? "String_Node_Str" : "String_Node_Str") + "String_Node_Str"+ indexName+ "String_Node_Str"+ fullDataTableName+ "String_Node_Str";
    PreparedStatement stmt=conn.prepareStatement(ddl);
    stmt.execute();
    String sql="String_Node_Str" + fullDataTableName + "String_Node_Str";
    ResultSet rs=conn.createStatement().executeQuery("String_Node_Str" + sql);
    assertEquals("String_Node_Str" + (localIndex ? "String_Node_Str" + fullDataTableName + "String_Node_Str" : "String_Node_Str" + indexName + "String_Node_Str"),QueryUtil.getExplainPlan(rs));
    rs=conn.createStatement().executeQuery(sql);
    assertTrue(rs.next());
    assertEquals(2,rs.getInt(1));
    assertTrue(rs.next());
    assertEquals(3,rs.getInt(1));
    assertFalse(rs.next());
    conn.createStatement().execute("String_Node_Str" + indexName + "String_Node_Str"+ fullDataTableName);
  }
  finally {
    conn.close();
  }
}

Fixed version (ground truth):
protected void helpTestSelectAliasAndOrderByWithIndex(boolean mutable,boolean localIndex) throws Exception {
  String dataTableName=generateUniqueName();
  String fullDataTableName=INDEX_DATA_SCHEMA + QueryConstants.NAME_SEPARATOR + dataTableName;
  String indexName=generateUniqueName();
  Properties props=PropertiesUtil.deepCopy(TEST_PROPERTIES);
  Connection conn=DriverManager.getConnection(getUrl(),props);
  try {
    conn.setAutoCommit(false);
    createDataTable(conn,fullDataTableName,mutable ? "String_Node_Str" : "String_Node_Str");
    populateDataTable(conn,fullDataTableName);
    String ddl="String_Node_Str" + (localIndex ? "String_Node_Str" : "String_Node_Str") + "String_Node_Str"+ indexName+ "String_Node_Str"+ fullDataTableName+ "String_Node_Str";
    conn.createStatement().execute(ddl);
    String sql="String_Node_Str" + fullDataTableName + "String_Node_Str";
    ResultSet rs=conn.createStatement().executeQuery("String_Node_Str" + sql);
    assertEquals("String_Node_Str" + (localIndex ? "String_Node_Str" + fullDataTableName + "String_Node_Str" : "String_Node_Str" + indexName + "String_Node_Str"),QueryUtil.getExplainPlan(rs));
    rs=conn.createStatement().executeQuery(sql);
    assertTrue(rs.next());
    assertEquals(2,rs.getInt(1));
    assertTrue(rs.next());
    assertEquals(3,rs.getInt(1));
    assertFalse(rs.next());
    conn.createStatement().execute("String_Node_Str" + indexName + "String_Node_Str"+ fullDataTableName);
  }
  finally {
    conn.close();
  }
}
Program: 112432
Project: 112432
Buggy source:
@Test public void testSelectDistinctOnTableWithSecondaryImmutableIndex() throws Exception {
  Properties props=PropertiesUtil.deepCopy(TEST_PROPERTIES);
  String tableName="String_Node_Str" + generateUniqueName();
  String indexName="String_Node_Str" + generateUniqueName();
  String fullTableName=SchemaUtil.getTableName(TestUtil.DEFAULT_SCHEMA_NAME,tableName);
  try (Connection conn=DriverManager.getConnection(getUrl(),props)){
    conn.setAutoCommit(false);
    String ddl="String_Node_Str" + fullTableName + TestUtil.TEST_TABLE_SCHEMA+ tableDDLOptions;
    Statement stmt=conn.createStatement();
    stmt.execute(ddl);
    BaseTest.populateTestTable(fullTableName);
    ddl="String_Node_Str" + (localIndex ? "String_Node_Str" : "String_Node_Str") + "String_Node_Str"+ indexName+ "String_Node_Str"+ fullTableName+ "String_Node_Str";
    PreparedStatement pstmt=conn.prepareStatement(ddl);
    pstmt.execute();
    ResultSet rs=conn.createStatement().executeQuery("String_Node_Str" + fullTableName + "String_Node_Str");
    assertTrue(rs.next());
    assertEquals(3,rs.getInt(1));
    assertTrue(rs.next());
    assertEquals(4,rs.getInt(1));
    assertTrue(rs.next());
    assertEquals(5,rs.getInt(1));
    assertFalse(rs.next());
  }
 }

Fixed version (ground truth):
@Test public void testSelectDistinctOnTableWithSecondaryImmutableIndex() throws Exception {
  Properties props=PropertiesUtil.deepCopy(TEST_PROPERTIES);
  String tableName="String_Node_Str" + generateUniqueName();
  String indexName="String_Node_Str" + generateUniqueName();
  String fullTableName=SchemaUtil.getTableName(TestUtil.DEFAULT_SCHEMA_NAME,tableName);
  try (Connection conn=DriverManager.getConnection(getUrl(),props)){
    conn.setAutoCommit(false);
    String ddl="String_Node_Str" + fullTableName + TestUtil.TEST_TABLE_SCHEMA+ tableDDLOptions;
    Statement stmt=conn.createStatement();
    stmt.execute(ddl);
    BaseTest.populateTestTable(fullTableName);
    ddl="String_Node_Str" + (localIndex ? "String_Node_Str" : "String_Node_Str") + "String_Node_Str"+ indexName+ "String_Node_Str"+ fullTableName+ "String_Node_Str";
    conn.createStatement().execute(ddl);
    ResultSet rs=conn.createStatement().executeQuery("String_Node_Str" + fullTableName + "String_Node_Str");
    assertTrue(rs.next());
    assertEquals(3,rs.getInt(1));
    assertTrue(rs.next());
    assertEquals(4,rs.getInt(1));
    assertTrue(rs.next());
    assertEquals(5,rs.getInt(1));
    assertFalse(rs.next());
  }
 }
Program: 112434
Project: 112434
Buggy source:
private void testNoDuplicatesAfterUpdateStats(String splitKey) throws Throwable {
  Connection conn;
  PreparedStatement stmt;
  ResultSet rs;
  Properties props=PropertiesUtil.deepCopy(TEST_PROPERTIES);
  conn=DriverManager.getConnection(getUrl(),props);
  conn.createStatement().execute("String_Node_Str" + fullTableName + "String_Node_Str"+ (splitKey != null ? "String_Node_Str" + splitKey + "String_Node_Str" : "String_Node_Str"));
  conn.createStatement().execute("String_Node_Str" + fullTableName + "String_Node_Str");
  conn.createStatement().execute("String_Node_Str" + fullTableName + "String_Node_Str");
  conn.commit();
  stmt=conn.prepareStatement("String_Node_Str" + fullTableName);
  stmt.execute();
  rs=conn.createStatement().executeQuery("String_Node_Str" + fullTableName + "String_Node_Str");
  assertTrue(rs.next());
  assertEquals("String_Node_Str",rs.getString(1));
  assertTrue(rs.next());
  assertEquals("String_Node_Str",rs.getString(1));
  assertTrue(!rs.next());
  conn.close();
}

Fixed version (ground truth):
private void testNoDuplicatesAfterUpdateStats(String splitKey) throws Throwable {
  Connection conn;
  PreparedStatement stmt;
  ResultSet rs;
  Properties props=PropertiesUtil.deepCopy(TEST_PROPERTIES);
  conn=DriverManager.getConnection(getUrl(),props);
  conn.createStatement().execute("String_Node_Str" + fullTableName + "String_Node_Str"+ tableDDLOptions+ (splitKey != null ? "String_Node_Str" + splitKey + "String_Node_Str" : "String_Node_Str"));
  conn.createStatement().execute("String_Node_Str" + fullTableName + "String_Node_Str");
  conn.createStatement().execute("String_Node_Str" + fullTableName + "String_Node_Str");
  conn.commit();
  stmt=conn.prepareStatement("String_Node_Str" + fullTableName);
  stmt.execute();
  rs=conn.createStatement().executeQuery("String_Node_Str" + fullTableName + "String_Node_Str");
  assertTrue(rs.next());
  assertEquals("String_Node_Str",rs.getString(1));
  assertTrue(rs.next());
  assertEquals("String_Node_Str",rs.getString(1));
  assertTrue(!rs.next());
  conn.close();
}
Program: 112436
Project: 112436
Buggy source:
/** 
 * Multithreaded Differ
 * @param threadName
 * @param query
 * @param threadName
 * @param threadTime
 * @param numberOfExecutions
 * @param executionDurationInMs
 */
MultithreadedDiffer(String threadName,Query query,ThreadTime threadTime,long numberOfExecutions,long executionDurationInMs){
  this.query=query;
  this.threadName=threadName;
  this.threadTime=threadTime;
  this.numberOfExecutions=numberOfExecutions;
  this.executionDurationInMs=executionDurationInMs;
}

Fixed version (ground truth):
/** 
 * Multithreaded Differ
 * @param threadName
 * @param query
 * @param threadName
 * @param threadTime
 * @param numberOfExecutions
 * @param executionDurationInMs
 */
MultithreadedDiffer(String threadName,Query query,ThreadTime threadTime,long numberOfExecutions,long executionDurationInMs){
  this.query=query;
  this.threadTime=threadTime;
  this.numberOfExecutions=numberOfExecutions;
  this.executionDurationInMs=executionDurationInMs;
}
Program: 112437
Project: 112437
Buggy source:
public void setColumn(List<Column> column){
  this.column=column;
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") public void setColumn(List<Column> column){
  this.column=column;
}
Program: 112438
Project: 112438
Buggy source:
public void setQuery(List<Query> query){
  this.query=query;
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") public void setQuery(List<Query> query){
  this.query=query;
}
Program: 112439
Project: 112439
Buggy source:
public void setQuerySet(List<QuerySet> querySet){
  this.querySet=querySet;
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") public void setQuerySet(List<QuerySet> querySet){
  this.querySet=querySet;
}
Program: 112440
Project: 112440
Buggy source:
public static void writeDataModel(DataModel data,OutputStream output) throws JAXBException {
  JAXBContext jaxbContext=JAXBContext.newInstance(DataModel.class);
  Marshaller jaxbMarshaller=jaxbContext.createMarshaller();
  jaxbMarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT,Boolean.TRUE);
  jaxbMarshaller.marshal(data,output);
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") public static void writeDataModel(DataModel data,OutputStream output) throws JAXBException {
  JAXBContext jaxbContext=JAXBContext.newInstance(DataModel.class);
  Marshaller jaxbMarshaller=jaxbContext.createMarshaller();
  jaxbMarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT,Boolean.TRUE);
  jaxbMarshaller.marshal(data,output);
}
Program: 112441
Project: 112441
Buggy source:
public FileLoaderException(String message,Exception e){
  super(message,e);
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") public FileLoaderException(String message,Exception e){
  super(message,e);
}
Program: 112442
Project: 112442
Buggy source:
/** 
 * Default the writers to use up all available cores for threads.
 * @param parser
 * @throws Exception
 */
public DataLoader(Properties properties,XMLConfigParser parser) throws Exception {
  this.parser=parser;
  this.properties=properties;
  this.rulesApplier=new RulesApplier(this.parser);
  this.resultUtil=new ResultUtil();
  int size=Integer.parseInt(properties.getProperty("String_Node_Str"));
  this.threadPoolSize=(size == 0) ? Runtime.getRuntime().availableProcessors() : size;
  this.pool=Executors.newFixedThreadPool(this.threadPoolSize);
  String bSize=properties.getProperty("String_Node_Str");
  this.batchSize=(bSize == null) ? PherfConstants.DEFAULT_BATCH_SIZE : Integer.parseInt(bSize);
}

Fixed version (ground truth):
/** 
 * Default the writers to use up all available cores for threads.
 * @param parser
 * @throws Exception
 */
public DataLoader(Properties properties,XMLConfigParser parser) throws Exception {
  this.parser=parser;
  this.rulesApplier=new RulesApplier(this.parser);
  this.resultUtil=new ResultUtil();
  int size=Integer.parseInt(properties.getProperty("String_Node_Str"));
  this.threadPoolSize=(size == 0) ? Runtime.getRuntime().availableProcessors() : size;
  this.pool=Executors.newFixedThreadPool(this.threadPoolSize);
  String bSize=properties.getProperty("String_Node_Str");
  this.batchSize=(bSize == null) ? PherfConstants.DEFAULT_BATCH_SIZE : Integer.parseInt(bSize);
}
Program: 112443
Project: 112443
Buggy source:
public void setScenarioResult(List<ScenarioResult> scenarioResult){
  this.scenarioResult=scenarioResult;
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") public void setScenarioResult(List<ScenarioResult> scenarioResult){
  this.scenarioResult=scenarioResult;
}
Program: 112444
Project: 112444
Buggy source:
public QueryResult(){
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") public QueryResult(){
}
Program: 112445
Project: 112445
Buggy source:
public synchronized void setThreadTimes(List<ThreadTime> threadTimes){
  this.threadTimes=threadTimes;
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") public synchronized void setThreadTimes(List<ThreadTime> threadTimes){
  this.threadTimes=threadTimes;
}
Program: 112446
Project: 112446
Buggy source:
public void setQueryResults(List<QueryResult> queryResults){
  this.queryResults=queryResults;
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") public void setQueryResults(List<QueryResult> queryResults){
  this.queryResults=queryResults;
}
Program: 112447
Project: 112447
Buggy source:
@Test public void testGetInstanceString(){
  DateTimeZone instance=JodaTimezoneCache.getInstance("String_Node_Str");
  assertTrue(instance instanceof DateTimeZone);
}

Fixed version (ground truth):
@Test public void testGetInstanceString(){
  DateTimeZone instance=JodaTimezoneCache.getInstance("String_Node_Str");
  assertNotNull(instance);
}
Program: 112448
Project: 112448
Buggy source:
@Test public void testGetInstanceByteBufferUTC(){
  DateTimeZone instance=JodaTimezoneCache.getInstance(ByteBuffer.wrap(Bytes.toBytes("String_Node_Str")));
  assertTrue(instance instanceof DateTimeZone);
}

Fixed version (ground truth):
@Test public void testGetInstanceByteBufferUTC(){
  DateTimeZone instance=JodaTimezoneCache.getInstance(ByteBuffer.wrap(Bytes.toBytes("String_Node_Str")));
  assertNotNull(instance);
}
Program: 112449
Project: 112449
Buggy source:
@Test public void testGetInstanceImmutableBytesWritable(){
  ImmutableBytesWritable ptr=new ImmutableBytesWritable(Bytes.toBytes("String_Node_Str"));
  DateTimeZone instance=JodaTimezoneCache.getInstance(ptr);
  assertTrue(instance instanceof DateTimeZone);
}

Fixed version (ground truth):
@Test public void testGetInstanceImmutableBytesWritable(){
  ImmutableBytesWritable ptr=new ImmutableBytesWritable(Bytes.toBytes("String_Node_Str"));
  DateTimeZone instance=JodaTimezoneCache.getInstance(ptr);
  assertNotNull(instance);
}
Program: 112450
Project: 112450
Buggy source:
@Test public void testInsertingRetrivingTimestamp() throws Exception {
  Connection conn=DriverManager.getConnection(getUrl());
  String ddl="String_Node_Str";
  conn.createStatement().execute(ddl);
  String dml="String_Node_Str";
  PreparedStatement stmt=conn.prepareStatement(dml);
  stmt.setInt(1,1);
  Calendar cal=Calendar.getInstance();
  cal.setTimeZone(TimeZone.getTimeZone("String_Node_Str"));
  long time=System.currentTimeMillis();
  stmt.setTimestamp(2,new Timestamp(time),cal);
  stmt.executeUpdate();
  conn.commit();
  String query="String_Node_Str";
  ResultSet rs=conn.createStatement().executeQuery(query);
  rs.next();
  assertEquals(new Timestamp(time),rs.getTimestamp(1));
}

Fixed version (ground truth):
@Test public void testInsertingRetrivingTimestamp() throws Exception {
  Connection conn=DriverManager.getConnection(getUrl());
  String ddl="String_Node_Str";
  conn.createStatement().execute(ddl);
  String dml="String_Node_Str";
  PreparedStatement stmt=conn.prepareStatement(dml);
  stmt.setInt(1,1);
  Calendar cal=Calendar.getInstance();
  cal.setTimeZone(TimeZone.getTimeZone("String_Node_Str"));
  long time=System.currentTimeMillis();
  stmt.setTimestamp(2,new Timestamp(time),cal);
  stmt.executeUpdate();
  conn.commit();
  String query="String_Node_Str";
  ResultSet rs=conn.createStatement().executeQuery(query);
  rs.next();
  assertEquals(new Timestamp(time),rs.getTimestamp(1));
  assertEquals(new Timestamp(time),rs.getTimestamp("String_Node_Str"));
  assertEquals(new Timestamp(time),rs.getTimestamp(1,cal));
  assertEquals(new Timestamp(time),rs.getTimestamp("String_Node_Str",cal));
}
Program: 112451
Project: 112451
Buggy source:
@Test public void testGetDateParser_DefaultTimeZone() throws ParseException {
  Date date=(Date)DateUtil.getDateParser("String_Node_Str").parseDateTime("String_Node_Str");
  assertEquals(0,date.getTime());
}

Fixed version (ground truth):
@Test public void testGetDateParser_DefaultTimeZone() throws ParseException {
  Date date=DateUtil.getDateParser("String_Node_Str").parseDateTime("String_Node_Str");
  assertEquals(0,date.getTime());
}
Program: 112452
Project: 112452
Buggy source:
@Test public void testGetDateParser_CustomTimeZone() throws ParseException {
  Date date=(Date)DateUtil.getDateParser("String_Node_Str",TimeZone.getTimeZone("String_Node_Str")).parseDateTime("String_Node_Str");
  assertEquals(-ONE_HOUR_IN_MILLIS,date.getTime());
}

Fixed version (ground truth):
@Test public void testGetDateParser_CustomTimeZone() throws ParseException {
  Date date=DateUtil.getDateParser("String_Node_Str",TimeZone.getTimeZone("String_Node_Str")).parseDateTime("String_Node_Str");
  assertEquals(-ONE_HOUR_IN_MILLIS,date.getTime());
}
Program: 112453
Project: 112453
Buggy source:
@Test public void testGetDateParser_LocalTimeZone() throws ParseException {
  Date date=(Date)DateUtil.getDateParser("String_Node_Str",TimeZone.getDefault()).parseDateTime("String_Node_Str");
  assertEquals(Date.valueOf("String_Node_Str"),date);
}

Fixed version (ground truth):
@Test public void testGetDateParser_LocalTimeZone() throws ParseException {
  Date date=DateUtil.getDateParser("String_Node_Str",TimeZone.getDefault()).parseDateTime("String_Node_Str");
  assertEquals(Date.valueOf("String_Node_Str"),date);
}
Program: 112454
Project: 112454
Buggy source:
@Override public ParseNode visit(ColumnParseNode node) throws SQLException {
  if (useFullNameForAlias && node.getAlias() != null && node.getTableName() != null && SchemaUtil.normalizeIdentifier(node.getAlias()).equals(node.getName())) {
    node=NODE_FACTORY.column(NODE_FACTORY.table(node.getSchemaName(),node.getTableName()),node.isCaseSensitive() ? '"' + node.getName() + '"' : node.getName(),node.getFullName());
  }
  return super.visit(node);
}

Fixed version (ground truth):
@Override public ParseNode visit(ColumnParseNode node) throws SQLException {
  if (useFullNameForAlias && node.getAlias() != null && node.getTableName() != null && SchemaUtil.normalizeIdentifier(node.getAlias()).equals(node.getName())) {
    node=NODE_FACTORY.column(NODE_FACTORY.table(node.getSchemaName(),node.getTableName()),node.isCaseSensitive() ? '"' + node.getName() + '"' : node.getName(),node.isCaseSensitive() ? '"' + node.getFullName() + '"' : node.getFullName());
  }
  return super.visit(node);
}
Program: 112456
Project: 112456
Buggy source:
@SuppressWarnings("String_Node_Str") public HashJoinRegionScanner(RegionScanner scanner,ScanProjector projector,HashJoinInfo joinInfo,ImmutableBytesWritable tenantId,RegionCoprocessorEnvironment env) throws IOException {
  assert(projector != null);
  this.scanner=scanner;
  this.projector=projector;
  this.joinInfo=joinInfo;
  this.resultQueue=new LinkedList<Tuple>();
  this.hasMore=true;
  if (joinInfo != null) {
    for (    JoinType type : joinInfo.getJoinTypes()) {
      if (type != JoinType.Inner && type != JoinType.Left)       throw new IOException("String_Node_Str" + type + "String_Node_Str");
    }
    int count=joinInfo.getJoinIds().length;
    this.tempTuples=new List[count];
    this.hashCaches=new HashCache[count];
    this.tempSrcBitSet=new ValueBitSet[count];
    TenantCache cache=GlobalCache.getTenantCache(env,tenantId);
    for (int i=0; i < count; i++) {
      ImmutableBytesPtr joinId=joinInfo.getJoinIds()[i];
      HashCache hashCache=(HashCache)cache.getServerCache(joinId);
      if (hashCache == null)       throw new IOException("String_Node_Str" + Bytes.toString(joinId.get(),joinId.getOffset(),joinId.getLength()));
      hashCaches[i]=hashCache;
      tempSrcBitSet[i]=ValueBitSet.newInstance(joinInfo.getSchemas()[i]);
    }
    if (this.projector != null) {
      this.tempDestBitSet=ValueBitSet.newInstance(joinInfo.getJoinedSchema());
      this.projector.setValueBitSet(tempDestBitSet);
    }
  }
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") public HashJoinRegionScanner(RegionScanner scanner,ScanProjector projector,HashJoinInfo joinInfo,ImmutableBytesWritable tenantId,RegionCoprocessorEnvironment env) throws IOException {
  this.scanner=scanner;
  this.projector=projector;
  this.joinInfo=joinInfo;
  this.resultQueue=new LinkedList<Tuple>();
  this.hasMore=true;
  if (joinInfo != null) {
    for (    JoinType type : joinInfo.getJoinTypes()) {
      if (type != JoinType.Inner && type != JoinType.Left)       throw new IOException("String_Node_Str" + type + "String_Node_Str");
    }
    int count=joinInfo.getJoinIds().length;
    this.tempTuples=new List[count];
    this.hashCaches=new HashCache[count];
    this.tempSrcBitSet=new ValueBitSet[count];
    TenantCache cache=GlobalCache.getTenantCache(env,tenantId);
    for (int i=0; i < count; i++) {
      ImmutableBytesPtr joinId=joinInfo.getJoinIds()[i];
      HashCache hashCache=(HashCache)cache.getServerCache(joinId);
      if (hashCache == null)       throw new IOException("String_Node_Str" + Bytes.toString(joinId.get(),joinId.getOffset(),joinId.getLength()));
      hashCaches[i]=hashCache;
      tempSrcBitSet[i]=ValueBitSet.newInstance(joinInfo.getSchemas()[i]);
    }
    if (this.projector != null) {
      this.tempDestBitSet=ValueBitSet.newInstance(joinInfo.getJoinedSchema());
      this.projector.setValueBitSet(tempDestBitSet);
    }
  }
}
Program: 112457
Project: 112457
Buggy source:
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.activity_main);
  flowTextView=(FlowTextView)findViewById(R.id.ftv);
  flowTextView.setText(getString(R.string.lorem));
  Button btnIncreasefontSize=(Button)findViewById(R.id.btn_increase_font_size);
  btnIncreasefontSize.setOnClickListener(this);
  Button btnDecreasefontSize=(Button)findViewById(R.id.btn_decrease_font_size);
  btnDecreasefontSize.setOnClickListener(this);
  Button btnReset=(Button)findViewById(R.id.btn_reset);
  btnReset.setOnClickListener(this);
}

Fixed version (ground truth):
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.activity_main);
  flowTextView=(FlowTextView)findViewById(R.id.ftv);
  String content=getString(R.string.lorem);
  Spanned html=Html.fromHtml(content);
  flowTextView.setText(html);
  Button btnIncreasefontSize=(Button)findViewById(R.id.btn_increase_font_size);
  btnIncreasefontSize.setOnClickListener(this);
  Button btnDecreasefontSize=(Button)findViewById(R.id.btn_decrease_font_size);
  btnDecreasefontSize.setOnClickListener(this);
  Button btnReset=(Button)findViewById(R.id.btn_reset);
  btnReset.setOnClickListener(this);
}
Program: 112459
Project: 112459
Buggy source:
public void hydrate(){
  for (  SystemLandscapeView view : getSystemLandscapeViews()) {
    view.setModel(model);
    hydrateView(view);
  }
  for (  SystemContextView view : systemContextViews) {
    view.setSoftwareSystem(model.getSoftwareSystemWithId(view.getSoftwareSystemId()));
    hydrateView(view);
  }
  for (  ContainerView view : containerViews) {
    view.setSoftwareSystem(model.getSoftwareSystemWithId(view.getSoftwareSystemId()));
    hydrateView(view);
  }
  for (  ComponentView view : componentViews) {
    view.setSoftwareSystem(model.getSoftwareSystemWithId(view.getSoftwareSystemId()));
    view.setContainer(view.getSoftwareSystem().getContainerWithId(view.getContainerId()));
    hydrateView(view);
  }
  for (  DynamicView view : dynamicViews) {
    view.setModel(model);
    hydrateView(view);
  }
  for (  DeploymentView view : deploymentViews) {
    view.setSoftwareSystem(model.getSoftwareSystemWithId(view.getSoftwareSystemId()));
    view.setModel(model);
    hydrateView(view);
  }
  for (  FilteredView filteredView : filteredViews) {
    filteredView.setView(getViewWithKey(filteredView.getBaseViewKey()));
  }
}

Fixed version (ground truth):
public void hydrate(){
  for (  SystemLandscapeView view : getSystemLandscapeViews()) {
    view.setModel(model);
    hydrateView(view);
  }
  for (  SystemContextView view : systemContextViews) {
    view.setSoftwareSystem(model.getSoftwareSystemWithId(view.getSoftwareSystemId()));
    hydrateView(view);
  }
  for (  ContainerView view : containerViews) {
    view.setSoftwareSystem(model.getSoftwareSystemWithId(view.getSoftwareSystemId()));
    hydrateView(view);
  }
  for (  ComponentView view : componentViews) {
    view.setSoftwareSystem(model.getSoftwareSystemWithId(view.getSoftwareSystemId()));
    view.setContainer(view.getSoftwareSystem().getContainerWithId(view.getContainerId()));
    hydrateView(view);
  }
  for (  DynamicView view : dynamicViews) {
    view.setModel(model);
    hydrateView(view);
  }
  for (  DeploymentView view : deploymentViews) {
    if (!isNullOrEmpty(view.getSoftwareSystemId())) {
      view.setSoftwareSystem(model.getSoftwareSystemWithId(view.getSoftwareSystemId()));
    }
    view.setModel(model);
    hydrateView(view);
  }
  for (  FilteredView filteredView : filteredViews) {
    filteredView.setView(getViewWithKey(filteredView.getBaseViewKey()));
  }
}
Program: 112460
Project: 112460
Buggy source:
protected Set<Component> findClassesWithAnnotation(Class<? extends Annotation> type,String technology,boolean includePublicTypesOnly){
  Set<Component> components=new HashSet<>();
  Set<Class<?>> componentTypes=findTypesAnnotatedWith(type);
  for (  Class<?> componentType : componentTypes) {
    if (!includePublicTypesOnly || Modifier.isPublic(componentType.getModifiers())) {
      components.add(getComponentFinder().getContainer().addComponent(componentType.getSimpleName(),componentType.getCanonicalName(),"String_Node_Str",technology));
    }
  }
  return components;
}

Fixed version (ground truth):
protected Set<Component> findClassesWithAnnotation(Class<? extends Annotation> type,String technology,boolean includePublicTypesOnly){
  Set<Component> components=new HashSet<>();
  Set<Class<?>> componentTypes=findTypesAnnotatedWith(type);
  for (  Class<?> componentType : componentTypes) {
    if (!includePublicTypesOnly || Modifier.isPublic(componentType.getModifiers())) {
      final Container container=getComponentFinder().getContainer();
      if (container.getComponentWithName(componentType.getSimpleName()) == null) {
        components.add(container.addComponent(componentType.getSimpleName(),componentType.getCanonicalName(),"String_Node_Str",technology));
      }
    }
  }
  return components;
}
Program: 112461
Project: 112461
Buggy source:
@Override protected Set<Component> doFindComponents(){
  Set<Component> components=new HashSet<>();
  Set<Class<?>> componentTypes=findTypesAnnotatedWith(com.structurizr.annotation.Component.class);
  for (  Class<?> componentType : componentTypes) {
    Component component=getComponentFinder().getContainer().addComponent(componentType.getSimpleName(),componentType,componentType.getAnnotation(com.structurizr.annotation.Component.class).description(),componentType.getAnnotation(com.structurizr.annotation.Component.class).technology());
    components.add(component);
  }
  return components;
}

Fixed version (ground truth):
@Override protected Set<Component> doFindComponents(){
  Set<Component> components=new HashSet<>();
  Container container=getComponentFinder().getContainer();
  Set<Class<?>> componentTypes=findTypesAnnotatedWith(com.structurizr.annotation.Component.class);
  for (  Class<?> componentType : componentTypes) {
    if (container.getComponentWithName(componentType.getSimpleName()) == null) {
      Component component=container.addComponent(componentType.getSimpleName(),componentType,componentType.getAnnotation(com.structurizr.annotation.Component.class).description(),componentType.getAnnotation(com.structurizr.annotation.Component.class).technology());
      components.add(component);
    }
  }
  return components;
}
Program: 112462
Project: 112462
Buggy source:
@Test public void test_findComponents_IgnoresNonPublicTypesByDefault() throws Exception {
  Workspace workspace=new Workspace("String_Node_Str","String_Node_Str");
  Model model=workspace.getModel();
  SoftwareSystem softwareSystem=model.addSoftwareSystem("String_Node_Str","String_Node_Str");
  Container container=softwareSystem.addContainer("String_Node_Str","String_Node_Str","String_Node_Str");
  ComponentFinder componentFinder=new ComponentFinder(container,"String_Node_Str",new SpringComponentFinderStrategy());
  componentFinder.findComponents();
  assertEquals(2,container.getComponents().size());
  Component component=container.getComponentWithName("String_Node_Str");
  assertEquals("String_Node_Str",component.getType().getType());
  component=container.getComponentWithName("String_Node_Str");
  assertEquals("String_Node_Str",component.getType().getType());
}

Fixed version (ground truth):
@Test public void test_findComponents_IgnoresNonPublicTypesByDefault() throws Exception {
  Workspace workspace=new Workspace("String_Node_Str","String_Node_Str");
  Model model=workspace.getModel();
  SoftwareSystem softwareSystem=model.addSoftwareSystem("String_Node_Str","String_Node_Str");
  Container container=softwareSystem.addContainer("String_Node_Str","String_Node_Str","String_Node_Str");
  ComponentFinder componentFinder=new ComponentFinder(container,"String_Node_Str",new SpringComponentFinderStrategy());
  componentFinder.findComponents();
  assertEquals(2,container.getComponents().size());
  componentFinder.findComponents();
  assertEquals(2,container.getComponents().size());
  Component component=container.getComponentWithName("String_Node_Str");
  assertEquals("String_Node_Str",component.getType().getType());
  component=container.getComponentWithName("String_Node_Str");
  assertEquals("String_Node_Str",component.getType().getType());
}
Program: 112463
Project: 112463
Buggy source:
@Test public void test_findComponents_DoesNotIgnoreNonPublicTypes_WhenConfiguredToIncludeNonPublicTypes() throws Exception {
  Workspace workspace=new Workspace("String_Node_Str","String_Node_Str");
  Model model=workspace.getModel();
  SoftwareSystem softwareSystem=model.addSoftwareSystem("String_Node_Str","String_Node_Str");
  Container container=softwareSystem.addContainer("String_Node_Str","String_Node_Str","String_Node_Str");
  SpringComponentFinderStrategy springComponentFinderStrategy=new SpringComponentFinderStrategy();
  springComponentFinderStrategy.setIncludePublicTypesOnly(false);
  ComponentFinder componentFinder=new ComponentFinder(container,"String_Node_Str",springComponentFinderStrategy);
  componentFinder.findComponents();
  assertEquals(3,container.getComponents().size());
  Component component=container.getComponentWithName("String_Node_Str");
  assertEquals("String_Node_Str",component.getType().getType());
  component=container.getComponentWithName("String_Node_Str");
  assertEquals("String_Node_Str",component.getType().getType());
  component=container.getComponentWithName("String_Node_Str");
  assertEquals("String_Node_Str",component.getType().getType());
}

Fixed version (ground truth):
@Test public void test_findComponents_DoesNotIgnoreNonPublicTypes_WhenConfiguredToIncludeNonPublicTypes() throws Exception {
  Workspace workspace=new Workspace("String_Node_Str","String_Node_Str");
  Model model=workspace.getModel();
  SoftwareSystem softwareSystem=model.addSoftwareSystem("String_Node_Str","String_Node_Str");
  Container container=softwareSystem.addContainer("String_Node_Str","String_Node_Str","String_Node_Str");
  SpringComponentFinderStrategy springComponentFinderStrategy=new SpringComponentFinderStrategy();
  springComponentFinderStrategy.setIncludePublicTypesOnly(false);
  ComponentFinder componentFinder=new ComponentFinder(container,"String_Node_Str",springComponentFinderStrategy);
  componentFinder.findComponents();
  assertEquals(3,container.getComponents().size());
  componentFinder.findComponents();
  assertEquals(3,container.getComponents().size());
  Component component=container.getComponentWithName("String_Node_Str");
  assertEquals("String_Node_Str",component.getType().getType());
  component=container.getComponentWithName("String_Node_Str");
  assertEquals("String_Node_Str",component.getType().getType());
  component=container.getComponentWithName("String_Node_Str");
  assertEquals("String_Node_Str",component.getType().getType());
}
Program: 112464
Project: 112464
Buggy source:
/** 
 * Sets the name of this element.
 * @param name  the name, as a String
 */
public void setName(String name){
  if (name == null || name.trim().length() == 0) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  this.name=name;
}

Fixed version (ground truth):
/** 
 * Sets the name of this element.
 * @param name  the name, as a String
 */
void setName(String name){
  if (name == null || name.trim().length() == 0) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  this.name=name;
}
Program: 112465
Project: 112465
Buggy source:
@Test public void test_getCanonicalName_WhenNameContainsASlashCharacter(){
  container.setName("String_Node_Str");
  assertEquals("String_Node_Str",container.getCanonicalName());
}

Fixed version (ground truth):
@Test public void test_getCanonicalName_WhenNameContainsASlashCharacter(){
  container=softwareSystem.addContainer("String_Node_Str","String_Node_Str","String_Node_Str");
  assertEquals("String_Node_Str",container.getCanonicalName());
}
Program: 112466
Project: 112466
Buggy source:
@Test public void test_getCanonicalName_WhenTheDeploymentNodeHasNoParent(){
  DeploymentNode deploymentNode=new DeploymentNode();
  deploymentNode.setName("String_Node_Str");
  assertEquals("String_Node_Str",deploymentNode.getCanonicalName());
}

Fixed version (ground truth):
@Test public void test_getCanonicalName_WhenTheDeploymentNodeHasNoParent(){
  DeploymentNode deploymentNode=model.addDeploymentNode("String_Node_Str","String_Node_Str","String_Node_Str");
  assertEquals("String_Node_Str",deploymentNode.getCanonicalName());
}
Program: 112467
Project: 112467
Buggy source:
@Test public void test_getParent_ReturnsTheParentDeploymentNode(){
  DeploymentNode parent=new DeploymentNode();
  assertNull(parent.getParent());
  DeploymentNode child=new DeploymentNode();
  child.setParent(parent);
  assertSame(parent,child.getParent());
}

Fixed version (ground truth):
@Test public void test_getParent_ReturnsTheParentDeploymentNode(){
  DeploymentNode parent=model.addDeploymentNode("String_Node_Str","String_Node_Str","String_Node_Str");
  assertNull(parent.getParent());
  DeploymentNode child=parent.addDeploymentNode("String_Node_Str","String_Node_Str","String_Node_Str");
  child.setParent(parent);
  assertSame(parent,child.getParent());
}