nus-yam/ex-repair huggingface dataset:
Program: 134838
Project: 134838
Buggy source:
/** 
 * This is a callback that will allow us to create the viewer and initialize it.
 */
public void createPartControl(Composite parent){
  viewer=new TreeViewer(parent,SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL);
  drillDownAdapter=new DrillDownAdapter(viewer);
  vcp=new ViewContentProvider();
  viewer.setContentProvider(vcp);
  viewer.setLabelProvider(new ViewLabelProvider());
  viewer.setSorter(new NameSorter());
  vs=getViewSite();
  viewer.setInput(getViewSite());
  PlatformUI.getWorkbench().getHelpSystem().setHelp(viewer.getControl(),"String_Node_Str");
  makeActions();
  hookContextMenu();
  hookDoubleClickAction();
  contributeToActionBars();
  if (Application.isMonitoring()) {
    startMonitoringAction.setEnabled(false);
    startMonitoring();
  }
}

Fixed version (ground truth):
/** 
 * This is a callback that will allow us to create the viewer and initialize it.
 */
public void createPartControl(Composite parent){
  viewer=new TreeViewer(parent,SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL);
  drillDownAdapter=new DrillDownAdapter(viewer);
  vcp=new ViewContentProvider();
  viewer.setContentProvider(vcp);
  viewer.setLabelProvider(new ViewLabelProvider());
  viewer.setSorter(new NameSorter());
  viewer.setInput(getViewSite());
  PlatformUI.getWorkbench().getHelpSystem().setHelp(viewer.getControl(),"String_Node_Str");
  makeActions();
  hookContextMenu();
  hookDoubleClickAction();
  contributeToActionBars();
  if (Application.isMonitoring()) {
    startMonitoringAction.setEnabled(false);
    startMonitoring();
  }
}
Program: 134840
Project: 134840
Buggy source:
public ParsedAnyData[] parsePttDataEvent(){
  pde=new pttDataEvent(new actuatorSpace(new double[2952]),new actuatorSpace(new double[2952]),25,32L);
  try {
    se=seCreator.createEvent(pde);
  }
 catch (  AcsJException e) {
    e.printStackTrace();
    fail("String_Node_Str");
  }
  eventName=se.header.fixed_header.event_type.type_name;
  eventAny=se.filterable_data[0].value;
  StopWatch sw=new StopWatch(logger);
  parser=new DynAnyParser(eventAny,eventName);
  ParsedAnyData[] pResults=parser.getParsedResults();
  sw.logLapTime("String_Node_Str");
  return pResults;
}

Fixed version (ground truth):
public ParsedAnyData[] parsePttDataEvent(){
  pde=new pttDataEvent(new actuatorSpace(new double[2952]),new actuatorSpace(new double[2952]),25,32L);
  try {
    se=seCreator.createEvent(pde);
  }
 catch (  AcsJException e) {
    e.printStackTrace();
    fail("String_Node_Str");
  }
  eventName=se.header.fixed_header.event_type.type_name;
  eventAny=se.filterable_data[0].value;
  StopWatch sw=new StopWatch(logger);
  parser=new DynAnyParser(eventAny,eventName);
  ParsedAnyData[] pResults=parser.getParsedResults(null);
  sw.logLapTime("String_Node_Str");
  return pResults;
}
Program: 134841
Project: 134841
Buggy source:
public static ParsedAnyData[] parsePttDataEvent(){
  pttDataEvent pde=new pttDataEvent(new actuatorSpace(new double[2952]),new actuatorSpace(new double[2952]),25,32L);
  StructuredEvent se=null;
  try {
    se=seCreator.createEvent(pde);
  }
 catch (  AcsJException e) {
    e.printStackTrace();
    System.err.println("String_Node_Str");
  }
  String eventName=se.header.fixed_header.event_type.type_name;
  Any eventAny=se.filterable_data[0].value;
  StopWatch sw=new StopWatch(logger);
  DynAnyParser parser=new DynAnyParser(eventAny,eventName);
  ParsedAnyData[] pResults=parser.getParsedResults();
  sw.logLapTime("String_Node_Str");
  return pResults;
}

Fixed version (ground truth):
public static ParsedAnyData[] parsePttDataEvent(){
  pttDataEvent pde=new pttDataEvent(new actuatorSpace(new double[2952]),new actuatorSpace(new double[2952]),25,32L);
  StructuredEvent se=null;
  String eventName=null;
  Any eventAny=null;
  try {
    se=seCreator.createEvent(pde);
    eventName=se.header.fixed_header.event_type.type_name;
    eventAny=se.filterable_data[0].value;
  }
 catch (  AcsJException e) {
    e.printStackTrace();
    System.err.println("String_Node_Str");
  }
  StopWatch sw=new StopWatch(logger);
  DynAnyParser parser=new DynAnyParser(eventAny,eventName);
  ParsedAnyData[] pResults=parser.getParsedResults(null);
  sw.logLapTime("String_Node_Str");
  return pResults;
}
Program: 134842
Project: 134842
Buggy source:
private ParsedAnyData[] createModel(){
  ParsedAnyData[] elements=new ParsedAnyData[10];
  elements=parsePttDataEvent();
  return elements;
}

Fixed version (ground truth):
private ParsedAnyData[] createModel(){
  ParsedAnyData[] elements=parsePttDataEvent();
  return elements;
}
Program: 134843
Project: 134843
Buggy source:
/** 
 * Set a new alarm as root of the displayed chain of a reduction. <P> By setting a new root alarm, the content of the dialog is replaced by a new chain of reduction having the passed alarm as root.
 * @param rootAlarm The new alarm root of a reduction chain
 */
