nus-yam/ex-repair huggingface dataset:
Program: 134783
Project: 134783
Buggy source:
/** 
 * Release synchronization lock for named object.
 * @param name	name of the object whose lock to release.
 * @param release	set to <code>false</code> if there is no need to call releaseon synchronization lock.
 */
private void releaseSynchronizationObject(String name,boolean release){
synchronized (activationSynchronization) {
    ReferenceCountingLock lock=(ReferenceCountingLock)activationSynchronization.get(name);
    if (lock != null) {
      if (lock.decrement() <= 0)       activationSynchronization.remove(name);
      if (release)       lock.release();
    }
  }
}

Fixed version (ground truth):
/** 
 * Release synchronization lock for named object.
 * @param name	name of the object whose lock to release.
 * @param release	set to <code>false</code> if there is no need to call releaseon synchronization lock.
 */
private void releaseSynchronizationObject(String name,boolean release){
synchronized (activationSynchronization) {
    ReferenceCountingLock lock=activationSynchronization.get(name);
    if (lock != null) {
      if (lock.decrement() <= 0)       activationSynchronization.remove(name);
      if (release)       lock.release();
    }
  }
}
Program: 134784
Project: 134784
Buggy source:
/** 
 * Called from client code after all manager inicialization is done.
 */
public void initializationDone(){
  threadPool.execute(new Runnable(){
    public void run(){
      initializeServiceDaemons();
      autoStartComponents();
    }
  }
);
}

Fixed version (ground truth):
/** 
 * Called from client code after all manager initialization is done.
 */
public void initializationDone(){
  threadPool.execute(new Runnable(){
    public void run(){
      initializeServiceDaemons();
      autoStartComponents();
    }
  }
);
}
Program: 134786
Project: 134786
Buggy source:
/** 
 * Get manager for given domain.
 * @param domainName	domain name.
 * @return manager for given domain, <code>null</code> if not found.
 */
private synchronized Manager getManagerForDomain(String domainName){
  if (managerCache.containsKey(domainName))   return (Manager)managerCache.get(domainName);
  final Object obj=lookup(federationDirectory,dottedToHierarchical(domainName) + "String_Node_Str",null);
  if (obj == null)   return null;
  Manager remoteManager=new ManagerProxy(obj);
  managerCache.put(domainName,remoteManager);
  return remoteManager;
}

Fixed version (ground truth):
/** 
 * Get manager for given domain.
 * @param domainName	domain name.
 * @return manager for given domain, <code>null</code> if not found.
 */
private synchronized Manager getManagerForDomain(String domainName){
  if (managerCache.containsKey(domainName))   return managerCache.get(domainName);
  final Object obj=lookup(federationDirectory,dottedToHierarchical(domainName) + "String_Node_Str",null);
  if (obj == null)   return null;
  Manager remoteManager=new ManagerProxy(obj);
  managerCache.put(domainName,remoteManager);
  return remoteManager;
}
Program: 134788
Project: 134788
Buggy source:
/** 
 * Returns the defaultComponents.
 * @return Map
 */
public Map getDefaultComponents(){
  return defaultComponents;
}

Fixed version (ground truth):
/** 
 * Returns the defaultComponents.
 * @return Map
 */
public Map<String,ComponentInfo> getDefaultComponents(){
  return defaultComponents;
}
Program: 134790
Project: 134790
Buggy source:
/** 
 * Provices its own address to daemons.
 */
private void initializeServiceDaemons(){
  DAOProxy dao=getManagerDAOProxy();
  if (dao == null)   return;
  String[] daemons;
  try {
    daemons=dao.get_string_seq("String_Node_Str");
  }
 catch (  Throwable th) {
    logger.log(Level.WARNING,"String_Node_Str" + "String_Node_Str" + "String_Node_Str");
    return;
  }
  for (int i=0; i < daemons.length; i++) {
    try {
      ServiceDaemon daemon=transport.getServiceDaemon(daemons[i]);
      if (daemon != null)       daemon.setManagerReference(transport.getManagerReference());
 else       throw new RuntimeException("String_Node_Str" + daemons[i] + "String_Node_Str");
    }
 catch (    Throwable th) {
      logger.config("String_Node_Str" + daemons[i] + "String_Node_Str");
    }
  }
}

Fixed version (ground truth):
/** 
 * Provides its own address to daemons. <p>
 * @TODO : The manager should call this method regularly (e.g. once per minute), so that also restarted service daemons get the manager address. Or the daemons should resolve the naming service themselves and get it from there, with possible problems when using different subnets.
 */
private void initializeServiceDaemons(){
  DAOProxy dao=getManagerDAOProxy();
  if (dao == null)   return;
  String[] daemons;
  try {
    daemons=dao.get_string_seq("String_Node_Str");
  }
 catch (  Throwable th) {
    logger.log(Level.WARNING,"String_Node_Str" + "String_Node_Str" + "String_Node_Str");
    return;
  }
  for (int i=0; i < daemons.length; i++) {
    try {
      ServiceDaemon daemon=transport.getServiceDaemon(daemons[i]);
      if (daemon != null)       daemon.setManagerReference(transport.getManagerReference());
 else       throw new RuntimeException("String_Node_Str" + daemons[i] + "String_Node_Str");
    }
 catch (    Throwable th) {
      logger.config("String_Node_Str" + daemons[i] + "String_Node_Str");
    }
  }
}
Program: 134792
Project: 134792
Buggy source:
public char getChar(){
  return (char)_CDRArray[_bytePos++];
}

Fixed version (ground truth):
public char getChar(){
  return _CDRArray[_bytePos++];
}
Program: 134794
Project: 134794
Buggy source:
/** 
 * Raise alarm.
 * @param faultMember
 */
public void raise_alarm(String faultMember){
  if (!manager.hasActiveAlarm(clientInfo.getName()))   send_alarm(faultMember,ACSFaultState.ACTIVE);
}

Fixed version (ground truth):
/** 
 * Raise alarm.
 * @param faultMember
 */
private void raise_alarm(String faultMember){
  if (!manager.hasActiveAlarm(clientInfo.getName()))   send_alarm(faultMember,true);
}
Program: 134795
Project: 134795
Buggy source:
/** 
 * Clear alarm.
 * @param faultMember
 */
public void clear_alarm(String faultMember){
  if (manager.hasActiveAlarm(clientInfo.getName()))   send_alarm(faultMember,ACSFaultState.TERMINATE);
}

Fixed version (ground truth):
/** 
 * Clear alarm.
 * @param faultMember
 */
