nus-yam/ex-repair huggingface dataset:
Program: 14511
Project: 14511
Buggy source:
@Override public void fireException(Throwable e){
  LOG.debug(e,e);
  LOG.debug("String_Node_Str" + this.getRequest().getVolumeId() + "String_Node_Str"+ this.getRequest().getInstanceId());
  try {
    VmInstance vm=VmInstances.lookup(this.getRequest().getInstanceId());
    Partition partition=vm.lookupPartition();
    ServiceConfiguration cc=Topology.lookup(ClusterController.class,partition);
    Cluster cluster=Clusters.lookup(cc);
    ServiceConfiguration sc=Topology.lookup(Storage.class,partition);
    try {
      String iqn=cluster.getNode(vm.getServiceTag()).getIqn();
      LOG.debug("String_Node_Str" + cluster.getName() + "String_Node_Str"+ iqn+ "String_Node_Str"+ sc);
      AsyncRequests.sendSync(sc,new DetachStorageVolumeType(iqn,this.getRequest().getVolumeId()));
    }
 catch (    Exception ex) {
      LOG.error(ex);
      Logs.extreme().error(ex,ex);
    }
    final Function<String,VmInstance> removeVolAttachment=new Function<String,VmInstance>(){
      public VmInstance apply(      final String input){
        VmInstance vm=VmInstances.lookup(input);
        vm.removeVolumeAttachment(VolumeAttachCallback.this.getRequest().getVolumeId());
        return vm;
      }
    }
;
    Entities.asTransaction(VmInstance.class,removeVolAttachment).apply(this.getRequest().getInstanceId());
    LOG.debug("String_Node_Str" + this.getRequest().getVolumeId() + "String_Node_Str"+ vm.getInstanceId());
  }
 catch (  Exception e1) {
    LOG.error(e1,e1);
  }
}

Fixed version (ground truth):
@Override public void fireException(Throwable e){
  LOG.debug(e);
  Logs.extreme().error(e,e);
  LOG.debug("String_Node_Str" + this.getRequest().getVolumeId() + "String_Node_Str"+ this.getRequest().getInstanceId());
  try {
    VmInstance vm=VmInstances.lookup(this.getRequest().getInstanceId());
    Partition partition=vm.lookupPartition();
    ServiceConfiguration sc=Topology.lookup(Storage.class,partition);
    try {
      LOG.debug("String_Node_Str" + this.getRequest().getVolumeId() + "String_Node_Str"+ sc);
      AsyncRequests.sendSync(sc,new DetachStorageVolumeType(this.getRequest().getVolumeId()));
    }
 catch (    Exception ex) {
      LOG.error(ex);
      Logs.extreme().error(ex,ex);
    }
    final Function<String,VmInstance> removeVolAttachment=new Function<String,VmInstance>(){
      public VmInstance apply(      final String input){
        VmInstance vm=VmInstances.lookup(input);
        vm.removeVolumeAttachment(VolumeAttachCallback.this.getRequest().getVolumeId());
        return vm;
      }
    }
;
    Entities.asTransaction(VmInstance.class,removeVolAttachment).apply(this.getRequest().getInstanceId());
    LOG.debug("String_Node_Str" + this.getRequest().getVolumeId() + "String_Node_Str"+ vm.getInstanceId());
  }
 catch (  Exception e1) {
    LOG.error(e1);
    Logs.extreme().error(e1,e1);
  }
}
Program: 14512
Project: 14512
Buggy source:
private static void cleanUpAttachedVolumes(final VmInstance vm){
  try {
    ServiceConfiguration ccConfig=Topology.lookup(ClusterController.class,vm.lookupPartition());
    final Cluster cluster=Clusters.lookup(ccConfig);
    vm.eachVolumeAttachment(new Predicate<VmVolumeAttachment>(){
      @Override public boolean apply(      final VmVolumeAttachment arg0){
        try {
          final ServiceConfiguration sc=Topology.lookup(Storage.class,vm.lookupPartition());
          if (VmStateSet.TERM.apply(vm) && !"String_Node_Str".equals(arg0.getDevice())) {
            try {
              vm.removeVolumeAttachment(arg0.getVolumeId());
            }
 catch (            NoSuchElementException ex) {
              Logs.extreme().debug(ex);
            }
          }
          try {
            AsyncRequests.sendSync(sc,new DetachStorageVolumeType(cluster.getNode(vm.getServiceTag()).getIqn(),arg0.getVolumeId()));
          }
 catch (          Exception ex) {
            LOG.debug(ex);
            Logs.extreme().debug(ex,ex);
          }
          if (VmStateSet.TERM.apply(vm) && arg0.getDeleteOnTerminate()) {
            AsyncRequests.sendSync(sc,new DeleteStorageVolumeType(arg0.getVolumeId()));
          }
          return true;
        }
 catch (        final Throwable e) {
          LOG.error("String_Node_Str" + arg0.getVolumeId() + "String_Node_Str"+ vm.getInstanceId()+ "String_Node_Str"+ e.getMessage(),e);
          return true;
        }
      }
    }
);
  }
 catch (  final Exception ex) {
    LOG.error("String_Node_Str" + vm.getInstanceId() + "String_Node_Str"+ vm.getPartition()+ "String_Node_Str");
  }
}

