nus-yam/ex-repair huggingface dataset:
Program: 15292
Project: 15292
Buggy source:
private void sendError(final ChannelHandlerContext ctx,final HttpResponseStatus status,Throwable t){
  final HttpResponse response=new DefaultHttpResponse(HttpVersion.HTTP_1_1,status);
  response.setHeader(HttpHeaders.Names.CONTENT_TYPE,"String_Node_Str");
  if (Logs.EXTREME) {
    ByteArrayOutputStream os=new ByteArrayOutputStream();
    PrintWriter out=new PrintWriter(os);
    t.printStackTrace(out);
    response.setContent(ChannelBuffers.copiedBuffer("String_Node_Str" + status.toString() + "String_Node_Str"+ t.getMessage()+ "String_Node_Str"+ os.toString()+ "String_Node_Str","String_Node_Str"));
  }
 else {
    response.setContent(ChannelBuffers.copiedBuffer("String_Node_Str" + status.toString() + "String_Node_Str"+ t.getMessage(),"String_Node_Str"));
  }
  ChannelFuture writeFuture=Channels.future(ctx.getChannel());
  writeFuture.addListener(ChannelFutureListener.CLOSE);
  if (ctx.getChannel().isConnected()) {
    Channels.write(ctx,writeFuture,response);
  }
}

Fixed version (ground truth):
private void sendError(final ChannelHandlerContext ctx,final HttpResponseStatus status,Throwable t){
  Logs.exhaust().error(t,t);
  final HttpResponse response=new DefaultHttpResponse(HttpVersion.HTTP_1_1,status);
  response.setHeader(HttpHeaders.Names.CONTENT_TYPE,"String_Node_Str");
  if (Logs.EXTREME) {
    ByteArrayOutputStream os=new ByteArrayOutputStream();
    PrintWriter out=new PrintWriter(os);
    t.printStackTrace(out);
    response.setContent(ChannelBuffers.copiedBuffer("String_Node_Str" + status.toString() + "String_Node_Str"+ t.getMessage()+ "String_Node_Str"+ os.toString()+ "String_Node_Str","String_Node_Str"));
  }
 else {
    response.setContent(ChannelBuffers.copiedBuffer("String_Node_Str" + status.toString() + "String_Node_Str"+ t.getMessage(),"String_Node_Str"));
  }
  ChannelFuture writeFuture=Channels.future(ctx.getChannel());
  writeFuture.addListener(ChannelFutureListener.CLOSE);
  if (ctx.getChannel().isConnected()) {
    Channels.write(ctx,writeFuture,response);
  }
}
Program: 15294
Project: 15294
Buggy source:
public void handle(ExceptionMessage exMsg){
  Throwable cause=exMsg.getException();
  EventRecord.here(ReplyQueue.class,EventType.MSG_REPLY,cause.getClass().getCanonicalName(),cause.getMessage()).debug();
  if (cause instanceof MessagingException) {
    MessagingException messagingEx=((MessagingException)cause);
    cause=messagingEx.getCause();
    MuleMessage muleMsg=messagingEx.getUmoMessage();
    Object payload=muleMsg.getPayload();
    BaseMessage msg=convert(payload);
    if (msg != null) {
      this.handle(new ExceptionResponseType(msg,cause.getMessage(),HttpResponseStatus.NOT_ACCEPTABLE,cause));
      return;
    }
 else {
      LOG.error("String_Node_Str" + exMsg.toString());
    }
  }
 else   if (cause instanceof MuleException) {
    LOG.error("String_Node_Str" + cause.getMessage(),cause);
    cause=new WebServicesException(cause.getMessage(),cause,HttpResponseStatus.NOT_FOUND);
    try {
      Context ctx=Contexts.lookup();
      Channels.fireExceptionCaught(ctx.getChannel(),cause);
    }
 catch (    IllegalContextAccessException ex) {
      LOG.error(ex);
      LOG.error(cause,cause);
    }
  }
 else {
    try {
      Context ctx=Contexts.lookup();
      Channels.fireExceptionCaught(ctx.getChannel(),cause);
    }
 catch (    IllegalContextAccessException ex) {
      LOG.error(ex);
      LOG.error(cause,cause);
    }
  }
}

Fixed version (ground truth):
public void handle(ExceptionMessage exMsg){
  Throwable cause=exMsg.getException();
  EventRecord.here(ReplyQueue.class,EventType.MSG_REPLY,cause.getClass().getCanonicalName(),cause.getMessage()).debug();
  if (cause instanceof MessagingException) {
    MessagingException messagingEx=((MessagingException)cause);
    cause=messagingEx.getCause();
    MuleMessage muleMsg=messagingEx.getUmoMessage();
    Object payload=muleMsg.getPayload();
    BaseMessage msg=convert(payload);
    if (msg != null) {
      this.handle(new ExceptionResponseType(msg,cause.getMessage(),HttpResponseStatus.NOT_ACCEPTABLE,cause));
      return;
    }
 else {
      LOG.error("String_Node_Str" + exMsg.toString());
      cause=new WebServicesException("String_Node_Str" + exMsg.toString() + "String_Node_Str"+ cause.getMessage(),cause,HttpResponseStatus.NOT_ACCEPTABLE);
      try {
        Context ctx=Contexts.lookup();
        Channels.fireExceptionCaught(ctx.getChannel(),cause);
      }
 catch (      IllegalContextAccessException ex) {
        LOG.error(ex);
        LOG.error(cause,cause);
      }
    }
  }
 else   if (cause instanceof MuleException) {
    LOG.error("String_Node_Str" + cause.getMessage(),cause);
    cause=new WebServicesException(cause.getMessage(),cause,HttpResponseStatus.NOT_FOUND);
    try {
      Context ctx=Contexts.lookup();
      Channels.fireExceptionCaught(ctx.getChannel(),cause);
    }
 catch (    IllegalContextAccessException ex) {
      LOG.error(ex);
      LOG.error(cause,cause);
    }
  }
 else {
    try {
      Context ctx=Contexts.lookup();
      Channels.fireExceptionCaught(ctx.getChannel(),cause);
    }
 catch (    IllegalContextAccessException ex) {
      LOG.error(ex);
      LOG.error(cause,cause);
    }
  }
}
Program: 15295
Project: 15295
Buggy source:
private BaseMessage convert(Object payload){
  BaseMessage ret=null;
  if (payload instanceof BaseMessage) {
    ret=(BaseMessage)payload;
  }
 else   if (payload instanceof String) {
    try {
      ret=(BaseMessage)BindingManager.getBinding("String_Node_Str").fromOM((String)payload);
    }
 catch (    Throwable ex) {
      LOG.error(ex,ex);
    }
  }
 else {
    payload=RequestContext.getEvent().getMessage().getPayload();
    if (payload instanceof BaseMessage) {
      ret=(BaseMessage)payload;
    }
 else     if (payload instanceof String) {
      try {
        ret=(BaseMessage)BindingManager.getBinding("String_Node_Str").fromOM((String)payload);
      }
 catch (      Throwable ex) {
        LOG.error(ex,ex);
      }
    }
  }
  return ret;
}

