nus-yam/ex-repair huggingface dataset:
Program: 134962
Project: 134962
Buggy source:
/** 
 * Insert the method's description here. Creation date: (2/4/02 3:52:03 PM)
 * @return java.lang.Class
 */
public Class getSelectedClass(){
  return Field.values()[getSelectedIndex()].getClass();
}

Fixed version (ground truth):
/** 
 * Insert the method's description here. Creation date: (2/4/02 3:52:03 PM)
 * @return java.lang.Class
 */
public Class getSelectedClass(){
  return Field.values()[getSelectedIndex()].getType();
}
Program: 134963
Project: 134963
Buggy source:
/** 
 * Insert the method's description here. Creation date: (2/4/02 3:46:51 PM)
 * @param c java.lang.Class
 */
public void setEditor(Class c){
  if (c == String.class) {
    replaceEditor(stringEditor);
  }
  if (c == Integer.class) {
    if (getSelectedIndex() == 1) {
      replaceEditor(typeEditor);
    }
 else {
      replaceEditor(intEditor);
    }
  }
  if (c == java.util.Date.class)   replaceEditor(dateEditor);
}

Fixed version (ground truth):
/** 
 * Insert the method's description here. Creation date: (2/4/02 3:46:51 PM)
 * @param c java.lang.Class
 */
public void setEditor(Class c){
  if (c == String.class) {
    replaceEditor(stringEditor);
  }
 else   if (c == Integer.class) {
    if (getSelectedIndex() == 1) {
      replaceEditor(typeEditor);
    }
 else {
      replaceEditor(intEditor);
    }
  }
 else   if (c == java.util.Date.class) {
    replaceEditor(dateEditor);
  }
 else {
    JOptionPane.showMessageDialog(null,"String_Node_Str" + c.getName(),"String_Node_Str",JOptionPane.ERROR_MESSAGE);
    System.err.println("String_Node_Str" + c.getName());
  }
}
Program: 134964
Project: 134964
Buggy source:
/** 
 * Insert the method's description here. Creation date: (2/4/02 3:52:03 PM)
 * @return java.lang.Class
 */
public Class getSelectedClass(){
  return Field.values()[getSelectedIndex()].getClass();
}

Fixed version (ground truth):
/** 
 * Insert the method's description here. Creation date: (2/4/02 3:52:03 PM)
 * @return java.lang.Class
 */
public Class getSelectedClass(){
  return Field.values()[getSelectedIndex()].getType();
}
Program: 134965
Project: 134965
Buggy source:
/** 
 * Insert the method's description here. Creation date: (2/4/02 3:46:51 PM)
 * @param c java.lang.Class
 */
public void setEditor(Class c){
  if (c == String.class) {
    replaceEditor(stringEditor);
  }
  if (c == Integer.class) {
    if (getSelectedIndex() == 1) {
      replaceEditor(typeEditor);
    }
 else {
      replaceEditor(intEditor);
    }
  }
  if (c == java.util.Date.class)   replaceEditor(dateEditor);
}

Fixed version (ground truth):
/** 
 * Insert the method's description here. Creation date: (2/4/02 3:46:51 PM)
 * @param c java.lang.Class
 */
public void setEditor(Class c){
  if (c == String.class) {
    replaceEditor(stringEditor);
  }
 else   if (c == Integer.class) {
    if (getSelectedIndex() == 1) {
      replaceEditor(typeEditor);
    }
 else {
      replaceEditor(intEditor);
    }
  }
 else   if (c == java.util.Date.class) {
    replaceEditor(dateEditor);
  }
 else {
    JOptionPane.showMessageDialog(null,"String_Node_Str" + c.getName(),"String_Node_Str",JOptionPane.ERROR_MESSAGE);
    System.err.println("String_Node_Str" + c.getName());
  }
}
Program: 134966
Project: 134966
Buggy source:
/** 
 * Insert the method's description here. Creation date: (2/4/02 3:52:03 PM)
 * @return java.lang.Class
 */
public Class getSelectedClass(){
  return Field.values()[getSelectedIndex()].getClass();
}

Fixed version (ground truth):
/** 
 * Insert the method's description here. Creation date: (2/4/02 3:52:03 PM)
 * @return java.lang.Class
 */
public Class getSelectedClass(){
  return Field.values()[getSelectedIndex()].getType();
}
Program: 134967
Project: 134967
Buggy source:
/** 
 * Insert the method's description here. Creation date: (2/4/02 3:46:51 PM)
 * @param c java.lang.Class
 */
public void setEditor(Class c){
  if (c == String.class) {
    replaceEditor(stringEditor);
  }
  if (c == Integer.class) {
    if (getSelectedIndex() == 1) {
      replaceEditor(typeEditor);
    }
 else {
      replaceEditor(intEditor);
    }
  }
  if (c == java.util.Date.class)   replaceEditor(dateEditor);
}

Fixed version (ground truth):
/** 
 * Insert the method's description here. Creation date: (2/4/02 3:46:51 PM)
 * @param c java.lang.Class
 */
public void setEditor(Class c){
  if (c == String.class) {
    replaceEditor(stringEditor);
  }
 else   if (c == Integer.class) {
    if (getSelectedIndex() == 1) {
      replaceEditor(typeEditor);
    }
 else {
      replaceEditor(intEditor);
    }
  }
 else   if (c == java.util.Date.class) {
    replaceEditor(dateEditor);
  }
 else {
    JOptionPane.showMessageDialog(null,"String_Node_Str" + c.getName(),"String_Node_Str",JOptionPane.ERROR_MESSAGE);
    System.err.println("String_Node_Str" + c.getName());
  }
}
Program: 134968
Project: 134968
Buggy source:
/** 
 * @param evt
 */
protected void showContextMenu(MouseEvent evt){
  TreePath targetPath=this.getClosestPathForLocation(evt.getX(),evt.getY());
  setSelectionPath(targetPath);
  if (targetPath.getPathCount() == 1) {
    return;
  }
  selectedSupervisor=maciSupervisor(((DefaultMutableTreeNode)targetPath.getPathComponent(1)));
  target=(DefaultMutableTreeNode)targetPath.getLastPathComponent();
  Object userObject=target.getUserObject();
  ContextMenu menu;
  if (userObject instanceof IMaciSupervisor) {
    menu=managerContextMenu;
  }
 else   if (userObject instanceof ContainerInfo) {
    menu=containerContextMenu;
  }
 else   if (userObject instanceof ClientInfo) {
    menu=clientContextMenu;
  }
 else   if (userObject instanceof ComponentInfo) {
    menu=componentContextMenu;
  }
 else   if (userObject instanceof FolderInfo) {
    String name=((FolderInfo)userObject).name;
    if (name.equals("String_Node_Str"))     menu=folderComponentsContextMenu;
 else     menu=folderContextMenu;
  }
 else {
    return;
  }
  menu.show(this,target,evt.getX(),evt.getY());
}