private void clear_alarm(String faultMember){
  if (manager.hasActiveAlarm(clientInfo.getName()))   send_alarm(faultMember,false);
}
Program: 134796
Project: 134796
Buggy source:
/** 
 * Convenience method for send_alarm with given state.
 * @param faultMember
 * @param state
 */
public void send_alarm(String faultMember,String state){
  if (alarmSource == null) {
    return;
  }
  try {
    alarmSource.raiseAlarm(FAULT_FAMILY,faultMember,FAULT_CODE);
    if (ACSFaultState.ACTIVE.equals(state)) {
      manager.alarmRaised(faultMember);
    }
 else     if (ACSFaultState.TERMINATE.equals(state)) {
      manager.alarmCleared(faultMember);
    }
  }
 catch (  Throwable th) {
  }
}

Fixed version (ground truth):
/** 
 * Convenience method for send_alarm with given state.
 * @param faultMember
 * @param state
 */
private void send_alarm(String faultMember,boolean raise){
  if (alarmSource == null) {
    return;
  }
  try {
    alarmSource.setAlarm(FAULT_FAMILY,faultMember,FAULT_CODE,raise);
    if (raise) {
      manager.alarmRaised(faultMember);
    }
 else {
      manager.alarmCleared(faultMember);
    }
  }
 catch (  Throwable th) {
  }
}
Program: 134797
Project: 134797
Buggy source:
/** 
 * Sets the time between calls to the loop action object, where the time for the task itself is included or not, depending on the chosen   {@link ScheduleDelayMode}. <p> If this method is called while the thread loop is already running, the task will be run again right after the currently running task has finished; only after that run we'll get into the proper delay timing. <p> Implementation note: If this method is called while the thread loop is already running,  it will stop the loop, apply the new value, and then re-start the loop.  It is a limitation in the underlying   {@link ScheduledThreadPoolExecutor}that the delay time cannot be changed without stopping and restarting the loop (= repetitive task). If this becomes a problem, we could use the concurrent lib classes in a more customized way.
 * @param delayTime new delay time
 * @param unit
 * @see #setDelayMode(ScheduleDelayMode)
 */
public void setDelayTime(final long delayTime,final TimeUnit unit){
  if (isDefunct.get()) {
    throw new IllegalStateException("String_Node_Str" + loopName + "String_Node_Str");
  }
  loopLock.lock();
  try {
    delayTimeNanos=TimeUnit.NANOSECONDS.convert(delayTime,unit);
    if (isLoopRunning()) {
      suspendLoop();
      taskWrapper.restartLoopAfterCurrentTaskFinished(new Runnable(){
        @Override public void run(){
          logger.finer("String_Node_Str" + loopName + "String_Node_Str");
          runLoop();
        }
      }
);
    }
  }
  finally {
    loopLock.unlock();
  }
}

Fixed version (ground truth):
/** 
 * Sets the time between calls to the loop action object, where the time for the task itself is included or not, depending on the chosen   {@link ScheduleDelayMode}. <p> If this method is called while the thread loop is already running, the task will be run again right after the currently running task has finished; only after that run we'll get into the proper delay timing. <p> Implementation note: If this method is called while the thread loop is already running,  it will stop the loop, apply the new value, and then re-start the loop.  It is a limitation in the underlying   {@link ScheduledThreadPoolExecutor}that the delay time cannot be changed without stopping and restarting the loop (= repetitive task). If this becomes a problem, we could use the concurrent lib classes in a more customized way.
 * @param delayTime new delay time
 * @param unit
 * @see #setDelayMode(ScheduleDelayMode)
 */
public void setDelayTime(final long delayTime,final TimeUnit unit){
  if (isDefunct.get()) {
    throw new IllegalStateException("String_Node_Str" + loopName + "String_Node_Str");
  }
  loopLock.lock();
  try {
    delayTimeNanos=TimeUnit.NANOSECONDS.convert(delayTime,unit);
    if (isLoopRunning()) {
      suspendLoop();
      if (isTaskRunning()) {
        taskWrapper.restartLoopAfterCurrentTaskFinished(new Runnable(){
          @Override public void run(){
            logger.finer("String_Node_Str" + loopName + "String_Node_Str");
            runLoop();
          }
        }
);
      }
 else {
        runLoop();
      }
    }
  }
  finally {
    loopLock.unlock();
  }
}
Program: 134799
Project: 134799
Buggy source:
/** 
 * Releases all clients that wait for a given container to log in, see   {@link #awaitContainerLogin(String,long,TimeUnit)}.
 * @see si.ijs.maci.AdministratorOperations#container_logged_in(si.ijs.maci.ContainerInfo,long,long)
 */
@Override public void container_logged_in(ContainerInfo info,long timestamp,long execution_id){
  String containerName=info.name;
synchronized (containerLoggedInSyncMap) {
    CountDownLatch sync=containerLoggedInSyncMap.get(containerName);
    if (sync != null) {
      sync.countDown();
      containerLoggedInSyncMap.remove(sync);
    }
  }
}

Fixed version (ground truth):
/** 
 * Releases all clients that wait for a given container to log in, see   {@link #awaitContainerLogin(String,long,TimeUnit)}.
 * @see si.ijs.maci.AdministratorOperations#container_logged_in(si.ijs.maci.ContainerInfo,long,long)
 */
@Override public void container_logged_in(ContainerInfo info,long timestamp,long execution_id){
  String containerName=info.name;
synchronized (containerLoggedInSyncMap) {
    CountDownLatch sync=containerLoggedInSyncMap.get(containerName);
    if (sync != null) {
      sync.countDown();
      containerLoggedInSyncMap.remove(containerName);
    }
  }
}
Program: 134800
Project: 134800
Buggy source:
/** 
 * Releases all clients that wait for a given container to log in, see   {@link #awaitContainerLogin(String,long,TimeUnit)}.
 * @see si.ijs.maci.AdministratorOperations#container_logged_in(si.ijs.maci.ContainerInfo,long,long)
 */
@Override public void container_logged_in(ContainerInfo info,long timestamp,long execution_id){
  String containerName=info.name;
synchronized (containerLoggedInSyncMap) {
    CountDownLatch sync=containerLoggedInSyncMap.get(containerName);
    if (sync != null) {
      sync.countDown();
    }
  }
}

Fixed version (ground truth):
/** 
 * Releases all clients that wait for a given container to log in, see   {@link #awaitContainerLogin(String,long,TimeUnit)}.
 * @see si.ijs.maci.AdministratorOperations#container_logged_in(si.ijs.maci.ContainerInfo,long,long)
 */