Fixed version (ground truth):
private BaseMessage convert(Object payload){
  BaseMessage ret=null;
  if (payload instanceof BaseMessage) {
    ret=(BaseMessage)payload;
  }
 else   if (payload instanceof HasRequest) {
    ret=((HasRequest)payload).getRequest();
  }
 else   if (payload instanceof String) {
    try {
      ret=(BaseMessage)BindingManager.getBinding("String_Node_Str").fromOM((String)payload);
    }
 catch (    Throwable ex) {
      LOG.error(ex,ex);
    }
  }
 else {
    payload=RequestContext.getEvent().getMessage().getPayload();
    if (payload instanceof BaseMessage) {
      ret=(BaseMessage)payload;
    }
 else     if (payload instanceof String) {
      try {
        ret=(BaseMessage)BindingManager.getBinding("String_Node_Str").fromOM((String)payload);
      }
 catch (      Throwable ex) {
        LOG.error(ex,ex);
      }
    }
  }
  return ret;
}
Program: 15298
Project: 15298
Buggy source:
@Override public String getResourceType(){
  return null;
}

Fixed version (ground truth):
@Override public String getResourceType(){
  return this.vendor + "String_Node_Str" + this.type;
}
Program: 15299
Project: 15299
Buggy source:
@Override public String getResourceName(){
  return null;
}

Fixed version (ground truth):
@Override public String getResourceName(){
  return this.id;
}
Program: 15301
Project: 15301
Buggy source:
BlockStorageImageInfo(UserFullName userFullName,String imageId,String imageName,String imageDescription,Long imageSizeBytes,Image.Architecture arch,Image.Platform platform,String kernelId,String ramdiskId,String snapshotId,Boolean deleteOnTerminate){
  super(userFullName,imageId,imageName,imageDescription,imageSizeBytes,arch,platform);
  this.kernelId=kernelId;
  this.ramdiskId=ramdiskId;
  this.snapshotId=snapshotId;
  this.deleteOnTerminate=deleteOnTerminate;
}

Fixed version (ground truth):
BlockStorageImageInfo(UserFullName userFullName,String imageId,String imageName,String imageDescription,Long imageSizeBytes,Image.Architecture arch,Image.Platform platform,String kernelId,String ramdiskId,String snapshotId,Boolean deleteOnTerminate){
  super(userFullName,imageId,Image.Type.machine,imageName,imageDescription,imageSizeBytes,arch,platform);
  this.kernelId=kernelId;
  this.ramdiskId=ramdiskId;
  this.snapshotId=snapshotId;
  this.deleteOnTerminate=deleteOnTerminate;
}
Program: 15302
Project: 15302
Buggy source:
/** 
 * Transitional while pulling out forward references.
 * @deprecated
 */
public static String defaultRamdisk(){
  EntityWrapper<ImageInfo> db=EntityWrapper.get(ImageInfo.class);
  try {
    List<ImageInfo> images=db.query(new ImageInfo(){
{
        setImageType(Image.Type.ramdisk);
      }
    }
);
    if (images.size() > 0) {
      db.commit();
      return images.get(0).getDisplayName();
    }
 else {
      db.commit();
      return null;
    }
  }
 catch (  Exception ex) {
    db.rollback();
    LOG.error(ex,ex);
    return null;
  }
}

Fixed version (ground truth):
/** 
 * Transitional while pulling out forward references.
 * @deprecated
 */
public static String defaultRamdisk(){
  EntityWrapper<ImageInfo> db=EntityWrapper.get(ImageInfo.class);
  try {
    List<ImageInfo> images=db.query(new ImageInfo(Image.Type.ramdisk));
    if (images.size() > 0) {
      db.commit();
      return images.get(0).getDisplayName();
    }
 else {
      db.commit();
      return null;
    }
  }
 catch (  Exception ex) {
    db.rollback();
    LOG.error(ex,ex);
    return null;
  }
}
Program: 15303
Project: 15303
Buggy source:
/** 
 * Transitional while pulling out forward references.
 * @deprecated
 */
public static String defaultKernel(){
  EntityWrapper<ImageInfo> db=EntityWrapper.get(ImageInfo.class);
  try {
    List<ImageInfo> images=db.query(new ImageInfo(){
{
        setImageType(Image.Type.kernel);
      }
    }
);
    if (images.size() > 0) {
      db.commit();
      return images.get(0).getDisplayName();
    }
 else {
      db.commit();
      return null;
    }
  }
 catch (  Exception ex) {
    LOG.error(ex,ex);
    db.rollback();
    return null;
  }
}

Fixed version (ground truth):
/** 
 * Transitional while pulling out forward references.
 * @deprecated
 */
public static String defaultKernel(){
  EntityWrapper<ImageInfo> db=EntityWrapper.get(ImageInfo.class);
  try {
    List<ImageInfo> images=db.query(new ImageInfo(Image.Type.kernel));
    if (images.size() > 0) {
      db.commit();
      return images.get(0).getDisplayName();
    }
 else {
      db.commit();
      return null;
    }
  }
 catch (  Exception ex) {
    LOG.error(ex,ex);
    db.rollback();
    return null;
  }
}
Program: 15304
Project: 15304
Buggy source:
public boolean isAllowed(Account account){
  return this.getImagePublic() || this.checkPermission(account);
}

Fixed version (ground truth):
public boolean isAllowed(final Account account){
  return this.getImagePublic() || this.checkPermission(account);
}
Program: 15305
Project: 15305
Buggy source:
public void setImageSizeBytes(Long imageSizeBytes){
  this.imageSizeBytes=imageSizeBytes;
}

Fixed version (ground truth):
public void setImageSizeBytes(final Long imageSizeBytes){
  this.imageSizeBytes=imageSizeBytes;
}
Program: 15306
Project: 15306
Buggy source:
@Override public int compareTo(Image o){
  return this.getDisplayName().compareTo(o.getName());
}

Fixed version (ground truth):
@Override public int compareTo(final Image o){
  return this.getDisplayName().compareTo(o.getName());
}
Program: 15307
Project: 15307
Buggy source:
public void setDescription(String description){
  this.description=description;
}

