nus-yam/ex-repair huggingface dataset:
Program: 126975
Project: 126975
Buggy source:
@Override public boolean equals(Object obj){
  if (this == obj) {
    return true;
  }
  if (obj == null) {
    return false;
  }
  if (getClass() != obj.getClass()) {
    return false;
  }
  final RepositoryNode other=(RepositoryNode)obj;
  if (this.type != ENodeType.SIMPLE_FOLDER) {
    if (null != this.id && null != other.id && !this.id.equals(other.id)) {
      return false;
    }
  }
  if (this.properties == null) {
    if (other.properties != null) {
      return false;
    }
  }
 else   if (!this.properties.equals(other.properties)) {
    return false;
  }
  if (this.type == null) {
    if (other.type != null) {
      return false;
    }
  }
 else   if (!this.type.equals(other.type)) {
    return false;
  }
  if (this.parent == null) {
    if (other.parent != null) {
      return false;
    }
  }
 else   if (!this.parent.equals(other.parent)) {
    return false;
  }
  if (this.object == null) {
    if (other.object != null) {
      return false;
    }
  }
 else {
    if (object.getVersion() == null) {
      if (other.object.getVersion() != null) {
        return false;
      }
    }
 else     if (!object.getVersion().equals(other.object.getVersion())) {
      return false;
    }
  }
  if (this.getLabel() == null) {
    if (other.getLabel() != null) {
      return false;
    }
  }
 else   if (!this.getLabel().equals(other.getLabel())) {
    return false;
  }
  return true;
}

Fixed version (ground truth):
@Override public boolean equals(Object obj){
  if (this == obj) {
    return true;
  }
  if (obj == null) {
    return false;
  }
  if (getClass() != obj.getClass()) {
    return false;
  }
  final RepositoryNode other=(RepositoryNode)obj;
  if (this.type != ENodeType.SIMPLE_FOLDER) {
    if (null != this.id && null != other.id && !this.id.equals(other.id)) {
      return false;
    }
  }
  if (this.properties == null) {
    if (other.properties != null) {
      return false;
    }
  }
 else   if (!this.properties.equals(other.properties)) {
    return false;
  }
  if (this.type == null) {
    if (other.type != null) {
      return false;
    }
  }
 else   if (!this.type.equals(other.type)) {
    return false;
  }
  if (this.parent == null) {
    if (other.parent != null) {
      return false;
    }
  }
 else   if (!this.parent.equals(other.parent)) {
    return false;
  }
  if (this.object == null) {
    if (other.object != null) {
      return false;
    }
  }
 else   if (other.object == null) {
    if (this.object != null) {
      return false;
    }
  }
 else {
    if (object.getVersion() == null) {
      if (other.object.getVersion() != null) {
        return false;
      }
    }
 else     if (!object.getVersion().equals(other.object.getVersion())) {
      return false;
    }
  }
  if (this.getLabel() == null) {
    if (other.getLabel() != null) {
      return false;
    }
  }
 else   if (!this.getLabel().equals(other.getLabel())) {
    return false;
  }
  return true;
}
Program: 126977
Project: 126977
Buggy source:
@Override public boolean equals(Object obj){
  if (this == obj) {
    return true;
  }
  if (obj == null) {
    return false;
  }
  if (getClass() != obj.getClass()) {
    return false;
  }
  final RepositoryNode other=(RepositoryNode)obj;
  if (this.type != ENodeType.SIMPLE_FOLDER) {
    if (null != this.id && null != other.id && !this.id.equals(other.id)) {
      return false;
    }
  }
  if (this.properties == null) {
    if (other.properties != null) {
      return false;
    }
  }
 else   if (!this.properties.equals(other.properties)) {
    return false;
  }
  if (this.type == null) {
    if (other.type != null) {
      return false;
    }
  }
 else   if (!this.type.equals(other.type)) {
    return false;
  }
  if (this.parent == null) {
    if (other.parent != null) {
      return false;
    }
  }
 else   if (!this.parent.equals(other.parent)) {
    return false;
  }
  if (this.object == null) {
    if (other.object != null) {
      return false;
    }
  }
 else {
    if (object.getVersion() == null) {
      if (other.object.getVersion() != null) {
        return false;
      }
    }
 else     if (!object.getVersion().equals(other.object.getVersion())) {
      return false;
    }
  }
  if (this.getLabel() == null) {
    if (other.getLabel() != null) {
      return false;
    }
  }
 else   if (!this.getLabel().equals(other.getLabel())) {
    return false;
  }
  return true;
}

Fixed version (ground truth):
@Override public boolean equals(Object obj){
  if (this == obj) {
    return true;
  }
  if (obj == null) {
    return false;
  }
  if (getClass() != obj.getClass()) {
    return false;
  }
  final RepositoryNode other=(RepositoryNode)obj;
  if (this.type != ENodeType.SIMPLE_FOLDER) {
    if (null != this.id && null != other.id && !this.id.equals(other.id)) {
      return false;
    }
  }
  if (this.properties == null) {
    if (other.properties != null) {
      return false;
    }
  }
 else   if (!this.properties.equals(other.properties)) {
    return false;
  }
  if (this.type == null) {
    if (other.type != null) {
      return false;
    }
  }
 else   if (!this.type.equals(other.type)) {
    return false;
  }
  if (this.parent == null) {
    if (other.parent != null) {
      return false;
    }
  }
 else   if (!this.parent.equals(other.parent)) {
    return false;
  }
  if (this.object == null) {
    if (other.object != null) {
      return false;
    }
  }
 else   if (other.object == null) {
    if (this.object != null) {
      return false;
    }
  }
 else {
    if (object.getVersion() == null) {
      if (other.object.getVersion() != null) {
        return false;
      }
    }
 else     if (!object.getVersion().equals(other.object.getVersion())) {
      return false;
    }
  }
  if (this.getLabel() == null) {
    if (other.getLabel() != null) {
      return false;
    }
  }
 else   if (!this.getLabel().equals(other.getLabel())) {
    return false;
  }
  return true;
}
Program: 126978
Project: 126978
Buggy source:
/** 
 * DOC bqian DB2ForZosDataBaseMetadata constructor comment.
 * @param metaData
 */
public DB2ForZosDataBaseMetadata(Connection connection){
  this.connection=connection;
}

Fixed version (ground truth):
/** 
 * DOC bqian DB2ForZosDataBaseMetadata constructor comment.
 * @param metaData
 * @throws SQLException
 */
public DB2ForZosDataBaseMetadata(Connection connection) throws SQLException {
  super(connection);
}
Program: 126979
Project: 126979
Buggy source:
/** 
 * only for db2 on z/os right now.
 * @param conn2
 * @return
 */