@Override public void container_logged_in(ContainerInfo info,long timestamp,long execution_id){
  String containerName=info.name;
synchronized (containerLoggedInSyncMap) {
    CountDownLatch sync=containerLoggedInSyncMap.get(containerName);
    if (sync != null) {
      sync.countDown();
      containerLoggedInSyncMap.remove(sync);
    }
  }
}
Program: 134801
Project: 134801
Buggy source:
/** 
 * This method checks if the guarded activity is due for execution, or if it should be skipped instead. <p> For the first call, it always returns true. Later it returns <code>true</code> if the last call to <code>check()</code>was longer ago than the <code>interval</code>  given in the constructor or in the <code>reset</code> methods,  and/or if the internal counter has been incremented more than <code>maxRepetitions</code>  by calls to   {@link #increment()} or {@link #checkAndIncrement()}.
 * @return <code>true</code> if guarded activity should be run, <code>false</code> if it should be skipped.
 */
public synchronized boolean check(){
  long now=System.nanoTime();
  if (firstTime) {
    firstTime=false;
    counterAtLastExecution=counter;
    counter=0;
    endTimeNs=now + intervalNs;
    return true;
  }
switch (evaluationMethod) {
case AND:
    if ((now >= endTimeNs) && (counter >= maxRepetitions)) {
      counterAtLastExecution=counter;
      counter=0;
      endTimeNs=now + intervalNs;
      return true;
    }
  return false;
case OR:
if ((now >= endTimeNs) || (counter >= maxRepetitions)) {
  counterAtLastExecution=counter;
  counter=0;
  endTimeNs=now + intervalNs;
  return true;
}
return false;
case TIMER:
if (now >= endTimeNs) {
counterAtLastExecution=counter;
counter=0;
endTimeNs=endTimeNs + intervalNs;
return true;
}
return false;
case COUNTER:
if (counter >= maxRepetitions) {
counterAtLastExecution=counter;
counter=0;
endTimeNs=now + intervalNs;
return true;
}
return false;
}
return false;
}

Fixed version (ground truth):
/** 
 * This method checks if the guarded activity is due for execution, or if it should be skipped instead. <p> For the first call, it always returns true. Later it returns <code>true</code> if the last call to <code>check()</code>was longer ago than the <code>interval</code>  given in the constructor or in the <code>reset</code> methods,  and/or if the internal counter has been incremented more than <code>maxRepetitions</code>  by calls to   {@link #increment()} or {@link #checkAndIncrement()}.
 * @return <code>true</code> if guarded activity should be run, <code>false</code> if it should be skipped.
 */
public synchronized boolean check(){
  long now=System.nanoTime();
  if (firstTime) {
    firstTime=false;
    counterAtLastExecution=counter;
    counter=0;
    endTimeNs=now + intervalNs;
    return true;
  }
switch (evaluationMethod) {
case AND:
    if ((now >= endTimeNs) && (counter >= maxRepetitions)) {
      counterAtLastExecution=counter;
      counter=0;
      endTimeNs=now + intervalNs;
      return true;
    }
  return false;
case OR:
if ((now >= endTimeNs) || (counter >= maxRepetitions)) {
  counterAtLastExecution=counter;
  counter=0;
  endTimeNs=now + intervalNs;
  return true;
}
return false;
case TIMER:
if (now >= endTimeNs) {
counterAtLastExecution=counter;
counter=0;
while (endTimeNs <= now) {
endTimeNs+=intervalNs;
}
return true;
}
return false;
case COUNTER:
if (counter >= maxRepetitions) {
counterAtLastExecution=counter;
counter=0;
endTimeNs=now + intervalNs;
return true;
}
return false;
}
return false;
}
Program: 134802
Project: 134802
Buggy source:
public void bindNonExpandedComponentXMLToAlmaBranch(Session session,Map<String,Object> parentMap,alma.TMCDB.maci.Component component){
  if (component.URN != null) {
    XMLHandler xmlSolver=new XMLHandler(false,m_logger);
    try {
      saxParser.parse(new InputSource(new StringReader(component.XMLDoc)),xmlSolver);
    }
 catch (    Exception e) {
      m_logger.log(AcsLogLevel.ERROR,"String_Node_Str" + component.Path + "String_Node_Str"+ component.getName(),e);
      return;
    }
    if (xmlSolver.m_errorString != null) {
      m_logger.log(AcsLogLevel.ERROR,"String_Node_Str" + component.Path + "String_Node_Str"+ component.getName()+ "String_Node_Str"+ xmlSolver.m_errorString);
      return;
    }
    DAOImpl dao=new ComponentDAOImplSaver(component,xmlSolver.m_rootNode,null,m_logger,true);
    bindToAlmaBranch(parentMap,component.getName(),component.Path,dao);
  }
 else {
    m_logger.finer("String_Node_Str" + component.Path + "String_Node_Str"+ component.getName());
    ComponentData componentData=new ComponentData();
    try {
      componentData.setData(component.XMLDoc);
    }
 catch (    Throwable e) {
      e.printStackTrace();
    }
    bindToAlmaBranch(parentMap,component.getName(),component.Path,componentData);
  }
}

Fixed version (ground truth):
public void bindNonExpandedComponentXMLToAlmaBranch(Session session,Map<String,Object> parentMap,alma.TMCDB.maci.Component component){
  if (component.URN != null) {
    XMLHandler xmlSolver=new XMLHandler(false,m_logger);
    try {
synchronized (xmlNodeMonitor) {
        saxParser.parse(new InputSource(new StringReader(component.XMLDoc)),xmlSolver);
      }
    }
 catch (    Exception e) {
      m_logger.log(AcsLogLevel.ERROR,"String_Node_Str" + component.Path + "String_Node_Str"+ component.getName(),e);
      return;
    }
    if (xmlSolver.m_errorString != null) {
      m_logger.log(AcsLogLevel.ERROR,"String_Node_Str" + component.Path + "String_Node_Str"+ component.getName()+ "String_Node_Str"+ xmlSolver.m_errorString);
      return;
    }
    DAOImpl dao=new ComponentDAOImplSaver(component,xmlSolver.m_rootNode,null,m_logger,true);
    bindToAlmaBranch(parentMap,component.getName(),component.Path,dao);
  }
 else {
    m_logger.finer("String_Node_Str" + component.Path + "String_Node_Str"+ component.getName());
    ComponentData componentData=new ComponentData();
    try {
      componentData.setData(component.XMLDoc);
    }
 catch (    Throwable e) {
      e.printStackTrace();
    }
    bindToAlmaBranch(parentMap,component.getName(),component.Path,componentData);
  }
}
Program: 134803
Project: 134803
Buggy source:
private void parseXML(String xml,XMLHandler xmlSolver) throws CDBXMLErrorEx {
  try {
    SAXParserFactory factory=SAXParserFactory.newInstance();
    SAXParser saxParser=factory.newSAXParser();
    saxParser.parse(new InputSource(new StringReader(xml)),xmlSolver);
    if (xmlSolver.m_errorString != null) {
      String info="String_Node_Str" + xmlSolver.m_errorString;
      CDBXMLErrorEx xmlErr=new CDBXMLErrorEx();
      m_logger.log(AcsLogLevel.NOTICE,info);
      throw xmlErr;
    }
  }
 catch (  Throwable t) {
    String info="String_Node_Str" + t.getMessage();
    m_logger.log(AcsLogLevel.NOTICE,info);
    AcsJCDBXMLErrorEx xmlErr=new AcsJCDBXMLErrorEx(t);
    xmlErr.setErrorString(info);
    throw xmlErr.toCDBXMLErrorEx();
  }
}