Fixed version (ground truth):
public void setDescription(final String description){
  this.description=description;
}
Program: 15308
Project: 15308
Buggy source:
public boolean addProductCode(final String prodCode){
  try {
    ImageInfo search=ForwardImages.exampleWithImageId(this.getDisplayName());
    Transactions.one(search,new Tx<ImageInfo>(){
      @Override public void fire(      ImageInfo t) throws Throwable {
        t.getProductCodes().add(new ProductCode(t,prodCode));
      }
    }
);
  }
 catch (  ExecutionException e) {
    return false;
  }
  return true;
}

Fixed version (ground truth):
public boolean addProductCode(final String prodCode){
  try {
    ImageInfo search=ForwardImages.exampleWithImageId(this.getDisplayName());
    Transactions.one(search,new Tx<ImageInfo>(){
      @Override public void fire(      final ImageInfo t) throws Throwable {
        t.getProductCodes().add(new ProductCode(t,prodCode));
      }
    }
);
  }
 catch (  ExecutionException e) {
    return false;
  }
  return true;
}
Program: 15309
Project: 15309
Buggy source:
public void setArchitecture(Architecture architecture){
  this.architecture=architecture;
}

Fixed version (ground truth):
public void setArchitecture(final Architecture architecture){
  this.architecture=architecture;
}
Program: 15310
Project: 15310
Buggy source:
@SuppressWarnings("String_Node_Str") public ImageInfo grantPermission(final Account account){
  try {
    Transactions.one(new ImageInfo(this.displayName),new Callback<ImageInfo>(){
      @Override public void fire(      ImageInfo t){
        EntityWrapper<ImageInfo> db=Transactions.join();
        LaunchPermission imgAuth=new LaunchPermission(t,account.getAccountNumber());
        if (!t.getPermissions().contains(imgAuth)) {
          t.getPermissions().add(imgAuth);
        }
      }
    }
);
  }
 catch (  ExecutionException e) {
    LOG.debug(e,e);
  }
  return this;
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") public ImageInfo grantPermission(final Account account){
  try {
    Transactions.one(new ImageInfo(this.displayName),new Callback<ImageInfo>(){
      @Override public void fire(      final ImageInfo t){
        EntityWrapper<ImageInfo> db=Transactions.join();
        LaunchPermission imgAuth=new LaunchPermission(t,account.getAccountNumber());
        if (!t.getPermissions().contains(imgAuth)) {
          t.getPermissions().add(imgAuth);
        }
      }
    }
);
  }
 catch (  ExecutionException e) {
    LOG.debug(e,e);
  }
  return this;
}
Program: 15311
Project: 15311
Buggy source:
@Override public void fire(ImageInfo t) throws Throwable {
  t.getProductCodes().add(new ProductCode(t,prodCode));
}

Fixed version (ground truth):
@Override public void fire(final ImageInfo t) throws Throwable {
  t.getProductCodes().add(new ProductCode(t,prodCode));
}
Program: 15312
Project: 15312
Buggy source:
public void setImageType(Type imageType){
  this.imageType=imageType;
}

Fixed version (ground truth):
public void setImageType(final Type imageType){
  this.imageType=imageType;
}
Program: 15313
Project: 15313
Buggy source:
public ImageInfo(final UserFullName userFullName,final String imageId,final String imageName,final String imageDescription,final Long imageSizeBytes,final Image.Architecture arch,final Image.Platform platform){
  super(userFullName,imageId.substring(0,4).toLowerCase() + imageId.substring(4).toUpperCase());
  assertThat(imageName,notNullValue());
  assertThat(imageSizeBytes,notNullValue());
  assertThat(arch,notNullValue());
  assertThat(platform,notNullValue());
  this.setState(Image.State.pending);
  this.imageName=imageName;
  this.description=imageDescription;
  this.imageSizeBytes=imageSizeBytes;
  this.architecture=arch;
  this.platform=platform;
  this.imagePublic=ImageConfiguration.getInstance().getDefaultVisibility();
}

Fixed version (ground truth):
protected ImageInfo(final UserFullName userFullName,final String imageId,final Image.Type imageType,final String imageName,final String imageDescription,final Long imageSizeBytes,final Image.Architecture arch,final Image.Platform platform){
  super(userFullName,imageId.substring(0,4).toLowerCase() + imageId.substring(4).toUpperCase());
  assertThat(imageName,notNullValue());
  assertThat(imageType,notNullValue());
  assertThat(imageSizeBytes,notNullValue());
  assertThat(arch,notNullValue());
  assertThat(platform,notNullValue());
  this.setState(Image.State.pending);
  this.imageType=imageType;
  this.imageName=imageName;
  this.description=imageDescription;
  this.imageSizeBytes=imageSizeBytes;
  this.architecture=arch;
  this.platform=platform;
  this.imagePublic=ImageConfiguration.getInstance().getDefaultVisibility();
}
Program: 15314
Project: 15314
Buggy source:
protected void setImageName(String imageName){
  this.imageName=imageName;
}

Fixed version (ground truth):
protected void setImageName(final String imageName){
  this.imageName=imageName;
}
Program: 15315
Project: 15315
Buggy source:
public void setPlatform(Image.Platform platform){
  this.platform=platform;
}

Fixed version (ground truth):
public void setPlatform(final Image.Platform platform){
  this.platform=platform;
}
Program: 15316
Project: 15316
Buggy source:
public void setImagePublic(Boolean aPublic){
  this.imagePublic=aPublic;
}

Fixed version (ground truth):
public void setImagePublic(final Boolean aPublic){
  this.imagePublic=aPublic;
}
Program: 15317
Project: 15317
Buggy source:
public List<String> listLaunchPermissions(){
  final List<String> perms=Lists.newArrayList();
  try {
    ImageInfo search=ForwardImages.exampleWithImageId(this.getDisplayName());
    Transactions.one(search,new Tx<ImageInfo>(){
      @Override public void fire(      ImageInfo t) throws Throwable {
        for (        LaunchPermission p : t.getPermissions()) {
          perms.add(p.getAccountId());
        }
      }
    }
);
  }
 catch (  ExecutionException e) {
    LOG.debug(e,e);
  }
  return perms;
}

Fixed version (ground truth):
public List<String> listLaunchPermissions(){
  final List<String> perms=Lists.newArrayList();
  try {
    ImageInfo search=ForwardImages.exampleWithImageId(this.getDisplayName());
    Transactions.one(search,new Tx<ImageInfo>(){
      @Override public void fire(      final ImageInfo t) throws Throwable {
        for (        LaunchPermission p : t.getPermissions()) {
          perms.add(p.getAccountId());
        }
      }
    }
);
  }
 catch (  ExecutionException e) {
    LOG.debug(e,e);
  }
  return perms;
}
Program: 15318
Project: 15318
Buggy source:
public List<String> listProductCodes(){
  final List<String> prods=Lists.newArrayList();
  try {
    ImageInfo search=ForwardImages.exampleWithImageId(this.getDisplayName());
    Transactions.one(search,new Tx<ImageInfo>(){
      @Override public void fire(      ImageInfo t) throws Throwable {
        for (        ProductCode p : t.getProductCodes()) {
          prods.add(p.getValue());
        }
      }
    }
);
  }
 catch (  ExecutionException e) {
    LOG.debug(e,e);
  }
  return prods;
}