Fixed version (ground truth):
private static void cleanUpAttachedVolumes(final VmInstance vm){
  try {
    final ServiceConfiguration sc=Topology.lookup(Storage.class,vm.lookupPartition());
    vm.eachVolumeAttachment(new Predicate<VmVolumeAttachment>(){
      @Override public boolean apply(      final VmVolumeAttachment arg0){
        try {
          if (VmStateSet.TERM.apply(vm) && !"String_Node_Str".equals(arg0.getDevice())) {
            try {
              vm.removeVolumeAttachment(arg0.getVolumeId());
            }
 catch (            NoSuchElementException ex) {
              Logs.extreme().debug(ex);
            }
          }
          try {
            AsyncRequests.sendSync(sc,new DetachStorageVolumeType(arg0.getVolumeId()));
          }
 catch (          Exception ex) {
            LOG.debug(ex);
            Logs.extreme().debug(ex,ex);
          }
          if (VmStateSet.TERM.apply(vm) && arg0.getDeleteOnTerminate()) {
            AsyncRequests.sendSync(sc,new DeleteStorageVolumeType(arg0.getVolumeId()));
          }
          return true;
        }
 catch (        final Exception e) {
          LOG.error("String_Node_Str" + arg0.getVolumeId() + "String_Node_Str"+ vm.getInstanceId()+ "String_Node_Str"+ e.getMessage(),e);
          return true;
        }
      }
    }
);
  }
 catch (  final Exception ex) {
    LOG.error("String_Node_Str" + vm.getInstanceId() + "String_Node_Str"+ vm.getPartition()+ "String_Node_Str");
  }
}
Program: 14513
Project: 14513
Buggy source:
public byte[] handle(String path){
  String[] parts=path.split("String_Node_Str");
  try {
    MetadataRequest request=new MetadataRequest(parts[0],parts.length == 2 ? parts[1] : "String_Node_Str");
    if (instanceMetadataEndpoints.containsKey(request.getMetadataName()) && request.isInstance()) {
      return instanceMetadataEndpoints.get(request.getMetadataName()).apply(request).getBytes();
    }
 else     if (systemMetadataEndpoints.containsKey(request.getMetadataName()) && request.isSystem()) {
      return systemMetadataEndpoints.get(request.getMetadataName()).apply(request).getBytes();
    }
 else     if (publicMetadataEndpoints.containsKey(request.getMetadataName())) {
      return publicMetadataEndpoints.get(request.getMetadataName()).apply(request).getBytes();
    }
 else {
      return "String_Node_Str".getBytes();
    }
  }
 catch (  NoSuchElementException ex) {
    throw ex;
  }
catch (  Exception ex) {
    String errorMsg="String_Node_Str" + path + (Logs.isExtrrreeeme() ? "String_Node_Str" + ex.getMessage() : "String_Node_Str");
    LOG.error(errorMsg,ex);
    throw Exceptions.toUndeclared(ex);
  }
}

Fixed version (ground truth):
public byte[] handle(String path){
  String[] parts=path.split("String_Node_Str");
  try {
    MetadataRequest request=new MetadataRequest(parts[0],parts.length == 2 ? parts[1] : "String_Node_Str");
    if (instanceMetadataEndpoints.containsKey(request.getMetadataName()) && request.isInstance()) {
      return instanceMetadataEndpoints.get(request.getMetadataName()).apply(request).getBytes();
    }
 else     if (systemMetadataEndpoints.containsKey(request.getMetadataName()) && request.isSystem()) {
      return systemMetadataEndpoints.get(request.getMetadataName()).apply(request).getBytes();
    }
 else     if (publicMetadataEndpoints.containsKey(request.getMetadataName())) {
      return publicMetadataEndpoints.get(request.getMetadataName()).apply(request).getBytes();
    }
 else {
      throw new NoSuchElementException("String_Node_Str" + path);
    }
  }
 catch (  NoSuchElementException ex) {
    throw ex;
  }
catch (  Exception ex) {
    String errorMsg="String_Node_Str" + path + (Logs.isExtrrreeeme() ? "String_Node_Str" + ex.getMessage() : "String_Node_Str");
    LOG.error(errorMsg,ex);
    throw Exceptions.toUndeclared(ex);
  }
}
Program: 14514
Project: 14514
Buggy source:
@Override public Boolean call(){
  return logLevel.get().ordinal() >= this.ordinal();
}

Fixed version (ground truth):
@Override public Boolean call(){
  return logLevel.get().ordinal() <= this.ordinal();
}
Program: 14516
Project: 14516
Buggy source:
private ClusterAllocator(final Allocation allocInfo){
  this.allocInfo=allocInfo;
  final EntityTransaction db=Entities.get(VmInstance.class);
  try {
    this.cluster=Clusters.lookup(Topology.lookup(ClusterController.class,allocInfo.getPartition()));
    this.messages=new StatefulMessageSet<State>(this.cluster,State.values());
    this.setupVolumeMessages();
    this.setupNetworkMessages();
    db.commit();
  }
 catch (  final Exception e) {
    db.rollback();
    LOG.debug(e,e);
    this.allocInfo.abort();
    for (    final ResourceToken token : allocInfo.getAllocationTokens()) {
      try {
        final VmInstance vm=VmInstances.lookup(token.getInstanceId());
        vm.setState(VmState.TERMINATED,Reason.FAILED,e.getMessage());
      }
 catch (      final Exception e1) {
        LOG.debug(e1,e1);
      }
    }
    return;
  }
  try {
    for (    final ResourceToken token : allocInfo.getAllocationTokens()) {
      this.setupVmMessages(token);
    }
  }
 catch (  final Exception e) {
    LOG.debug(e,e);
    this.allocInfo.abort();
    for (    final ResourceToken token : allocInfo.getAllocationTokens()) {
      try {
        final VmInstance vm=VmInstances.lookup(token.getInstanceId());
        vm.setState(VmState.TERMINATED,Reason.FAILED,e.getMessage());
      }
 catch (      final Exception e1) {
        LOG.debug(e1,e1);
      }
    }
  }
}

Fixed version (ground truth):
private ClusterAllocator(final Allocation allocInfo){
  this.allocInfo=allocInfo;
  final EntityTransaction db=Entities.get(VmInstance.class);
  try {
    this.cluster=Clusters.lookup(Topology.lookup(ClusterController.class,allocInfo.getPartition()));
    this.messages=new StatefulMessageSet<State>(this.cluster,State.values());
    this.setupVolumeMessages();
    this.setupNetworkMessages();
    db.commit();
  }
 catch (  final Exception e) {
    db.rollback();
    LOG.error(e);
    Logs.extreme().error(e,e);
    this.allocInfo.abort();
    for (    final ResourceToken token : allocInfo.getAllocationTokens()) {
      try {
        final VmInstance vm=VmInstances.lookup(token.getInstanceId());
        VmInstances.terminated(vm);
        VmInstances.terminated(vm);
      }
 catch (      final Exception e1) {
        LOG.error(e1);
        Logs.extreme().error(e1,e1);
      }
    }
    return;
  }
  try {
    for (    final ResourceToken token : allocInfo.getAllocationTokens()) {
      this.setupVmMessages(token);
    }
  }
 catch (  final Exception e) {
    LOG.error(e);
    Logs.extreme().error(e,e);
    this.allocInfo.abort();
    for (    final ResourceToken token : allocInfo.getAllocationTokens()) {
      try {
        final VmInstance vm=VmInstances.lookup(token.getInstanceId());
        VmInstances.terminated(vm);
        VmInstances.terminated(vm);
      }
 catch (      final Exception e1) {
        LOG.error(e1);
        Logs.extreme().error(e1,e1);
      }
    }
  }
}
Program: 14517
Project: 14517
Buggy source:
/** 
 * @param volumes
 */