public void setRootAlarm(Alarm rootAlarm){
  if (rootAlarm == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  alarm=rootAlarm;
  refreshContent();
}

Fixed version (ground truth):
/** 
 * Set a new alarm as root of the displayed chain of a reduction. <P> By setting a new root alarm, the content of the dialog is replaced by a new chain of reduction having the passed alarm as root.
 * @param rootAlarm The new alarm root of a reduction chain
 */
public void setRootAlarm(AlarmTableEntry rootAlarm){
  if (rootAlarm == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  alarm=rootAlarm;
  refreshContent();
}
Program: 134844
Project: 134844
Buggy source:
/** 
 * Constructor
 * @param client The {@link CategoryClient} to get the children of the alarmto show in the table
 * @param rootAlarm The root alarm whose children appear in the table
 * @param panel The alarm panel
 */
public ReducedChainDlg(CategoryClient client,Alarm rootAlarm,CernSysPanel panel){
  if (client == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  if (rootAlarm == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  if (panel == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  categoryClient=client;
  alarm=rootAlarm;
  this.panel=panel;
  model=new AlarmTableModel(rootPane,false);
  table=new AlarmTable(model,panel);
  initialize();
  refreshContent();
}

Fixed version (ground truth):
/** 
 * Constructor
 * @param client The {@link CategoryClient} to get the children of the alarmto show in the table
 * @param rootAlarm The root alarm whose children appear in the table
 * @param panel The alarm panel
 */
public ReducedChainDlg(CategoryClient client,AlarmTableEntry rootAlarm,CernSysPanel panel){
  if (client == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  if (rootAlarm == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  if (panel == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  categoryClient=client;
  alarm=rootAlarm;
  this.panel=panel;
  model=new AlarmTableModel(rootPane,false);
  table=new AlarmTable(model,panel);
  initialize();
  refreshContent();
}
Program: 134845
Project: 134845
Buggy source:
/** 
 * Show the dialog with all the nodes reduced by the passed alarm
 * @param alarm The alarm whose children must be shown in a dialog
 */
private void showReductionChain(Alarm alarm){
  if (alarm == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  CategoryClient client=model.getCategoryClient();
  if (reducedDlg == null) {
    reducedDlg=new ReducedChainDlg(client,alarm,panel);
  }
 else {
    reducedDlg.setRootAlarm(alarm);
    reducedDlg.setVisible(true);
  }
}

Fixed version (ground truth):
/** 
 * Show the dialog with all the nodes reduced by the passed alarm
 * @param alarm The alarm whose children must be shown in a dialog
 */
private void showReductionChain(AlarmTableEntry alarm){
  if (alarm == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  CategoryClient client=model.getCategoryClient();
  if (reducedDlg == null) {
    reducedDlg=new ReducedChainDlg(client,alarm,panel);
  }
 else {
    reducedDlg.setRootAlarm(alarm);
    reducedDlg.setVisible(true);
  }
}
Program: 134846
Project: 134846
Buggy source:
/** 
 */
public AlarmTableEntry(Alarm alarm){
  if (alarm == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  if (alarm instanceof AlarmTableEntry) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  this.alarm=alarm;
  isNew=true;
  alarmType=AlarmGUIType.fromAlarm(this);
}

Fixed version (ground truth):
/** 
 */
public AlarmTableEntry(Alarm alarm){
  if (alarm == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  if (alarm instanceof AlarmTableEntry) {
    this.alarm=((AlarmTableEntry)alarm).getEncapsulatedAlarm();
  }
 else {
    this.alarm=alarm;
  }
  isNew=true;
  alarmType=AlarmGUIType.fromAlarm(this);
}
Program: 134847
Project: 134847
Buggy source:
/** 
 * Set a new alarm as root of the displayed chain of a reduction. <P> By setting a new root alarm, the content of the dialog is replaced by a new chain of reduction having the passed alarm as root.
 * @param rootAlarm The new alarm root of a reduction chain
 */
public void setRootAlarm(Alarm rootAlarm){
  if (rootAlarm == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  alarm=rootAlarm;
  refreshContent();
}

Fixed version (ground truth):
/** 
 * Set a new alarm as root of the displayed chain of a reduction. <P> By setting a new root alarm, the content of the dialog is replaced by a new chain of reduction having the passed alarm as root.
 * @param rootAlarm The new alarm root of a reduction chain
 */
public void setRootAlarm(AlarmTableEntry rootAlarm){
  if (rootAlarm == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  alarm=rootAlarm;
  refreshContent();
}
Program: 134848
Project: 134848
Buggy source:
/** 
 * Constructor
 * @param client The {@link CategoryClient} to get the children of the alarmto show in the table
 * @param rootAlarm The root alarm whose children appear in the table
 * @param panel The alarm panel
 */
public ReducedChainDlg(CategoryClient client,Alarm rootAlarm,CernSysPanel panel){
  if (client == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  if (rootAlarm == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  if (panel == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  categoryClient=client;
  alarm=rootAlarm;
  this.panel=panel;
  model=new AlarmTableModel(rootPane,false);
  table=new AlarmTable(model,panel);
  initialize();
  refreshContent();
}

Fixed version (ground truth):
/** 
 * Constructor
 * @param client The {@link CategoryClient} to get the children of the alarmto show in the table
 * @param rootAlarm The root alarm whose children appear in the table
 * @param panel The alarm panel
 */
public ReducedChainDlg(CategoryClient client,AlarmTableEntry rootAlarm,CernSysPanel panel){
  if (client == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  if (rootAlarm == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  if (panel == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  categoryClient=client;
  alarm=rootAlarm;
  this.panel=panel;
  model=new AlarmTableModel(rootPane,false);
  table=new AlarmTable(model,panel);
  initialize();
  refreshContent();
}
Program: 134849
Project: 134849
Buggy source:
/** 
 * Show the dialog with all the nodes reduced by the passed alarm
 * @param alarm The alarm whose children must be shown in a dialog
 */
private void showReductionChain(Alarm alarm){
  if (alarm == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  CategoryClient client=model.getCategoryClient();
  if (reducedDlg == null) {
    reducedDlg=new ReducedChainDlg(client,alarm,panel);
  }
 else {
    reducedDlg.setRootAlarm(alarm);
    reducedDlg.setVisible(true);
  }
}

Fixed version (ground truth):
/** 
 * Show the dialog with all the nodes reduced by the passed alarm
 * @param alarm The alarm whose children must be shown in a dialog
 */
private void showReductionChain(AlarmTableEntry alarm){
  if (alarm == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  CategoryClient client=model.getCategoryClient();
  if (reducedDlg == null) {
    reducedDlg=new ReducedChainDlg(client,alarm,panel);
  }
 else {
    reducedDlg.setRootAlarm(alarm);
    reducedDlg.setVisible(true);
  }
}
Program: 134850
Project: 134850
Buggy source:
/** 
 */
public AlarmTableEntry(Alarm alarm){
  if (alarm == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  if (alarm instanceof AlarmTableEntry) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  this.alarm=alarm;
  isNew=true;
  alarmType=AlarmGUIType.fromAlarm(this);
}

Fixed version (ground truth):
/** 
 */
public AlarmTableEntry(Alarm alarm){
  if (alarm == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  if (alarm instanceof AlarmTableEntry) {
    this.alarm=((AlarmTableEntry)alarm).getEncapsulatedAlarm();
  }
 else {
    this.alarm=alarm;
  }
  isNew=true;
  alarmType=AlarmGUIType.fromAlarm(this);
}
Program: 134851
Project: 134851
Buggy source:
/** 
 * returns full expanded XML string
 */
public synchronized String internal_get_DAO(String curl,boolean precacheStage) throws CDBRecordDoesNotExistEx, CDBXMLErrorEx {
  totalDALInvocationCounter.incrementAndGet();
  if (shutdown) {
    throw new NO_RESOURCES();
  }
  try {
    if (curl.lastIndexOf('/') == curl.length() - 1)     curl=curl.substring(0,curl.length() - 1);
    String xml=getFromCache(curl);
    if (xml != null)     return xml;
    XMLHandler xmlSolver=loadRecords(curl,true);
    if (xmlSolver == null) {
      m_logger.warning("String_Node_Str");
      return null;
    }
    if (!precacheStage)     m_logger.log(AcsLogLevel.DEBUG,"String_Node_Str" + curl);
    xml=xmlSolver.toString(false);
    if (!precacheStage || checkCache(true))     putToCache(curl,xml);
    return xml;
  }
 catch (  AcsJCDBXMLErrorEx e) {
    if (!precacheStage || checkCache(true))     putToCache(curl,e);
    if (!precacheStage)     m_logger.log(AcsLogLevel.NOTICE,"String_Node_Str" + curl + "String_Node_Str",e);
    throw e.toCDBXMLErrorEx();
  }
catch (  AcsJCDBRecordDoesNotExistEx e) {
    if (!precacheStage || checkCache(true))     putToCache(curl,e);
    if (!precacheStage)     logRecordNotExistWithRepeatGuard(curl);
    throw e.toCDBRecordDoesNotExistEx();
  }
}

Fixed version (ground truth):
/** 
 * returns full expanded XML string
 */
public synchronized String internal_get_DAO(String curl,boolean precacheStage) throws CDBRecordDoesNotExistEx, CDBXMLErrorEx {
  totalDALInvocationCounter.incrementAndGet();
  if (shutdown) {
    throw new NO_RESOURCES();
  }
  try {
    if (curl.lastIndexOf('/') == curl.length() - 1)     curl=curl.substring(0,curl.length() - 1);
    String xml=getFromCache(curl);
    if (xml != null)     return xml;
    XMLHandler xmlSolver=loadRecords(curl,true);
    if (xmlSolver == null) {
      m_logger.warning("String_Node_Str");
      return null;
    }
    if (!precacheStage)     m_logger.log(AcsLogLevel.DEBUG,"String_Node_Str" + curl);
    xml=xmlSolver.toString(false);
    if (!precacheStage || checkCache(true))     putToCache(curl,xml);
    return xml;
  }
 catch (  AcsJCDBXMLErrorEx e) {
    CDBXMLErrorEx ex=e.toCDBXMLErrorEx();
    if (!precacheStage || checkCache(true))     putToCache(curl,ex);
    if (!precacheStage)     m_logger.log(AcsLogLevel.NOTICE,"String_Node_Str" + curl + "String_Node_Str",e);
    throw ex;
  }
catch (  AcsJCDBRecordDoesNotExistEx e) {
    CDBRecordDoesNotExistEx ex=e.toCDBRecordDoesNotExistEx();
    if (!precacheStage || checkCache(true))     putToCache(curl,ex);
    if (!precacheStage)     logRecordNotExistWithRepeatGuard(curl);
    throw ex;
  }
}
Program: 134852
Project: 134852
Buggy source:
private LocalOnlyAcsLogger(String namespace,LogConfig testLogConfig){
  super(namespace,null,new LogConfig());
  addLoggerClass(LocalOnlyAcsLogger.class);
}

Fixed version (ground truth):
private LocalOnlyAcsLogger(String namespace,LogConfig testLogConfig){
  super(namespace,null,testLogConfig);
  addLoggerClass(LocalOnlyAcsLogger.class);
}
Program: 134853
Project: 134853
Buggy source:
/** 
 * Constructor for DefaultCORBAService.
 * @param logger The logger
 * @param args The arguments from the command line
 */
public AlarmSystemCorbaServer(AcsLogger logger,String[] args) throws Exception {
  if (logger == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  Runtime.getRuntime().addShutdownHook(new Thread(new Runnable(){
    public void run(){
      if (laserComponent != null) {
        ((AlarmServiceOperations)laserComponent).shutdown();
      }
 else       if (acsComponent != null) {
        ((AlarmServiceOperations)acsComponent).shutdown();
      }
 else {
        shutdown();
      }
    }
  }
,"String_Node_Str"));
  this.m_logger=logger;
  internalInitialize(args);
  boolean alarmType=true;
  try {
    alarmType=getAlarmSystemType();
  }
 catch (  Throwable t) {
  }
  org.omg.CORBA.Object alarmObject;
  byte[] id=alma.alarmsystem.AlarmServiceName.value.getBytes();
  if (alarmType) {
    laserComponent=null;
    logger.log(AcsLogLevel.INFO,"String_Node_Str");
    acsComponent=new AcsAlarmSystem(this);
    asPOA.activate_object_with_id(id,acsComponent);
    alarmObject=asPOA.servant_to_reference(acsComponent);
  }
 else {
    acsComponent=null;
    laserComponent=instantiateCernAS();
    asPOA.activate_object_with_id(id,acsComponent);
    alarmObject=asPOA.servant_to_reference(laserComponent);
  }
  registerToNamingService(alarmObject);
  new Thread(this,"String_Node_Str").start();
  System.out.println("String_Node_Str");
}

Fixed version (ground truth):
/** 
 * Constructor for DefaultCORBAService.
 * @param logger The logger
 * @param args The arguments from the command line
 */
public AlarmSystemCorbaServer(AcsLogger logger,String[] args) throws Exception {
  if (logger == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  Runtime.getRuntime().addShutdownHook(new Thread(new Runnable(){
    public void run(){
      if (laserComponent != null) {
        ((AlarmServiceOperations)laserComponent).shutdown();
      }
 else       if (acsComponent != null) {
        ((AlarmServiceOperations)acsComponent).shutdown();
      }
 else {
        shutdown();
      }
    }
  }
,"String_Node_Str"));
  this.m_logger=logger;
  internalInitialize(args);
  boolean alarmType=true;
  try {
    alarmType=getAlarmSystemType();
  }
 catch (  Throwable t) {
  }
  org.omg.CORBA.Object alarmObject;
  byte[] id=alma.alarmsystem.AlarmServiceName.value.getBytes();
  if (alarmType) {
    laserComponent=null;
    logger.log(AcsLogLevel.INFO,"String_Node_Str");
    acsComponent=new AcsAlarmSystem(this);
    asPOA.activate_object_with_id(id,acsComponent);
    alarmObject=asPOA.servant_to_reference(acsComponent);
  }
 else {
    acsComponent=null;
    logger.log(AcsLogLevel.INFO,"String_Node_Str");
    laserComponent=instantiateCernAS();
    asPOA.activate_object_with_id(id,laserComponent);
    alarmObject=asPOA.servant_to_reference(laserComponent);
  }
  registerToNamingService(alarmObject);
  new Thread(this,"String_Node_Str").start();
  System.out.println("String_Node_Str");
}
Program: 134854
Project: 134854
Buggy source:
/** 
 * Will attempt to log into the manager. If the manager reference is not available, will enter a loop and keep trying. If login fails on an available manager, will throw a AcsJContainerServicesEx.
 * @throws AcsJContainerServicesEx
 */
protected void loginToManager() throws AcsJContainerEx {
  Container thisContainer=_this(m_acsCorba.getORB());
  m_managerProxy.loginToManager(thisContainer,true);
}

Fixed version (ground truth):
/** 
 * Will attempt to log into the manager. If the manager reference is not available, will enter a loop and keep trying. If login fails on an available manager, will throw a AcsJContainerServicesEx.
 * @throws AcsJContainerServicesEx
 */
protected void loginToManager() throws AcsJContainerEx {
  m_managerProxy.loginToManager(m_acsCorba.getContainerCorbaRef(this),true);
}
Program: 134855
Project: 134855
Buggy source:
private void initPOAForContainer() throws AcsJContainerEx {
  if (m_containerPOA != null) {
    return;
  }
  Policy[] contPolicies=null;
  try {
    contPolicies=new Policy[4];
    contPolicies[0]=m_rootPOA.create_id_assignment_policy(IdAssignmentPolicyValue.USER_ID);
    contPolicies[1]=m_rootPOA.create_lifespan_policy(LifespanPolicyValue.PERSISTENT);
    contPolicies[2]=m_rootPOA.create_request_processing_policy(RequestProcessingPolicyValue.USE_ACTIVE_OBJECT_MAP_ONLY);
    contPolicies[3]=m_rootPOA.create_servant_retention_policy(ServantRetentionPolicyValue.RETAIN);
    m_containerPOA=m_rootPOA.create_POA("String_Node_Str",sharedPoaManager,contPolicies);
    if (m_containerPOA == null) {
      throw new NullPointerException("String_Node_Str");
    }
    m_logger.finest("String_Node_Str");
  }
 catch (  Throwable thr) {
    AcsJContainerEx ex=new AcsJContainerEx(thr);
    ex.setContextInfo("String_Node_Str");
    throw ex;
  }
 finally {
    if (contPolicies != null) {
      for (int polInd=0; polInd < contPolicies.length; polInd++) {
        contPolicies[polInd].destroy();
      }
    }
  }
}

Fixed version (ground truth):
private void initPOAForContainer() throws AcsJContainerEx {
  if (m_containerPOA != null) {
    return;
  }
  Policy[] contPolicies=null;
  try {
    contPolicies=new Policy[4];
    contPolicies[0]=m_rootPOA.create_id_assignment_policy(IdAssignmentPolicyValue.USER_ID);
    contPolicies[1]=m_rootPOA.create_lifespan_policy(LifespanPolicyValue.PERSISTENT);
    contPolicies[2]=m_rootPOA.create_request_processing_policy(RequestProcessingPolicyValue.USE_ACTIVE_OBJECT_MAP_ONLY);
    contPolicies[3]=m_rootPOA.create_servant_retention_policy(ServantRetentionPolicyValue.RETAIN);
    m_containerPOA=m_rootPOA.create_POA("String_Node_Str",sharedPoaManager,contPolicies);
    if (m_containerPOA == null) {
      throw new NullPointerException("String_Node_Str");
    }
    m_logger.finest("String_Node_Str");
  }
 catch (  Throwable thr) {
    AcsJContainerEx ex=new AcsJContainerEx(thr);
    ex.setContextInfo("String_Node_Str");
    throw ex;
  }
 finally {
    if (contPolicies != null) {
      for (      Policy policy : contPolicies) {
        if (policy != null) {
          policy.destroy();
        }
      }
    }
  }
}
Program: 134856
Project: 134856
Buggy source:
void printTwikiByFile(String fileName,List<Cvs2clXmlEntry> entries){
  if (entries == null || entries.size() < 1) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  Cvs2clXmlEntry firstEntry=entries.get(0);
  Cvs2clXmlEntry lastEntry=entries.get(entries.size() - 1);
  if (headingInserter != null) {
    headingInserter.processRecord(firstEntry);
  }
  String output=lastEntry.getFiles().get(0).getCvsstate().equals("String_Node_Str") ? "String_Node_Str" + fileName + "String_Node_Str" : fileName;
  output+=LINE_SEPARATOR;
  for (  Cvs2clXmlEntry entry : entries) {
    output+=getWikiIndentBullet1() + dateFormat.format(entry.getDate()) + "String_Node_Str"+ entry.getAuthor()+ "String_Node_Str"+ LINE_SEPARATOR;
    output+=getWikiIndentBullet1_subseqLines() + formatMessage(getWikiIndentBullet1_subseqLines(),entry.getMessage()) + LINE_SEPARATOR;
    System.out.println(output);
  }
}

Fixed version (ground truth):
void printTwikiByFile(String fileName,List<Cvs2clXmlEntry> entries){
  if (entries == null || entries.size() < 1) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  Cvs2clXmlEntry firstEntry=entries.get(0);
  Cvs2clXmlEntry lastEntry=entries.get(entries.size() - 1);
  if (headingInserter != null) {
    headingInserter.processRecord(firstEntry);
  }
  String output=lastEntry.getFiles().get(0).getCvsstate().equals("String_Node_Str") ? "String_Node_Str" + fileName + "String_Node_Str" : fileName;
  output+=LINE_SEPARATOR;
  for (  Cvs2clXmlEntry entry : entries) {
    output+=getWikiIndentBullet1() + dateFormat.format(entry.getDate()) + "String_Node_Str"+ entry.getAuthor()+ "String_Node_Str"+ LINE_SEPARATOR;
    output+=getWikiIndentBullet1_subseqLines() + formatMessage(getWikiIndentBullet1_subseqLines(),entry.getMessage()) + LINE_SEPARATOR;
  }
  System.out.println(output);
}
Program: 134857
Project: 134857
Buggy source:
@Override public void reconnect(EventChannelFactory ecf){
  if (channel != null)   channel=helper.getNotificationChannel(ecf);
  try {
    if (supplierAdmin == null)     supplierAdmin=channel.get_supplieradmin(supplierAdminID.value);
    if (proxyConsumer == null)     proxyConsumer=StructuredProxyPushConsumerHelper.narrow(supplierAdmin.get_proxy_consumer(cp_ih.value));
    if (proxyConsumer == null)     throw new NullPointerException("String_Node_Str");
  }
 catch (  AdminNotFound e) {
  }
catch (  ProxyNotFound e) {
  }
}

Fixed version (ground truth):
@Override public void reconnect(EventChannelFactory ecf){
  if (channel != null)   channel=helper.getNotificationChannel(ecf);
  try {
    if (supplierAdmin == null)     supplierAdmin=channel.get_supplieradmin(supplierAdminID.value);
    if (proxyConsumer == null)     proxyConsumer=StructuredProxyPushConsumerHelper.narrow(supplierAdmin.get_proxy_consumer(proxyID.value));
    if (proxyConsumer == null)     throw new NullPointerException("String_Node_Str");
  }
 catch (  AdminNotFound e) {
  }
catch (  ProxyNotFound e) {
  }
}
Program: 134861
Project: 134861
Buggy source:
/** 
 * @see JTable
 */
public Component prepareRenderer(TableCellRenderer renderer,int rowIndex,int vColIndex){
  TableColumn col=getColumnModel().getColumn(vColIndex);
  if (col.getIdentifier().equals(AlarmTableColumn.ICON)) {
    if (model.isRowAlarmNew(sorter.convertRowIndexToModel(rowIndex))) {
      Alarm alarm=model.getRowAlarm(sorter.convertRowIndexToModel(rowIndex));
      return AlarmGUIType.fromAlarm(alarm).flagRenderer;
    }
 else {
      return emptyLbl;
    }
  }
 else   if (col.getIdentifier().equals(AlarmTableColumn.REDUCED)) {
    AlarmTableEntry entry=model.getRowEntry(sorter.convertRowIndexToModel(rowIndex));
    if (entry.isReduced()) {
      return AlarmTable.reductionRenderer;
    }
 else {
      return emptyLbl;
    }
  }
 else   if (col.getIdentifier().equals(AlarmTableColumn.HIDES_CHILDREN)) {
    AlarmTableEntry entry=model.getRowEntry(sorter.convertRowIndexToModel(rowIndex));
    if (entry.isParent()) {
      return AlarmTable.hasReducedNodesRenderer;
    }
 else {
      return emptyLbl;
    }
  }
  Component c=super.prepareRenderer(renderer,rowIndex,vColIndex);
  Alarm alarm=model.getRowAlarm(sorter.convertRowIndexToModel(rowIndex));
  colorizeCell(c,alarm);
  if (c instanceof JComponent) {
    JComponent jc=(JComponent)c;
    if (((AlarmTableModel)model).getCellContent(sorter.convertRowIndexToModel(rowIndex),vColIndex) == null) {
      jc.setToolTipText(null);
    }
 else {
      jc.setToolTipText("String_Node_Str" + ((AlarmTableModel)model).getCellContent(sorter.convertRowIndexToModel(rowIndex),vColIndex));
    }
  }
  return c;
}

Fixed version (ground truth):
/** 
 * @see JTable
 */
public Component prepareRenderer(TableCellRenderer renderer,int rowIndex,int vColIndex){
  TableColumn col=getColumnModel().getColumn(vColIndex);
  AlarmTableEntry entry=null;
  try {
    entry=model.getRowEntry(sorter.convertRowIndexToModel(rowIndex));
  }
 catch (  Throwable t) {
    entry=null;
  }
  if (entry == null) {
    return emptyLbl;
  }
  Alarm alarm=entry.getAlarm();
  if (col.getIdentifier().equals(AlarmTableColumn.ICON)) {
    if (model.isRowAlarmNew(sorter.convertRowIndexToModel(rowIndex))) {
      return AlarmGUIType.fromAlarm(alarm).flagRenderer;
    }
 else {
      return emptyLbl;
    }
  }
 else   if (col.getIdentifier().equals(AlarmTableColumn.REDUCED)) {
    if (entry.isReduced()) {
      return AlarmTable.reductionRenderer;
    }
 else {
      return emptyLbl;
    }
  }
 else   if (col.getIdentifier().equals(AlarmTableColumn.HIDES_CHILDREN)) {
    if (entry.isParent()) {
      return AlarmTable.hasReducedNodesRenderer;
    }
 else {
      return emptyLbl;
    }
  }
  Component c=super.prepareRenderer(renderer,rowIndex,vColIndex);
  colorizeCell(c,alarm);
  if (c instanceof JComponent) {
    JComponent jc=(JComponent)c;
    if (((AlarmTableModel)model).getCellContent(sorter.convertRowIndexToModel(rowIndex),vColIndex) == null) {
      jc.setToolTipText(null);
    }
 else {
      jc.setToolTipText("String_Node_Str" + ((AlarmTableModel)model).getCellContent(sorter.convertRowIndexToModel(rowIndex),vColIndex));
    }
  }
  return c;
}
Program: 134862
Project: 134862
Buggy source:
/** 
 * Add an entry (i.e a alarm) in the collection. <P> If there is no room available in the container, an exception is thrown: checking if there is enough room  must be done by the caller. <P>
 * @param entry The not <code>null</code> entry to add
 * @throw {@link AlarmContainerException} If the entry is already in the container
 */
public synchronized void add(AlarmTableEntry entry) throws AlarmContainerException {
  super.add(entry);
  if (!entry.isReduced()) {
    indexWithReduction.add(entry.getAlarm().getAlarmId());
  }
  hideReducedChildren(entry);
}

Fixed version (ground truth):
/** 
 * Add an entry (i.e a alarm) in the collection. <P> If there is no room available in the container, an exception is thrown: checking if there is enough room  must be done by the caller. <P>
 * @param entry The not <code>null</code> entry to add
 * @throw {@link AlarmContainerException} If the entry is already in the container
 */
public synchronized void add(AlarmTableEntry entry) throws AlarmContainerException {
  super.add(entry);
  addAlarm(entry.getAlarm());
}
Program: 134863
Project: 134863
Buggy source:
/** 
 * Replace the alarm in a row with passed one. <P> The entry to replace the alarm is given by the alarm ID of the parameter.
 * @param newAlarm The not null new alarm 
 * @throws AlarmContainerException if the entry is not in the container
 */
public synchronized void replace(Alarm newAlarm) throws AlarmContainerException {
  super.replace(newAlarm);
  int pos=indexWithReduction.indexOf(newAlarm.getAlarmId());
  if (pos >= 0) {
    String key=indexWithReduction.remove(pos);
    indexWithReduction.insertElementAt(key,0);
    if (newAlarm.getStatus().isActive()) {
      return;
    }
    showActiveChildren(newAlarm,pos);
  }
}

Fixed version (ground truth):
/** 
 * Replace the alarm in a row with passed one. <P> The entry to replace the alarm is given by the alarm ID of the parameter.
 * @param newAlarm The not null new alarm 
 * @throws AlarmContainerException if the entry is not in the container
 */
public synchronized void replace(Alarm newAlarm) throws AlarmContainerException {
  super.replace(newAlarm);
  int pos=indexWithReduction.indexOf(newAlarm.getAlarmId());
  if (pos >= 0) {
    String key=indexWithReduction.remove(pos);
    indexWithReduction.insertElementAt(key,0);
    if (newAlarm.getStatus().isActive()) {
      hideReducedChildren(newAlarm);
    }
 else {
      showActiveChildren(newAlarm,pos);
    }
  }
 else {
    addAlarm(newAlarm);
  }
}
Program: 134864
Project: 134864
Buggy source:
/** 
 * Hide the active alarms of this entry.
 * @param entry The not <code>null</code> entry to hide active children
 */
private void hideReducedChildren(AlarmTableEntry entry){
  if (entry == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  if (categoryClient == null) {
    return;
  }
  Alarm[] children=null;
  try {
    if (entry.getAlarm().isNodeParent()) {
      children=categoryClient.getChildren(entry.getAlarm().getAlarmId(),true);
    }
 else     if (entry.getAlarm().isMultiplicityParent()) {
      children=categoryClient.getChildren(entry.getAlarm().getAlarmId(),false);
    }
  }
 catch (  Throwable t) {
    System.err.println("String_Node_Str" + entry.getAlarm().getAlarmId() + "String_Node_Str"+ t.getMessage());
    t.printStackTrace();
    children=null;
  }
  if (children != null) {
    for (    Alarm al : children) {
      indexWithReduction.remove(al.getAlarmId());
    }
  }
}

Fixed version (ground truth):
/** 
 * Hide the active alarms of this entry.
 * @param entry The not <code>null</code> entry to hide active children
 */
private void hideReducedChildren(Alarm entry){
  if (entry == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  if (categoryClient == null) {
    return;
  }
  Alarm[] children=null;
  try {
    if (entry.isNodeParent()) {
      children=categoryClient.getChildren(entry.getAlarmId(),true);
    }
 else     if (entry.isMultiplicityParent()) {
      children=categoryClient.getChildren(entry.getAlarmId(),false);
    }
  }
 catch (  Throwable t) {
    System.err.println("String_Node_Str" + entry.getAlarmId() + "String_Node_Str"+ t.getMessage());
    t.printStackTrace();
    children=null;
  }
  if (children != null) {
    for (    Alarm al : children) {
      System.out.println("String_Node_Str" + al.getAlarmId());
      indexWithReduction.remove(al.getAlarmId());
    }
  }
}
Program: 134865
Project: 134865
Buggy source:
/** 
 * @see JTable
 */
public Component prepareRenderer(TableCellRenderer renderer,int rowIndex,int vColIndex){
  TableColumn col=getColumnModel().getColumn(vColIndex);
  if (col.getIdentifier().equals(AlarmTableColumn.ICON)) {
    if (model.isRowAlarmNew(sorter.convertRowIndexToModel(rowIndex))) {
      Alarm alarm=model.getRowAlarm(sorter.convertRowIndexToModel(rowIndex));
      return AlarmGUIType.fromAlarm(alarm).flagRenderer;
    }
 else {
      return emptyLbl;
    }
  }
 else   if (col.getIdentifier().equals(AlarmTableColumn.REDUCED)) {
    AlarmTableEntry entry=model.getRowEntry(sorter.convertRowIndexToModel(rowIndex));
    if (entry.isReduced()) {
      return AlarmTable.reductionRenderer;
    }
 else {
      return emptyLbl;
    }
  }
 else   if (col.getIdentifier().equals(AlarmTableColumn.HIDES_CHILDREN)) {
    AlarmTableEntry entry=model.getRowEntry(sorter.convertRowIndexToModel(rowIndex));
    if (entry.isParent()) {
      return AlarmTable.hasReducedNodesRenderer;
    }
 else {
      return emptyLbl;
    }
  }
  Component c=super.prepareRenderer(renderer,rowIndex,vColIndex);
  Alarm alarm=model.getRowAlarm(sorter.convertRowIndexToModel(rowIndex));
  colorizeCell(c,alarm);
  if (c instanceof JComponent) {
    JComponent jc=(JComponent)c;
    if (((AlarmTableModel)model).getCellContent(sorter.convertRowIndexToModel(rowIndex),vColIndex) == null) {
      jc.setToolTipText(null);
    }
 else {
      jc.setToolTipText("String_Node_Str" + ((AlarmTableModel)model).getCellContent(sorter.convertRowIndexToModel(rowIndex),vColIndex));
    }
  }
  return c;
}

Fixed version (ground truth):
/** 
 * @see JTable
 */
public Component prepareRenderer(TableCellRenderer renderer,int rowIndex,int vColIndex){
  TableColumn col=getColumnModel().getColumn(vColIndex);
  AlarmTableEntry entry=null;
  try {
    entry=model.getRowEntry(sorter.convertRowIndexToModel(rowIndex));
  }
 catch (  Throwable t) {
    entry=null;
  }
  if (entry == null) {
    return emptyLbl;
  }
  Alarm alarm=entry.getAlarm();
  if (col.getIdentifier().equals(AlarmTableColumn.ICON)) {
    if (model.isRowAlarmNew(sorter.convertRowIndexToModel(rowIndex))) {
      return AlarmGUIType.fromAlarm(alarm).flagRenderer;
    }
 else {
      return emptyLbl;
    }
  }
 else   if (col.getIdentifier().equals(AlarmTableColumn.REDUCED)) {
    if (entry.isReduced()) {
      return AlarmTable.reductionRenderer;
    }
 else {
      return emptyLbl;
    }
  }
 else   if (col.getIdentifier().equals(AlarmTableColumn.HIDES_CHILDREN)) {
    if (entry.isParent()) {
      return AlarmTable.hasReducedNodesRenderer;
    }
 else {
      return emptyLbl;
    }
  }
  Component c=super.prepareRenderer(renderer,rowIndex,vColIndex);
  colorizeCell(c,alarm);
  if (c instanceof JComponent) {
    JComponent jc=(JComponent)c;
    if (((AlarmTableModel)model).getCellContent(sorter.convertRowIndexToModel(rowIndex),vColIndex) == null) {
      jc.setToolTipText(null);
    }
 else {
      jc.setToolTipText("String_Node_Str" + ((AlarmTableModel)model).getCellContent(sorter.convertRowIndexToModel(rowIndex),vColIndex));
    }
  }
  return c;
}
Program: 134866
Project: 134866
Buggy source:
/** 
 * Add an entry (i.e a alarm) in the collection. <P> If there is no room available in the container, an exception is thrown: checking if there is enough room  must be done by the caller. <P>
 * @param entry The not <code>null</code> entry to add
 * @throw {@link AlarmContainerException} If the entry is already in the container
 */
public synchronized void add(AlarmTableEntry entry) throws AlarmContainerException {
  super.add(entry);
  if (!entry.isReduced()) {
    indexWithReduction.add(entry.getAlarm().getAlarmId());
  }
  hideReducedChildren(entry);
}

Fixed version (ground truth):
/** 
 * Add an entry (i.e a alarm) in the collection. <P> If there is no room available in the container, an exception is thrown: checking if there is enough room  must be done by the caller. <P>
 * @param entry The not <code>null</code> entry to add
 * @throw {@link AlarmContainerException} If the entry is already in the container
 */
public synchronized void add(AlarmTableEntry entry) throws AlarmContainerException {
  super.add(entry);
  addAlarm(entry.getAlarm());
}
Program: 134867
Project: 134867
Buggy source:
/** 
 * Replace the alarm in a row with passed one. <P> The entry to replace the alarm is given by the alarm ID of the parameter.
 * @param newAlarm The not null new alarm 
 * @throws AlarmContainerException if the entry is not in the container
 */
public synchronized void replace(Alarm newAlarm) throws AlarmContainerException {
  super.replace(newAlarm);
  int pos=indexWithReduction.indexOf(newAlarm.getAlarmId());
  if (pos >= 0) {
    String key=indexWithReduction.remove(pos);
    indexWithReduction.insertElementAt(key,0);
    if (newAlarm.getStatus().isActive()) {
      return;
    }
    showActiveChildren(newAlarm,pos);
  }
}

Fixed version (ground truth):
/** 
 * Replace the alarm in a row with passed one. <P> The entry to replace the alarm is given by the alarm ID of the parameter.
 * @param newAlarm The not null new alarm 
 * @throws AlarmContainerException if the entry is not in the container
 */
public synchronized void replace(Alarm newAlarm) throws AlarmContainerException {
  super.replace(newAlarm);
  int pos=indexWithReduction.indexOf(newAlarm.getAlarmId());
  if (pos >= 0) {
    String key=indexWithReduction.remove(pos);
    indexWithReduction.insertElementAt(key,0);
    if (newAlarm.getStatus().isActive()) {
      hideReducedChildren(newAlarm);
    }
 else {
      showActiveChildren(newAlarm,pos);
    }
  }
 else {
    addAlarm(newAlarm);
  }
}
Program: 134868
Project: 134868
Buggy source:
/** 
 * Hide the active alarms of this entry.
 * @param entry The not <code>null</code> entry to hide active children
 */
private void hideReducedChildren(AlarmTableEntry entry){
  if (entry == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  if (categoryClient == null) {
    return;
  }
  Alarm[] children=null;
  try {
    if (entry.getAlarm().isNodeParent()) {
      children=categoryClient.getChildren(entry.getAlarm().getAlarmId(),true);
    }
 else     if (entry.getAlarm().isMultiplicityParent()) {
      children=categoryClient.getChildren(entry.getAlarm().getAlarmId(),false);
    }
  }
 catch (  Throwable t) {
    System.err.println("String_Node_Str" + entry.getAlarm().getAlarmId() + "String_Node_Str"+ t.getMessage());
    t.printStackTrace();
    children=null;
  }
  if (children != null) {
    for (    Alarm al : children) {
      indexWithReduction.remove(al.getAlarmId());
    }
  }
}

Fixed version (ground truth):
/** 
 * Hide the active alarms of this entry.
 * @param entry The not <code>null</code> entry to hide active children
 */
private void hideReducedChildren(Alarm entry){
  if (entry == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  if (categoryClient == null) {
    return;
  }
  Alarm[] children=null;
  try {
    if (entry.isNodeParent()) {
      children=categoryClient.getChildren(entry.getAlarmId(),true);
    }
 else     if (entry.isMultiplicityParent()) {
      children=categoryClient.getChildren(entry.getAlarmId(),false);
    }
  }
 catch (  Throwable t) {
    System.err.println("String_Node_Str" + entry.getAlarmId() + "String_Node_Str"+ t.getMessage());
    t.printStackTrace();
    children=null;
  }
  if (children != null) {
    for (    Alarm al : children) {
      System.out.println("String_Node_Str" + al.getAlarmId());
      indexWithReduction.remove(al.getAlarmId());
    }
  }
}
Program: 134869
Project: 134869
Buggy source:
/** 
 * @author rbertoncelj
 */
public void addNode(javax.swing.tree.TreeNode node,javax.swing.tree.TreeNode parentNode){
  addNodes(new TreeNode[]{node},parentNode);
  if (node instanceof BACIInvocation) {
    BACIInvocation invoc=(BACIInvocation)node;
    InvocationCouple ic=new InvocationCouple(invoc,null);
    ic.invocationByName=new DelegateInvocation(invoc,treeByName,(BACIRemoteAccess)remoteAccess);
    String curl=(String)((OETreeNode)parentNode.getParent()).getUserObject() + "String_Node_Str" + parentNode.toString();
    RemoteNodeCouple rnc=(RemoteNodeCouple)devices.get(curl);
    if (rnc == null) {
      notifier.reportError("String_Node_Str");
      return;
    }
    getInvList().put(invoc.getName(),ic);
    setNodesTreeByName(new TreeNode[]{ic.invocationByName},rnc.deviceByName);
  }
}

Fixed version (ground truth):
/** 
 * @author rbertoncelj
 */
public void addNode(javax.swing.tree.TreeNode node,javax.swing.tree.TreeNode parentNode){
  addNodes(new TreeNode[]{node},parentNode);
  if (node instanceof BACIInvocation) {
    BACIInvocation invoc=(BACIInvocation)node;
    InvocationCouple ic=new InvocationCouple(invoc,null);
    ic.invocationByName=new DelegateInvocation(invoc,treeByName,(BACIRemoteAccess)remoteAccess);
    String curl=(String)((OETreeNode)parentNode.getParent()).getUserObject() + "String_Node_Str" + parentNode.toString();
    RemoteNodeCouple rnc=(RemoteNodeCouple)devices.get(curl);
    if (rnc == null) {
      notifier.reportError("String_Node_Str");
      return;
    }
    getInvList().put(invoc,ic);
    setNodesTreeByName(new TreeNode[]{ic.invocationByName},rnc.deviceByName);
  }
}
Program: 134870
Project: 134870
Buggy source:
public InvocationCouple getInvocationCouple(Invocation invoc){
  return (InvocationCouple)invList.get(invoc.getName());
}

Fixed version (ground truth):
public InvocationCouple getInvocationCouple(Invocation invoc){
  return (InvocationCouple)invList.get(invoc);
}
Program: 134871
Project: 134871
Buggy source:
/** 
 * @author rbertoncelj
 */
public void addNode(javax.swing.tree.TreeNode node,javax.swing.tree.TreeNode parentNode){
  addNodes(new TreeNode[]{node},parentNode);
  if (node instanceof BACIInvocation) {
    BACIInvocation invoc=(BACIInvocation)node;
    InvocationCouple ic=new InvocationCouple(invoc,null);
    ic.invocationByName=new DelegateInvocation(invoc,treeByName,(BACIRemoteAccess)remoteAccess);
    String curl=(String)((OETreeNode)parentNode.getParent()).getUserObject() + "String_Node_Str" + parentNode.toString();
    RemoteNodeCouple rnc=(RemoteNodeCouple)devices.get(curl);
    if (rnc == null) {
      notifier.reportError("String_Node_Str");
      return;
    }
    getInvList().put(invoc.getName(),ic);
    setNodesTreeByName(new TreeNode[]{ic.invocationByName},rnc.deviceByName);
  }
}

Fixed version (ground truth):
/** 
 * @author rbertoncelj
 */
public void addNode(javax.swing.tree.TreeNode node,javax.swing.tree.TreeNode parentNode){
  addNodes(new TreeNode[]{node},parentNode);
  if (node instanceof BACIInvocation) {
    BACIInvocation invoc=(BACIInvocation)node;
    InvocationCouple ic=new InvocationCouple(invoc,null);
    ic.invocationByName=new DelegateInvocation(invoc,treeByName,(BACIRemoteAccess)remoteAccess);
    String curl=(String)((OETreeNode)parentNode.getParent()).getUserObject() + "String_Node_Str" + parentNode.toString();
    RemoteNodeCouple rnc=(RemoteNodeCouple)devices.get(curl);
    if (rnc == null) {
      notifier.reportError("String_Node_Str");
      return;
    }
    getInvList().put(invoc,ic);
    setNodesTreeByName(new TreeNode[]{ic.invocationByName},rnc.deviceByName);
  }
}
Program: 134872
Project: 134872
Buggy source:
public InvocationCouple getInvocationCouple(Invocation invoc){
  return (InvocationCouple)invList.get(invoc.getName());
}

Fixed version (ground truth):
public InvocationCouple getInvocationCouple(Invocation invoc){
  return (InvocationCouple)invList.get(invoc);
}
Program: 134873
Project: 134873
Buggy source:
/** 
 * Derives the qualified Java class name for an IDL-defined struct from the Corba ID of that struct.
 * @param isNestedStruct  if true, "Package" will be inserted according to <i>"IDL to Java LanguageMapping Specification" version 1.2: 1.17 Mapping for Certain Nested Types</i> apply.
 */
public String corbaStructToJavaClass(String id,boolean isNestedStruct) throws IllegalArgumentException {
  String prefix="String_Node_Str";
  String suffix="String_Node_Str";
  if (!id.startsWith(prefix) || !id.endsWith(suffix)) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  String qualNameWithSlashes=id.substring(prefix.length(),id.length() - suffix.length());
  String qualName=qualNameWithSlashes.replace('/','.');
  if (isNestedStruct) {
    int lastDotIndex=qualName.lastIndexOf('.');
    if (lastDotIndex > 0) {
      String className=qualName.substring(lastDotIndex + 1);
      String jPackage=qualName.substring(0,lastDotIndex);
      jPackage+="String_Node_Str";
      qualName=jPackage + className;
    }
  }
  return qualName;
}

Fixed version (ground truth):
/** 
 * Derives the qualified Java class name for an IDL-defined struct from the Corba ID of that struct.
 * @param isNestedStruct  if true, "Package" will be inserted according to <i>"IDL to Java LanguageMapping Specification" version 1.2: 1.17 Mapping for Certain Nested Types</i> apply.
 */
protected String corbaStructToJavaClass(String id,boolean isNestedStruct) throws IllegalArgumentException {
  String prefix="String_Node_Str";
  String suffix="String_Node_Str";
  if (!id.startsWith(prefix) || !id.endsWith(suffix)) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  String qualNameWithSlashes=id.substring(prefix.length(),id.length() - suffix.length());
  String qualName=qualNameWithSlashes.replace('/','.');
  if (isNestedStruct) {
    int lastDotIndex=qualName.lastIndexOf('.');
    if (lastDotIndex > 0) {
      String className=qualName.substring(lastDotIndex + 1);
      String jPackage=qualName.substring(0,lastDotIndex);
      jPackage+="String_Node_Str";
      qualName=jPackage + className;
    }
  }
  return qualName;
}