public static DatabaseMetaData createDB2ForZosFakeDatabaseMetaData(Connection conn){
  DB2ForZosDataBaseMetadata dmd=new DB2ForZosDataBaseMetadata(conn);
  return dmd;
}

Fixed version (ground truth):
/** 
 * only for db2 on z/os right now.
 * @param conn2
 * @return
 * @throws SQLException
 */
public static DatabaseMetaData createDB2ForZosFakeDatabaseMetaData(Connection conn) throws SQLException {
  DB2ForZosDataBaseMetadata dmd=new DB2ForZosDataBaseMetadata(conn);
  return dmd;
}
Program: 126980
Project: 126980
Buggy source:
/** 
 * only for db2 on z/os right now. 2009-07-13 bug 7888.
 * @param conn2
 * @return
 */
private static DatabaseMetaData createFakeDatabaseMetaData(java.sql.Connection conn){
  DB2ForZosDataBaseMetadata dmd=new DB2ForZosDataBaseMetadata(conn);
  return dmd;
}

Fixed version (ground truth):
/** 
 * only for db2 on z/os right now. 2009-07-13 bug 7888.
 * @param conn2
 * @return
 * @throws SQLException
 */
private static DatabaseMetaData createFakeDatabaseMetaData(java.sql.Connection conn) throws SQLException {
  DB2ForZosDataBaseMetadata dmd=new DB2ForZosDataBaseMetadata(conn);
  return dmd;
}
Program: 126981
Project: 126981
Buggy source:
public void startThreadTrace(String clientHost,int portTraces) throws java.io.IOException, java.net.UnknownHostException {
  if (!openSocket) {
    return;
  }
  System.out.println("String_Node_Str" + portTraces);
  s=new java.net.Socket(clientHost,portTraces);
  pred=new java.io.PrintWriter(new java.io.BufferedWriter(new java.io.OutputStreamWriter(s.getOutputStream())),true);
  System.out.println("String_Node_Str");
  t=new Thread(this);
  t.start();
}

Fixed version (ground truth):
public void startThreadTrace(String clientHost,int portTraces) throws java.io.IOException, java.net.UnknownHostException {
  if (!openSocket) {
    return;
  }
  System.out.println("String_Node_Str" + portTraces);
  s=new java.net.Socket(clientHost,portTraces);
  oos=new NoHeaderObjectOutputStream(s.getOutputStream());
  System.out.println("String_Node_Str");
  t=new Thread(this);
  t.start();
}
Program: 126982
Project: 126982
Buggy source:
public void stopThreadTrace(){
  if (!openSocket) {
    return;
  }
  jobIsFinished=true;
  try {
    pred.close();
    s.close();
    System.out.println("String_Node_Str");
  }
 catch (  java.io.IOException ie) {
  }
}

Fixed version (ground truth):
public void stopThreadTrace(){
  if (!openSocket) {
    return;
  }
  jobIsFinished=true;
  try {
    oos.close();
    s.close();
    System.out.println("String_Node_Str");
  }
 catch (  java.io.IOException ie) {
  }
}
Program: 126983
Project: 126983
Buggy source:
public void sendTrace(String componentId,String startNodeCid,String datas){
  if (!openSocket) {
    return;
  }
  subjobMap.put(componentId,startNodeCid);
  Iterator<Entry<String,String>> ite=subjobMap.entrySet().iterator();
  boolean sameSub=false;
  while (ite.hasNext()) {
    Entry<String,String> en=ite.next();
    if (en.getKey().equals(componentId)) {
      continue;
    }
    if (en.getValue().equals(startNodeCid)) {
      sameSub=true;
      break;
    }
  }
  if (sameSub && processTraces.size() > 1) {
    if (componentId.equals(componentName)) {
      return;
    }
  }
  TraceBean bean;
  if (processTraces.containsKey(componentId)) {
    bean=processTraces.get(componentId);
  }
 else {
    bean=new TraceBean(componentId);
  }
  bean.setNbLine(bean.getNbLine() + 1);
  processTraces.put(componentId,bean);
  str=bean.getComponentId() + "String_Node_Str" + bean.getNbLine()+ "String_Node_Str"+ datas;
  pred.println(str);
  componentName=componentId;
}

Fixed version (ground truth):
public void sendTrace(String connectionId,String startNodeCid,LinkedHashMap datas) throws IOException {
  if (!openSocket) {
    return;
  }
  subjobMap.put(connectionId,startNodeCid);
  Iterator<Entry<String,String>> ite=subjobMap.entrySet().iterator();
  boolean sameSub=false;
  while (ite.hasNext()) {
    Entry<String,String> en=ite.next();
    if (en.getKey().equals(connectionId)) {
      continue;
    }
    if (en.getValue().equals(startNodeCid)) {
      sameSub=true;
      break;
    }
  }
  if (sameSub && processTraces.size() > 1) {
    if (connectionId.equals(this.connectionId)) {
      return;
    }
  }
  TraceDataBean bean;
  if (processTraces.containsKey(connectionId)) {
    bean=processTraces.get(connectionId);
  }
 else {
    bean=new TraceDataBean(connectionId);
  }
  bean.setNbLine(bean.getNbLine() + 1);
  processTraces.put(connectionId,bean);
  bean.setData(datas);
  oos.writeUnshared(bean);
  oos.flush();
  this.connectionId=connectionId;
}
Program: 126984
Project: 126984
Buggy source:
public void waitForUserAction() throws InterruptedException {
  if (!openSocket) {
    return;
  }
  InputStream in;
  try {
    boolean action=false;
    pred.println("String_Node_Str");
    do {
      in=s.getInputStream();
      LineNumberReader reader=new LineNumberReader(new InputStreamReader(in));
      String line=reader.readLine();
      if ("String_Node_Str".equals(line)) {
        pred.println("String_Node_Str");
        Thread.sleep(100);
      }
 else {
        action=true;
      }
    }
 while (!action);
  }
 catch (  IOException e) {
    e.printStackTrace();
  }
}