Fixed version (ground truth):
private void parseXML(String xml,XMLHandler xmlSolver) throws CDBXMLErrorEx {
  try {
    SAXParserFactory factory=SAXParserFactory.newInstance();
    SAXParser saxParser=factory.newSAXParser();
synchronized (xmlNodeMonitor) {
      saxParser.parse(new InputSource(new StringReader(xml)),xmlSolver);
    }
    if (xmlSolver.m_errorString != null) {
      String info="String_Node_Str" + xmlSolver.m_errorString;
      CDBXMLErrorEx xmlErr=new CDBXMLErrorEx();
      m_logger.log(AcsLogLevel.NOTICE,info);
      throw xmlErr;
    }
  }
 catch (  Throwable t) {
    String info="String_Node_Str" + t.getMessage();
    m_logger.log(AcsLogLevel.NOTICE,info);
    AcsJCDBXMLErrorEx xmlErr=new AcsJCDBXMLErrorEx(t);
    xmlErr.setErrorString(info);
    throw xmlErr.toCDBXMLErrorEx();
  }
}
Program: 134805
Project: 134805
Buggy source:
public void activate_component_async(int h,long execution_id,String name,String exe,String type,CBComponentInfo callback,CBDescIn desc){
  CBDescOut descOut=new CBDescOut(0,descOut.id_tag);
  try {
    ComponentInfo componentInfo=activate_component(h,execution_id,name,exe,type);
    callback.done(componentInfo,new alma.ACSErrTypeOK.wrappers.ACSErrOKAcsJCompletion().toCorbaCompletion(),descOut);
  }
 catch (  AcsJException ae) {
    callback.done(null,ae.toAcsJCompletion().toCorbaCompletion(),descOut);
  }
catch (  Throwable th) {
    AcsJException ae=new AcsJUnknownEx(th);
    callback.done(null,ae.toAcsJCompletion().toCorbaCompletion(),descOut);
  }
}

Fixed version (ground truth):
public void activate_component_async(int h,long execution_id,String name,String exe,String type,CBComponentInfo callback,CBDescIn desc){
  CBDescOut descOut=new CBDescOut(0,desc.id_tag);
  try {
    ComponentInfo componentInfo=activate_component(h,execution_id,name,exe,type);
    callback.done(componentInfo,new alma.ACSErrTypeOK.wrappers.ACSErrOKAcsJCompletion().toCorbaCompletion(),descOut);
  }
 catch (  CannotActivateComponentEx ae) {
    AcsJCannotActivateComponentEx aae=AcsJCannotActivateComponentEx.fromCannotActivateComponentEx(ae);
    callback.done(null,aae.toAcsJCompletion().toCorbaCompletion(),descOut);
  }
catch (  Throwable th) {
    AcsJException ae=new AcsJUnknownEx(th);
    callback.done(null,ae.toAcsJCompletion().toCorbaCompletion(),descOut);
  }
}
Program: 134807
Project: 134807
Buggy source:
public boolean equals(Object obj){
  if (this == obj)   return true;
  if (obj == null)   return false;
  if (getClass() != obj.getClass())   return false;
  ComponentData componentData=(ComponentData)obj;
  if (componentData.componentName.equals(this.componentName) && componentData.propertyName.equals(this.propertyName) && componentData.serialNumber.equals(this.serialNumber)&& componentData.index == this.index) {
    return true;
  }
  return false;
}

Fixed version (ground truth):
public boolean equals(Object obj){
  if (this == obj)   return true;
  if (obj == null)   return false;
  if (getClass() != obj.getClass())   return false;
  ComponentData componentData=(ComponentData)obj;
  if (componentData.componentName.equals(this.componentName) && componentData.propertyName.equals(this.propertyName) && componentData.serialNumber.equals(this.serialNumber)&& componentData.index.equals(this.index)) {
    return true;
  }
  return false;
}
Program: 134808
Project: 134808
Buggy source:
/** 
 * The alarm to clear is not sent directly to the alarm service. It is instead queued in   {@link AlarmSourceImpl#alarmsToClean} and will be cleared by the oscillation loop.
 */
@Override public void clearAlarm(String faultFamily,String faultMember,int faultCode){
  if (!enabled) {
    return;
  }
  if (queuing) {
    queue.add(faultFamily,faultMember,faultCode,null,false);
    return;
  }
  String id=buildAlarmID(faultFamily,faultMember,faultCode);
  alarmsToClean.putIfAbsent(id,System.currentTimeMillis());
}

Fixed version (ground truth):
/** 
 * The alarm to clear is not sent directly to the alarm service. It is instead queued in   {@link AlarmSourceImpl#alarmsToClean} and will be cleared by the oscillation loop.
 */
@Override public void clearAlarm(String faultFamily,String faultMember,int faultCode){
  if (!enabled) {
    return;
  }
  if (queuing) {
synchronized (queue) {
      queue.add(faultFamily,faultMember,faultCode,null,false);
    }
    return;
  }
  String id=buildAlarmID(faultFamily,faultMember,faultCode);
  alarmsToClean.putIfAbsent(id,System.currentTimeMillis());
}
Program: 134809
Project: 134809
Buggy source:
@Override public void raiseAlarm(String faultFamily,String faultMember,int faultCode,Properties properties){
  if (!enabled) {
    return;
  }
  if (queuing) {
    queue.add(faultFamily,faultMember,faultCode,properties,true);
    return;
  }
  String id=buildAlarmID(faultFamily,faultMember,faultCode);
  alarmsToClean.remove(id);
  if (!alarms.raise(id)) {
    alarmSender.sendAlarm(faultFamily,faultMember,faultCode,properties,true);
  }
}