Fixed version (ground truth):
/** 
 * @param evt
 */
protected void showContextMenu(MouseEvent evt){
  TreePath targetPath=this.getClosestPathForLocation(evt.getX(),evt.getY());
  if (targetPath == null) {
    return;
  }
  setSelectionPath(targetPath);
  if (targetPath.getPathCount() == 1) {
    return;
  }
  selectedSupervisor=maciSupervisor(((DefaultMutableTreeNode)targetPath.getPathComponent(1)));
  target=(DefaultMutableTreeNode)targetPath.getLastPathComponent();
  Object userObject=target.getUserObject();
  ContextMenu menu;
  if (userObject instanceof IMaciSupervisor) {
    menu=managerContextMenu;
  }
 else   if (userObject instanceof ContainerInfo) {
    menu=containerContextMenu;
  }
 else   if (userObject instanceof ClientInfo) {
    menu=clientContextMenu;
  }
 else   if (userObject instanceof ComponentInfo) {
    menu=componentContextMenu;
  }
 else   if (userObject instanceof FolderInfo) {
    String name=((FolderInfo)userObject).name;
    if (name.equals("String_Node_Str"))     menu=folderComponentsContextMenu;
 else     menu=folderContextMenu;
  }
 else {
    return;
  }
  menu.show(this,target,evt.getX(),evt.getY());
}
Program: 134971
Project: 134971
Buggy source:
/** 
 * This method initializes jTable	
 * @return javax.swing.JTable	
 */
private JTable getDocTable(){
  if (docTable == null) {
    docTable=new JTable();
    docTable.setModel(new EbeTableModel());
    docTable.setEnabled(false);
  }
  return docTable;
}

Fixed version (ground truth):
/** 
 * This method initializes jTable	
 * @return javax.swing.JTable	
 */
private JTable getDocTable(){
  if (docTable == null) {
    docTable=new JTable();
    docTable.setModel(new EbeTableModel());
    docTable.setEnabled(true);
  }
  return docTable;
}
Program: 134972
Project: 134972
Buggy source:
/** 
 * This method initializes jTable	
 * @return javax.swing.JTable	
 */
private JTable getDocTable(){
  if (docTable == null) {
    docTable=new JTable();
    docTable.setModel(new EbeTableModel());
    docTable.setEnabled(false);
  }
  return docTable;
}

Fixed version (ground truth):
/** 
 * This method initializes jTable	
 * @return javax.swing.JTable	
 */
private JTable getDocTable(){
  if (docTable == null) {
    docTable=new JTable();
    docTable.setModel(new EbeTableModel());
    docTable.setEnabled(true);
  }
  return docTable;
}
Program: 134976
Project: 134976
Buggy source:
/** 
 * Callback method, configures this logger from the data in logConfig.
 * @see alma.acs.logging.config.LogConfigSubscriber#configureLogging(alma.acs.logging.config.LogConfig)
 */
public void configureLogging(LogConfig logConfig){
  try {
    UnnamedLogger config=logConfig.getNamedLoggerConfig(getName());
    configureJDKLogger(this,config);
  }
 catch (  Exception e) {
    info("String_Node_Str");
  }
  Filter logFilter=getFilter();
  if (logFilter != null && logFilter instanceof JacORBFilter) {
    ((JacORBFilter)logFilter).setLogLevel(getLevel());
  }
}

Fixed version (ground truth):
/** 
 * Callback method, configures this logger from the data in logConfig.
 * @see alma.acs.logging.config.LogConfigSubscriber#configureLogging(alma.acs.logging.config.LogConfig)
 */
public void configureLogging(LogConfig logConfig){
  try {
    String shortName=ClientLogManager.stripKnownLoggerNamespacePrefix(getLoggerName());
    UnnamedLogger config=logConfig.getNamedLoggerConfig(shortName);
    if (DEBUG) {
      System.out.println("String_Node_Str" + shortName + "String_Node_Str"+ config.getMinLogLevel()+ "String_Node_Str"+ config.getMinLogLevelLocal());
    }
    configureJDKLogger(this,config);
  }
 catch (  Exception e) {
    log(Level.INFO,"String_Node_Str",e);
  }
  Filter logFilter=getFilter();
  if (logFilter != null && logFilter instanceof JacORBFilter) {
    ((JacORBFilter)logFilter).setLogLevel(getLevel());
  }
}
Program: 134977
Project: 134977
Buggy source:
/** 
 * Auxiliary ctor. Don't use it directly from outside of this class.
 */
protected AcsLogger(String name,String resourceBundleName,LogConfig logConfig,boolean allowNullLogConfig){
  super(name,resourceBundleName);
  addLoggerClass(AcsLogger.class);
  addLoggerClass(Logger.class);
  if (logConfig != null) {
    logConfig.addSubscriber(this);
    configureLogging(logConfig);
  }
 else   if (!allowNullLogConfig) {
    throw new NullPointerException("String_Node_Str");
  }
}

Fixed version (ground truth):
/** 
 * Auxiliary ctor. Don't use it directly from outside of this class.
 */
protected AcsLogger(String name,String resourceBundleName,LogConfig logConfig,boolean allowNullLogConfig){
  super(name,resourceBundleName);
  if (DEBUG) {
    System.out.println("String_Node_Str");
  }
  addLoggerClass(AcsLogger.class);
  addLoggerClass(Logger.class);
  if (logConfig != null) {
    logConfig.addSubscriber(this);
    configureLogging(logConfig);
  }
 else   if (!allowNullLogConfig) {
    throw new NullPointerException("String_Node_Str");
  }
}
Program: 134978
Project: 134978
Buggy source:
/** 
 * Service method for configuring even a non-ACS Logger.  Shares code with   {@link #configureLogging(LogConfig)}.
 * @param jdkLogger 
 * @param logConfigData
 */