Fixed version (ground truth):
public void waitForUserAction() throws InterruptedException {
  if (!openSocket) {
    return;
  }
  try {
    boolean action=false;
    oos.writeObject(TraceStatusBean.UI_STATUS);
    do {
      ois=new NoHeaderObjectInputStream(s.getInputStream());
      TraceBean traceBean=(TraceBean)ois.readObject();
      if (traceBean.equals(TraceStatusBean.STATUS_WAITING)) {
        oos.writeObject(TraceStatusBean.UI_STATUS);
        Thread.sleep(100);
      }
 else {
        action=true;
      }
    }
 while (!action);
  }
 catch (  IOException e) {
    e.printStackTrace();
  }
catch (  ClassNotFoundException e) {
    e.printStackTrace();
  }
}
Program: 126985
Project: 126985
Buggy source:
public void run(){
synchronized (this) {
    try {
      while (!jobIsFinished) {
        wait(100);
      }
    }
 catch (    InterruptedException e) {
      System.out.println("String_Node_Str");
    }
  }
}

Fixed version (ground truth):
@Override public void run(){
synchronized (this) {
    try {
      while (!jobIsFinished) {
        wait(100);
      }
    }
 catch (    InterruptedException e) {
      System.out.println("String_Node_Str");
    }
  }
}
Program: 126986
Project: 126986
Buggy source:
public boolean isPause(){
  if (!openSocket) {
    return false;
  }
  InputStream in;
  try {
    askForStatus();
    in=s.getInputStream();
    LineNumberReader reader=new LineNumberReader(new InputStreamReader(in));
    return "String_Node_Str".equals(reader.readLine());
  }
 catch (  IOException e) {
    e.printStackTrace();
    return false;
  }
}

Fixed version (ground truth):
public boolean isPause(){
  if (!openSocket) {
    return false;
  }
  try {
    askForStatus();
    ois=new NoHeaderObjectInputStream(s.getInputStream());
    TraceBean traceBean=(TraceBean)ois.readObject();
    return traceBean.equals(TraceStatusBean.PAUSE);
  }
 catch (  IOException e) {
    e.printStackTrace();
    return false;
  }
catch (  ClassNotFoundException e) {
    e.printStackTrace();
    return false;
  }
}
Program: 126987
Project: 126987
Buggy source:
public boolean isNextBreakpoint(){
  if (!openSocket) {
    return false;
  }
  InputStream in;
  try {
    askForStatus();
    in=s.getInputStream();
    LineNumberReader reader=new LineNumberReader(new InputStreamReader(in));
    return "String_Node_Str".equals(reader.readLine());
  }
 catch (  IOException e) {
    e.printStackTrace();
    return false;
  }
}

Fixed version (ground truth):
public boolean isNextBreakpoint(){
  if (!openSocket) {
    return false;
  }
  try {
    askForStatus();
    ois=new NoHeaderObjectInputStream(s.getInputStream());
    TraceBean traceBean=(TraceBean)ois.readObject();
    return traceBean.equals(TraceStatusBean.NEXT_BREAKPOINT);
  }
 catch (  IOException e) {
    e.printStackTrace();
    return false;
  }
catch (  ClassNotFoundException e) {
    e.printStackTrace();
    return false;
  }
}
Program: 126988
Project: 126988
Buggy source:
private void askForStatus(){
  pred.println("String_Node_Str");
}

Fixed version (ground truth):
private void askForStatus() throws IOException {
  oos.writeObject(TraceStatusBean.ID_STATUS);
}
Program: 126989
Project: 126989
Buggy source:
public boolean isNextRow(){
  if (!openSocket) {
    return false;
  }
  InputStream in;
  try {
    askForStatus();
    in=s.getInputStream();
    LineNumberReader reader=new LineNumberReader(new InputStreamReader(in));
    return "String_Node_Str".equals(reader.readLine());
  }
 catch (  IOException e) {
    e.printStackTrace();
    return false;
  }
}

Fixed version (ground truth):
public boolean isNextRow(){
  if (!openSocket) {
    return false;
  }
  try {
    askForStatus();
    ois=new NoHeaderObjectInputStream(s.getInputStream());
    TraceBean traceBean=(TraceBean)ois.readObject();
    return traceBean.equals(TraceStatusBean.NEXT_ROW);
  }
 catch (  IOException e) {
    e.printStackTrace();
    return false;
  }
catch (  ClassNotFoundException e) {
    e.printStackTrace();
    return false;
  }
}
Program: 126990
Project: 126990
Buggy source:
@Override public boolean equals(Object obj){
  if (this == obj) {
    return true;
  }
  if (obj == null) {
    return false;
  }
  if (getClass() != obj.getClass()) {
    return false;
  }
  final RepositoryNode other=(RepositoryNode)obj;
  if (this.type != ENodeType.SIMPLE_FOLDER) {
    if (null != this.id && null != other.id && !this.id.equals(other.id)) {
      return false;
    }
  }
  if (this.properties == null) {
    if (other.properties != null) {
      return false;
    }
  }
 else   if (!this.properties.equals(other.properties)) {
    return false;
  }
  if (this.type == null) {
    if (other.type != null) {
      return false;
    }
  }
 else   if (!this.type.equals(other.type)) {
    return false;
  }
  if (this.parent == null) {
    if (other.parent != null) {
      return false;
    }
  }
 else   if (!this.parent.equals(other.parent)) {
    return false;
  }
  if (this.object == null) {
    if (other.object != null) {
      return false;
    }
  }
 else {
    if (object.getVersion() == null) {
      if (other.object.getVersion() != null) {
        return false;
      }
    }
 else     if (!object.getVersion().equals(other.object.getVersion())) {
      return false;
    }
  }
  if (this.getLabel() == null) {
    if (other.getLabel() != null) {
      return false;
    }
  }
 else   if (!this.getLabel().equals(other.getLabel())) {
    return false;
  }
  return true;
}