Fixed version (ground truth):
@Override public void raiseAlarm(String faultFamily,String faultMember,int faultCode,Properties properties){
  if (!enabled) {
    return;
  }
  if (queuing) {
synchronized (queue) {
      queue.add(faultFamily,faultMember,faultCode,properties,true);
    }
    return;
  }
  String id=buildAlarmID(faultFamily,faultMember,faultCode);
  alarmsToClean.remove(id);
  if (!alarms.raise(id)) {
    alarmSender.sendAlarm(faultFamily,faultMember,faultCode,properties,true);
  }
}
Program: 134810
Project: 134810
Buggy source:
@Override public synchronized void flushAlarms(){
  queuing=false;
  if (flusherFuture != null) {
    flusherFuture.cancel(false);
  }
  AlarmToQueue[] temp=new AlarmToQueue[queue.size()];
  queue.values().toArray(temp);
  Thread thread=containerServices.getThreadFactory().newThread(new QueueFlusherTask(temp));
  thread.setName("String_Node_Str");
  thread.setDaemon(true);
  thread.start();
}

Fixed version (ground truth):
@Override public synchronized void flushAlarms(){
  queuing=false;
  if (flusherFuture != null) {
    flusherFuture.cancel(false);
  }
  AlarmToQueue[] temp;
synchronized (queue) {
    temp=new AlarmToQueue[queue.size()];
    queue.values().toArray(temp);
    queue.clear();
  }
  Thread thread=containerServices.getThreadFactory().newThread(new QueueFlusherTask(temp));
  thread.setName("String_Node_Str");
  thread.setDaemon(true);
  thread.start();
}
Program: 134811
Project: 134811
Buggy source:
@Override public synchronized void queueAlarms(){
  queuing=true;
}

Fixed version (ground truth):
@Override public void queueAlarms(){
  queuing=true;
}
Program: 134812
Project: 134812
Buggy source:
/** 
 * NOTE: <code>characteristic_component_ref</code> member of <code>CharacteristicComponentDesc</code> is always set to <code>null</code>.
 * @see alma.ACS.CharacteristicComponentOperations#descriptor()
 */
public CharacteristicComponentDesc descriptor(){
  if (characteristicComponentDesc == null) {
    PropertyDesc[] propertyDescriptors=null;
synchronized (properties) {
      int i=0;
      propertyDescriptors=new PropertyDesc[properties.size()];
      Iterator<PropertyOperations> iter=properties.keySet().iterator();
      while (iter.hasNext())       propertyDescriptors[i]=((PropertyImpl)iter.next()).getPropertyDescriptor();
    }
    characteristicComponentDesc=new CharacteristicComponentDesc(null,m_instanceName,propertyDescriptors,get_all_characteristics());
  }
  return characteristicComponentDesc;
}

Fixed version (ground truth):
/** 
 * NOTE: <code>characteristic_component_ref</code> member of <code>CharacteristicComponentDesc</code> is always set to <code>null</code>.
 * @see alma.ACS.CharacteristicComponentOperations#descriptor()
 */
public CharacteristicComponentDesc descriptor(){
  if (characteristicComponentDesc == null) {
    PropertyDesc[] propertyDescriptors=null;
synchronized (properties) {
      int i=0;
      propertyDescriptors=new PropertyDesc[properties.size()];
      Iterator<PropertyOperations> iter=properties.keySet().iterator();
      while (iter.hasNext())       propertyDescriptors[i++]=((PropertyImpl)iter.next()).getPropertyDescriptor();
    }
    characteristicComponentDesc=new CharacteristicComponentDesc(null,m_instanceName,propertyDescriptors,get_all_characteristics());
  }
  return characteristicComponentDesc;
}
Program: 134815
Project: 134815
Buggy source:
/** 
 * Initializes the Stop Button, and also performs on click, the stop of the Sampling.
 * @return javax.swing.JButton Reference to the Stop Button
 */
private JButton getStopButton(){
  if (stopButton == null) {
    stopButton=new JButton();
    stopButton.setIcon(new ImageIcon(getClass().getClassLoader().getResource("String_Node_Str")));
    stopButton.addActionListener(new java.awt.event.ActionListener(){
      public void actionPerformed(      ActionEvent arg0){
        pauseButton.setEnabled(false);
        stopSample();
        if (pausedGraph == true) {
          for (          DataPrinter i : samplers) {
            i.pauseSampling(false);
          }
          pausedGraph=false;
          pauseButton.setSelected(false);
        }
        timeSampSpinner.setEnabled(true);
        freqSpinner.setEnabled(true);
        stopButton.setEnabled(false);
        timeWindowSpinner.setEnabled(true);
      }
    }
);
  }
  return stopButton;
}

Fixed version (ground truth):
/** 
 * Initializes the Stop Button, and also performs on click, the stop of the Sampling.
 * @return javax.swing.JButton Reference to the Stop Button
 */
private JButton getStopButton(){
  if (stopButton == null) {
    stopButton=new JButton();
    stopButton.setIcon(new ImageIcon(getClass().getClassLoader().getResource("String_Node_Str")));
    stopButton.addActionListener(new java.awt.event.ActionListener(){
      public void actionPerformed(      ActionEvent arg0){
        pauseButton.setEnabled(false);
        stopSample();
        if (pausedGraph == true) {
          for (          DataPrinter i : samplers) {
            i.pauseSampling(false);
          }
          pausedGraph=false;
          pauseButton.setSelected(false);
        }
        timeSampSpinner.setEnabled(true);
        freqSpinner.setEnabled(true);
        timeWindowSpinner.setEnabled(true);
        stopButton.setEnabled(false);
      }
    }
);
  }
  return stopButton;
}
Program: 134816
Project: 134816
Buggy source:
private void stopSample(){
  if (isStopped)   return;
  isStopped=true;
  stopButton.setEnabled(false);
  pauseButton.setEnabled(false);
  startButton.setEnabled(true);
  getStatusComboBox().removeAllItems();
  getSaveButton().setEnabled(true);
  addToStatusComboBox("String_Node_Str");
  updateStatusComboBox();
  setStatusIcon(StatusIcon.CONNECTED_TO_SAMPMANAGER);
  for (  DataPrinter i : samplers) {
    i.stopSampling();
    if (getSaveButton().isSelected() == true) {
      if (i.isComponentAvailable() == true) {
        _sdc.addSamplingSet(((PlotPrinter)i).getFilename());
      }
    }
  }
  if (getSaveButton().isSelected() == true) {
    _sdc.dumpToFile();
  }
  for (  DataPrinter i : samplers) {
    if (getSaveButton().isSelected() == true) {
      if (i.isComponentAvailable() == true) {
        File temp=new File(((PlotPrinter)i).getFilename());
        temp.delete();
      }
    }
  }
}