private void updateVolumeAttachments(final List<AttachedVolume> volumes){
  final EntityTransaction db=Entities.get(VmInstance.class);
  try {
    final VmInstance entity=Entities.merge(this);
    entity.getTransientVolumeState().updateVolumeAttachments(Lists.transform(volumes,VmVolumeAttachment.fromAttachedVolume(entity)));
    db.commit();
  }
 catch (  final Exception ex) {
    Logs.exhaust().error(ex,ex);
    db.rollback();
  }
}

Fixed version (ground truth):
/** 
 * @param volumes
 */
private void updateVolumeAttachments(final List<AttachedVolume> volumes){
  final EntityTransaction db=Entities.get(VmInstance.class);
  try {
    final VmInstance entity=Entities.merge(this);
    entity.getTransientVolumeState().updateVolumeAttachments(Lists.transform(volumes,VmVolumeAttachment.fromAttachedVolume(entity)));
    db.commit();
  }
 catch (  final Exception ex) {
    Logs.extreme().error(ex,ex);
    db.rollback();
  }
}
Program: 14519
Project: 14519
Buggy source:
private static Function<String,NetworkGroup> transformNetworkNames(final UserFullName userFullName){
  return new Function<String,NetworkGroup>(){
    @Override public NetworkGroup apply(    final String arg0){
      EntityTransaction db=Entities.get(NetworkGroup.class);
      try {
        SimpleExpression naturalId=Restrictions.like("String_Node_Str",arg0.replace(userFullName.getAccountNumber() + "String_Node_Str","String_Node_Str") + "String_Node_Str");
        final NetworkGroup result=(NetworkGroup)Entities.createCriteria(NetworkGroup.class).add(naturalId).uniqueResult();
        db.commit();
        return result;
      }
 catch (      Exception ex) {
        Logs.exhaust().error(ex,ex);
        db.rollback();
        throw Exceptions.toUndeclared(ex);
      }
    }
  }
;
}

Fixed version (ground truth):
private static Function<String,NetworkGroup> transformNetworkNames(final UserFullName userFullName){
  return new Function<String,NetworkGroup>(){
    @Override public NetworkGroup apply(    final String arg0){
      EntityTransaction db=Entities.get(NetworkGroup.class);
      try {
        SimpleExpression naturalId=Restrictions.like("String_Node_Str",arg0.replace(userFullName.getAccountNumber() + "String_Node_Str","String_Node_Str") + "String_Node_Str");
        final NetworkGroup result=(NetworkGroup)Entities.createCriteria(NetworkGroup.class).add(naturalId).uniqueResult();
        db.commit();
        return result;
      }
 catch (      Exception ex) {
        Logs.extreme().error(ex,ex);
        db.rollback();
        throw Exceptions.toUndeclared(ex);
      }
    }
  }
;
}
Program: 14521
Project: 14521
Buggy source:
/** 
 * @param volumeId
 * @return
 */
public VmVolumeAttachment lookupVolumeAttachment(final String volumeId){
  final EntityTransaction db=Entities.get(VmInstance.class);
  try {
    final VmInstance entity=Entities.merge(this);
    VmVolumeAttachment volumeAttachment=null;
    AttachedVolume ret=null;
    try {
      volumeAttachment=entity.getTransientVolumeState().lookupVolumeAttachment(volumeId);
    }
 catch (    final NoSuchElementException ex) {
      volumeAttachment=Iterables.find(entity.getBootRecord().getPersistentVolumes(),VmVolumeAttachment.volumeIdFilter(volumeId));
    }
    db.commit();
    return volumeAttachment;
  }
 catch (  final Exception ex) {
    Logs.exhaust().error(ex,ex);
    db.rollback();
    throw new NoSuchElementException("String_Node_Str" + volumeId);
  }
}

Fixed version (ground truth):
/** 
 * @param volumeId
 * @return
 */
public VmVolumeAttachment lookupVolumeAttachment(final String volumeId){
  final EntityTransaction db=Entities.get(VmInstance.class);
  try {
    final VmInstance entity=Entities.merge(this);
    VmVolumeAttachment volumeAttachment=null;
    try {
      volumeAttachment=entity.getTransientVolumeState().lookupVolumeAttachment(volumeId);
    }
 catch (    final NoSuchElementException ex) {
      volumeAttachment=Iterables.find(entity.getBootRecord().getPersistentVolumes(),VmVolumeAttachment.volumeIdFilter(volumeId));
    }
    db.commit();
    return volumeAttachment;
  }
 catch (  final Exception ex) {
    Logs.extreme().error(ex,ex);
    db.rollback();
    throw new NoSuchElementException("String_Node_Str" + volumeId);
  }
}
Program: 14522
Project: 14522
Buggy source:
/** 
 * @param predicate
 * @return
 */
public VmVolumeAttachment lookupVolumeAttachmentByDevice(final String volumeDevice){
  final EntityTransaction db=Entities.get(VmInstance.class);
  try {
    final VmInstance entity=Entities.merge(this);
    VmVolumeAttachment ret;
    try {
      ret=entity.getTransientVolumeState().lookupVolumeAttachmentByDevice(volumeDevice);
    }
 catch (    final Exception ex) {
      ret=Iterables.find(entity.getBootRecord().getPersistentVolumes(),VmVolumeAttachment.volumeDeviceFilter(volumeDevice));
    }
    db.commit();
    return ret;
  }
 catch (  final NoSuchElementException ex) {
    Logs.exhaust().error(ex,ex);
    db.rollback();
    throw ex;
  }
catch (  final Exception ex) {
    Logs.exhaust().error(ex,ex);
    db.rollback();
    throw new NoSuchElementException("String_Node_Str" + volumeDevice);
  }
}

Fixed version (ground truth):
/** 
 * @param predicate
 * @return
 */
public VmVolumeAttachment lookupVolumeAttachmentByDevice(final String volumeDevice){
  final EntityTransaction db=Entities.get(VmInstance.class);
  try {
    final VmInstance entity=Entities.merge(this);
    VmVolumeAttachment ret;
    try {
      ret=entity.getTransientVolumeState().lookupVolumeAttachmentByDevice(volumeDevice);
    }
 catch (    final Exception ex) {
      ret=Iterables.find(entity.getBootRecord().getPersistentVolumes(),VmVolumeAttachment.volumeDeviceFilter(volumeDevice));
    }
    db.commit();
    return ret;
  }
 catch (  final NoSuchElementException ex) {
    Logs.extreme().error(ex,ex);
    db.rollback();
    throw ex;
  }
catch (  final Exception ex) {
    Logs.extreme().error(ex,ex);
    db.rollback();
    throw new NoSuchElementException("String_Node_Str" + volumeDevice);
  }
}
Program: 14523
Project: 14523
Buggy source:
/** 
 * @param volumeId
 * @param newState
 */