Fixed version (ground truth):
public List<String> listProductCodes(){
  final List<String> prods=Lists.newArrayList();
  try {
    ImageInfo search=ForwardImages.exampleWithImageId(this.getDisplayName());
    Transactions.one(search,new Tx<ImageInfo>(){
      @Override public void fire(      final ImageInfo t) throws Throwable {
        for (        ProductCode p : t.getProductCodes()) {
          prods.add(p.getValue());
        }
      }
    }
);
  }
 catch (  ExecutionException e) {
    LOG.debug(e,e);
  }
  return prods;
}
Program: 15319
Project: 15319
Buggy source:
public ImageInfo revokePermission(final Account account){
  try {
    ImageInfo search=ForwardImages.exampleWithImageId(this.getDisplayName());
    Transactions.one(search,new Tx<ImageInfo>(){
      @Override public void fire(      ImageInfo t) throws Throwable {
        LaunchPermission imgAuth;
        t.getPermissions().remove(new LaunchPermission(t,account.getAccountNumber()));
      }
    }
);
  }
 catch (  ExecutionException e) {
    LOG.debug(e,e);
  }
  return this;
}

Fixed version (ground truth):
public ImageInfo revokePermission(final Account account){
  try {
    ImageInfo search=ForwardImages.exampleWithImageId(this.getDisplayName());
    Transactions.one(search,new Tx<ImageInfo>(){
      @Override public void fire(      final ImageInfo t) throws Throwable {
        LaunchPermission imgAuth;
        t.getPermissions().remove(new LaunchPermission(t,account.getAccountNumber()));
      }
    }
);
  }
 catch (  ExecutionException e) {
    LOG.debug(e,e);
  }
  return this;
}
Program: 15320
Project: 15320
Buggy source:
protected void setDeviceMappings(Set<DeviceMapping> deviceMappings){
  this.deviceMappings=deviceMappings;
}

Fixed version (ground truth):
protected void setDeviceMappings(final Set<DeviceMapping> deviceMappings){
  this.deviceMappings=deviceMappings;
}
Program: 15321
Project: 15321
Buggy source:
public ImageInfo resetPermission(){
  try {
    Transactions.one(new ImageInfo(this.displayName),new Tx<ImageInfo>(){
      @Override public void fire(      ImageInfo t) throws Throwable {
        t.getPermissions().clear();
        t.getPermissions().add(new LaunchPermission(t,t.getOwnerAccountId()));
        t.setImagePublic(ImageConfiguration.getInstance().getDefaultVisibility());
      }
    }
);
  }
 catch (  ExecutionException e) {
    LOG.debug(e,e);
  }
  return this;
}

Fixed version (ground truth):
public ImageInfo resetPermission(){
  try {
    Transactions.one(new ImageInfo(this.displayName),new Tx<ImageInfo>(){
      @Override public void fire(      final ImageInfo t) throws Throwable {
        t.getPermissions().clear();
        t.getPermissions().add(new LaunchPermission(t,t.getOwnerAccountId()));
        t.setImagePublic(ImageConfiguration.getInstance().getDefaultVisibility());
      }
    }
);
  }
 catch (  ExecutionException e) {
    LOG.debug(e,e);
  }
  return this;
}
Program: 15322
Project: 15322
Buggy source:
public ImageInfo resetProductCodes(){
  try {
    ImageInfo search=ForwardImages.exampleWithImageId(this.getDisplayName());
    Transactions.one(search,new Tx<ImageInfo>(){
      @Override public void fire(      ImageInfo t) throws Throwable {
        t.getProductCodes().clear();
      }
    }
);
  }
 catch (  ExecutionException e) {
    LOG.debug(e,e);
  }
  return this;
}

Fixed version (ground truth):
public ImageInfo resetProductCodes(){
  try {
    ImageInfo search=ForwardImages.exampleWithImageId(this.getDisplayName());
    Transactions.one(search,new Tx<ImageInfo>(){
      @Override public void fire(      final ImageInfo t) throws Throwable {
        t.getProductCodes().clear();
      }
    }
);
  }
 catch (  ExecutionException e) {
    LOG.debug(e,e);
  }
  return this;
}
Program: 15323
Project: 15323
Buggy source:
public KernelImageInfo(final UserFullName userFullName,final String imageId,final String imageName,final String imageDescription,final Long imageSizeBytes,final Architecture arch,final Platform platform,final String imageLocation,final Long imageBundleSizeBytes,final String imageChecksum,final String imageChecksumType){
  super(userFullName,imageId,imageName,imageDescription,imageSizeBytes,arch,platform,imageLocation,imageBundleSizeBytes,imageChecksum,imageChecksumType);
  this.setImageType(Image.Type.kernel);
}

Fixed version (ground truth):
public KernelImageInfo(final UserFullName userFullName,final String imageId,final String imageName,final String imageDescription,final Long imageSizeBytes,final Architecture arch,final Platform platform,final String imageLocation,final Long imageBundleSizeBytes,final String imageChecksum,final String imageChecksumType){
  super(userFullName,imageId,Image.Type.kernel,imageName,imageDescription,imageSizeBytes,arch,platform,imageLocation,imageBundleSizeBytes,imageChecksum,imageChecksumType);
}
Program: 15324
Project: 15324
Buggy source:
public MachineImageInfo(final UserFullName userFullName,final String imageId,final String imageName,final String imageDescription,final Long imageSizeBytes,final Architecture arch,final Platform platform,final String imageLocation,final Long imageBundleSizeBytes,final String imageChecksum,final String imageChecksumType,final String kernelId,final String ramdiskId){
  super(userFullName,imageId,imageName,imageDescription,imageSizeBytes,arch,platform,imageLocation,imageBundleSizeBytes,imageChecksum,imageChecksumType);
  this.kernelId=kernelId;
  this.ramdiskId=ramdiskId;
  this.setImageType(Image.Type.machine);
}