Fixed version (ground truth):
@Override public boolean equals(Object obj){
  if (this == obj) {
    return true;
  }
  if (obj == null) {
    return false;
  }
  if (getClass() != obj.getClass()) {
    return false;
  }
  final RepositoryNode other=(RepositoryNode)obj;
  if (this.type != ENodeType.SIMPLE_FOLDER) {
    if (null != this.id && null != other.id && !this.id.equals(other.id)) {
      return false;
    }
  }
  if (this.properties == null) {
    if (other.properties != null) {
      return false;
    }
  }
 else   if (!this.properties.equals(other.properties)) {
    return false;
  }
  if (this.type == null) {
    if (other.type != null) {
      return false;
    }
  }
 else   if (!this.type.equals(other.type)) {
    return false;
  }
  if (this.parent == null) {
    if (other.parent != null) {
      return false;
    }
  }
 else   if (!this.parent.equals(other.parent)) {
    return false;
  }
  if (this.object == null) {
    if (other.object != null) {
      return false;
    }
  }
 else   if (other.object == null) {
    if (this.object != null) {
      return false;
    }
  }
 else {
    if (object.getVersion() == null) {
      if (other.object.getVersion() != null) {
        return false;
      }
    }
 else     if (!object.getVersion().equals(other.object.getVersion())) {
      return false;
    }
  }
  if (this.getLabel() == null) {
    if (other.getLabel() != null) {
      return false;
    }
  }
 else   if (!this.getLabel().equals(other.getLabel())) {
    return false;
  }
  return true;
}
Program: 126992
Project: 126992
Buggy source:
private List<String> postFillCatalog(IMetadataConnection metaConnection,List<Catalog> catalogList,List<String> filterList,String catalogName,Connection dbConn){
  Catalog catalog=CatalogHelper.createCatalog(catalogName);
  catalogList.add(catalog);
  DatabaseConnection dbConnection=(DatabaseConnection)dbConn;
  if (dbConnection.getDatabaseType() != null && dbConnection.getDatabaseType().equals(EDatabaseTypeName.AS400.getDisplayName())) {
    IMetadataConnection iMetadataCon=ConvertionHelper.convert(dbConnection);
    if (iMetadataCon != null) {
      if (!StringUtils.isEmpty(iMetadataCon.getDatabase()) && !filterList.contains(iMetadataCon.getDatabase())) {
        filterList.add(iMetadataCon.getDatabase());
      }
      String pattern=ExtractMetaDataUtils.getInstance().retrieveSchemaPatternForAS400(iMetadataCon.getAdditionalParams());
      if (pattern != null && !"String_Node_Str".equals(pattern)) {
        String[] multiSchems=ExtractMetaDataUtils.getInstance().getMultiSchems(pattern);
        if (multiSchems != null) {
          for (          String s : multiSchems) {
            if (!StringUtils.isEmpty(s) && !filterList.contains(s)) {
              filterList.add(s);
            }
          }
        }
      }
    }
  }
 else {
    String uiSchema=dbConnection.getUiSchema();
    if (uiSchema != null) {
      uiSchema=TalendCWMService.getReadableName(dbConn,uiSchema);
    }
    if (!StringUtils.isBlank(uiSchema) && !filterList.contains(uiSchema)) {
      filterList.add(uiSchema);
    }
  }
  return filterList;
}

Fixed version (ground truth):
@Deprecated private List<String> postFillCatalog(IMetadataConnection metaConnection,List<Catalog> catalogList,List<String> filterList,String catalogName,Connection dbConn){
  Catalog catalog=CatalogHelper.createCatalog(catalogName);
  catalogList.add(catalog);
  DatabaseConnection dbConnection=(DatabaseConnection)dbConn;
  if (dbConnection.getDatabaseType() != null && dbConnection.getDatabaseType().equals(EDatabaseTypeName.AS400.getDisplayName())) {
    IMetadataConnection iMetadataCon=ConvertionHelper.convert(dbConnection);
    if (iMetadataCon != null) {
      if (!StringUtils.isEmpty(iMetadataCon.getDatabase()) && !filterList.contains(iMetadataCon.getDatabase())) {
        filterList.add(iMetadataCon.getDatabase());
      }
      String pattern=ExtractMetaDataUtils.getInstance().retrieveSchemaPatternForAS400(iMetadataCon.getAdditionalParams());
      if (pattern != null && !"String_Node_Str".equals(pattern)) {
        String[] multiSchems=ExtractMetaDataUtils.getInstance().getMultiSchems(pattern);
        if (multiSchems != null) {
          for (          String s : multiSchems) {
            if (!StringUtils.isEmpty(s) && !filterList.contains(s)) {
              filterList.add(s);
            }
          }
        }
      }
    }
  }
 else {
    String uiSchema=dbConnection.getUiSchema();
    if (uiSchema != null) {
      uiSchema=TalendCWMService.getReadableName(dbConn,uiSchema);
    }
    if (!StringUtils.isBlank(uiSchema) && !filterList.contains(uiSchema)) {
      filterList.add(uiSchema);
    }
  }
  return filterList;
}
Program: 126993
Project: 126993
Buggy source:
public Map<String,String> getTraceData();

Fixed version (ground truth):
public Map<String,TraceData> getTraceData();
Program: 126994
Project: 126994
Buggy source:
public void setTraceData(Map<String,String> traceData);

Fixed version (ground truth):
public void setTraceData(Map<String,TraceData> traceData);
Program: 126995
Project: 126995
Buggy source:
public void setTraceData(Map<String,String> traceData){
}

Fixed version (ground truth):
public void setTraceData(Map<String,TraceData> traceData){
}
Program: 126996
Project: 126996
Buggy source:
public Map<String,String> getTraceData(){
  return null;
}

Fixed version (ground truth):
public Map<String,TraceData> getTraceData(){
  return null;
}
Program: 126997
Project: 126997
Buggy source:
private void askForStatus() throws IOException {
  oos.writeObject(TraceStatusBean.ID_STATUS);
}

Fixed version (ground truth):
private synchronized void askForStatus() throws IOException {
  oos.writeObject(TraceStatusBean.ID_STATUS);
}
Program: 126998
Project: 126998
Buggy source:
public boolean isNextRow(){
  if (!openSocket) {
    return false;
  }
  try {
    askForStatus();
    ois=new NoHeaderObjectInputStream(s.getInputStream());
    TraceBean traceBean=(TraceBean)ois.readObject();
    return traceBean.equals(TraceStatusBean.NEXT_ROW);
  }
 catch (  IOException e) {
    e.printStackTrace();
    return false;
  }
catch (  ClassNotFoundException e) {
    e.printStackTrace();
    return false;
  }
}

Fixed version (ground truth):
public synchronized boolean isNextRow(){
  if (!openSocket) {
    return false;
  }
  try {
    askForStatus();
    ois=new NoHeaderObjectInputStream(s.getInputStream());
    TraceBean traceBean=(TraceBean)ois.readObject();
    return traceBean.equals(TraceStatusBean.NEXT_ROW);
  }
 catch (  IOException e) {
    e.printStackTrace();
    return false;
  }
catch (  ClassNotFoundException e) {
    e.printStackTrace();
    return false;
  }
}
Program: 126999
Project: 126999
Buggy source:
public void sendTrace(String connectionId,String startNodeCid,LinkedHashMap datas) throws IOException {
  if (!openSocket) {
    return;
  }
  subjobMap.put(connectionId,startNodeCid);
  Iterator<Entry<String,String>> ite=subjobMap.entrySet().iterator();
  boolean sameSub=false;
  while (ite.hasNext()) {
    Entry<String,String> en=ite.next();
    if (en.getKey().equals(connectionId)) {
      continue;
    }
    if (en.getValue().equals(startNodeCid)) {
      sameSub=true;
      break;
    }
  }
  if (sameSub && processTraces.size() > 1) {
    if (connectionId.equals(this.connectionId)) {
      return;
    }
  }
  TraceDataBean bean;
  if (processTraces.containsKey(connectionId)) {
    bean=processTraces.get(connectionId);
  }
 else {
    bean=new TraceDataBean(connectionId);
  }
  bean.setNbLine(bean.getNbLine() + 1);
  processTraces.put(connectionId,bean);
  bean.setData(datas);
  oos.writeUnshared(bean);
  oos.flush();
  this.connectionId=connectionId;
}