public void updateVolumeAttachment(final String volumeId,final AttachmentState newState){
  final EntityTransaction db=Entities.get(VmInstance.class);
  try {
    final VmInstance entity=Entities.merge(this);
    entity.getTransientVolumeState().updateVolumeAttachment(volumeId,newState);
    db.commit();
  }
 catch (  final Exception ex) {
    Logs.exhaust().error(ex,ex);
    db.rollback();
  }
}

Fixed version (ground truth):
/** 
 * @param volumeId
 * @param newState
 */
public void updateVolumeAttachment(final String volumeId,final AttachmentState newState){
  final EntityTransaction db=Entities.get(VmInstance.class);
  try {
    final VmInstance entity=Entities.merge(this);
    entity.getTransientVolumeState().updateVolumeAttachment(volumeId,newState);
    db.commit();
  }
 catch (  final Exception ex) {
    Logs.extreme().error(ex,ex);
    db.rollback();
  }
}
Program: 14524
Project: 14524
Buggy source:
/** 
 * @param predicate
 * @return
 */
public boolean eachVolumeAttachment(final Predicate<VmVolumeAttachment> predicate){
  final EntityTransaction db=Entities.get(VmInstance.class);
  try {
    final VmInstance entity=Entities.merge(this);
    boolean ret=entity.getTransientVolumeState().eachVolumeAttachment(new Predicate<VmVolumeAttachment>(){
      @Override public boolean apply(      final VmVolumeAttachment arg0){
        return predicate.apply(arg0);
      }
    }
);
    ret|=Iterables.all(entity.getBootRecord().getPersistentVolumes(),new Predicate<VmVolumeAttachment>(){
      @Override public boolean apply(      final VmVolumeAttachment arg0){
        return predicate.apply(arg0);
      }
    }
);
    db.commit();
    return ret;
  }
 catch (  final Exception ex) {
    Logs.exhaust().error(ex,ex);
    db.rollback();
    return false;
  }
}

Fixed version (ground truth):
/** 
 * @param predicate
 * @return
 */
public boolean eachVolumeAttachment(final Predicate<VmVolumeAttachment> predicate){
  final EntityTransaction db=Entities.get(VmInstance.class);
  try {
    final VmInstance entity=Entities.merge(this);
    boolean ret=entity.getTransientVolumeState().eachVolumeAttachment(new Predicate<VmVolumeAttachment>(){
      @Override public boolean apply(      final VmVolumeAttachment arg0){
        return predicate.apply(arg0);
      }
    }
);
    ret|=Iterables.all(entity.getBootRecord().getPersistentVolumes(),new Predicate<VmVolumeAttachment>(){
      @Override public boolean apply(      final VmVolumeAttachment arg0){
        return predicate.apply(arg0);
      }
    }
);
    db.commit();
    return ret;
  }
 catch (  final Exception ex) {
    Logs.extreme().error(ex,ex);
    db.rollback();
    return false;
  }
}
Program: 14525
Project: 14525
Buggy source:
/** 
 * @param stopping
 * @param reason
 */
public void setState(final VmState stopping,final Reason reason,final String... extra){
  final EntityTransaction db=Entities.get(VmInstance.class);
  try {
    final VmInstance entity=Entities.merge(this);
    entity.runtimeState.setState(stopping,reason,extra);
    if (VmStateSet.DONE.apply(entity)) {
      entity.cleanUp();
    }
    db.commit();
  }
 catch (  final Exception ex) {
    Logs.exhaust().error(ex,ex);
    db.rollback();
    throw new RuntimeException(ex);
  }
}

Fixed version (ground truth):
/** 
 * @param stopping
 * @param reason
 */
public void setState(final VmState stopping,final Reason reason,final String... extra){
  final EntityTransaction db=Entities.get(VmInstance.class);
  try {
    final VmInstance entity=Entities.merge(this);
    entity.runtimeState.setState(stopping,reason,extra);
    if (VmStateSet.DONE.apply(entity)) {
      entity.cleanUp();
    }
    db.commit();
  }
 catch (  final Exception ex) {
    Logs.extreme().error(ex,ex);
    db.rollback();
    throw new RuntimeException(ex);
  }
}
Program: 14526
Project: 14526
Buggy source:
@Override public boolean shareSameAccount(String userId1,String userId2){
  if (userId1.equals(userId2)) {
    return true;
  }
  if (userId1 == null || userId2 == null) {
    return false;
  }
  try {
    User user1=lookupUserById(userId1);
    User user2=lookupUserById(userId2);
    if (user1.getAccount().getAccountNumber().equals(user2.getAccount().getAccountNumber())) {
      return true;
    }
  }
 catch (  AuthException e) {
    LOG.warn("String_Node_Str",e);
  }
  return false;
}

Fixed version (ground truth):
@Override public boolean shareSameAccount(String userId1,String userId2){
  if (userId1 == null || userId2 == null) {
    return false;
  }
  if (userId1.equals(userId2)) {
    return true;
  }
  try {
    User user1=lookupUserById(userId1);
    User user2=lookupUserById(userId2);
    if (user1.getAccount().getAccountNumber().equals(user2.getAccount().getAccountNumber())) {
      return true;
    }
  }
 catch (  AuthException e) {
    LOG.warn("String_Node_Str",e);
  }
  return false;
}
Program: 14527
Project: 14527
Buggy source:
public static ValueChecker createPathChecker(){
  return new ValueChecker(){
    @Override public String check(    String value) throws InvalidValueException {
      if (value != null && !value.startsWith("String_Node_Str")) {
        throw new InvalidValueException("String_Node_Str");
      }
      for (int i=0; i < value.length(); i++) {
        char c=value.charAt(i);
        if (c < 0x21 || c > 0x7E) {
          throw new InvalidValueException("String_Node_Str" + c);
        }
      }
      return value;
    }
  }
;
}

Fixed version (ground truth):
public static ValueChecker createPathChecker(){
  return new ValueChecker(){
    @Override public String check(    String value) throws InvalidValueException {
      if (value == null || (value != null && !value.startsWith("String_Node_Str"))) {
        throw new InvalidValueException("String_Node_Str");
      }
      for (int i=0; i < value.length(); i++) {
        char c=value.charAt(i);
        if (c < 0x21 || c > 0x7E) {
          throw new InvalidValueException("String_Node_Str" + c);
        }
      }
      return value;
    }
  }
;
}
Program: 14529
Project: 14529
Buggy source:
private static String sanitizePath(String path){
  if (path == null || "String_Node_Str".equals(path)) {
    return "String_Node_Str";
  }
 else   if (!"String_Node_Str".equals(path)) {
    if (path.endsWith("String_Node_Str")) {
      path=path.substring(0,path.length() - 1);
    }
  }
  return path;
}