static void configureJDKLogger(Logger jdkLogger,UnnamedLogger loggerConfig){
  int minLogLevelACS;
  try {
    minLogLevelACS=Math.min(loggerConfig.getMinLogLevel(),loggerConfig.getMinLogLevelLocal());
    AcsLogLevel minLogLevelJDK=AcsLogLevel.fromAcsCoreLevel(minLogLevelACS);
    jdkLogger.setLevel(minLogLevelJDK);
  }
 catch (  Exception ex) {
    jdkLogger.info("String_Node_Str");
  }
}

Fixed version (ground truth):
/** 
 * Service method for configuring even a non-ACS Logger.  Shares code with   {@link #configureLogging(LogConfig)}.
 * @param jdkLogger 
 * @param logConfigData
 */
static void configureJDKLogger(Logger jdkLogger,UnnamedLogger loggerConfig){
  int minLogLevelACS;
  try {
    minLogLevelACS=Math.min(loggerConfig.getMinLogLevel(),loggerConfig.getMinLogLevelLocal());
    AcsLogLevel minLogLevelJDK=AcsLogLevel.fromAcsCoreLevel(minLogLevelACS);
    jdkLogger.setLevel(minLogLevelJDK);
  }
 catch (  Exception ex) {
    jdkLogger.log(Level.INFO,"String_Node_Str",ex);
  }
}
Program: 134979
Project: 134979
Buggy source:
/** 
 * @see alma.acs.logging.config.LogConfigSubscriber#configureLogging(alma.acs.logging.LogConfig)
 */
public void configureLogging(LogConfig logConfig){
  LoggingConfig loggingConfig=logConfig.getLoggingConfig();
  if (!loggingConfig.getCentralizedLogger().equals(logServiceName)) {
    if (logServiceName == null) {
      logServiceName=loggingConfig.getCentralizedLogger();
    }
 else {
      m_internalLogger.warning("String_Node_Str");
    }
  }
  if (loggingConfig.getFlushPeriodSeconds() != flushPeriodSeconds) {
    flushPeriodSeconds=loggingConfig.getFlushPeriodSeconds();
    if (logQueue != null) {
      logQueue.setPeriodicFlushing(loggingConfig.getFlushPeriodSeconds());
    }
  }
}

Fixed version (ground truth):
/** 
 * @see alma.acs.logging.config.LogConfigSubscriber#configureLogging(alma.acs.logging.LogConfig)
 */
public void configureLogging(LogConfig logConfig){
  LoggingConfig loggingConfig=logConfig.getLoggingConfig();
  if (!loggingConfig.getCentralizedLogger().equals(logServiceName)) {
    if (logServiceName == null) {
      logServiceName=loggingConfig.getCentralizedLogger();
    }
 else {
      m_internalLogger.warning("String_Node_Str");
    }
  }
  if (loggingConfig.getFlushPeriodSeconds() != flushPeriodSeconds) {
    flushPeriodSeconds=loggingConfig.getFlushPeriodSeconds();
    if (logQueue != null) {
      logQueue.setPeriodicFlushing(loggingConfig.getFlushPeriodSeconds());
    }
  }
  if (logQueue != null) {
    logQueue.setMaxQueueSize(loggingConfig.getMaxLogQueueSize());
  }
}
Program: 134980
Project: 134980
Buggy source:
/** 
 * The thread that takes log from the vector and publish the log to the listeners
 */
public void run(){
  String log=null;
  ILogEntry logEntry=null;
  while (!terminateThread) {
    Object obj;
    try {
      obj=receivedLogs.take();
    }
 catch (    InterruptedException ie) {
      System.out.println("String_Node_Str" + ie.getMessage());
      ie.printStackTrace();
      continue;
    }
    if (binaryFormat) {
      System.out.println("String_Node_Str");
      continue;
    }
 else {
      log=(String)obj;
    }
    if (engine.hasRawLogListeners()) {
      engine.publishRawLog(log);
    }
    if (engine.hasLogListeners()) {
      try {
        logEntry=parser.parse(log);
      }
 catch (      Exception e) {
        StringBuilder strB=new StringBuilder("String_Node_Str");
        strB.append("String_Node_Str" + log);
        ErrorLogDialog.getErrorLogDlg(true).appendText(strB.toString());
        engine.publishReport(strB.toString());
        System.err.println("String_Node_Str" + e.getMessage());
        System.err.println("String_Node_Str" + log);
        e.printStackTrace(System.err);
        continue;
      }
      engine.publishLog(logEntry);
    }
  }
}

Fixed version (ground truth):
/** 
 * The thread that takes log from the vector and publish the log to the listeners
 */
public void run(){
  String log=null;
  ILogEntry logEntry=null;
  while (!terminateThread) {
    try {
      log=xmlLogs.poll(250,TimeUnit.MILLISECONDS);
    }
 catch (    InterruptedException ie) {
      System.out.println("String_Node_Str" + ie.getMessage());
      ie.printStackTrace();
      continue;
    }
    if (log == null) {
      continue;
    }
    if (engine.hasRawLogListeners()) {
      engine.publishRawLog(log);
    }
    if (engine.hasLogListeners()) {
      try {
        logEntry=parser.parse(log);
      }
 catch (      Exception e) {
        StringBuilder strB=new StringBuilder("String_Node_Str");
        strB.append("String_Node_Str" + log);
        ErrorLogDialog.getErrorLogDlg(true).appendText(strB.toString());
        engine.publishReport(strB.toString());
        System.err.println("String_Node_Str" + e.getMessage());
        System.err.println("String_Node_Str" + log);
        e.printStackTrace(System.err);
        continue;
      }
      engine.publishLog(logEntry);
    }
  }
}
Program: 134981
Project: 134981
Buggy source:
public LinkedBlockingQueue<String> getXmlLogs(){
  LinkedBlockingQueue<String> XmlLogs=receivedLogs;
  XmlLogs.add("String_Node_Str");
  XmlLogs.add("String_Node_Str");
  return XmlLogs;
}

Fixed version (ground truth):
public LinkedBlockingQueue<String> getXmlLogs(){
  LinkedBlockingQueue<String> XmlLogs=xmlLogs;
  XmlLogs.add("String_Node_Str");
  XmlLogs.add("String_Node_Str");
  return XmlLogs;
}
Program: 134982
Project: 134982
Buggy source:
/** 
 * The thread that takes log from the vector and publish the log to the listeners
 */