Fixed version (ground truth):
public synchronized void sendTrace(String connectionId,String startNodeCid,LinkedHashMap datas) throws IOException {
  if (!openSocket) {
    return;
  }
  subjobMap.put(connectionId,startNodeCid);
  Iterator<Entry<String,String>> ite=subjobMap.entrySet().iterator();
  boolean sameSub=false;
  while (ite.hasNext()) {
    Entry<String,String> en=ite.next();
    if (en.getKey().equals(connectionId)) {
      continue;
    }
    if (en.getValue().equals(startNodeCid)) {
      sameSub=true;
      break;
    }
  }
  if (sameSub && processTraces.size() > 1) {
    if (connectionId.equals(this.connectionId)) {
      return;
    }
  }
  TraceDataBean bean;
  if (processTraces.containsKey(connectionId)) {
    bean=processTraces.get(connectionId);
  }
 else {
    bean=new TraceDataBean(connectionId);
  }
  bean.setNbLine(bean.getNbLine() + 1);
  processTraces.put(connectionId,bean);
  bean.setData(datas);
  oos.writeUnshared(bean);
  oos.flush();
  this.connectionId=connectionId;
}
Program: 127000
Project: 127000
Buggy source:
public void waitForUserAction() throws InterruptedException {
  if (!openSocket) {
    return;
  }
  try {
    boolean action=false;
    oos.writeObject(TraceStatusBean.UI_STATUS);
    do {
      ois=new NoHeaderObjectInputStream(s.getInputStream());
      TraceBean traceBean=(TraceBean)ois.readObject();
      if (traceBean.equals(TraceStatusBean.STATUS_WAITING)) {
        oos.writeObject(TraceStatusBean.UI_STATUS);
        Thread.sleep(100);
      }
 else {
        action=true;
      }
    }
 while (!action);
  }
 catch (  IOException e) {
    e.printStackTrace();
  }
catch (  ClassNotFoundException e) {
    e.printStackTrace();
  }
}

Fixed version (ground truth):
public synchronized void waitForUserAction() throws InterruptedException {
  if (!openSocket) {
    return;
  }
  try {
    boolean action=false;
    oos.writeObject(TraceStatusBean.UI_STATUS);
    do {
      ois=new NoHeaderObjectInputStream(s.getInputStream());
      TraceBean traceBean=(TraceBean)ois.readObject();
      if (traceBean.equals(TraceStatusBean.STATUS_WAITING)) {
        oos.writeObject(TraceStatusBean.UI_STATUS);
        Thread.sleep(100);
      }
 else {
        action=true;
      }
    }
 while (!action);
  }
 catch (  IOException e) {
    e.printStackTrace();
  }
catch (  ClassNotFoundException e) {
    e.printStackTrace();
  }
}
Program: 127001
Project: 127001
Buggy source:
public boolean isPause(){
  if (!openSocket) {
    return false;
  }
  try {
    askForStatus();
    ois=new NoHeaderObjectInputStream(s.getInputStream());
    TraceBean traceBean=(TraceBean)ois.readObject();
    return traceBean.equals(TraceStatusBean.PAUSE);
  }
 catch (  IOException e) {
    e.printStackTrace();
    return false;
  }
catch (  ClassNotFoundException e) {
    e.printStackTrace();
    return false;
  }
}

Fixed version (ground truth):
public synchronized boolean isPause(){
  if (!openSocket) {
    return false;
  }
  try {
    askForStatus();
    ois=new NoHeaderObjectInputStream(s.getInputStream());
    TraceBean traceBean=(TraceBean)ois.readObject();
    return traceBean.equals(TraceStatusBean.PAUSE);
  }
 catch (  IOException e) {
    e.printStackTrace();
    return false;
  }
catch (  ClassNotFoundException e) {
    e.printStackTrace();
    return false;
  }
}
Program: 127002
Project: 127002
Buggy source:
public boolean isNextBreakpoint(){
  if (!openSocket) {
    return false;
  }
  try {
    askForStatus();
    ois=new NoHeaderObjectInputStream(s.getInputStream());
    TraceBean traceBean=(TraceBean)ois.readObject();
    return traceBean.equals(TraceStatusBean.NEXT_BREAKPOINT);
  }
 catch (  IOException e) {
    e.printStackTrace();
    return false;
  }
catch (  ClassNotFoundException e) {
    e.printStackTrace();
    return false;
  }
}

Fixed version (ground truth):
public synchronized boolean isNextBreakpoint(){
  if (!openSocket) {
    return false;
  }
  try {
    askForStatus();
    ois=new NoHeaderObjectInputStream(s.getInputStream());
    TraceBean traceBean=(TraceBean)ois.readObject();
    return traceBean.equals(TraceStatusBean.NEXT_BREAKPOINT);
  }
 catch (  IOException e) {
    e.printStackTrace();
    return false;
  }
catch (  ClassNotFoundException e) {
    e.printStackTrace();
    return false;
  }
}
Program: 127003
Project: 127003
Buggy source:
public Map<String,String> getTraceData();

Fixed version (ground truth):
public Map<String,TraceData> getTraceData();
Program: 127004
Project: 127004
Buggy source:
public void setTraceData(Map<String,String> traceData);

Fixed version (ground truth):
public void setTraceData(Map<String,TraceData> traceData);
Program: 127005
Project: 127005
Buggy source:
public void setTraceData(Map<String,String> traceData){
}

Fixed version (ground truth):
public void setTraceData(Map<String,TraceData> traceData){
}
Program: 127006
Project: 127006
Buggy source:
public Map<String,String> getTraceData(){
  return null;
}

Fixed version (ground truth):
public Map<String,TraceData> getTraceData(){
  return null;
}
Program: 127007
Project: 127007
Buggy source:
private void askForStatus() throws IOException {
  oos.writeObject(TraceStatusBean.ID_STATUS);
}