Fixed version (ground truth):
public MachineImageInfo(final UserFullName userFullName,final String imageId,final String imageName,final String imageDescription,final Long imageSizeBytes,final Architecture arch,final Platform platform,final String imageLocation,final Long imageBundleSizeBytes,final String imageChecksum,final String imageChecksumType,final String kernelId,final String ramdiskId){
  super(userFullName,imageId,Image.Type.machine,imageName,imageDescription,imageSizeBytes,arch,platform,imageLocation,imageBundleSizeBytes,imageChecksum,imageChecksumType);
  this.kernelId=kernelId;
  this.ramdiskId=ramdiskId;
}
Program: 15325
Project: 15325
Buggy source:
protected PutGetImageInfo(final String imageId){
  super(imageId);
}

Fixed version (ground truth):
protected PutGetImageInfo(final Image.Type imageType,final String imageId){
  super(imageType,imageId);
}
Program: 15326
Project: 15326
Buggy source:
public static Snapshot named(final String snapshotId){
  return new Snapshot(){
{
      setDisplayName(snapshotId);
    }
  }
;
}

Fixed version (ground truth):
public static Snapshot named(final String snapshotId){
  return new Snapshot((UserFullName)null,snapshotId);
}
Program: 15328
Project: 15328
Buggy source:
public static void triggerCaching(Image.StaticDiskImage imgInfo){
  String[] parts=imgInfo.getImageLocation().split("String_Node_Str");
  CacheImageType cache=new CacheImageType().regarding(Contexts.lookup().getRequest());
  cache.setBucket(parts[0]);
  cache.setKey(parts[1]);
  ServiceDispatcher.lookupSingle(Components.lookup("String_Node_Str")).dispatch(cache);
}

Fixed version (ground truth):
public static void triggerCaching(Image.StaticDiskImage imgInfo){
  String[] parts=imgInfo.getManifestLocation().split("String_Node_Str");
  CacheImageType cache=new CacheImageType().regarding(Contexts.lookup().getRequest());
  cache.setBucket(parts[0]);
  cache.setKey(parts[1]);
  ServiceDispatcher.lookupSingle(Components.lookup("String_Node_Str")).dispatch(cache);
}
Program: 15329
Project: 15329
Buggy source:
public static void invalidate(Image.StaticDiskImage imgInfo){
  String[] parts=imgInfo.getImageLocation().split("String_Node_Str");
  try {
    ServiceDispatcher.lookupSingle(Components.lookup(Walrus.class)).dispatch(new FlushCachedImageType(parts[0],parts[1]));
  }
 catch (  Exception e) {
  }
}

Fixed version (ground truth):
public static void invalidate(Image.StaticDiskImage imgInfo){
  String[] parts=imgInfo.getManifestLocation().split("String_Node_Str");
  try {
    ServiceDispatcher.lookupSingle(Components.lookup(Walrus.class)).dispatch(new FlushCachedImageType(parts[0],parts[1]));
  }
 catch (  Exception e) {
  }
}
Program: 15330
Project: 15330
Buggy source:
public void populateVirtualBootRecord(VmTypeInfo vmType) throws EucalyptusCloudException {
  Long imgSize=ImageUtil.getSize(this.getMachine().getImageLocation());
  if (imgSize > 1024l * 1024l * 1024l* vmType.getDisk()) {
    throw new EucalyptusCloudException("String_Node_Str" + imgSize / (1024l * 1024l) + "String_Node_Str" + vmType.getName() + "String_Node_Str" + vmType.getDisk() * 1024l + "String_Node_Str");
  }
  vmType.setRoot(this.getMachine().getDisplayName(),this.getMachine().getImageLocation(),imgSize * 1024);
  if (this.hasKernel()) {
    vmType.setKernel(this.getKernel().getDisplayName(),this.getKernel().getImageLocation());
  }
  if (this.hasRamdisk()) {
    vmType.setRamdisk(this.getRamdisk().getDisplayName(),this.getRamdisk().getImageLocation());
  }
}

Fixed version (ground truth):
public void populateVirtualBootRecord(VmTypeInfo vmType) throws EucalyptusCloudException {
  Long imgSize=ImageUtil.getSize(this.getMachine().getManifestLocation());
  if (imgSize > 1024l * 1024l * 1024l* vmType.getDisk()) {
    throw new EucalyptusCloudException("String_Node_Str" + imgSize / (1024l * 1024l) + "String_Node_Str" + vmType.getName() + "String_Node_Str" + vmType.getDisk() * 1024l + "String_Node_Str");
  }
  vmType.setRoot(this.getMachine().getDisplayName(),this.getMachine().getManifestLocation(),imgSize * 1024);
  if (this.hasKernel()) {
    vmType.setKernel(this.getKernel().getDisplayName(),this.getKernel().getManifestLocation());
  }
  if (this.hasRamdisk()) {
    vmType.setRamdisk(this.getRamdisk().getDisplayName(),this.getRamdisk().getManifestLocation());
  }
}
Program: 15332
Project: 15332
Buggy source:
public static void checkStoredImage(final Image.StaticDiskImage imgInfo) throws EucalyptusCloudException {
  if (imgInfo != null)   try {
    Document inputSource=null;
    try {
      String[] imagePathParts=imgInfo.getImageLocation().split("String_Node_Str");
      inputSource=WalrusUtil.getManifestData(imgInfo.getOwner(),imagePathParts[0],imagePathParts[1]);
    }
 catch (    EucalyptusCloudException e) {
      throw e;
    }
    XPath xpath=null;
    xpath=XPathFactory.newInstance().newXPath();
    String signature=null;
    try {
      signature=(String)xpath.evaluate("String_Node_Str",inputSource,XPathConstants.STRING);
    }
 catch (    XPathExpressionException e) {
    }
    if (imgInfo.getSignature() != null && !imgInfo.getSignature().equals(signature))     throw new EucalyptusCloudException("String_Node_Str");
    LOG.info("String_Node_Str" + imgInfo.getImageLocation());
    try {
      if (imgInfo instanceof Image.StaticDiskImage) {
        WalrusUtil.triggerCaching((StaticDiskImage)imgInfo);
      }
    }
 catch (    Exception e) {
    }
  }
 catch (  EucalyptusCloudException e) {
    LOG.error(e);
    LOG.error("String_Node_Str" + imgInfo.getImageLocation());
    throw new EucalyptusCloudException("String_Node_Str" + imgInfo.getImageLocation());
  }
}