Fixed version (ground truth):
private static String sanitizePath(String path){
  if (path == null || "String_Node_Str".equals(path)) {
    return "String_Node_Str";
  }
  return path;
}
Program: 14531
Project: 14531
Buggy source:
@Override public List<Policy> getPolicies(){
  return null;
}

Fixed version (ground truth):
@Override public List<Policy> getPolicies(){
  return new ArrayList<Policy>();
}
Program: 14532
Project: 14532
Buggy source:
@Override public void saveValue(ArrayList<String> keys,ArrayList<HasValueWidget> values){
  if (values == null || values.size() < 1 || this.currentSelected == null) {
    clientFactory.getShellView().getFooterView().showStatus(StatusType.ERROR,"String_Node_Str",FooterView.DEFAULT_STATUS_CLEAR_DELAY);
  }
  final SearchResultRow result=new SearchResultRow();
  result.setExtraFieldDescs(this.currentSelected.getExtraFieldDescs());
  for (int i=0; i < values.size(); i++) {
    result.addField(values.get(i).getValue());
  }
  this.clientFactory.getShellView().getFooterView().showStatus(StatusType.LOADING,"String_Node_Str",0);
  this.clientFactory.getBackendService().setConfiguration(this.clientFactory.getLocalSession().getSession(),result,new AsyncCallback<Void>(){
    @Override public void onFailure(    Throwable cause){
      ActivityUtil.logoutForInvalidSession(clientFactory,cause);
      clientFactory.getShellView().getFooterView().showStatus(StatusType.ERROR,"String_Node_Str",FooterView.DEFAULT_STATUS_CLEAR_DELAY);
      clientFactory.getShellView().getLogView().log(LogType.ERROR,"String_Node_Str" + result);
    }
    @Override public void onSuccess(    Void arg0){
      clientFactory.getShellView().getFooterView().showStatus(StatusType.NONE,"String_Node_Str",FooterView.DEFAULT_STATUS_CLEAR_DELAY);
      clientFactory.getShellView().getLogView().log(LogType.INFO,"String_Node_Str" + result);
      clientFactory.getShellView().getDetailView().disableSave();
      reloadCurrentRange();
    }
  }
);
}

Fixed version (ground truth):
@Override public void saveValue(ArrayList<String> keys,ArrayList<HasValueWidget> values){
  if (values == null || values.size() < 1 || this.currentSelected == null) {
    clientFactory.getShellView().getFooterView().showStatus(StatusType.ERROR,"String_Node_Str",FooterView.DEFAULT_STATUS_CLEAR_DELAY);
    LOG.log(Level.WARNING,"String_Node_Str");
    return;
  }
  final SearchResultRow result=new SearchResultRow();
  result.setExtraFieldDescs(this.currentSelected.getExtraFieldDescs());
  for (int i=0; i < values.size(); i++) {
    result.addField(values.get(i).getValue());
  }
  this.clientFactory.getShellView().getFooterView().showStatus(StatusType.LOADING,"String_Node_Str",0);
  this.clientFactory.getBackendService().setConfiguration(this.clientFactory.getLocalSession().getSession(),result,new AsyncCallback<Void>(){
    @Override public void onFailure(    Throwable cause){
      ActivityUtil.logoutForInvalidSession(clientFactory,cause);
      clientFactory.getShellView().getFooterView().showStatus(StatusType.ERROR,"String_Node_Str",FooterView.DEFAULT_STATUS_CLEAR_DELAY);
      clientFactory.getShellView().getLogView().log(LogType.ERROR,"String_Node_Str" + result);
    }
    @Override public void onSuccess(    Void arg0){
      clientFactory.getShellView().getFooterView().showStatus(StatusType.NONE,"String_Node_Str",FooterView.DEFAULT_STATUS_CLEAR_DELAY);
      clientFactory.getShellView().getLogView().log(LogType.INFO,"String_Node_Str" + result);
      clientFactory.getShellView().getDetailView().disableSave();
      reloadCurrentRange();
    }
  }
);
}
Program: 14534
Project: 14534
Buggy source:
@Override public void onClick(ClickEvent event){
  HasValueWidget widget=getContentWidget(Type.KEYVAL,keyInput.getValue(),valueInput.getValue(),true);
  addRow(keyInput.getValue(),new Label(keyInput.getValue()),widget,currentGrid.getRowCount() - 1);
  keyInput.setValue(NEW_KEY);
  valueInput.setValue("String_Node_Str");
  showSaveButton();
}

Fixed version (ground truth):
@Override public void onClick(ClickEvent event){
  HasValueWidget widget=getContentWidget(Type.KEYVAL,keyInput.getValue(),valueInput.getValue(),true);
  if (widget == null) {
    LOG.log(Level.WARNING,"String_Node_Str");
    return;
  }
  addRow(keyInput.getValue(),new Label(keyInput.getValue()),widget,currentGrid.getRowCount() - 1);
  keyInput.setValue(NEW_KEY);
  valueInput.setValue("String_Node_Str");
  showSaveButton();
}
Program: 14535
Project: 14535
Buggy source:
private void addNewKeyValRow(final int rowIndex){
  LOG.log(Level.INFO,"String_Node_Str");
  final TextBox keyInput=new TextBox();
  keyInput.setValue(NEW_KEY);
  final InputWithButton valueInput=new InputWithButton();
  valueInput.setType(IconButton.Type.add);
  valueInput.addClickHandler(new ClickHandler(){
    @Override public void onClick(    ClickEvent event){
      HasValueWidget widget=getContentWidget(Type.KEYVAL,keyInput.getValue(),valueInput.getValue(),true);
      addRow(keyInput.getValue(),new Label(keyInput.getValue()),widget,currentGrid.getRowCount() - 1);
      keyInput.setValue(NEW_KEY);
      valueInput.setValue("String_Node_Str");
      showSaveButton();
    }
  }
);
  currentGrid.setWidget(rowIndex,0,keyInput);
  currentGrid.setWidget(rowIndex,1,valueInput);
}