Fixed version (ground truth):
private synchronized void askForStatus() throws IOException {
  oos.writeObject(TraceStatusBean.ID_STATUS);
}
Program: 127008
Project: 127008
Buggy source:
public boolean isNextRow(){
  if (!openSocket) {
    return false;
  }
  try {
    askForStatus();
    ois=new NoHeaderObjectInputStream(s.getInputStream());
    TraceBean traceBean=(TraceBean)ois.readObject();
    return traceBean.equals(TraceStatusBean.NEXT_ROW);
  }
 catch (  IOException e) {
    e.printStackTrace();
    return false;
  }
catch (  ClassNotFoundException e) {
    e.printStackTrace();
    return false;
  }
}

Fixed version (ground truth):
public synchronized boolean isNextRow(){
  if (!openSocket) {
    return false;
  }
  try {
    askForStatus();
    ois=new NoHeaderObjectInputStream(s.getInputStream());
    TraceBean traceBean=(TraceBean)ois.readObject();
    return traceBean.equals(TraceStatusBean.NEXT_ROW);
  }
 catch (  IOException e) {
    e.printStackTrace();
    return false;
  }
catch (  ClassNotFoundException e) {
    e.printStackTrace();
    return false;
  }
}
Program: 127009
Project: 127009
Buggy source:
public void sendTrace(String connectionId,String startNodeCid,LinkedHashMap datas) throws IOException {
  if (!openSocket) {
    return;
  }
  subjobMap.put(connectionId,startNodeCid);
  Iterator<Entry<String,String>> ite=subjobMap.entrySet().iterator();
  boolean sameSub=false;
  while (ite.hasNext()) {
    Entry<String,String> en=ite.next();
    if (en.getKey().equals(connectionId)) {
      continue;
    }
    if (en.getValue().equals(startNodeCid)) {
      sameSub=true;
      break;
    }
  }
  if (sameSub && processTraces.size() > 1) {
    if (connectionId.equals(this.connectionId)) {
      return;
    }
  }
  TraceDataBean bean;
  if (processTraces.containsKey(connectionId)) {
    bean=processTraces.get(connectionId);
  }
 else {
    bean=new TraceDataBean(connectionId);
  }
  bean.setNbLine(bean.getNbLine() + 1);
  processTraces.put(connectionId,bean);
  bean.setData(datas);
  oos.writeUnshared(bean);
  oos.flush();
  this.connectionId=connectionId;
}

Fixed version (ground truth):
public synchronized void sendTrace(String connectionId,String startNodeCid,LinkedHashMap datas) throws IOException {
  if (!openSocket) {
    return;
  }
  subjobMap.put(connectionId,startNodeCid);
  Iterator<Entry<String,String>> ite=subjobMap.entrySet().iterator();
  boolean sameSub=false;
  while (ite.hasNext()) {
    Entry<String,String> en=ite.next();
    if (en.getKey().equals(connectionId)) {
      continue;
    }
    if (en.getValue().equals(startNodeCid)) {
      sameSub=true;
      break;
    }
  }
  if (sameSub && processTraces.size() > 1) {
    if (connectionId.equals(this.connectionId)) {
      return;
    }
  }
  TraceDataBean bean;
  if (processTraces.containsKey(connectionId)) {
    bean=processTraces.get(connectionId);
  }
 else {
    bean=new TraceDataBean(connectionId);
  }
  bean.setNbLine(bean.getNbLine() + 1);
  processTraces.put(connectionId,bean);
  bean.setData(datas);
  oos.writeUnshared(bean);
  oos.flush();
  this.connectionId=connectionId;
}
Program: 127010
Project: 127010
Buggy source:
public void waitForUserAction() throws InterruptedException {
  if (!openSocket) {
    return;
  }
  try {
    boolean action=false;
    oos.writeObject(TraceStatusBean.UI_STATUS);
    do {
      ois=new NoHeaderObjectInputStream(s.getInputStream());
      TraceBean traceBean=(TraceBean)ois.readObject();
      if (traceBean.equals(TraceStatusBean.STATUS_WAITING)) {
        oos.writeObject(TraceStatusBean.UI_STATUS);
        Thread.sleep(100);
      }
 else {
        action=true;
      }
    }
 while (!action);
  }
 catch (  IOException e) {
    e.printStackTrace();
  }
catch (  ClassNotFoundException e) {
    e.printStackTrace();
  }
}

Fixed version (ground truth):
public synchronized void waitForUserAction() throws InterruptedException {
  if (!openSocket) {
    return;
  }
  try {
    boolean action=false;
    oos.writeObject(TraceStatusBean.UI_STATUS);
    do {
      ois=new NoHeaderObjectInputStream(s.getInputStream());
      TraceBean traceBean=(TraceBean)ois.readObject();
      if (traceBean.equals(TraceStatusBean.STATUS_WAITING)) {
        oos.writeObject(TraceStatusBean.UI_STATUS);
        Thread.sleep(100);
      }
 else {
        action=true;
      }
    }
 while (!action);
  }
 catch (  IOException e) {
    e.printStackTrace();
  }
catch (  ClassNotFoundException e) {
    e.printStackTrace();
  }
}
Program: 127011
Project: 127011
Buggy source:
public boolean isPause(){
  if (!openSocket) {
    return false;
  }
  try {
    askForStatus();
    ois=new NoHeaderObjectInputStream(s.getInputStream());
    TraceBean traceBean=(TraceBean)ois.readObject();
    return traceBean.equals(TraceStatusBean.PAUSE);
  }
 catch (  IOException e) {
    e.printStackTrace();
    return false;
  }
catch (  ClassNotFoundException e) {
    e.printStackTrace();
    return false;
  }
}

Fixed version (ground truth):
public synchronized boolean isPause(){
  if (!openSocket) {
    return false;
  }
  try {
    askForStatus();
    ois=new NoHeaderObjectInputStream(s.getInputStream());
    TraceBean traceBean=(TraceBean)ois.readObject();
    return traceBean.equals(TraceStatusBean.PAUSE);
  }
 catch (  IOException e) {
    e.printStackTrace();
    return false;
  }
catch (  ClassNotFoundException e) {
    e.printStackTrace();
    return false;
  }
}
Program: 127012
Project: 127012
Buggy source:
public boolean isNextBreakpoint(){
  if (!openSocket) {
    return false;
  }
  try {
    askForStatus();
    ois=new NoHeaderObjectInputStream(s.getInputStream());
    TraceBean traceBean=(TraceBean)ois.readObject();
    return traceBean.equals(TraceStatusBean.NEXT_BREAKPOINT);
  }
 catch (  IOException e) {
    e.printStackTrace();
    return false;
  }
catch (  ClassNotFoundException e) {
    e.printStackTrace();
    return false;
  }
}