Fixed version (ground truth):
public static void checkStoredImage(final Image.StaticDiskImage imgInfo) throws EucalyptusCloudException {
  if (imgInfo != null)   try {
    Document inputSource=null;
    try {
      String[] imagePathParts=imgInfo.getManifestLocation().split("String_Node_Str");
      inputSource=WalrusUtil.getManifestData(imgInfo.getOwner(),imagePathParts[0],imagePathParts[1]);
    }
 catch (    EucalyptusCloudException e) {
      throw e;
    }
    XPath xpath=null;
    xpath=XPathFactory.newInstance().newXPath();
    String signature=null;
    try {
      signature=(String)xpath.evaluate("String_Node_Str",inputSource,XPathConstants.STRING);
    }
 catch (    XPathExpressionException e) {
    }
    if (imgInfo.getSignature() != null && !imgInfo.getSignature().equals(signature))     throw new EucalyptusCloudException("String_Node_Str");
    LOG.info("String_Node_Str" + imgInfo.getManifestLocation());
    try {
      if (imgInfo instanceof Image.StaticDiskImage) {
        WalrusUtil.triggerCaching((StaticDiskImage)imgInfo);
      }
    }
 catch (    Exception e) {
    }
  }
 catch (  EucalyptusCloudException e) {
    LOG.error(e);
    LOG.error("String_Node_Str" + imgInfo.getManifestLocation());
    throw new EucalyptusCloudException("String_Node_Str" + imgInfo.getManifestLocation());
  }
}
Program: 15335
Project: 15335
Buggy source:
public KernelImageInfo(final UserFullName userFullName,final String imageId,final String imageName,final String imageDescription,final Long imageSizeBytes,final Architecture arch,final Platform platform,final String imageLocation,final Long imageBundleSizeBytes,final String imageChecksum){
  super(userFullName,imageId,imageName,imageDescription,imageSizeBytes,arch,platform,imageLocation,imageBundleSizeBytes,imageChecksum);
  this.setImageType(Image.Type.kernel);
}

Fixed version (ground truth):
public KernelImageInfo(final UserFullName userFullName,final String imageId,final String imageName,final String imageDescription,final Long imageSizeBytes,final Architecture arch,final Platform platform,final String imageLocation,final Long imageBundleSizeBytes,final String imageChecksum,final String imageChecksumType){
  super(userFullName,imageId,imageName,imageDescription,imageSizeBytes,arch,platform,imageLocation,imageBundleSizeBytes,imageChecksum,imageChecksumType);
  this.setImageType(Image.Type.kernel);
}
Program: 15336
Project: 15336
Buggy source:
public MachineImageInfo(final UserFullName userFullName,final String imageId,final String imageName,final String imageDescription,final Long imageSizeBytes,final Architecture arch,final Platform platform,final String imageLocation,final Long imageBundleSizeBytes,final String imageChecksum,final String kernelId,final String ramdiskId){
  super(userFullName,imageId,imageName,imageDescription,imageSizeBytes,arch,platform,imageLocation,imageBundleSizeBytes,imageChecksum);
  this.kernelId=kernelId;
  this.ramdiskId=ramdiskId;
  this.setImageType(Image.Type.machine);
}

Fixed version (ground truth):
public MachineImageInfo(final UserFullName userFullName,final String imageId,final String imageName,final String imageDescription,final Long imageSizeBytes,final Architecture arch,final Platform platform,final String imageLocation,final Long imageBundleSizeBytes,final String imageChecksum,final String imageChecksumType,final String kernelId,final String ramdiskId){
  super(userFullName,imageId,imageName,imageDescription,imageSizeBytes,arch,platform,imageLocation,imageBundleSizeBytes,imageChecksum,imageChecksumType);
  this.kernelId=kernelId;
  this.ramdiskId=ramdiskId;
  this.setImageType(Image.Type.machine);
}
Program: 15337
Project: 15337
Buggy source:
public RamdiskImageInfo(final UserFullName userFullName,final String imageId,final String imageName,final String imageDescription,final Long imageSizeBytes,final Architecture arch,final Platform platform,final String imageLocation,final Long imageBundleSizeBytes,final String imageChecksum){
  super(userFullName,imageId,imageName,imageDescription,imageSizeBytes,arch,platform,imageLocation,imageBundleSizeBytes,imageChecksum);
  this.setImageType(Image.Type.ramdisk);
}

Fixed version (ground truth):
public RamdiskImageInfo(final UserFullName userFullName,final String imageId,final String imageName,final String imageDescription,final Long imageSizeBytes,final Architecture arch,final Platform platform,final String imageLocation,final Long imageBundleSizeBytes,final String imageChecksum,final String imageChecksumType){
  super(userFullName,imageId,imageName,imageDescription,imageSizeBytes,arch,platform,imageLocation,imageBundleSizeBytes,imageChecksum,imageChecksumType);
  this.setImageType(Image.Type.ramdisk);
}
Program: 15341
Project: 15341
Buggy source:
public KernelImageInfo(UserFullName userFullName,String imageId,String imageName,String imageDescription,Long imageSizeBytes,Architecture arch,Platform platform,String imageLocation,Long imageBundleSizeBytes){
  super(userFullName,imageId,imageName,imageDescription,imageSizeBytes,arch,platform,imageLocation,imageBundleSizeBytes);
  this.setImageType(Image.Type.kernel);
}

Fixed version (ground truth):
public KernelImageInfo(final UserFullName userFullName,final String imageId,final String imageName,final String imageDescription,final Long imageSizeBytes,final Architecture arch,final Platform platform,final String imageLocation,final Long imageBundleSizeBytes,final String imageChecksum){
  super(userFullName,imageId,imageName,imageDescription,imageSizeBytes,arch,platform,imageLocation,imageBundleSizeBytes,imageChecksum);
  this.setImageType(Image.Type.kernel);
}
Program: 15342
Project: 15342
Buggy source:
public MachineImageInfo(UserFullName userFullName,String imageId,String imageName,String imageDescription,Long imageSizeBytes,Architecture arch,Platform platform,String imageLocation,Long imageBundleSizeBytes,String kernelId,String ramdiskId){
  super(userFullName,imageId,imageName,imageDescription,imageSizeBytes,arch,platform,imageLocation,imageBundleSizeBytes);
  this.kernelId=kernelId;
  this.ramdiskId=ramdiskId;
  this.setImageType(Image.Type.machine);
}

Fixed version (ground truth):
public MachineImageInfo(final UserFullName userFullName,final String imageId,final String imageName,final String imageDescription,final Long imageSizeBytes,final Architecture arch,final Platform platform,final String imageLocation,final Long imageBundleSizeBytes,final String imageChecksum,final String kernelId,final String ramdiskId){
  super(userFullName,imageId,imageName,imageDescription,imageSizeBytes,arch,platform,imageLocation,imageBundleSizeBytes,imageChecksum);
  this.kernelId=kernelId;
  this.ramdiskId=ramdiskId;
  this.setImageType(Image.Type.machine);
}
Program: 15343
Project: 15343
Buggy source:
public void setKernelId(String kernelId){
  this.kernelId=kernelId;
}