public void run(){
  String log=null;
  ILogEntry logEntry=null;
  while (!terminateThread) {
    Object obj;
    try {
      obj=receivedLogs.take();
    }
 catch (    InterruptedException ie) {
      System.out.println("String_Node_Str" + ie.getMessage());
      ie.printStackTrace();
      continue;
    }
    if (binaryFormat) {
      System.out.println("String_Node_Str");
      continue;
    }
 else {
      log=(String)obj;
    }
    if (engine.hasRawLogListeners()) {
      engine.publishRawLog(log);
    }
    if (engine.hasLogListeners()) {
      try {
        logEntry=parser.parse(log);
      }
 catch (      Exception e) {
        StringBuilder strB=new StringBuilder("String_Node_Str");
        strB.append("String_Node_Str" + log);
        ErrorLogDialog.getErrorLogDlg(true).appendText(strB.toString());
        engine.publishReport(strB.toString());
        System.err.println("String_Node_Str" + e.getMessage());
        System.err.println("String_Node_Str" + log);
        e.printStackTrace(System.err);
        continue;
      }
      engine.publishLog(logEntry);
    }
  }
}

Fixed version (ground truth):
/** 
 * The thread that takes log from the vector and publish the log to the listeners
 */
public void run(){
  String log=null;
  ILogEntry logEntry=null;
  while (!terminateThread) {
    try {
      log=xmlLogs.poll(250,TimeUnit.MILLISECONDS);
    }
 catch (    InterruptedException ie) {
      System.out.println("String_Node_Str" + ie.getMessage());
      ie.printStackTrace();
      continue;
    }
    if (log == null) {
      continue;
    }
    if (engine.hasRawLogListeners()) {
      engine.publishRawLog(log);
    }
    if (engine.hasLogListeners()) {
      try {
        logEntry=parser.parse(log);
      }
 catch (      Exception e) {
        StringBuilder strB=new StringBuilder("String_Node_Str");
        strB.append("String_Node_Str" + log);
        ErrorLogDialog.getErrorLogDlg(true).appendText(strB.toString());
        engine.publishReport(strB.toString());
        System.err.println("String_Node_Str" + e.getMessage());
        System.err.println("String_Node_Str" + log);
        e.printStackTrace(System.err);
        continue;
      }
      engine.publishLog(logEntry);
    }
  }
}
Program: 134983
Project: 134983
Buggy source:
public LinkedBlockingQueue<String> getXmlLogs(){
  LinkedBlockingQueue<String> XmlLogs=receivedLogs;
  XmlLogs.add("String_Node_Str");
  XmlLogs.add("String_Node_Str");
  return XmlLogs;
}

Fixed version (ground truth):
public LinkedBlockingQueue<String> getXmlLogs(){
  LinkedBlockingQueue<String> XmlLogs=xmlLogs;
  XmlLogs.add("String_Node_Str");
  XmlLogs.add("String_Node_Str");
  return XmlLogs;
}
Program: 134984
Project: 134984
Buggy source:
/** 
 * The thread that takes log from the vector and publish the log to the listeners
 */
public void run(){
  String log=null;
  ILogEntry logEntry=null;
  while (!terminateThread) {
    Object obj;
    try {
      obj=receivedLogs.take();
    }
 catch (    InterruptedException ie) {
      System.out.println("String_Node_Str" + ie.getMessage());
      ie.printStackTrace();
      continue;
    }
    if (binaryFormat) {
      System.out.println("String_Node_Str");
      continue;
    }
 else {
      log=(String)obj;
    }
    if (engine.hasRawLogListeners()) {
      engine.publishRawLog(log);
    }
    if (engine.hasLogListeners()) {
      try {
        logEntry=parser.parse(log);
      }
 catch (      Exception e) {
        StringBuilder strB=new StringBuilder("String_Node_Str");
        strB.append("String_Node_Str" + log);
        ErrorLogDialog.getErrorLogDlg(true).appendText(strB.toString());
        engine.publishReport(strB.toString());
        System.err.println("String_Node_Str" + e.getMessage());
        System.err.println("String_Node_Str" + log);
        e.printStackTrace(System.err);
        continue;
      }
      engine.publishLog(logEntry);
    }
  }
}

Fixed version (ground truth):
/** 
 * The thread that takes log from the vector and publish the log to the listeners
 */
public void run(){
  String log=null;
  ILogEntry logEntry=null;
  while (!terminateThread) {
    try {
      log=xmlLogs.poll(250,TimeUnit.MILLISECONDS);
    }
 catch (    InterruptedException ie) {
      System.out.println("String_Node_Str" + ie.getMessage());
      ie.printStackTrace();
      continue;
    }
    if (log == null) {
      continue;
    }
    if (engine.hasRawLogListeners()) {
      engine.publishRawLog(log);
    }
    if (engine.hasLogListeners()) {
      try {
        logEntry=parser.parse(log);
      }
 catch (      Exception e) {
        StringBuilder strB=new StringBuilder("String_Node_Str");
        strB.append("String_Node_Str" + log);
        ErrorLogDialog.getErrorLogDlg(true).appendText(strB.toString());
        engine.publishReport(strB.toString());
        System.err.println("String_Node_Str" + e.getMessage());
        System.err.println("String_Node_Str" + log);
        e.printStackTrace(System.err);
        continue;
      }
      engine.publishLog(logEntry);
    }
  }
}
Program: 134985
Project: 134985
Buggy source:
public LinkedBlockingQueue<String> getXmlLogs(){
  LinkedBlockingQueue<String> XmlLogs=receivedLogs;
  XmlLogs.add("String_Node_Str");
  XmlLogs.add("String_Node_Str");
  return XmlLogs;
}

Fixed version (ground truth):
public LinkedBlockingQueue<String> getXmlLogs(){
  LinkedBlockingQueue<String> XmlLogs=xmlLogs;
  XmlLogs.add("String_Node_Str");
  XmlLogs.add("String_Node_Str");
  return XmlLogs;
}
Program: 134987
Project: 134987
Buggy source:
/** 
 * Returns the FiltersMenuItem property value.
 * @return javax.swing.JMenuItem
 */
public JMenu getFiltersMenu(){
  filtersMenu=new JMenu("String_Node_Str");
  filtersMenu.add(getLoadFiltersMenuItem());
  filtersMenu.add(getSaveFiltersMenuItem());
  filtersMenu.add(getSaveAsFiltersMenuItem());
  filtersMenu.add(getEditFiltersMenuItem());
  return filtersMenu;
}