Fixed version (ground truth):
public synchronized boolean isNextBreakpoint(){
  if (!openSocket) {
    return false;
  }
  try {
    askForStatus();
    ois=new NoHeaderObjectInputStream(s.getInputStream());
    TraceBean traceBean=(TraceBean)ois.readObject();
    return traceBean.equals(TraceStatusBean.NEXT_BREAKPOINT);
  }
 catch (  IOException e) {
    e.printStackTrace();
    return false;
  }
catch (  ClassNotFoundException e) {
    e.printStackTrace();
    return false;
  }
}
Program: 127014
Project: 127014
Buggy source:
private List<String> postFillCatalog(IMetadataConnection metaConnection,List<Catalog> catalogList,List<String> filterList,String catalogName,Connection dbConn){
  Catalog catalog=CatalogHelper.createCatalog(catalogName);
  catalogList.add(catalog);
  DatabaseConnection dbConnection=(DatabaseConnection)dbConn;
  if (dbConnection.getDatabaseType() != null && dbConnection.getDatabaseType().equals(EDatabaseTypeName.AS400.getDisplayName())) {
    IMetadataConnection iMetadataCon=ConvertionHelper.convert(dbConnection);
    if (iMetadataCon != null) {
      if (!StringUtils.isEmpty(iMetadataCon.getDatabase()) && !filterList.contains(iMetadataCon.getDatabase())) {
        filterList.add(iMetadataCon.getDatabase());
      }
      String pattern=ExtractMetaDataUtils.getInstance().retrieveSchemaPatternForAS400(iMetadataCon.getAdditionalParams());
      if (pattern != null && !"String_Node_Str".equals(pattern)) {
        String[] multiSchems=ExtractMetaDataUtils.getInstance().getMultiSchems(pattern);
        if (multiSchems != null) {
          for (          String s : multiSchems) {
            if (!StringUtils.isEmpty(s) && !filterList.contains(s)) {
              filterList.add(s);
            }
          }
        }
      }
    }
  }
 else {
    String uiSchema=dbConnection.getUiSchema();
    if (uiSchema != null) {
      uiSchema=TalendCWMService.getReadableName(dbConn,uiSchema);
    }
    if (!StringUtils.isBlank(uiSchema) && !filterList.contains(uiSchema)) {
      filterList.add(uiSchema);
    }
  }
  return filterList;
}

Fixed version (ground truth):
@Deprecated private List<String> postFillCatalog(IMetadataConnection metaConnection,List<Catalog> catalogList,List<String> filterList,String catalogName,Connection dbConn){
  Catalog catalog=CatalogHelper.createCatalog(catalogName);
  catalogList.add(catalog);
  DatabaseConnection dbConnection=(DatabaseConnection)dbConn;
  if (dbConnection.getDatabaseType() != null && dbConnection.getDatabaseType().equals(EDatabaseTypeName.AS400.getDisplayName())) {
    IMetadataConnection iMetadataCon=ConvertionHelper.convert(dbConnection);
    if (iMetadataCon != null) {
      if (!StringUtils.isEmpty(iMetadataCon.getDatabase()) && !filterList.contains(iMetadataCon.getDatabase())) {
        filterList.add(iMetadataCon.getDatabase());
      }
      String pattern=ExtractMetaDataUtils.getInstance().retrieveSchemaPatternForAS400(iMetadataCon.getAdditionalParams());
      if (pattern != null && !"String_Node_Str".equals(pattern)) {
        String[] multiSchems=ExtractMetaDataUtils.getInstance().getMultiSchems(pattern);
        if (multiSchems != null) {
          for (          String s : multiSchems) {
            if (!StringUtils.isEmpty(s) && !filterList.contains(s)) {
              filterList.add(s);
            }
          }
        }
      }
    }
  }
 else {
    String uiSchema=dbConnection.getUiSchema();
    if (uiSchema != null) {
      uiSchema=TalendCWMService.getReadableName(dbConn,uiSchema);
    }
    if (!StringUtils.isBlank(uiSchema) && !filterList.contains(uiSchema)) {
      filterList.add(uiSchema);
    }
  }
  return filterList;
}
Program: 127023
Project: 127023
Buggy source:
/** 
 * Method "setPropNewName". Try first the new name with "[PROPERTY_NAME]_Copy", then, if it already exists, try again with "[PROPERTY_NAME]_CopyN" where N is number between 1 and Integer.MAX.
 * @param copiedProperty
 * @throws PersistenceException
 * @throws BusinessException
 */
private void setPropNewName(Property copiedProperty) throws PersistenceException, BusinessException {
  String originalLabel=copiedProperty.getLabel();
  String copy="String_Node_Str";
  String initialTry=originalLabel + copy;
  copiedProperty.setLabel(initialTry);
  copiedProperty.setDisplayName(initialTry);
  if (isNameAvailable(getRepositoryContext().getProject(),copiedProperty.getItem(),null)) {
    return;
  }
 else {
    long index=1;
    while (!isNameAvailable(getRepositoryContext().getProject(),copiedProperty.getItem(),null)) {
      if (index < 0) {
        throw new BusinessException(Messages.getString("String_Node_Str"));
      }
      String nextTry=originalLabel + copy + (index++);
      copiedProperty.setLabel(nextTry);
      copiedProperty.setDisplayName(nextTry);
    }
  }
}

Fixed version (ground truth):
/** 
 * Method "setPropNewName". Try first the new name with "[PROPERTY_NAME]_Copy", then, if it already exists, try again with "[PROPERTY_NAME]_CopyN" where N is number between 1 and Integer.MAX.
 * @param copiedProperty
 * @throws PersistenceException
 * @throws BusinessException
 */