Fixed version (ground truth):
public void setKernelId(final String kernelId){
  this.kernelId=kernelId;
}
Program: 15344
Project: 15344
Buggy source:
public void setRamdiskId(String ramdiskId){
  this.ramdiskId=ramdiskId;
}

Fixed version (ground truth):
public void setRamdiskId(final String ramdiskId){
  this.ramdiskId=ramdiskId;
}
Program: 15345
Project: 15345
Buggy source:
public void logMessage(){
  LOG.trace("String_Node_Str");
  LOG.trace("String_Node_Str" + this.getProtocolVersion() + "String_Node_Str"+ this.getMethod()+ "String_Node_Str"+ this.getUri());
  for (  String s : this.getHeaderNames()) {
    LOG.trace(s + "String_Node_Str" + this.getHeader(s));
  }
  LOG.trace("String_Node_Str");
  LOG.trace(this.getContent().toString("String_Node_Str"));
  LOG.trace("String_Node_Str");
}

Fixed version (ground truth):
public String logMessage(){
  StringBuffer buf=new StringBuffer();
  buf.append("String_Node_Str");
  buf.append("String_Node_Str").append(this.getProtocolVersion()).append("String_Node_Str").append(this.getMethod()).append("String_Node_Str").append(this.getUri()).append("String_Node_Str");
  for (  String s : this.getHeaderNames()) {
    buf.append(s).append("String_Node_Str").append(this.getHeader(s)).append("String_Node_Str");
  }
  buf.append("String_Node_Str");
  buf.append(this.getContent().toString("String_Node_Str")).append("String_Node_Str");
  buf.append("String_Node_Str");
  return buf.toString();
}
Program: 15346
Project: 15346
Buggy source:
public ImageInfo(final UserFullName userFullName,final String imageId,final String imageName,final String imageDescription,final Long imageSizeBytes,final Image.Architecture arch,final Image.Platform platform){
  super(userFullName,imageId.substring(0,4).toLowerCase() + imageId.substring(4).toUpperCase());
  assertThat(arch,notNullValue());
  assertThat(imageName,notNullValue());
  assertThat(imageName,notNullValue());
  assertThat(platform,notNullValue());
  this.setState(Image.State.pending);
  this.imagePublic=ImageConfiguration.getInstance().getDefaultVisibility();
  this.architecture=arch;
  this.platform=platform;
  this.imageSizeBytes=imageSizeBytes;
}

Fixed version (ground truth):
public ImageInfo(final UserFullName userFullName,final String imageId,final String imageName,final String imageDescription,final Long imageSizeBytes,final Image.Architecture arch,final Image.Platform platform){
  super(userFullName,imageId.substring(0,4).toLowerCase() + imageId.substring(4).toUpperCase());
  assertThat(imageName,notNullValue());
  assertThat(imageSizeBytes,notNullValue());
  assertThat(arch,notNullValue());
  assertThat(platform,notNullValue());
  this.setState(Image.State.pending);
  this.imageName=imageName;
  this.description=imageDescription;
  this.imageSizeBytes=imageSizeBytes;
  this.architecture=arch;
  this.platform=platform;
  this.imagePublic=ImageConfiguration.getInstance().getDefaultVisibility();
}
Program: 15347
Project: 15347
Buggy source:
BlockStorageImageInfo(UserFullName userFullName,String imageId,String imageName,String imageDescription,String snapshotId,Integer volumeSize,Boolean deleteOnTerminate,Image.Architecture arch,Image.Platform platform){
  super(userFullName,imageId,imageName,imageDescription,arch,platform);
  this.snapshotId=snapshotId;
  this.volumeSize=volumeSize;
  this.deleteOnTerminate=deleteOnTerminate;
}

Fixed version (ground truth):
BlockStorageImageInfo(UserFullName userFullName,String imageId,String imageName,String imageDescription,Long imageSizeBytes,Image.Architecture arch,Image.Platform platform,String kernelId,String ramdiskId,String snapshotId,Boolean deleteOnTerminate){
  super(userFullName,imageId,imageName,imageDescription,imageSizeBytes,arch,platform);
  this.kernelId=kernelId;
  this.ramdiskId=ramdiskId;
  this.snapshotId=snapshotId;
  this.deleteOnTerminate=deleteOnTerminate;
}
Program: 15348
Project: 15348
Buggy source:
public ImageInfo(final UserFullName userFullName,final String imageId,final String imageName,final String imageDescription,final Image.Architecture arch,final Image.Platform platform){
  super(userFullName,imageId.substring(0,4).toLowerCase() + imageId.substring(4).toUpperCase());
  assertThat(arch,notNullValue());
  assertThat(imageName,notNullValue());
  assertThat(imageName,notNullValue());
  assertThat(platform,notNullValue());
  this.setState(Image.State.pending);
  this.imagePublic=ImageConfiguration.getInstance().getDefaultVisibility();
  this.architecture=arch;
  this.platform=platform;
}

Fixed version (ground truth):
public ImageInfo(final UserFullName userFullName,final String imageId,final String imageName,final String imageDescription,final Long imageSizeBytes,final Image.Architecture arch,final Image.Platform platform){
  super(userFullName,imageId.substring(0,4).toLowerCase() + imageId.substring(4).toUpperCase());
  assertThat(arch,notNullValue());
  assertThat(imageName,notNullValue());
  assertThat(imageName,notNullValue());
  assertThat(platform,notNullValue());
  this.setState(Image.State.pending);
  this.imagePublic=ImageConfiguration.getInstance().getDefaultVisibility();
  this.architecture=arch;
  this.platform=platform;
  this.imageSizeBytes=imageSizeBytes;
}
Program: 15351
Project: 15351
Buggy source:
public KernelImageInfo(UserFullName userFullName,String imageId,String imageName,String imageDescription,String imageLocation,Long imageSize,Long imageBundleSize,Architecture arch,Platform platform){
  super(userFullName,imageId,imageName,imageDescription,imageLocation,imageSize,imageBundleSize,arch,platform);
  this.setImageType(Image.Type.kernel);
}

Fixed version (ground truth):
public KernelImageInfo(UserFullName userFullName,String imageId,String imageName,String imageDescription,Long imageSizeBytes,Architecture arch,Platform platform,String imageLocation,Long imageBundleSizeBytes){
  super(userFullName,imageId,imageName,imageDescription,imageSizeBytes,arch,platform,imageLocation,imageBundleSizeBytes);
  this.setImageType(Image.Type.kernel);
}
Program: 15352
Project: 15352
Buggy source:
public MachineImageInfo(UserFullName userFullName,String imageId,String imageName,String imageDescription,String imageLocation,Long imageSize,Long imageBundleSize,Architecture arch,Platform platform,String kernelId,String ramdiskId){
  super(userFullName,imageId,imageName,imageDescription,imageLocation,imageSize,imageBundleSize,arch,platform);
  this.kernelId=kernelId;
  this.ramdiskId=ramdiskId;
  this.setImageType(Image.Type.machine);
}