Fixed version (ground truth):
/** 
 * Returns the FiltersMenuItem property value.
 * @return javax.swing.JMenuItem
 */
private JMenu getFiltersMenu(){
  filtersMenu=new JMenu("String_Node_Str");
  filtersMenu.setName("String_Node_Str");
  filtersMenu.add(getLoadFiltersMenuItem());
  filtersMenu.add(getSaveFiltersMenuItem());
  filtersMenu.add(getSaveAsFiltersMenuItem());
  filtersMenu.add(getEditFiltersMenuItem());
  return filtersMenu;
}
Program: 134988
Project: 134988
Buggy source:
/** 
 * Enable/Disbale all the controls in the GUI that could trigger the invalidation of the logs
 * @param enabled If true the controls are enabled
 */
public void setEnabledGUIControls(boolean enabled){
  getFiltersMenu().setEnabled(enabled);
  getSearchMenu().setEnabled(enabled);
  getFieldsMenuItem().setEnabled(enabled);
  getLoadMenuItem().setEnabled(enabled);
  getLoadURLMenuItem().setEnabled(enabled);
  getClearLogsMenuItem().setEnabled(enabled);
  getSaveFileMenuItem().setEnabled(enabled);
  getConnectMenuItem().setEnabled(enabled);
  getAutoReconnectMenuItem().setEnabled(enabled);
}

Fixed version (ground truth):
/** 
 * Enable/Disbale all the controls in the GUI that could trigger the invalidation of the logs
 * @param enabled If true the controls are enabled
 */
public void setEnabledGUIControls(boolean enabled){
  getSearchMenu().setEnabled(enabled);
  getFieldsMenuItem().setEnabled(enabled);
  getLoadMenuItem().setEnabled(enabled);
  getLoadURLMenuItem().setEnabled(enabled);
  getClearLogsMenuItem().setEnabled(enabled);
  getSaveFileMenuItem().setEnabled(enabled);
  getConnectMenuItem().setEnabled(enabled);
  getAutoReconnectMenuItem().setEnabled(enabled);
}
Program: 134989
Project: 134989
Buggy source:
/** 
 * Returns the FiltersMenuItem property value.
 * @return javax.swing.JMenuItem
 */
public JMenu getFiltersMenu(){
  filtersMenu=new JMenu("String_Node_Str");
  filtersMenu.add(getLoadFiltersMenuItem());
  filtersMenu.add(getSaveFiltersMenuItem());
  filtersMenu.add(getSaveAsFiltersMenuItem());
  filtersMenu.add(getEditFiltersMenuItem());
  return filtersMenu;
}

Fixed version (ground truth):
/** 
 * Returns the FiltersMenuItem property value.
 * @return javax.swing.JMenuItem
 */
private JMenu getFiltersMenu(){
  filtersMenu=new JMenu("String_Node_Str");
  filtersMenu.setName("String_Node_Str");
  filtersMenu.add(getLoadFiltersMenuItem());
  filtersMenu.add(getSaveFiltersMenuItem());
  filtersMenu.add(getSaveAsFiltersMenuItem());
  filtersMenu.add(getEditFiltersMenuItem());
  return filtersMenu;
}
Program: 134990
Project: 134990
Buggy source:
/** 
 * Enable/Disbale all the controls in the GUI that could trigger the invalidation of the logs
 * @param enabled If true the controls are enabled
 */
public void setEnabledGUIControls(boolean enabled){
  getFiltersMenu().setEnabled(enabled);
  getSearchMenu().setEnabled(enabled);
  getFieldsMenuItem().setEnabled(enabled);
  getLoadMenuItem().setEnabled(enabled);
  getLoadURLMenuItem().setEnabled(enabled);
  getClearLogsMenuItem().setEnabled(enabled);
  getSaveFileMenuItem().setEnabled(enabled);
  getConnectMenuItem().setEnabled(enabled);
  getAutoReconnectMenuItem().setEnabled(enabled);
}

Fixed version (ground truth):
/** 
 * Enable/Disbale all the controls in the GUI that could trigger the invalidation of the logs
 * @param enabled If true the controls are enabled
 */
public void setEnabledGUIControls(boolean enabled){
  getSearchMenu().setEnabled(enabled);
  getFieldsMenuItem().setEnabled(enabled);
  getLoadMenuItem().setEnabled(enabled);
  getLoadURLMenuItem().setEnabled(enabled);
  getClearLogsMenuItem().setEnabled(enabled);
  getSaveFileMenuItem().setEnabled(enabled);
  getConnectMenuItem().setEnabled(enabled);
  getAutoReconnectMenuItem().setEnabled(enabled);
}
Program: 134991
Project: 134991
Buggy source:
/** 
 * Returns the FiltersMenuItem property value.
 * @return javax.swing.JMenuItem
 */
public JMenu getFiltersMenu(){
  filtersMenu=new JMenu("String_Node_Str");
  filtersMenu.add(getLoadFiltersMenuItem());
  filtersMenu.add(getSaveFiltersMenuItem());
  filtersMenu.add(getSaveAsFiltersMenuItem());
  filtersMenu.add(getEditFiltersMenuItem());
  return filtersMenu;
}

Fixed version (ground truth):
/** 
 * Returns the FiltersMenuItem property value.
 * @return javax.swing.JMenuItem
 */
private JMenu getFiltersMenu(){
  filtersMenu=new JMenu("String_Node_Str");
  filtersMenu.setName("String_Node_Str");
  filtersMenu.add(getLoadFiltersMenuItem());
  filtersMenu.add(getSaveFiltersMenuItem());
  filtersMenu.add(getSaveAsFiltersMenuItem());
  filtersMenu.add(getEditFiltersMenuItem());
  return filtersMenu;
}
Program: 134992
Project: 134992
Buggy source:
/** 
 * Enable/Disbale all the controls in the GUI that could trigger the invalidation of the logs
 * @param enabled If true the controls are enabled
 */
public void setEnabledGUIControls(boolean enabled){
  getFiltersMenu().setEnabled(enabled);
  getSearchMenu().setEnabled(enabled);
  getFieldsMenuItem().setEnabled(enabled);
  getLoadMenuItem().setEnabled(enabled);
  getLoadURLMenuItem().setEnabled(enabled);
  getClearLogsMenuItem().setEnabled(enabled);
  getSaveFileMenuItem().setEnabled(enabled);
  getConnectMenuItem().setEnabled(enabled);
  getAutoReconnectMenuItem().setEnabled(enabled);
}