Fixed version (ground truth):
private void addNewKeyValRow(final int rowIndex){
  LOG.log(Level.INFO,"String_Node_Str");
  final TextBox keyInput=new TextBox();
  keyInput.setValue(NEW_KEY);
  final InputWithButton valueInput=new InputWithButton();
  valueInput.setType(IconButton.Type.add);
  valueInput.addClickHandler(new ClickHandler(){
    @Override public void onClick(    ClickEvent event){
      HasValueWidget widget=getContentWidget(Type.KEYVAL,keyInput.getValue(),valueInput.getValue(),true);
      if (widget == null) {
        LOG.log(Level.WARNING,"String_Node_Str");
        return;
      }
      addRow(keyInput.getValue(),new Label(keyInput.getValue()),widget,currentGrid.getRowCount() - 1);
      keyInput.setValue(NEW_KEY);
      valueInput.setValue("String_Node_Str");
      showSaveButton();
    }
  }
);
  currentGrid.setWidget(rowIndex,0,keyInput);
  currentGrid.setWidget(rowIndex,1,valueInput);
}
Program: 14536
Project: 14536
Buggy source:
private void displayFields(ArrayList<InputField> fields){
  if (fields == null || fields.size() < 1) {
    return;
  }
  this.fields=fields;
  this.inputs=Lists.newArrayList();
  grid=new Grid(fields.size(),3);
  grid.addStyleName(gridStyle.grid());
  grid.getColumnFormatter().setWidth(0,TITLE_WIDTH);
  grid.getColumnFormatter().setWidth(1,INPUT_WIDTH);
  grid.getColumnFormatter().setWidth(1,INDICATOR_WIDTH);
  for (int i=0; i < fields.size(); i++) {
    InputField field=fields.get(i);
    if (field == null) {
      continue;
    }
    grid.setText(i,0,field.getTitle());
    HasValueWidget widget=getHasValueWidget(field.getType(),field.getChecker());
    inputs.add(widget);
    grid.setWidget(i,1,widget.getWidget());
    grid.setHTML(i,2,"String_Node_Str");
  }
  this.contentPanel.setWidget(grid);
}

Fixed version (ground truth):
private void displayFields(ArrayList<InputField> fields){
  if (fields == null || fields.size() < 1) {
    return;
  }
  this.fields=fields;
  this.inputs=Lists.newArrayList();
  grid=new Grid(fields.size(),3);
  grid.addStyleName(gridStyle.grid());
  grid.getColumnFormatter().setWidth(0,TITLE_WIDTH);
  grid.getColumnFormatter().setWidth(1,INPUT_WIDTH);
  grid.getColumnFormatter().setWidth(1,INDICATOR_WIDTH);
  for (int i=0; i < fields.size(); i++) {
    InputField field=fields.get(i);
    if (field == null) {
      continue;
    }
    grid.setText(i,0,field.getTitle());
    HasValueWidget widget=getHasValueWidget(field.getType(),field.getChecker());
    if (widget == null) {
      LOG.log(Level.WARNING,"String_Node_Str" + field.getType());
      continue;
    }
    inputs.add(widget);
    grid.setWidget(i,1,widget.getWidget());
    grid.setHTML(i,2,"String_Node_Str");
  }
  this.contentPanel.setWidget(grid);
}
Program: 14537
Project: 14537
Buggy source:
private static SearchResultRow serializePolicy(Policy policy,Account account,Group group,User user){
  SearchResultRow result=new SearchResultRow();
  result.addField(policy.getPolicyId());
  result.addField(policy.getName());
  result.addField(policy.getVersion());
  result.addField(account != null ? account.getName() : "String_Node_Str");
  result.addField(group != null ? group.getName() : "String_Node_Str");
  result.addField(user != null ? user.getName() : "String_Node_Str");
  if (user != null) {
    result.addField(QueryBuilder.get().start(QueryType.user).add(ID,user.getUserId()).url());
  }
 else   if (group != null) {
    result.addField(QueryBuilder.get().start(QueryType.group).add(ID,group.getGroupId()).url());
  }
 else {
    result.addField(QueryBuilder.get().start(QueryType.account).add(ID,account.getAccountNumber()).url());
  }
  result.addField(policy.getText());
  return result;
}

Fixed version (ground truth):
private static SearchResultRow serializePolicy(Policy policy,Account account,Group group,User user){
  SearchResultRow result=new SearchResultRow();
  result.addField(policy.getPolicyId());
  result.addField(policy.getName());
  result.addField(policy.getVersion());
  result.addField(account != null ? account.getName() : "String_Node_Str");
  result.addField(group != null ? group.getName() : "String_Node_Str");
  result.addField(user != null ? user.getName() : "String_Node_Str");
  if (user != null) {
    result.addField(QueryBuilder.get().start(QueryType.user).add(ID,user.getUserId()).url());
  }
 else   if (group != null) {
    result.addField(QueryBuilder.get().start(QueryType.group).add(ID,group.getGroupId()).url());
  }
 else   if (account != null) {
    result.addField(QueryBuilder.get().start(QueryType.account).add(ID,account.getAccountNumber()).url());
  }
 else {
    result.addField("String_Node_Str");
  }
  result.addField(policy.getText());
  return result;
}
Program: 14538
Project: 14538
Buggy source:
public static ValueChecker createPathChecker(){
  return new ValueChecker(){
    @Override public String check(    String value) throws InvalidValueException {
      if (value != null && !value.startsWith("String_Node_Str")) {
        throw new InvalidValueException("String_Node_Str");
      }
      for (int i=0; i < value.length(); i++) {
        char c=value.charAt(i);
        if (c < 0x21 || c > 0x7E) {
          throw new InvalidValueException("String_Node_Str" + c);
        }
      }
      return value;
    }
  }
;
}

Fixed version (ground truth):
public static ValueChecker createPathChecker(){
  return new ValueChecker(){
    @Override public String check(    String value) throws InvalidValueException {
      if (value == null || (value != null && !value.startsWith("String_Node_Str"))) {
        throw new InvalidValueException("String_Node_Str");
      }
      for (int i=0; i < value.length(); i++) {
        char c=value.charAt(i);
        if (c < 0x21 || c > 0x7E) {
          throw new InvalidValueException("String_Node_Str" + c);
        }
      }
      return value;
    }
  }
;
}
Program: 14539
Project: 14539
Buggy source:
@Override public void run(){
  do {
    try {
      this.task=this.msgQueue.take();
      if (this.task != null) {
        Logs.extreme().debug(EventType.QUEUE + "String_Node_Str" + this.task+ "String_Node_Str"+ Thread.currentThread().getName());
        try {
          this.task.run();
        }
 catch (        final Exception ex) {
          Exceptions.maybeInterrupted(ex);
          Logs.extreme().error(ex,ex);
        }
      }
    }
 catch (    final InterruptedException e) {
      Exceptions.maybeInterrupted(e);
      return;
    }
  }
 while (!this.msgQueue.isEmpty() || this.running.get());
  Logs.extreme().debug("String_Node_Str" + this.owner + "String_Node_Str"+ this.name+ "String_Node_Str"+ Thread.currentThread().getName());
}