Fixed version (ground truth):
private void stopSample(){
  if (isStopped)   return;
  isStopped=true;
  stopButton.setEnabled(false);
  pauseButton.setEnabled(false);
  startButton.setEnabled(true);
  model.clear();
  getSaveButton().setEnabled(true);
  addToStatusList("String_Node_Str");
  updateStatusList();
  setStatusIcon(StatusIcon.CONNECTED_TO_SAMPMANAGER);
  for (  DataPrinter i : samplers) {
    i.stopSampling();
    if (getSaveButton().isSelected() == true) {
      if (i.isComponentAvailable() == true) {
        _sdc.addSamplingSet(((PlotPrinter)i).getFilename());
      }
    }
  }
  if (getSaveButton().isSelected() == true) {
    _sdc.dumpToFile();
  }
  for (  DataPrinter i : samplers) {
    if (getSaveButton().isSelected() == true) {
      if (i.isComponentAvailable() == true) {
        File temp=new File(((PlotPrinter)i).getFilename());
        temp.delete();
      }
    }
  }
}
Program: 134818
Project: 134818
Buggy source:
@Override public void setTimeWindow(double frequency,int time){
  System.out.println("String_Node_Str");
}

Fixed version (ground truth):
public void setTimeWindow(double frequency,int time){
}
Program: 134820
Project: 134820
Buggy source:
public Object doInBackground(){
  fillPropertyComboBox(propList.get(k));
  return null;
}

Fixed version (ground truth):
public List<String> doInBackground(){
  ComponentComboBox.setEnabled(false);
  PropertyComboBox.setEnabled(false);
  List<String> list_=SampTool.getPropsForComponent(compList[k]);
  return list_;
}
Program: 134824
Project: 134824
Buggy source:
public void suppressedLog(boolean remoteLog){
  boolean firstSuppressed=(suppressedLocalLogCount.get() + suppressedRemoteLogCount.get() > 0);
  if (remoteLog) {
    suppressedRemoteLogCount.incrementAndGet();
  }
 else {
    suppressedLocalLogCount.incrementAndGet();
  }
  if (firstSuppressed) {
    if (logAlarmHandler != null && processName != null) {
      throttleAlarmFM=processName;
      try {
        logAlarmHandler.raiseAlarm(throttleAlarmFF,throttleAlarmFM,throttleAlarmFC);
        m_internalLogger.fine("String_Node_Str");
      }
 catch (      AcsJCouldntPerformActionEx ex) {
        m_internalLogger.severe("String_Node_Str");
      }
    }
 else {
      m_internalLogger.warning("String_Node_Str");
    }
  }
}

Fixed version (ground truth):
public void suppressedLog(boolean remoteLog){
  boolean firstSuppressed=(suppressedLocalLogCount.get() + suppressedRemoteLogCount.get() == 0);
  if (remoteLog) {
    suppressedRemoteLogCount.incrementAndGet();
  }
 else {
    suppressedLocalLogCount.incrementAndGet();
  }
  if (firstSuppressed) {
    if (logAlarmHandler != null && processName != null) {
      throttleAlarmFM=processName;
      try {
        logAlarmHandler.raiseAlarm(throttleAlarmFF,throttleAlarmFM,throttleAlarmFC);
        m_internalLogger.fine("String_Node_Str");
      }
 catch (      AcsJCouldntPerformActionEx ex) {
        m_internalLogger.severe("String_Node_Str");
      }
    }
 else {
      m_internalLogger.warning("String_Node_Str");
    }
  }
}
Program: 134826
Project: 134826
Buggy source:
/** 
 * Master component subclasses must call <code>super.cleanUp()</code> if they override this method!
 * @see alma.ACS.impl.CharacteristicComponentImpl#cleanUp()
 */
public void cleanUp() throws AcsJComponentCleanUpEx {
  try {
    subsysComponentMonitor.destroy(5,TimeUnit.SECONDS);
  }
 catch (  Exception e) {
    m_logger.log(Level.WARNING,"String_Node_Str",e);
  }
  try {
    if (stateChangeNotificationChecker != null) {
      stateChangeNotificationChecker.destroyMonitor();
    }
  }
 catch (  Exception e) {
    m_logger.log(Level.WARNING,"String_Node_Str",e);
  }
  try {
    m_stateMachine.cleanUp();
  }
 catch (  Exception e) {
    m_logger.log(Level.WARNING,"String_Node_Str",e);
  }
}

Fixed version (ground truth):
/** 
 * Master component subclasses must call <code>super.cleanUp()</code> if they override this method!
 * @see alma.ACS.impl.CharacteristicComponentImpl#cleanUp()
 */
public void cleanUp() throws AcsJComponentCleanUpEx {
  try {
    subsysComponentMonitor.destroy(5,TimeUnit.SECONDS);
  }
 catch (  Exception e) {
    m_logger.log(Level.WARNING,"String_Node_Str",e);
  }
  try {
    if (stateChangeNotificationChecker != null) {
      stateChangeNotificationChecker.destroyMonitor();
    }
  }
 catch (  Exception e) {
    m_logger.log(Level.WARNING,"String_Node_Str",e);
  }
  try {
    m_stateMachine.cleanUp();
  }
 catch (  Exception e) {
    m_logger.log(Level.WARNING,"String_Node_Str",e);
  }
  super.cleanUp();
}
Program: 134828
Project: 134828
Buggy source:
private DataElement getDef(TypeCode tc){
  int value=tc.kind().value();
switch (value) {
case TCKind._tk_struct:
    return getStructDef(tc);
case TCKind._tk_enum:
  return getEnumDef(tc);
case TCKind._tk_alias:
case TCKind._tk_sequence:
case TCKind._tk_array:
try {
  return getDef(tc.content_type());
}
 catch (org.omg.CORBA.TypeCodePackage.BadKind e) {
  e.printStackTrace();
  return null;
}
default :
return null;
}
}