Fixed version (ground truth):
/** 
 * Enable/Disbale all the controls in the GUI that could trigger the invalidation of the logs
 * @param enabled If true the controls are enabled
 */
public void setEnabledGUIControls(boolean enabled){
  getSearchMenu().setEnabled(enabled);
  getFieldsMenuItem().setEnabled(enabled);
  getLoadMenuItem().setEnabled(enabled);
  getLoadURLMenuItem().setEnabled(enabled);
  getClearLogsMenuItem().setEnabled(enabled);
  getSaveFileMenuItem().setEnabled(enabled);
  getConnectMenuItem().setEnabled(enabled);
  getAutoReconnectMenuItem().setEnabled(enabled);
}
Program: 134993
Project: 134993
Buggy source:
/** 
 * Prints out a full description of all times that were saved along with other relevant statistical data.
 * @param msg A message to be printed out with the data.
 */
public void fullDescription(String msg){
  String out="String_Node_Str";
  out=out + "String_Node_Str" + msg;
  out=out + "String_Node_Str" + m_totalTime / m_totalNumStarts;
  out=out + "String_Node_Str" + m_totalNumStarts;
  out=out + "String_Node_Str" + m_minDuration;
  out=out + "String_Node_Str" + m_maxDuration;
  out=out + "String_Node_Str";
  out=out + "String_Node_Str";
  out=out + "String_Node_Str" + TimeHelper.getUTCDate();
  out=out + "String_Node_Str" + alma.acs.util.ACSPorts.getIP();
  out=out + "String_Node_Str";
  out=out + "String_Node_Str";
  out=out + m_extraDescrip;
  System.out.println(out);
}

Fixed version (ground truth):
/** 
 * Prints out a full description of all times that were saved along with other relevant statistical data.
 * @param msg A message to be printed out with the data.
 */
public void fullDescription(String msg){
  String out="String_Node_Str";
  out=out + "String_Node_Str" + msg;
  out=out + "String_Node_Str" + (double)((double)m_totalTime / (double)m_totalNumStarts);
  out=out + "String_Node_Str" + m_totalNumStarts;
  out=out + "String_Node_Str" + m_minDuration;
  out=out + "String_Node_Str" + m_maxDuration;
  out=out + "String_Node_Str";
  out=out + "String_Node_Str";
  out=out + "String_Node_Str" + TimeHelper.getUTCDate();
  out=out + "String_Node_Str" + alma.acs.util.ACSPorts.getIP();
  out=out + "String_Node_Str";
  out=out + "String_Node_Str";
  out=out + m_extraDescrip;
  System.out.println(out);
}
Program: 134994
Project: 134994
Buggy source:
/** 
 * Unpause the play/pause button
 * @return The status of the button previous of the command (true means pasused)
 */
public boolean unpause(){
  boolean ret=pauseBtnPaused;
  pauseBtnPaused=true;
  getPauseBtn().setIcon(pauseIcon);
  getPauseBtn().setText(pauseStr);
  return ret;
}

Fixed version (ground truth):
/** 
 * Unpause the play/pause button
 * @return The status of the button previous of the command (true means pasused)
 */
public boolean unpause(){
  boolean ret=pauseBtnPaused;
  pauseBtnPaused=false;
  getPauseBtn().setIcon(pauseIcon);
  getPauseBtn().setText(pauseStr);
  return ret;
}
Program: 134995
Project: 134995
Buggy source:
/** 
 * Unpause the play/pause button
 * @return The status of the button previous of the command (true means pasused)
 */
public boolean unpause(){
  boolean ret=pauseBtnPaused;
  pauseBtnPaused=true;
  getPauseBtn().setIcon(pauseIcon);
  getPauseBtn().setText(pauseStr);
  return ret;
}

Fixed version (ground truth):
/** 
 * Unpause the play/pause button
 * @return The status of the button previous of the command (true means pasused)
 */
public boolean unpause(){
  boolean ret=pauseBtnPaused;
  pauseBtnPaused=false;
  getPauseBtn().setIcon(pauseIcon);
  getPauseBtn().setText(pauseStr);
  return ret;
}
Program: 134996
Project: 134996
Buggy source:
/** 
 * Unpause the play/pause button
 * @return The status of the button previous of the command (true means pasused)
 */
public boolean unpause(){
  boolean ret=pauseBtnPaused;
  pauseBtnPaused=true;
  getPauseBtn().setIcon(pauseIcon);
  getPauseBtn().setText(pauseStr);
  return ret;
}

Fixed version (ground truth):
/** 
 * Unpause the play/pause button
 * @return The status of the button previous of the command (true means pasused)
 */
public boolean unpause(){
  boolean ret=pauseBtnPaused;
  pauseBtnPaused=false;
  getPauseBtn().setIcon(pauseIcon);
  getPauseBtn().setText(pauseStr);
  return ret;
}
Program: 134998
Project: 134998
Buggy source:
/** 
 * Suspend the notification of the incoming logs
 * @see LCEngine
 * @param suspended If true suspend the notification of new logs
 */
public void setSuspended(boolean suspended){
  acsSPS.setSupended(suspended);
}

Fixed version (ground truth):
/** 
 * Suspend the notification of the incoming logs
 * @see LCEngine
 * @param suspended If true suspend the notification of new logs
 */
public void setSuspended(boolean suspended){
  if (acsSPS != null) {
    acsSPS.setSupended(suspended);
  }
}
Program: 134999
Project: 134999
Buggy source:
/** 
 * Suspend the notification of the incoming logs
 * @see LCEngine
 * @param suspended If true suspend the notification of new logs
 */
public void setSuspended(boolean suspended){
  acsSPS.setSupended(suspended);
}

Fixed version (ground truth):
/** 
 * Suspend the notification of the incoming logs
 * @see LCEngine
 * @param suspended If true suspend the notification of new logs
 */
public void setSuspended(boolean suspended){
  if (acsSPS != null) {
    acsSPS.setSupended(suspended);
  }
}
Program: 135000
Project: 135000
Buggy source:
/** 
 * Suspend the notification of the incoming logs
 * @see LCEngine
 * @param suspended If true suspend the notification of new logs
 */