Fixed version (ground truth):
@Override public void run(){
  do {
    try {
      final FutureTask<?> futureTask=this.msgQueue.take();
      if (futureTask != null) {
        Logs.extreme().debug(EventType.QUEUE + "String_Node_Str" + (this.currentTask=futureTask)+ "String_Node_Str"+ Thread.currentThread().getName());
        try {
          futureTask.run();
        }
 catch (        final Exception ex) {
          Exceptions.maybeInterrupted(ex);
          Logs.extreme().error(ex,ex);
        }
      }
    }
 catch (    final InterruptedException e) {
      Exceptions.maybeInterrupted(e);
      break;
    }
 finally {
      this.currentTask=null;
    }
  }
 while (!this.msgQueue.isEmpty() || this.running.get());
  Logs.extreme().debug("String_Node_Str" + this.owner + "String_Node_Str"+ this.name+ "String_Node_Str"+ Thread.currentThread().getName());
}
Program: 14540
Project: 14540
Buggy source:
@Override public C call() throws Exception {
  run.run();
  f.set(null);
  return null;
}

Fixed version (ground truth):
@Override public C call() throws Exception {
  try {
    run.run();
    f.set(null);
  }
 catch (  Exception ex) {
    f.setException(ex);
  }
  return null;
}
Program: 14541
Project: 14541
Buggy source:
@Override public int compareTo(final ResourceToken that){
  return this.resourceAllocationSequenceNumber - that.resourceAllocationSequenceNumber;
}

Fixed version (ground truth):
@Override public int compareTo(final ResourceToken that){
  return this.instanceId.compareTo(that.instanceId);
}
Program: 14542
Project: 14542
Buggy source:
public synchronized void releaseToken(ResourceToken token){
  EventRecord.caller(ResourceToken.class,EventType.TOKEN_RETURNED,token.toString()).info();
  this.pendingTokens.remove(token);
  this.submittedTokens.remove(token);
  this.redeemedTokens.remove(token);
}

Fixed version (ground truth):
public synchronized void releaseToken(ResourceToken token){
  LOG.debug(EventType.TOKEN_RELEASED.name() + "String_Node_Str" + token.toString());
  this.pendingTokens.remove(token);
  this.submittedTokens.remove(token);
  this.redeemedTokens.remove(token);
}
Program: 14543
Project: 14543
Buggy source:
public synchronized void redeemToken(ResourceToken token) throws NoSuchTokenException {
  EventRecord.caller(ResourceToken.class,EventType.TOKEN_REDEEMED,token.toString()).info();
  if (this.submittedTokens.remove(token) || this.pendingTokens.remove(token)) {
    this.redeemedTokens.add(token);
  }
 else {
    LOG.error("String_Node_Str" + token + "String_Node_Str"+ Joiner.on("String_Node_Str").join("String_Node_Str",this.pendingTokens,"String_Node_Str",this.submittedTokens,"String_Node_Str",this.redeemedTokens),new NoSuchTokenException(token.toString()));
  }
}

Fixed version (ground truth):
public synchronized void redeemToken(ResourceToken token) throws NoSuchTokenException {
  LOG.debug(EventType.TOKEN_REDEEMED.name() + "String_Node_Str" + token.toString());
  if (this.submittedTokens.remove(token) || this.pendingTokens.remove(token)) {
    this.redeemedTokens.add(token);
  }
 else {
    LOG.error("String_Node_Str" + token + "String_Node_Str"+ Joiner.on("String_Node_Str").join("String_Node_Str",this.pendingTokens,"String_Node_Str",this.submittedTokens,"String_Node_Str",this.redeemedTokens),new NoSuchTokenException(token.toString()));
  }
}
Program: 14544
Project: 14544
Buggy source:
public synchronized void submitToken(ResourceToken token) throws NoSuchTokenException {
  EventRecord.caller(ResourceToken.class,EventType.TOKEN_SUBMITTED,token.toString()).info();
  if (this.pendingTokens.remove(token)) {
    this.submittedTokens.add(token);
  }
 else {
    throw new NoSuchTokenException(token.toString());
  }
}

Fixed version (ground truth):
public synchronized void submitToken(ResourceToken token) throws NoSuchTokenException {
  LOG.debug(EventType.TOKEN_SUBMITTED.name() + "String_Node_Str" + token.toString());
  if (this.pendingTokens.remove(token)) {
    this.submittedTokens.add(token);
  }
 else {
    throw new NoSuchTokenException(token.toString());
  }
}
Program: 14546
Project: 14546
Buggy source:
public VmPendingCallback(Cluster cluster){
  super(cluster);
  this.initialInstances=createInstanceSupplier(this,this.filter);
  this.setRequest(new VmDescribeType(){
{
      regarding();
      EntityTransaction db=Entities.get(VmInstance.class);
      try {
        for (        VmInstance vm : Iterables.filter(VmInstances.list(),VmPendingCallback.this.filter)) {
          this.getInstancesSet().add(vm.getInstanceId());
        }
        Entities.commit(db);
      }
 catch (      Exception ex) {
        Logs.exhaust().error(ex,ex);
        db.rollback();
      }
    }
  }
);
  if (this.getRequest().getInstancesSet().isEmpty()) {
    throw new CancellationException();
  }
}

Fixed version (ground truth):
public VmPendingCallback(Cluster cluster){
  super(cluster);
  this.initialInstances=createInstanceSupplier(this,this.filter);
  this.setRequest(new VmDescribeType(){
{
      regarding();
      EntityTransaction db=Entities.get(VmInstance.class);
      try {
        for (        VmInstance vm : Iterables.filter(VmInstances.list(),VmPendingCallback.this.filter)) {
          this.getInstancesSet().add(vm.getInstanceId());
        }
        db.rollback();
      }
 catch (      Exception ex) {
        Logs.exhaust().error(ex,ex);
        db.rollback();
      }
    }
  }
);
  if (this.getRequest().getInstancesSet().isEmpty()) {
    throw new CancellationException();
  }
}
Program: 14547
Project: 14547
Buggy source:
private void doInitializeCallback(ServiceConfiguration config) throws RequestException {
  Logs.extreme().trace("String_Node_Str" + config);
  try {
    this.wrapperCallback.initialize(this.request);
  }
 catch (  Exception e) {
    Logs.extreme().error(e.getMessage(),e);
    RequestException ex=(e instanceof RequestException) ? (RequestException)e : new RequestInitializationException(this.wrapperCallback.getClass().getSimpleName() + "String_Node_Str" + e.getMessage(),e,this.getRequest());
    this.result.setException(ex);
    throw ex;
  }
}