Fixed version (ground truth):
public MachineImageInfo(UserFullName userFullName,String imageId,String imageName,String imageDescription,Long imageSizeBytes,Architecture arch,Platform platform,String imageLocation,Long imageBundleSizeBytes,String kernelId,String ramdiskId){
  super(userFullName,imageId,imageName,imageDescription,imageSizeBytes,arch,platform,imageLocation,imageBundleSizeBytes);
  this.kernelId=kernelId;
  this.ramdiskId=ramdiskId;
  this.setImageType(Image.Type.machine);
}
Program: 15353
Project: 15353
Buggy source:
public String getRamdiskId(){
  return ramdiskId;
}

Fixed version (ground truth):
@Override public String getRamdiskId(){
  return ramdiskId;
}
Program: 15354
Project: 15354
Buggy source:
public boolean hasKernel(){
  return this.getKernelId() != null;
}

Fixed version (ground truth):
@Override public boolean hasKernel(){
  return this.getKernelId() != null;
}
Program: 15355
Project: 15355
Buggy source:
public String getKernelId(){
  return kernelId;
}

Fixed version (ground truth):
@Override public String getKernelId(){
  return kernelId;
}
Program: 15356
Project: 15356
Buggy source:
public boolean hasRamdisk(){
  return this.getRamdiskId() != null;
}

Fixed version (ground truth):
@Override public boolean hasRamdisk(){
  return this.getRamdiskId() != null;
}
Program: 15358
Project: 15358
Buggy source:
public void commit(){
  this.verifyOpen();
  try {
    this.delegate.commit();
  }
 catch (  RuntimeException e) {
    if (this.delegate != null && this.delegate.isActive()) {
      this.delegate.rollback();
      LOG.debug(e,e);
      throw e;
    }
  }
 finally {
    cleanup();
  }
}

Fixed version (ground truth):
public void commit(){
  this.verifyOpen();
  try {
    this.delegate.commit();
  }
 catch (  RuntimeException e) {
    if (this.delegate != null && this.delegate.isActive()) {
      this.delegate.rollback();
      LOG.debug(e,e);
    }
    throw e;
  }
 finally {
    cleanup();
  }
}
Program: 15359
Project: 15359
Buggy source:
private void cleanup(){
  if (this.session != null) {
    this.session.clear();
  }
  this.delegate=null;
  if (this.em != null) {
    this.em.close();
  }
  this.em=null;
  outstanding.remove(this.txUuid);
}

Fixed version (ground truth):
private void cleanup(){
  try {
    if (this.session.get() != null) {
      this.session.clear();
    }
    this.delegate=null;
    if (this.em != null) {
      this.em.close();
    }
    this.em=null;
  }
  finally {
    outstanding.remove(this.txUuid);
  }
}
Program: 15360
Project: 15360
Buggy source:
public TxHandle(String ctx){
  this.txUuid=String.format("String_Node_Str",ctx,UUID.randomUUID().toString());
  this.owner=new RuntimeException();
  this.startTime=Calendar.getInstance();
  this.stopWatch=new StopWatch();
  this.stopWatch.start();
  EntityManagerFactory anemf=(EntityManagerFactoryImpl)PersistenceContexts.getEntityManagerFactory(ctx);
  Assertions.assertNotNull(anemf,"String_Node_Str" + ctx);
  try {
    this.em=anemf.createEntityManager();
    Assertions.assertNotNull(this.em,"String_Node_Str" + ctx);
    this.delegate=this.em.getTransaction();
    this.delegate.begin();
    this.session=new WeakReference<Session>((Session)this.em.getDelegate());
    outstanding.put(this.txUuid,this);
  }
 catch (  Throwable e) {
    this.rollback();
    LOG.error(e,e);
    throw new RuntimeException(e);
  }
}

Fixed version (ground truth):
public TxHandle(String ctx){
  this.txUuid=String.format("String_Node_Str",ctx,UUID.randomUUID().toString());
  this.owner=new Exception();
  this.startTime=Calendar.getInstance();
  this.stopWatch=new StopWatch();
  this.stopWatch.start();
  EntityManagerFactory anemf=(EntityManagerFactoryImpl)PersistenceContexts.getEntityManagerFactory(ctx);
  Assertions.assertNotNull(anemf,"String_Node_Str" + ctx);
  try {
    this.em=anemf.createEntityManager();
    Assertions.assertNotNull(this.em,"String_Node_Str" + ctx);
    this.delegate=this.em.getTransaction();
    this.delegate.begin();
    this.session=new WeakReference<Session>((Session)this.em.getDelegate());
  }
 catch (  Throwable e) {
    this.rollback();
    LOG.error(e,e);
    throw new RuntimeException(e);
  }
 finally {
    outstanding.put(this.txUuid,this);
  }
}
Program: 15361
Project: 15361
Buggy source:
@Override public String getQualifiedName(){
  if (identifierValue != null)   return identifierValue + "String_Node_Str" + this.qualifiedName;
 else   return this.qualifiedName;
}

Fixed version (ground truth):
@Override public String getQualifiedName(){
  if (identifierValue != null)   return identifierValue + "String_Node_Str" + this.getQualifiedName();
 else   return this.getQualifiedName();
}
Program: 15362
Project: 15362
Buggy source:
@Override public String getEntrySetName(){
  if (identifierValue != null)   return identifierValue + "String_Node_Str" + this.entrySetName;
 else   return this.entrySetName;
}

Fixed version (ground truth):
@Override public String getEntrySetName(){
  if (identifierValue != null)   return identifierValue + "String_Node_Str" + this.getEntrySetName();
 else   return this.getEntrySetName();
}
Program: 15363
Project: 15363
Buggy source:
public MultiDatabasePropertyEntry getClone(String identifierValue){
  return new MultiDatabasePropertyEntry(definingClass,entrySetName,field,identifierField,description,defaultValue,typeParser,readOnly,displayName,widgetType,alias,identifierValue);
}

Fixed version (ground truth):
public MultiDatabasePropertyEntry getClone(String identifierValue){
  return new MultiDatabasePropertyEntry(this.getDefiningClass(),this.getEntrySetName(),field,identifierField,this.getDescription(),this.getDefaultValue(),this.getTypeParser(),this.getReadOnly(),this.getDisplayName(),this.getWidgetType(),this.getAlias(),identifierValue);
}