public void setSuspended(boolean suspended){
  acsSPS.setSupended(suspended);
}

Fixed version (ground truth):
/** 
 * Suspend the notification of the incoming logs
 * @see LCEngine
 * @param suspended If true suspend the notification of new logs
 */
public void setSuspended(boolean suspended){
  if (acsSPS != null) {
    acsSPS.setSupended(suspended);
  }
}
Program: 135006
Project: 135006
Buggy source:
/** 
 * Build the object in online/offline mode 
 * @param initialConnectionStatus If true jlog connects to the ACS logging system
 */
private LoggingClient(){
  super();
  initialize();
  archive=new ArchiveConnectionManager(this);
}

Fixed version (ground truth):
/** 
 * Build the object in online/offline mode 
 * @param initialConnectionStatus If true jlog connects to the ACS logging system
 */
private LoggingClient(){
  super();
  initialize();
  getLCModel1().setTimeFrame(userPreferences.getMillisecondsTimeFrame());
  getLCModel1().setMaxLog(userPreferences.getMaxNumOfLogs());
  archive=new ArchiveConnectionManager(this);
}
Program: 135010
Project: 135010
Buggy source:
/** 
 * Build the object in online/offline mode 
 * @param initialConnectionStatus If true jlog connects to the ACS logging system
 */
private LoggingClient(){
  super();
  initialize();
  archive=new ArchiveConnectionManager(this);
}

Fixed version (ground truth):
/** 
 * Build the object in online/offline mode 
 * @param initialConnectionStatus If true jlog connects to the ACS logging system
 */
private LoggingClient(){
  super();
  initialize();
  getLCModel1().setTimeFrame(userPreferences.getMillisecondsTimeFrame());
  getLCModel1().setMaxLog(userPreferences.getMaxNumOfLogs());
  archive=new ArchiveConnectionManager(this);
}
Program: 135014
Project: 135014
Buggy source:
/** 
 * Build the object in online/offline mode 
 * @param initialConnectionStatus If true jlog connects to the ACS logging system
 */
private LoggingClient(){
  super();
  initialize();
  archive=new ArchiveConnectionManager(this);
}

Fixed version (ground truth):
/** 
 * Build the object in online/offline mode 
 * @param initialConnectionStatus If true jlog connects to the ACS logging system
 */
private LoggingClient(){
  super();
  initialize();
  getLCModel1().setTimeFrame(userPreferences.getMillisecondsTimeFrame());
  getLCModel1().setMaxLog(userPreferences.getMaxNumOfLogs());
  archive=new ArchiveConnectionManager(this);
}
Program: 135017
Project: 135017
Buggy source:
public void componentsAvailable(List<ComponentDescriptor> comps){
  logger.info("String_Node_Str");
  if (sync != null) {
    sync.countDown();
  }
  allCompsAvailable.addAll(comps);
}

Fixed version (ground truth):
public synchronized void componentsAvailable(List<ComponentDescriptor> comps){
  logger.info("String_Node_Str");
  allCompsAvailable.addAll(comps);
  if (sync != null) {
    sync.countDown();
  }
}
Program: 135018
Project: 135018
Buggy source:
public void componentsUnavailable(List<String> compNames){
  logger.info("String_Node_Str");
  if (sync != null) {
    sync.countDown();
  }
  allCompNamesUnavailable.addAll(compNames);
}

Fixed version (ground truth):
public synchronized void componentsUnavailable(List<String> compNames){
  logger.info("String_Node_Str");
  allCompNamesUnavailable.addAll(compNames);
  if (sync != null) {
    sync.countDown();
  }
}
Program: 135019
Project: 135019
Buggy source:
/** 
 * Waits until <code>nCalls</code> notifications have been received since the call to <code>clearAndExpect(nCalls)</code>.
 */
public boolean awaitNotifications(long timeout,TimeUnit unit) throws InterruptedException {
  return sync.await(timeout,unit);
}

Fixed version (ground truth):
/** 
 * Waits until <code>nCalls</code> notifications have been received since the call to <code>clearAndExpect(nCalls)</code>.
 * @return true if the calls were received before the timeout (see {@link CountDownLatch#await(long,TimeUnit)}.
 */
public boolean awaitNotifications(long timeout,TimeUnit unit) throws InterruptedException {
  return sync.await(timeout,unit);
}
Program: 135020
Project: 135020
Buggy source:
public void clearAndExpect(int nCalls){
  allCompsAvailable.clear();
  allCompNamesUnavailable.clear();
  sync=new CountDownLatch(nCalls);
}

Fixed version (ground truth):
public synchronized void clearAndExpect(int nCalls){
  allCompsAvailable.clear();
  allCompNamesUnavailable.clear();
  sync=new CountDownLatch(nCalls);
}
Program: 135021
Project: 135021
Buggy source:
/** 
 * Logout from MACI.
 * @param id Handle of the Client that is logging out
 */
public void logout(int id) throws NoPermissionEx {
  pendingRequests.increment();
  try {
    if (isDebug())     new MessageLogEntry(this,"String_Node_Str",new java.lang.Object[]{new Integer(id)}).dispatch();
    manager.logout(id);
  }
 catch (  BadParametersException bpe) {
    BadParametersException hbpe=new BadParametersException(this,bpe.getMessage(),bpe);
    hbpe.caughtIn(this,"String_Node_Str");
    reportException(hbpe);
    throw new BAD_PARAM(bpe.getMessage());
  }
catch (  NoPermissionException npe) {
    NoPermissionException hnpe=new NoPermissionException(this,npe.getMessage(),npe);
    hnpe.caughtIn(this,"String_Node_Str");
    reportException(hnpe);
    AcsJNoPermissionEx ex=new AcsJNoPermissionEx();
    ex.setReason(npe.getMessage());
    throw ex.toNoPermissionEx();
  }
catch (  NoResourcesException nre) {
    NoResourcesException hnre=new NoResourcesException(this,nre.getMessage(),nre);
    hnre.caughtIn(this,"String_Node_Str");
    reportException(hnre);
    throw new NO_RESOURCES(nre.getMessage());
  }
catch (  Throwable ex) {
    CoreException hce=new CoreException(this,ex.getMessage(),ex);
    hce.caughtIn(this,"String_Node_Str");
    reportException(hce);
    throw new UNKNOWN(ex.getMessage());
  }
 finally {
    pendingRequests.decrement();
  }
}