Fixed version (ground truth):
private void doInitializeCallback(ServiceConfiguration config) throws RequestException {
  Logs.extreme().info("String_Node_Str" + config + "String_Node_Str"+ this.request.toSimpleString());
  try {
    this.wrapperCallback.initialize(this.request);
  }
 catch (  Exception e) {
    Logs.extreme().error(e.getMessage(),e);
    RequestException ex=(e instanceof RequestException) ? (RequestException)e : new RequestInitializationException(this.wrapperCallback.getClass().getSimpleName() + "String_Node_Str" + e.getMessage(),e,this.getRequest());
    this.result.setException(ex);
    throw ex;
  }
}
Program: 14548
Project: 14548
Buggy source:
public Request<Q,R> execute(ServiceConfiguration config){
  this.doInitializeCallback(config);
  try {
    Logs.extreme().debug("String_Node_Str" + config);
    if (!this.handler.fire(config,this.request)) {
      Logs.extreme().error("String_Node_Str" + this.request);
      if (!this.requestResult.isDone()) {
        RequestException ex=new RequestException("String_Node_Str",this.getRequest());
        try {
          this.result.setException(ex);
        }
 catch (        Exception t) {
        }
      }
    }
 else {
      this.requestResult.get();
    }
  }
 catch (  Exception ex) {
    Exceptions.maybeInterrupted(ex);
    Logs.extreme().error(ex,ex);
    this.result.setException(ex);
    throw Exceptions.toUndeclared(ex);
  }
  return this;
}

Fixed version (ground truth):
public Request<Q,R> execute(ServiceConfiguration config){
  this.doInitializeCallback(config);
  try {
    Logs.extreme().debug("String_Node_Str" + config);
    if (!this.handler.fire(config,this.request)) {
      Logs.extreme().error("String_Node_Str" + this.request);
      RequestException ex=new RequestException("String_Node_Str",this.getRequest());
      try {
        this.result.setException(ex);
      }
 catch (      Exception t) {
      }
    }
 else {
      this.requestResult.get();
    }
  }
 catch (  Exception ex) {
    Exceptions.maybeInterrupted(ex);
    Logs.extreme().error(ex,ex);
    this.result.setException(ex);
    throw Exceptions.toUndeclared(ex);
  }
  return this;
}
Program: 14549
Project: 14549
Buggy source:
@SuppressWarnings("String_Node_Str") private void queueEvents(final E state){
  for (  final Request event : this.messages.get(state)) {
    EventRecord.caller(StatefulMessageSet.class,EventType.VM_STARTING,state.name(),event.getCallback().toString()).debug();
    if (event.getCallback() instanceof BroadcastCallback) {
      final BroadcastCallback callback=(BroadcastCallback)event.getCallback();
      this.pendingEvents.addAll(Lists.transform(Clusters.getInstance().listValues(),new Function<Cluster,CheckedListenableFuture>(){
        @Override public CheckedListenableFuture apply(        final Cluster c){
          LOG.debug("String_Node_Str" + state.name() + "String_Node_Str"+ c.getName()+ "String_Node_Str"+ event.getClass().getSimpleName()+ "String_Node_Str"+ event.getCallback());
          final Request request=AsyncRequests.newRequest(callback.newInstance());
          request.getRequest().regardingUserRequest(callback.getRequest());
          return request.dispatch(c.getConfiguration());
        }
      }
));
    }
 else {
      LOG.debug("String_Node_Str" + state.name() + "String_Node_Str"+ this.cluster.getName()+ "String_Node_Str"+ event.getClass().getSimpleName()+ "String_Node_Str"+ event.getCallback());
      this.pendingEvents.add(event.dispatch(this.cluster.getConfiguration()));
    }
  }
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") private void queueEvents(final E state){
  for (  final Request event : this.messages.get(state)) {
    try {
      EventRecord.caller(StatefulMessageSet.class,EventType.VM_STARTING,state.name(),event.getCallback().toString()).debug();
      if (event.getCallback() instanceof BroadcastCallback) {
        final BroadcastCallback callback=(BroadcastCallback)event.getCallback();
        this.pendingEvents.addAll(Lists.transform(Clusters.getInstance().listValues(),new Function<Cluster,CheckedListenableFuture>(){
          @Override public CheckedListenableFuture apply(          final Cluster c){
            LOG.debug("String_Node_Str" + state.name() + "String_Node_Str"+ c.getName()+ "String_Node_Str"+ event.getClass().getSimpleName()+ "String_Node_Str"+ event.getCallback());
            final Request request=AsyncRequests.newRequest(callback.newInstance());
            request.getRequest().regardingUserRequest(callback.getRequest());
            return request.dispatch(c.getConfiguration());
          }
        }
));
      }
 else {
        LOG.debug("String_Node_Str" + state.name() + "String_Node_Str"+ this.cluster.getName()+ "String_Node_Str"+ event.getClass().getSimpleName()+ "String_Node_Str"+ event.getCallback());
        this.pendingEvents.add(event.dispatch(this.cluster.getConfiguration()));
      }
    }
 catch (    Exception ex) {
      LOG.error(ex,ex);
    }
  }
}
Program: 14550
Project: 14550
Buggy source:
@Override public boolean shareSameAccount(String userId1,String userId2){
  if (userId1.equals(userId2)) {
    return true;
  }
  if (userId1 == null || userId2 == null) {
    return false;
  }
  try {
    User user1=lookupUserById(userId1);
    User user2=lookupUserById(userId2);
    if (user1.getAccount().getAccountNumber().equals(user2.getAccount().getAccountNumber())) {
      return true;
    }
  }
 catch (  AuthException e) {
    LOG.warn("String_Node_Str",e);
  }
  return false;
}

Fixed version (ground truth):
@Override public boolean shareSameAccount(String userId1,String userId2){
  if (userId1 == null || userId2 == null) {
    return false;
  }
  if (userId1.equals(userId2)) {
    return true;
  }
  try {
    User user1=lookupUserById(userId1);
    User user2=lookupUserById(userId2);
    if (user1.getAccount().getAccountNumber().equals(user2.getAccount().getAccountNumber())) {
      return true;
    }
  }
 catch (  AuthException e) {
    LOG.warn("String_Node_Str",e);
  }
  return false;
}