Fixed version (ground truth):
private DataElement getDef(TypeCode tc){
  int value=tc.kind().value();
switch (value) {
case TCKind._tk_struct:
    try {
      if (structs.search(tc.id()) == -1)       return null;
      structs.push(tc.id());
      DataElement ret=getStructDef(tc);
      structs.pop();
      return ret;
    }
 catch (    org.omg.CORBA.TypeCodePackage.BadKind e) {
      e.printStackTrace();
      return null;
    }
case TCKind._tk_enum:
  return getEnumDef(tc);
case TCKind._tk_alias:
case TCKind._tk_sequence:
case TCKind._tk_array:
try {
  return getDef(tc.content_type());
}
 catch (org.omg.CORBA.TypeCodePackage.BadKind e) {
  e.printStackTrace();
  return null;
}
default :
return null;
}
}
Program: 134829
Project: 134829
Buggy source:
public Any insertTypedef(TypeCode tc,java.lang.Object obj){
  DynAny dany;
  try {
    dany=ra.getDynFact().create_dyn_any_from_type_code(tc);
  }
 catch (  org.omg.DynamicAny.DynAnyFactoryPackage.InconsistentTypeCode e) {
    e.printStackTrace();
    return null;
  }
  Class cl=getClassType(tc);
  DynStruct str=(DynStruct)dany;
  NameDynAnyPair[] mems=str.get_members_as_dyn_any();
  try {
    if (tc.kind() == TCKind.tk_struct) {
      DataStruct ds=(DataStruct)obj;
      for (int i=0; i < mems.length; i++) {
        mems[i].value.from_any(insertAny(mems[i].value.to_any(),ds.get(mems[i].id)));
      }
    }
 else {
      DataException de=(DataException)obj;
      for (int i=0; i < mems.length; i++) {
        mems[i].value.from_any(insertAny(mems[i].value.to_any(),de.get(mems[i].id)));
      }
    }
    str.set_members_as_dyn_any(mems);
  }
 catch (  org.omg.DynamicAny.DynAnyPackage.TypeMismatch e) {
    e.printStackTrace();
    return null;
  }
catch (  org.omg.DynamicAny.DynAnyPackage.InvalidValue e) {
    e.printStackTrace();
    return null;
  }
  displayAny(dany.to_any());
  return dany.to_any();
}

Fixed version (ground truth):
public Any insertTypedef(TypeCode tc,java.lang.Object obj){
  DynAny dany;
  try {
    dany=ra.getDynFact().create_dyn_any_from_type_code(tc);
  }
 catch (  org.omg.DynamicAny.DynAnyFactoryPackage.InconsistentTypeCode e) {
    e.printStackTrace();
    return null;
  }
  Class cl=getClassType(tc);
  DynStruct str=(DynStruct)dany;
  NameDynAnyPair[] mems=str.get_members_as_dyn_any();
  try {
    if (tc.kind() == TCKind.tk_struct) {
      DataStruct ds=(DataStruct)obj;
      for (int i=0; i < mems.length; i++) {
        mems[i].value.from_any(insertAny(mems[i].value.to_any(),ds.get(mems[i].id)));
      }
    }
 else {
      DataException de=(DataException)obj;
      for (int i=0; i < mems.length; i++) {
        mems[i].value.from_any(insertAny(mems[i].value.to_any(),de.get(mems[i].id)));
      }
    }
    str.set_members_as_dyn_any(mems);
  }
 catch (  org.omg.DynamicAny.DynAnyPackage.TypeMismatch e) {
    e.printStackTrace();
    return null;
  }
catch (  org.omg.DynamicAny.DynAnyPackage.InvalidValue e) {
    e.printStackTrace();
    return null;
  }
  return dany.to_any();
}
Program: 134831
Project: 134831
Buggy source:
private DataElement getDef(TypeCode tc){
  int value=tc.kind().value();
switch (value) {
case TCKind._tk_struct:
    return getStructDef(tc);
case TCKind._tk_enum:
  return getEnumDef(tc);
case TCKind._tk_alias:
case TCKind._tk_sequence:
case TCKind._tk_array:
try {
  return getDef(tc.content_type());
}
 catch (org.omg.CORBA.TypeCodePackage.BadKind e) {
  e.printStackTrace();
  return null;
}
default :
return null;
}
}

Fixed version (ground truth):
private DataElement getDef(TypeCode tc){
  int value=tc.kind().value();
switch (value) {
case TCKind._tk_struct:
    try {
      if (structs.search(tc.id()) == -1)       return null;
      structs.push(tc.id());
      DataElement ret=getStructDef(tc);
      structs.pop();
      return ret;
    }
 catch (    org.omg.CORBA.TypeCodePackage.BadKind e) {
      e.printStackTrace();
      return null;
    }
case TCKind._tk_enum:
  return getEnumDef(tc);
case TCKind._tk_alias:
case TCKind._tk_sequence:
case TCKind._tk_array:
try {
  return getDef(tc.content_type());
}
 catch (org.omg.CORBA.TypeCodePackage.BadKind e) {
  e.printStackTrace();
  return null;
}
default :
return null;
}
}
Program: 134832
Project: 134832
Buggy source:
public Any insertTypedef(TypeCode tc,java.lang.Object obj){
  DynAny dany;
  try {
    dany=ra.getDynFact().create_dyn_any_from_type_code(tc);
  }
 catch (  org.omg.DynamicAny.DynAnyFactoryPackage.InconsistentTypeCode e) {
    e.printStackTrace();
    return null;
  }
  Class cl=getClassType(tc);
  DynStruct str=(DynStruct)dany;
  NameDynAnyPair[] mems=str.get_members_as_dyn_any();
  try {
    if (tc.kind() == TCKind.tk_struct) {
      DataStruct ds=(DataStruct)obj;
      for (int i=0; i < mems.length; i++) {
        mems[i].value.from_any(insertAny(mems[i].value.to_any(),ds.get(mems[i].id)));
      }
    }
 else {
      DataException de=(DataException)obj;
      for (int i=0; i < mems.length; i++) {
        mems[i].value.from_any(insertAny(mems[i].value.to_any(),de.get(mems[i].id)));
      }
    }
    str.set_members_as_dyn_any(mems);
  }
 catch (  org.omg.DynamicAny.DynAnyPackage.TypeMismatch e) {
    e.printStackTrace();
    return null;
  }
catch (  org.omg.DynamicAny.DynAnyPackage.InvalidValue e) {
    e.printStackTrace();
    return null;
  }
  displayAny(dany.to_any());
  return dany.to_any();
}