Fixed version (ground truth):
/** 
 * Logout from MACI.
 * @param id Handle of the Client that is logging out
 */
public void logout(int id) throws NoPermissionEx {
  pendingRequests.increment();
  try {
    if (isDebug())     new MessageLogEntry(this,"String_Node_Str",new java.lang.Object[]{new Integer(id)}).dispatch();
    manager.logout(id);
  }
 catch (  AcsJNoPermissionEx npe) {
    reportException(npe);
    AcsJNoPermissionEx ex=new AcsJNoPermissionEx(npe);
    ex.setReason(npe.getReason());
    throw ex.toNoPermissionEx();
  }
catch (  BadParametersException bpe) {
    BadParametersException hbpe=new BadParametersException(this,bpe.getMessage(),bpe);
    hbpe.caughtIn(this,"String_Node_Str");
    reportException(hbpe);
    throw new BAD_PARAM(bpe.getMessage());
  }
catch (  NoResourcesException nre) {
    NoResourcesException hnre=new NoResourcesException(this,nre.getMessage(),nre);
    hnre.caughtIn(this,"String_Node_Str");
    reportException(hnre);
    throw new NO_RESOURCES(nre.getMessage());
  }
catch (  Throwable ex) {
    CoreException hce=new CoreException(this,ex.getMessage(),ex);
    hce.caughtIn(this,"String_Node_Str");
    reportException(hce);
    throw new UNKNOWN(ex.getMessage());
  }
 finally {
    pendingRequests.decrement();
  }
}
Program: 135022
Project: 135022
Buggy source:
/** 
 * Creates <code>m_componentPOA</code> as a child of the root POA. This POA will be the parent of the POAs for the individual components.  Uses <code>LifespanPolicyValue.PERSISTENT</code>.
 * @throws AcsJContainerServicesEx
 */
private void initPOAForComponents() throws AcsJContainerEx {
  if (m_componentPOA != null) {
    return;
  }
  try {
    m_compPolicies=new Policy[4];
    m_compPolicies[0]=m_rootPOA.create_id_assignment_policy(IdAssignmentPolicyValue.USER_ID);
    m_compPolicies[1]=m_rootPOA.create_lifespan_policy(LifespanPolicyValue.PERSISTENT);
    m_compPolicies[2]=m_rootPOA.create_servant_retention_policy(ServantRetentionPolicyValue.RETAIN);
    m_compPolicies[3]=m_rootPOA.create_request_processing_policy(RequestProcessingPolicyValue.USE_SERVANT_MANAGER);
    m_componentPOA=m_rootPOA.create_POA("String_Node_Str",sharedPoaManager,m_compPolicies);
    if (m_componentPOA != 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;
  }
}

Fixed version (ground truth):
/** 
 * Creates <code>m_componentPOA</code> as a child of the root POA. This POA will be the parent of the POAs for the individual components.  Uses <code>LifespanPolicyValue.PERSISTENT</code>.
 * @throws AcsJContainerServicesEx
 */
private void initPOAForComponents() throws AcsJContainerEx {
  if (m_componentPOA != null) {
    return;
  }
  try {
    m_compPolicies=new Policy[4];
    m_compPolicies[0]=m_rootPOA.create_id_assignment_policy(IdAssignmentPolicyValue.USER_ID);
    m_compPolicies[1]=m_rootPOA.create_lifespan_policy(LifespanPolicyValue.PERSISTENT);
    m_compPolicies[2]=m_rootPOA.create_servant_retention_policy(ServantRetentionPolicyValue.RETAIN);
    m_compPolicies[3]=m_rootPOA.create_request_processing_policy(RequestProcessingPolicyValue.USE_SERVANT_MANAGER);
    m_componentPOA=m_rootPOA.create_POA("String_Node_Str",sharedPoaManager,m_compPolicies);
    if (m_componentPOA == 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;
  }
}
Program: 135023
Project: 135023
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 (int polInd=0; polInd < contPolicies.length; polInd++) {
        contPolicies[polInd].destroy();
      }
    }
  }
}
Program: 135024
Project: 135024
Buggy source:
public org.omg.CORBA.Object getComponent(String curl) throws NotConnectedToManagerException {
  int hhhhh=myOwnMaciHandle();
  try {
    org.omg.CORBA.Object stub=myManagerReference().get_component(hhhhh,curl,true);
    log.fine("String_Node_Str" + curl + "String_Node_Str");
  }
 catch (  CannotGetComponentEx e) {
    AcsJCannotGetComponentEx je=new AcsJCannotGetComponentEx(e);
    je.setCURL(curl);
    je.log(log);
  }
catch (  ComponentNotAlreadyActivatedEx e) {
    AcsJCannotGetComponentEx je=new AcsJCannotGetComponentEx(e);
    je.setCURL(curl);
    je.log(log);
  }
catch (  ComponentConfigurationNotFoundEx e) {
    AcsJCannotGetComponentEx je=new AcsJCannotGetComponentEx(e);
    je.setCURL(curl);
    je.log(log);
  }
  return null;
}

Fixed version (ground truth):
public org.omg.CORBA.Object getComponent(String curl) throws NotConnectedToManagerException {
  Manager mgr=myManagerReference();
  int hhhhh=myOwnMaciHandle();
  try {
    org.omg.CORBA.Object stub=mgr.get_component(hhhhh,curl,true);
    log.fine("String_Node_Str" + curl + "String_Node_Str");
    return stub;
  }
 catch (  CannotGetComponentEx e) {
    AcsJCannotGetComponentEx je=new AcsJCannotGetComponentEx(e);
    je.setCURL(curl);
    je.log(log);
  }
catch (  ComponentNotAlreadyActivatedEx e) {
    AcsJCannotGetComponentEx je=new AcsJCannotGetComponentEx(e);
    je.setCURL(curl);
    je.log(log);
  }
catch (  ComponentConfigurationNotFoundEx e) {
    AcsJCannotGetComponentEx je=new AcsJCannotGetComponentEx(e);
    je.setCURL(curl);
    je.log(log);
  }
  return null;
}
Program: 135025
Project: 135025
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 ContainerException.
 * @throws ContainerException
 */
void loginToManager() throws ContainerException {
  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 ContainerException.
 * @throws ContainerException
 */
protected void loginToManager() throws ContainerException {
  Container thisContainer=_this(m_acsCorba.getORB());
  m_managerProxy.loginToManager(thisContainer,true);
}