private void setPropNewName(Property copiedProperty) throws PersistenceException, BusinessException {
  String originalLabel=copiedProperty.getDisplayName();
  String copy="String_Node_Str";
  String initialTry=originalLabel + copy;
  copiedProperty.setLabel(initialTry);
  copiedProperty.setDisplayName(initialTry);
  if (isNameAvailable(getRepositoryContext().getProject(),copiedProperty.getItem(),null)) {
    return;
  }
 else {
    long index=1;
    while (!isNameAvailable(getRepositoryContext().getProject(),copiedProperty.getItem(),null)) {
      if (index < 0) {
        throw new BusinessException(Messages.getString("String_Node_Str"));
      }
      String nextTry=originalLabel + copy + (index++);
      copiedProperty.setLabel(nextTry);
      copiedProperty.setDisplayName(nextTry);
    }
  }
}
Program: 127024
Project: 127024
Buggy source:
@Override protected void doRun(){
  if (sourceNode == null) {
    return;
  }
  Property property=sourceNode.getObject().getProperty();
  Property updatedProperty=null;
  try {
    updatedProperty=ProxyRepositoryFactory.getInstance().getLastVersion(new Project(ProjectManager.getInstance().getProject(property.getItem())),property.getId()).getProperty();
  }
 catch (  PersistenceException e) {
    ExceptionHandler.process(e);
  }
  String initNameValue="String_Node_Str" + sourceNode.getObject().getProperty().getItem().getProperty().getLabel();
  CopyObjectAction copyObjectAction=CopyObjectAction.getInstance();
  final TreeSelection selectionInClipboard=(TreeSelection)selection;
  promptForSavingIfNecessary((RepositoryNode)selection.getFirstElement());
  String jobNameValue=null;
  try {
    jobNameValue=getDuplicateName(sourceNode,initNameValue,selectionInClipboard);
  }
 catch (  BusinessException e) {
    jobNameValue="String_Node_Str";
  }
  InputDialog jobNewNameDialog=new InputDialog(null,Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str"),jobNameValue,new IInputValidator(){
    @Override public String isValid(    String newText){
      return validJobName(sourceNode,newText,selectionInClipboard);
    }
  }
);
  if (jobNewNameDialog.open() != Dialog.OK) {
    return;
  }
  String jobNewName=jobNewNameDialog.getValue();
  createOperation(jobNewName,sourceNode,copyObjectAction,selectionInClipboard);
}

Fixed version (ground truth):
@Override protected void doRun(){
  if (sourceNode == null) {
    return;
  }
  Property property=sourceNode.getObject().getProperty();
  Property updatedProperty=null;
  try {
    updatedProperty=ProxyRepositoryFactory.getInstance().getLastVersion(new Project(ProjectManager.getInstance().getProject(property.getItem())),property.getId()).getProperty();
  }
 catch (  PersistenceException e) {
    ExceptionHandler.process(e);
  }
  String initNameValue="String_Node_Str" + sourceNode.getObject().getProperty().getItem().getProperty().getDisplayName();
  CopyObjectAction copyObjectAction=CopyObjectAction.getInstance();
  final TreeSelection selectionInClipboard=(TreeSelection)selection;
  promptForSavingIfNecessary((RepositoryNode)selection.getFirstElement());
  String jobNameValue=null;
  try {
    jobNameValue=getDuplicateName(sourceNode,initNameValue,selectionInClipboard);
  }
 catch (  BusinessException e) {
    jobNameValue="String_Node_Str";
  }
  InputDialog jobNewNameDialog=new InputDialog(null,Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str"),jobNameValue,new IInputValidator(){
    @Override public String isValid(    String newText){
      return validJobName(sourceNode,newText,selectionInClipboard);
    }
  }
);
  if (jobNewNameDialog.open() != Dialog.OK) {
    return;
  }
  String jobNewName=jobNewNameDialog.getValue();
  createOperation(jobNewName,sourceNode,copyObjectAction,selectionInClipboard);
}
Program: 127025
Project: 127025
Buggy source:
/** 
 * Method "getParentCatalogOrSchema" returns the owner of the element (Catalog or Schema).
 * @param element (can be null)
 * @return the Catalog or of Schema or null
 * @deprecated use PackageHelper.getParentPackage()
 */
public static Package getParentCatalogOrSchema(ModelElement element){
  if (element == null) {
    return null;
  }
  Namespace namespace=element.getNamespace();
  return PackageHelper.getCatalogOrSchema(namespace);
}

Fixed version (ground truth):
/** 
 * Method "getParentCatalogOrSchema" returns the owner of the element (Catalog or Schema).
 * @param element (can be null)
 * @return the Catalog or of Schema or null
 * @deprecated use PackageHelper.getParentPackage()
 */
@Deprecated public static Package getParentCatalogOrSchema(ModelElement element){
  if (element == null) {
    return null;
  }
  Namespace namespace=element.getNamespace();
  return PackageHelper.getCatalogOrSchema(namespace);
}
Program: 127026
Project: 127026
Buggy source:
public static MetadataTable findByLabel(SAPFunctionUnit functionUnit,String label){
  if (functionUnit == null)   throw new IllegalArgumentException("String_Node_Str");
  if (label == null || "String_Node_Str".equals(label))   throw new IllegalArgumentException("String_Node_Str");
  EList tables=functionUnit.getTables();
  for (int i=0; i < tables.size(); i++) {
    MetadataTable table=(MetadataTable)tables.get(i);
    if (label.equals(table.getLabel()))     return table;
  }
  return null;
}

Fixed version (ground truth):
public static MetadataTable findByLabel(SAPFunctionUnit functionUnit,String label){
  if (functionUnit == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  if (label == null || "String_Node_Str".equals(label)) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  EList tables=functionUnit.getTables();
  for (int i=0; i < tables.size(); i++) {
    MetadataTable table=(MetadataTable)tables.get(i);
    if (label.equals(table.getLabel())) {
      return table;
    }
  }
  return null;
}
Program: 127027
Project: 127027
Buggy source:
/** 
 * Method "addAllPrimaryKeys".
 * @param table
 * @param primaryKeys the primary keys of the table.
 * @deprecated because there can only be one PrimaryKey on same one table, so use addPrimaryKey instead
 */
public static void addPrimaryKeys(ColumnSet table,List<PrimaryKey> primaryKeys){
}

Fixed version (ground truth):
/** 
 * Method "addAllPrimaryKeys".
 * @param table
 * @param primaryKeys the primary keys of the table.
 * @deprecated because there can only be one PrimaryKey on same one table, so use addPrimaryKey instead
 */
@Deprecated public static void addPrimaryKeys(ColumnSet table,List<PrimaryKey> primaryKeys){
}
Program: 127028
Project: 127028
Buggy source:
/** 
 * Method "getParentTable".
 * @param column a column
 * @return the table containing this column or null
 * @deprecated use ColumnHelper.getTdTableOwner();
 */
public static TdTable getParentTable(TdColumn column){
  return ColumnHelper.getColumnOwnerAsTdTable(column);
}

Fixed version (ground truth):
/** 
 * Method "getParentTable".
 * @param column a column
 * @return the table containing this column or null
 * @deprecated use ColumnHelper.getTdTableOwner();
 */
@Deprecated public static TdTable getParentTable(TdColumn column){
  return ColumnHelper.getColumnOwnerAsTdTable(column);
}