Fixed version (ground truth):
public Any insertTypedef(TypeCode tc,java.lang.Object obj){
  DynAny dany;
  try {
    dany=ra.getDynFact().create_dyn_any_from_type_code(tc);
  }
 catch (  org.omg.DynamicAny.DynAnyFactoryPackage.InconsistentTypeCode e) {
    e.printStackTrace();
    return null;
  }
  Class cl=getClassType(tc);
  DynStruct str=(DynStruct)dany;
  NameDynAnyPair[] mems=str.get_members_as_dyn_any();
  try {
    if (tc.kind() == TCKind.tk_struct) {
      DataStruct ds=(DataStruct)obj;
      for (int i=0; i < mems.length; i++) {
        mems[i].value.from_any(insertAny(mems[i].value.to_any(),ds.get(mems[i].id)));
      }
    }
 else {
      DataException de=(DataException)obj;
      for (int i=0; i < mems.length; i++) {
        mems[i].value.from_any(insertAny(mems[i].value.to_any(),de.get(mems[i].id)));
      }
    }
    str.set_members_as_dyn_any(mems);
  }
 catch (  org.omg.DynamicAny.DynAnyPackage.TypeMismatch e) {
    e.printStackTrace();
    return null;
  }
catch (  org.omg.DynamicAny.DynAnyPackage.InvalidValue e) {
    e.printStackTrace();
    return null;
  }
  return dany.to_any();
}
Program: 134834
Project: 134834
Buggy source:
protected ClientLogManager(){
  sharedLogConfig=new LogConfig();
  try {
    sharedLogConfig.initialize(false);
  }
 catch (  LogConfigException ex) {
    System.err.println("String_Node_Str" + ex.toString());
  }
  parentRemoteLogger=Logger.getLogger("String_Node_Str");
  parentRemoteLogger.setUseParentHandlers(false);
  prepareRemoteLogging();
  m_internalLogger=getAcsLogger("String_Node_Str",LoggerOwnerType.OtherLogger);
  sharedLogConfig.setInternalLogger(m_internalLogger);
  LogThrottle.ThrottleCallback throttleCallback=new LogThrottle.ThrottleCallback(){
    public void clearedLogSuppression(){
    }
    public void suppressedLog(    boolean remoteLog){
    }
  }
;
  logThrottle=new LogThrottle(sharedLogConfig,throttleCallback);
  if (DEBUG) {
    m_internalLogger.fine("String_Node_Str");
  }
  sharedLogConfig.addSubscriber(this);
}

Fixed version (ground truth):
protected ClientLogManager(){
  sharedLogConfig=new LogConfig();
  try {
    sharedLogConfig.initialize(false);
    configureLogging(sharedLogConfig);
  }
 catch (  LogConfigException ex) {
    System.err.println("String_Node_Str" + ex.toString());
  }
  parentRemoteLogger=Logger.getLogger("String_Node_Str");
  parentRemoteLogger.setUseParentHandlers(false);
  prepareRemoteLogging();
  m_internalLogger=getAcsLogger("String_Node_Str",LoggerOwnerType.OtherLogger);
  sharedLogConfig.setInternalLogger(m_internalLogger);
  LogThrottle.ThrottleCallback throttleCallback=new LogThrottle.ThrottleCallback(){
    public void clearedLogSuppression(){
    }
    public void suppressedLog(    boolean remoteLog){
    }
  }
;
  logThrottle=new LogThrottle(sharedLogConfig,throttleCallback);
  if (DEBUG) {
    m_internalLogger.fine("String_Node_Str");
  }
  sharedLogConfig.addSubscriber(this);
}
Program: 134835
Project: 134835
Buggy source:
/** 
 * This method validates the XML files.
 * @param filename name with absolute path of the XML file to validate.
 */
protected void XMLValidate(Vector filename){
  System.out.println("String_Node_Str" + this.XMLPath);
  for (int i=0; i < filename.size(); i++) {
    File file=new File((String)filename.get(i));
    if (file.length() != 0) {
      if (verbose) {
        System.out.print("String_Node_Str" + (String)filename.get(i));
      }
      String targetNamespace;
      targetNamespace=((xsd_targetns.toString()).replace(',',' ')).replace('=',' ').replace('{',' ').replace('}',' ');
      CDBChecker.errorFlag=false;
      try {
        validateFileEncoding((String)filename.get(i));
        SP.reset();
        SP.setFeature("String_Node_Str",true);
        SP.setFeature("String_Node_Str",true);
        SP.setFeature("String_Node_Str",false);
        SP.setFeature("String_Node_Str",true);
        SP.setErrorHandler(new CDBErrorHandler());
        SP.setProperty("String_Node_Str",targetNamespace);
        SP.parse((String)filename.get(i));
        if (verbose && !errorFlag)         System.out.println("String_Node_Str");
      }
 catch (      SAXException e) {
        e.getMessage();
      }
catch (      IOException e) {
        System.out.println("String_Node_Str" + (String)filename.get(i) + "String_Node_Str");
      }
    }
 else {
      System.out.print((String)filename.get(i) + "String_Node_Str");
    }
  }
}

Fixed version (ground truth):
/** 
 * This method validates the XML files.
 * @param filename name with absolute path of the XML file to validate.
 */
protected void XMLValidate(Vector filename){
  System.out.println("String_Node_Str" + this.XMLPath);
  for (int i=0; i < filename.size(); i++) {
    File file=new File((String)filename.get(i));
    if (file.length() != 0) {
      if (verbose) {
        System.out.print("String_Node_Str" + (String)filename.get(i));
      }
      String targetNamespace;
      targetNamespace=((xsd_targetns.toString()).replace(',',' ')).replace('=',' ').replace('{',' ').replace('}',' ');
      CDBChecker.errorFlag=false;
      try {
        validateFileEncoding((String)filename.get(i));
        SP.reset();
        SP.setFeature("String_Node_Str",true);
        SP.setFeature("String_Node_Str",true);
        SP.setFeature("String_Node_Str",true);
        SP.setFeature("String_Node_Str",false);
        SP.setFeature("String_Node_Str",true);
        SP.setErrorHandler(new CDBErrorHandler());
        SP.setProperty("String_Node_Str",targetNamespace);
        SP.parse((String)filename.get(i));
        if (verbose && !errorFlag)         System.out.println("String_Node_Str");
      }
 catch (      SAXException e) {
        e.getMessage();
      }
catch (      IOException e) {
        System.out.println("String_Node_Str" + (String)filename.get(i) + "String_Node_Str");
      }
    }
 else {
      System.out.print((String)filename.get(i) + "String_Node_Str");
    }
  }
}
Program: 134836
Project: 134836
Buggy source:
/** 
 * Returns a reference to a new CORBA Any. Int Java the only way to do  this is through the ORB itself (i.e., the create_any method). <p> The notification channel module provides a convenience class for dealing with CORBA Anys, see   {@link @see alma.acs.nc.AnyAide}.
 * @return org.omg.CORBA.Any
 */
public org.omg.CORBA.Any getAny();

Fixed version (ground truth):
/** 
 * Returns a reference to a new CORBA Any. Int Java the only way to do  this is through the ORB itself (i.e., the create_any method). <p> The notification channel module provides a convenience class for dealing with CORBA Anys,  see   {@link alma.acs.nc.AnyAide}.
 * @return org.omg.CORBA.Any
 */
public org.omg.CORBA.Any getAny();