nus-yam/ex-repair huggingface dataset:
Program: 102656
Project: 102656
Buggy source:
@Override protected void doExecute(IDCService service){
  final String method="String_Node_Str";
  this.service=service;
  command=new ReadCardCommand(service);
  WFSIDCCAPS caps;
  try {
    caps=new IDCCapabilitiesCommand(service).call();
  }
 catch (  final XfsException e) {
    if (LOG.isErrorEnabled()) {
      LOG.error(method,"String_Node_Str",e);
    }
    showException(e);
    setCloseCommand();
    return;
  }
  for (  final IDCTrack track : caps.getReadTracks()) {
    command.addReadData(track);
  }
  if (!caps.getChipProtocols().isEmpty()) {
    command.addReadData(IDCTrack.CHIP);
  }
  if (!IDCSecType.WFS_IDC_SECNOTSUPP.equals(caps.getSecType())) {
    command.addReadData(IDCTrack.SECURITY);
  }
  command.addCommandListener(this);
  command.execute();
  getCommands().addCommand(new CancelCommand(getClass(),command));
  showMessage("String_Node_Str");
}

Fixed version (ground truth):
@Override protected void doExecute(IDCService service){
  final String method="String_Node_Str";
  this.service=service;
  command=new ReadCardCommand(service);
  WFSIDCCAPS caps;
  try {
    caps=new IDCCapabilitiesCommand(service).call();
  }
 catch (  final XfsException e) {
    if (LOG.isErrorEnabled()) {
      LOG.error(method,"String_Node_Str",e);
    }
    showException(e);
    setCloseCommand();
    return;
  }
  for (  final IDCTrack track : caps.getReadTracks()) {
    command.addReadData(track);
  }
  if (!caps.getChipProtocols().isEmpty()) {
    command.addReadData(IDCTrack.CHIP);
  }
  if (!IDCSecType.NOTSUPP.equals(caps.getSecType())) {
    command.addReadData(IDCTrack.SECURITY);
  }
  command.addCommandListener(this);
  command.execute();
  getCommands().addCommand(new CancelCommand(getClass(),command));
  showMessage("String_Node_Str");
}
Program: 102657
Project: 102657
Buggy source:
private boolean isCardPresent(){
  final String method="String_Node_Str";
  try {
    final WfsIDCStatus status=new IDCStatusCommand(service).call();
    if (LOG.isDebugEnabled()) {
      LOG.debug(method,"String_Node_Str" + status);
    }
switch (status.getMedia()) {
case WFS_IDC_MEDIAJAMMED:
case WFS_IDC_MEDIAPRESENT:
      return true;
default :
    return false;
}
}
 catch (final XfsException e) {
LOG.error(method,"String_Node_Str",e);
}
return false;
}

Fixed version (ground truth):
private boolean isCardPresent(){
  final String method="String_Node_Str";
  try {
    final WfsIDCStatus status=new IDCStatusCommand(service).call();
    if (LOG.isDebugEnabled()) {
      LOG.debug(method,"String_Node_Str" + status);
    }
switch (status.getMedia()) {
case JAMMED:
case PRESENT:
      return true;
default :
    return false;
}
}
 catch (final XfsException e) {
LOG.error(method,"String_Node_Str",e);
}
return false;
}
Program: 102658
Project: 102658
Buggy source:
@Test public void funcKeyDetail() throws Exception {
  for (  final PINService pinService : xfsServiceManager.getServices(PINService.class)) {
    final ULONG fdkMask=new ULONG();
    fdkMask.put(0xFFFFFFFFL);
    XfsCommand xfsCommand=new XfsInfoCommand(pinService,PINInfoCommand.FUNCKEY_DETAIL,fdkMask);
    WFSResult wfsResult=null;
    try {
      wfsResult=xfsCommand.call();
      WFSPINFUNCKEYDETAIL funcKeyDetail=new WFSPINFUNCKEYDETAIL(wfsResult.getResults());
      System.out.println(funcKeyDetail);
    }
  finally {
      if (wfsResult != null) {
        xfsServiceManager.free(wfsResult);
      }
    }
  }
}

Fixed version (ground truth):
@Test public void funcKeyDetail() throws Exception {
  for (  final PINService pinService : xfsServiceManager.getServices(PINService.class)) {
    final ULONG fdkMask=new ULONG();
    fdkMask.set(0xFFFFFFFFL);
    XfsCommand xfsCommand=new XfsInfoCommand(pinService,PINInfoCommand.FUNCKEY_DETAIL,fdkMask);
    WFSResult wfsResult=null;
    try {
      wfsResult=xfsCommand.call();
      WFSPINFUNCKEYDETAIL funcKeyDetail=new WFSPINFUNCKEYDETAIL(wfsResult.getResults());
      System.out.println(funcKeyDetail);
    }
  finally {
      if (wfsResult != null) {
        xfsServiceManager.free(wfsResult);
      }
    }
  }
}
Program: 102659
Project: 102659
Buggy source:
private void checkRecoveredData() throws IssuerPublicKeyException {
  checkDataTrailer();
  checkDataHeader();
  checkCertificateFormat();
  byte[] remainder=getIssuerPublicKeyRemainder();
  byte[] exponent=issuerPublicKeyCertificate.getExponent();
  checkHashResult(remainder,exponent);
  checkIssuerIdentifier();
  checkExpirationDate();
  checkIssuerPublicKeyAlgorithmIndicator();
  byte[] modulus=Bytes.concat(issuerData.get(ISSUER_PUBLIC_KEY),remainder);
  issuerPublicKey=new PublicKey(issuerData.get(ISSUER_PUBLIC_KEY_ALGORITHM_INDICATOR),modulus,exponent);
}

Fixed version (ground truth):
private void checkRecoveredData() throws IssuerPublicKeyException {
  checkDataTrailer();
  checkDataHeader();
  checkCertificateFormat();
  byte[] remainder=getIssuerPublicKeyRemainder();
  byte[] exponent=issuerPublicKeyCertificate.getExponent();
  checkHashResult(remainder,exponent);
  checkIssuerIdentifier();
  checkExpirationDate();
  checkIssuerPublicKeyAlgorithmIndicator();
  int nCA=caPublicKey.getModulus().length;
  int nI=Bytes.toInt(issuerData.get(ISSUER_PUBLIC_KEY_LENGTH)[0]);
  byte[] modulus;
  if (nI <= nCA - 36) {
    modulus=Bytes.left(issuerData.get(ISSUER_PUBLIC_KEY),nI);
  }
 else {
    modulus=Bytes.concat(issuerData.get(ISSUER_PUBLIC_KEY),remainder);
  }
  issuerPublicKey=new PublicKey(issuerData.get(ISSUER_PUBLIC_KEY_ALGORITHM_INDICATOR),modulus,exponent);
}
Program: 102660
Project: 102660
Buggy source:
private byte[] getIssuerPublicKeyRemainder() throws IssuerPublicKeyRemainderNotPresentException {
  int nCA=caPublicKey.getModulus().length;
  int issuerPublicKeyLength=Bytes.toInt(issuerData.get(ISSUER_PUBLIC_KEY_LENGTH)[0]);
  if (issuerPublicKeyLength > (nCA - 36)) {
    byte[] remainder=issuerPublicKeyCertificate.getRemainder();
    if (remainder.length == 0) {
      throw new IssuerPublicKeyRemainderNotPresentException();
    }
    return remainder;
  }
  return Bytes.EMPTY;
}

Fixed version (ground truth):
private byte[] getIssuerPublicKeyRemainder() throws IssuerPublicKeyRemainderNotPresentException {
  int nCA=caPublicKey.getModulus().length;
  int issuerPublicKeyLength=Bytes.toInt(issuerData.get(ISSUER_PUBLIC_KEY_LENGTH)[0]);
  if (issuerPublicKeyLength > nCA - 36) {
    byte[] remainder=issuerPublicKeyCertificate.getRemainder();
    if (remainder.length == 0) {
      throw new IssuerPublicKeyRemainderNotPresentException();
    }
    return remainder;
  }
  return Bytes.EMPTY;
}
Program: 102661
Project: 102661
Buggy source:
/** 
 * {@link #data}
 */
public byte[] getData(){
  byte[] result=null;
  if (!Pointer.NULL.equals(data)) {
    data.buffer(getLength()).get();
  }
  return result;
}

Fixed version (ground truth):
/** 
 * {@link #data}
 */
public byte[] getData(){
  byte[] result=null;
  if (!Pointer.NULL.equals(data)) {
    result=data.buffer(getLength()).get();
  }
  return result;
}
Program: 102662
Project: 102662
Buggy source:
private byte[] internalAuthenticate() throws DDAFailedException, TerminateSessionException {
  try {
    CAPDU command=new InternalAuthenticate(authenticationData);
    RAPDU response=transaction.getICReader().transmit(command);
    new ProcessingState(response.getSW()).assertSuccessful();
    return new Template(TLV.parse(response.getData())).getMandatoryValue(EMVTag.SIGNED_DYNAMIC_APPLICATION_DATA);
  }
 catch (  IOException e) {
    throw new DDAFailedException(e);
  }
catch (  ProcessingStateException e) {
    throw new DDAFailedException(e);
  }
catch (  TLVConstraintViolationException e) {
    throw new TerminateSessionException(e);
  }
}

Fixed version (ground truth):
private byte[] internalAuthenticate() throws DDAFailedException, TerminateSessionException {
  try {
    CAPDU command=new InternalAuthenticate(authenticationData);
    RAPDU response=transaction.getICReader().transmit(command);
    new ProcessingState(response.getSW()).assertSuccessful();
    TLV tlv=TLV.parse(response.getData());
    if (EMVTag.RESPONSE_MESSAGE_TEMPLATE_FORMAT_1.getTag().equals(tlv.getTag())) {
      return tlv.getValue();
    }
    return new Template(TLV.parse(response.getData())).getMandatoryValue(EMVTag.SIGNED_DYNAMIC_APPLICATION_DATA);
  }
 catch (  IOException e) {
    throw new DDAFailedException(e);
  }
catch (  ProcessingStateException e) {
    throw new DDAFailedException(e);
  }
catch (  TLVConstraintViolationException e) {
    throw new TerminateSessionException(e);
  }
}
Program: 102663
Project: 102663
Buggy source:
public IDCCapabilities(final IDCService idcService){
  ExceptionUtil.nullArgument("String_Node_Str");
  this.idcService=idcService;
}

Fixed version (ground truth):
public IDCCapabilities(final IDCService idcService){
  if (idcService == null) {
    ExceptionUtil.nullArgument("String_Node_Str");
  }
  this.idcService=idcService;
}
Program: 102664
Project: 102664
Buggy source:
public IDCResetCountTask(final IDCService idcService){
  ExceptionUtil.nullArgument("String_Node_Str");
  this.idcService=idcService;
}

Fixed version (ground truth):
public IDCResetCountTask(final IDCService idcService){
  if (idcService == null) {
    ExceptionUtil.nullArgument("String_Node_Str");
  }
  this.idcService=idcService;
}
Program: 102665
Project: 102665
Buggy source:
public IDCResetTask(final IDCService idcService){
  ExceptionUtil.nullArgument("String_Node_Str");
  this.idcService=idcService;
}

Fixed version (ground truth):
public IDCResetTask(final IDCService idcService){
  if (idcService == null) {
    ExceptionUtil.nullArgument("String_Node_Str");
  }
  this.idcService=idcService;
}
Program: 102666
Project: 102666
Buggy source:
public PINCapabilitiesTask(final PINService pinService){
  ExceptionUtil.nullArgument("String_Node_Str");
  this.pinService=pinService;
}

Fixed version (ground truth):
public PINCapabilitiesTask(final PINService pinService){
  if (pinService == null) {
    ExceptionUtil.nullArgument("String_Node_Str");
  }
  this.pinService=pinService;
}
Program: 102667
Project: 102667
Buggy source:
@Override protected void executeInternal(){
  final String method="String_Node_Str";
synchronized (this) {
    if (resetCommand != null) {
      throw new IllegalStateException("String_Node_Str");
    }
    createResetCommand();
    WFSResult wfsResult=null;
    try {
      wfsResult=resetCommand.call();
      notifyCommandSuccessful();
    }
 catch (    final XfsException e) {
      if (LOG.isErrorEnabled()) {
        LOG.error(method,"String_Node_Str" + resetCommand,e);
      }
      notifyCommandFailed(e);
    }
 finally {
      if (wfsResult != null) {
        XfsServiceManager.getInstance().free(wfsResult);
      }
    }
    resetCommand=null;
  }
}

Fixed version (ground truth):
@Override protected void executeInternal(){
  final String method="String_Node_Str";
synchronized (this) {
    if (resetCommand != null) {
      throw new IllegalStateException("String_Node_Str");
    }
    createResetCommand();
    WFSResult wfsResult=null;
    try {
      wfsResult=resetCommand.call();
      notifyCommandSuccessful();
    }
 catch (    final Exception e) {
      if (LOG.isErrorEnabled()) {
        LOG.error(method,"String_Node_Str" + resetCommand,e);
      }
      notifyCommandFailed(e);
    }
 finally {
      if (wfsResult != null) {
        XfsServiceManager.getInstance().free(wfsResult);
      }
    }
    resetCommand=null;
  }
}
Program: 102668
Project: 102668
Buggy source:
public IDCResetCommand(final IDCService idcService){
  ExceptionUtil.nullArgument("String_Node_Str");
  this.idcService=idcService;
}

Fixed version (ground truth):
public IDCResetCommand(final IDCService idcService){
  if (idcService == null) {
    ExceptionUtil.nullArgument("String_Node_Str");
  }
  this.idcService=idcService;
}
Program: 102669
Project: 102669
Buggy source:
public ChipIOCommand(final IDCService idcService,final WFSIDCCHIPIO chipIoIn){
  ExceptionUtil.nullArgument("String_Node_Str");
  this.idcService=idcService;
  this.chipIoIn=chipIoIn;
}

Fixed version (ground truth):
public ChipIOCommand(final IDCService idcService,final WFSIDCCHIPIO chipIoIn){
  if (idcService == null) {
    ExceptionUtil.nullArgument("String_Node_Str");
  }
  this.idcService=idcService;
  this.chipIoIn=chipIoIn;
}
Program: 102670
Project: 102670
Buggy source:
@Override public WFSIDCCHIPIO execute() throws XfsException {
  XfsCommand xfsCommand=new XfsExecuteCommand(idcService,IDCExecuteCommand.WFS_CMD_IDC_CHIP_IO,chipIoIn);
  WFSResult wfsResult=null;
  try {
    wfsResult=xfsCommand.call();
    final WFSIDCCHIPIO chipIoOut=new WFSIDCCHIPIO(wfsResult.getBuffer());
    return new WFSIDCCHIPIO(chipIoOut);
  }
  finally {
    if (wfsResult != null) {
      XfsServiceManager.getInstance().free(wfsResult);
    }
  }
}

Fixed version (ground truth):
@Override public WFSIDCCHIPIO execute() throws InterruptedException, XfsException {
  XfsCommand xfsCommand=new XfsExecuteCommand(idcService,IDCExecuteCommand.WFS_CMD_IDC_CHIP_IO,chipIoIn);
  WFSResult wfsResult=null;
  try {
    wfsResult=xfsCommand.call();
    final WFSIDCCHIPIO chipIoOut=new WFSIDCCHIPIO(wfsResult.getBuffer());
    return new WFSIDCCHIPIO(chipIoOut);
  }
  finally {
    if (wfsResult != null) {
      XfsServiceManager.getInstance().free(wfsResult);
    }
  }
}
Program: 102671
Project: 102671
Buggy source:
@Override public int compareTo(AuctionMessage other){
  if (other.value.equals(value)) {
    return vertexId.hashCode() - other.vertexId.hashCode();
  }
  return other.value.subtract(value).intValue();
}

Fixed version (ground truth):
@Override public int compareTo(AuctionMessage other){
  int cmp=other.value.compareTo(value);
  if (cmp == 0) {
    return vertexId.hashCode() - other.vertexId.hashCode();
  }
  return cmp;
}
Program: 102672
Project: 102672
Buggy source:
private AuctionMessage getMax(List<AuctionMessage> values,Text currentMatchId){
  Collections.sort(values);
  if (currentMatchId == null || currentMatchId.toString().isEmpty()) {
    return values.get(0);
  }
 else {
    AuctionMessage max=values.get(0);
    if (max.getVertexId().equals(currentMatchId)) {
      return max;
    }
 else {
      AuctionMessage currentValue=null;
      for (int i=1; i < values.size(); i++) {
        if (values.get(i).getVertexId().equals(currentMatchId)) {
          currentValue=values.get(i);
          break;
        }
      }
      if (currentValue != null && currentValue.getValue() == max.getValue()) {
        return currentValue;
      }
      return max;
    }
  }
}

Fixed version (ground truth):
private AuctionMessage getMax(List<AuctionMessage> values,Text currentMatchId){
  Collections.sort(values);
  if (currentMatchId == null || currentMatchId.toString().isEmpty()) {
    return values.get(0);
  }
 else {
    AuctionMessage max=values.get(0);
    if (max.getVertexId().equals(currentMatchId)) {
      return max;
    }
 else {
      AuctionMessage currentValue=null;
      for (int i=1; i < values.size(); i++) {
        if (values.get(i).getVertexId().equals(currentMatchId)) {
          currentValue=values.get(i);
          break;
        }
      }
      if (currentValue != null && currentValue.getValue().equals(max.getValue())) {
        return currentValue;
      }
      return max;
    }
  }
}
Program: 102673
Project: 102673
Buggy source:
public void mouseEvent(MouseEvent e){
  if (e.getID() == MouseEvent.MOUSE_PRESSED) {
    if (isMouseOver(e.getX(),e.getY())) {
      wasClicked=true;
    }
  }
 else   if (e.getID() == MouseEvent.MOUSE_RELEASED) {
    if (wasClicked && isMouseOver(e.getX(),e.getY())) {
      if (selected) {
        fireEventNotification(this,"String_Node_Str");
        selected=false;
      }
 else {
        fireEventNotification(this,"String_Node_Str");
        selected=true;
      }
      wasClicked=false;
    }
  }
}

Fixed version (ground truth):
public void mouseEvent(MouseEvent e){
  if (e.getID() == MouseEvent.MOUSE_PRESSED) {
    if (isMouseOver(e.getX(),e.getY())) {
      wasClicked=true;
    }
  }
 else   if (e.getID() == MouseEvent.MOUSE_RELEASED) {
    if (wasClicked && isMouseOver(e.getX(),e.getY())) {
      if (selected) {
        selected=false;
        fireEventNotification(this,"String_Node_Str");
      }
 else {
        selected=true;
        fireEventNotification(this,"String_Node_Str");
      }
      wasClicked=false;
    }
  }
}
Program: 102674
Project: 102674
Buggy source:
public void keyEvent(KeyEvent e){
  if (e.getID() == KeyEvent.KEY_TYPED && e.getKeyChar() == ' ') {
    fireEventNotification(this,"String_Node_Str");
    if (selected) {
      fireEventNotification(this,"String_Node_Str");
      selected=false;
    }
 else {
      fireEventNotification(this,"String_Node_Str");
      selected=true;
    }
  }
}

Fixed version (ground truth):
public void keyEvent(KeyEvent e){
  if (e.getID() == KeyEvent.KEY_TYPED && e.getKeyChar() == ' ') {
    fireEventNotification(this,"String_Node_Str");
    if (selected) {
      selected=false;
      fireEventNotification(this,"String_Node_Str");
    }
 else {
      selected=true;
      fireEventNotification(this,"String_Node_Str");
    }
  }
}
Program: 102675
Project: 102675
Buggy source:
public IFLookAndFeel(PApplet parent,char type){
  defaultGraphicsState=new IFPGraphicsState();
  if (type == DEFAULT) {
    IFPGraphicsState temp=new IFPGraphicsState(parent);
    parent.colorMode(PApplet.RGB,255);
    baseColor=parent.color(153,153,204);
    highlightColor=parent.color(102,102,204);
    activeColor=parent.color(255,153,51);
    selectionColor=parent.color(255,255,0);
    borderColor=parent.color(255);
    textColor=parent.color(0);
    lightGrayColor=parent.color(100);
    darkGrayColor=parent.color(50);
    PFont tempFont=parent.loadFont("String_Node_Str");
    parent.textFont(tempFont,13);
    parent.textAlign(PApplet.LEFT);
    parent.rectMode(PApplet.CORNER);
    parent.ellipseMode(PApplet.CORNER);
    parent.strokeWeight(1);
    parent.colorMode(PApplet.RGB,255);
    parent.smooth();
    defaultGraphicsState.saveSettingsForApplet(parent);
    temp.restoreSettingsToApplet(parent);
  }
}

Fixed version (ground truth):
public IFLookAndFeel(PApplet parent,char type){
  defaultGraphicsState=new IFPGraphicsState();
  if (type == DEFAULT) {
    IFPGraphicsState temp=new IFPGraphicsState(parent);
    parent.colorMode(PApplet.RGB,255);
    baseColor=parent.color(153,153,204);
    highlightColor=parent.color(102,102,204);
    activeColor=parent.color(255,153,51);
    selectionColor=parent.color(255,255,0);
    borderColor=parent.color(255);
    textColor=parent.color(0);
    lightGrayColor=parent.color(100);
    darkGrayColor=parent.color(50);
    System.out.println("String_Node_Str" + parent.g.textAlign + "String_Node_Str"+ parent.g.rectMode+ "String_Node_Str"+ parent.g.ellipseMode+ "String_Node_Str"+ parent.g.colorMode+ "String_Node_Str"+ parent.g.colorModeX+ "String_Node_Str"+ parent.g.smooth);
    PFont tempFont=parent.loadFont("String_Node_Str");
    parent.textFont(tempFont,13);
    parent.textAlign(PApplet.LEFT);
    parent.rectMode(PApplet.CORNER);
    parent.ellipseMode(PApplet.CORNER);
    parent.strokeWeight(1);
    parent.colorMode(PApplet.RGB,255);
    try {
      parent.smooth();
    }
 catch (    RuntimeException e) {
    }
    System.out.println("String_Node_Str" + parent.g.textAlign + "String_Node_Str"+ parent.g.rectMode+ "String_Node_Str"+ parent.g.ellipseMode+ "String_Node_Str"+ parent.g.colorMode+ "String_Node_Str"+ parent.g.colorModeX+ "String_Node_Str"+ parent.g.smooth);
    defaultGraphicsState.saveSettingsForApplet(parent);
    System.out.println("String_Node_Str" + parent.g.getClass() + "String_Node_Str");
    temp.restoreSettingsToApplet(parent);
  }
}
Program: 102676
Project: 102676
Buggy source:
public void draw(){
  if (visible) {
    userState.saveSettingsForApplet(parent);
    lookAndFeel.defaultGraphicsState.restoreSettingsToApplet(parent);
    for (int i=0; i < contents.length; i++) {
      if (contents[i] != null) {
        contents[i].draw();
      }
    }
    userState.restoreSettingsToApplet(parent);
  }
}

Fixed version (ground truth):
public void draw(){
  if (visible) {
    userState.saveSettingsForApplet(parent);
    lookAndFeel.defaultGraphicsState.restoreSettingsToApplet(parent);
    parent.fill(parent.color(0));
    parent.rect(getX(),getY(),getWidth(),getHeight());
    for (int i=0; i < contents.length; i++) {
      if (contents[i] != null) {
        contents[i].draw();
      }
    }
    userState.restoreSettingsToApplet(parent);
  }
}
Program: 102677
Project: 102677
Buggy source:
public void remove(GUIComponent component){
  int componentIndex=-1;
  for (int i=0; i < numItems; i++) {
    if (component == contents[i]) {
      componentIndex=i;
      break;
    }
  }
  if (componentIndex != -1) {
    contents[componentIndex]=null;
    if (componentIndex < numItems - 1) {
      System.arraycopy(contents,componentIndex + 1,contents,componentIndex,numItems);
    }
    numItems--;
  }
}

Fixed version (ground truth):
public void remove(GUIComponent component){
  int componentIndex=-1;
  for (int i=0; i < numItems; i++) {
    if (component == contents[i]) {
      componentIndex=i;
      break;
    }
  }
  if (componentIndex != -1) {
    contents[componentIndex]=null;
    if (componentIndex < numItems - 1) {
      System.arraycopy(contents,componentIndex + 1,contents,componentIndex,numItems - (componentIndex + 1));
    }
    numItems--;
  }
}
Program: 102678
Project: 102678
Buggy source:
public void setY(int newY){
  if (newY > 0)   y=newY;
}

Fixed version (ground truth):
public void setY(int newY){
  if (newY >= 0)   y=newY;
}
Program: 102679
Project: 102679
Buggy source:
public void setX(int newX){
  if (newX > 0)   x=newX;
}

Fixed version (ground truth):
public void setX(int newX){
  if (newX >= 0)   x=newX;
}
Program: 102680
Project: 102680
Buggy source:
public void fireEventNotification(GUIComponent argComponent,String argMessage){
  if (listener == null)   return;
  try {
    GUIEvent e=new GUIEvent(argComponent,argMessage);
    Method m=listener.getClass().getDeclaredMethod("String_Node_Str",new Class[]{e.getClass()});
    try {
      m.invoke(listener,new Object[]{e});
    }
 catch (    InvocationTargetException ex) {
      System.out.println(ex.getCause().getMessage());
    }
catch (    IllegalAccessException ex) {
    }
  }
 catch (  NoSuchMethodException ex) {
    System.out.println("String_Node_Str");
  }
}

Fixed version (ground truth):
public void fireEventNotification(GUIComponent argComponent,String argMessage){
  if (listener == null)   return;
  GUIEvent e=new GUIEvent(argComponent,argMessage);
  IFDelegation.callDelegate(listener,"String_Node_Str",new Object[]{e});
}
Program: 102681
Project: 102681
Buggy source:
public void setPosition(int newX,int newY){
  if (newX > 0 && newY > 0) {
    x=newX;
    y=newY;
  }
}

Fixed version (ground truth):
public void setPosition(int newX,int newY){
  if (newX >= 0 && newY >= 0) {
    x=newX;
    y=newY;
  }
}
Program: 102682
Project: 102682
Buggy source:
/** 
 * restores the saved graphics state to the specified PApplet
 * @param applet the PApplet instance whose state we're restoring
 */
public void restoreSettingsToApplet(PApplet applet){
  if (smooth)   applet.smooth();
 else   applet.noSmooth();
  applet.rectMode(rectMode);
  applet.ellipseMode(ellipseMode);
  if (textFont != null) {
    applet.textFont(textFont);
    applet.textSize(textSize);
  }
  applet.textAlign(textAlign);
  applet.textMode(textMode);
  if (tint)   applet.tint(tintColor);
 else   applet.noTint();
  if (fill)   applet.fill(fillColor);
 else   applet.noFill();
  if (stroke)   applet.stroke(strokeColor);
 else   applet.noStroke();
  applet.strokeWeight(strokeWeight);
  applet.colorMode(cMode,cModeX,cModeY,cModeZ,cModeA);
}

Fixed version (ground truth):
/** 
 * restores the saved graphics state to the specified PApplet
 * @param applet the PApplet instance whose state we're restoring
 */
public void restoreSettingsToApplet(PApplet applet){
  try {
    if (smooth == true) {
      applet.smooth();
    }
 else {
      applet.noSmooth();
    }
  }
 catch (  RuntimeException e) {
  }
  applet.rectMode(rectMode);
  applet.ellipseMode(ellipseMode);
  if (textFont != null) {
    applet.textFont(textFont);
    applet.textSize(textSize);
  }
  applet.textAlign(textAlign);
  applet.textMode(textMode);
  if (tint)   applet.tint(tintColor);
 else   applet.noTint();
  if (fill)   applet.fill(fillColor);
 else   applet.noFill();
  if (stroke)   applet.stroke(strokeColor);
 else   applet.noStroke();
  applet.strokeWeight(strokeWeight);
  applet.colorMode(cMode,cModeX,cModeY,cModeZ,cModeA);
}
Program: 102683
Project: 102683
Buggy source:
public TPCLog(String logPath,KeyServer<K,V> keyServer){
  this.logPath=logPath;
  entries=null;
}

Fixed version (ground truth):
public TPCLog(String logPath,KeyServer<K,V> keyServer){
  this.logPath=logPath;
  entries=null;
  this.keyServer=keyServer;
}
Program: 102684
Project: 102684
Buggy source:
/** 
 * @param args
 */
public static void main(String[] args) throws Exception {
  if (args.length != 3) {
    System.err.println("String_Node_Str");
    System.exit(1);
  }
  slaveID=UUID.fromString(args[0]);
  masterHostName=args[1];
  masterPort=Integer.parseInt(args[2]);
  if (args.length == 4) {
    registrationPort=Integer.parseInt(args[4]);
  }
  System.out.println("String_Node_Str");
  keyServer=new KeyServer<String,String>(1000);
  server=new SocketServer(InetAddress.getLocalHost().getHostAddress());
  TPCMasterHandler<String,String> handler=new TPCMasterHandler<String,String>(keyServer);
  server.addHandler(handler);
  server.connect();
  System.out.println("String_Node_Str" + server.getHostname() + "String_Node_Str"+ server.getPort());
  server.run();
  logPath=server.getHostname() + "String_Node_Str" + server.getPort();
  tpcLog=new TPCLog<String,String>(logPath,keyServer);
  tpcLog.rebuildKeyServer();
  handler.setTPCLog(tpcLog);
}

Fixed version (ground truth):
/** 
 * @param args
 */
public static void main(String[] args) throws Exception {
  if (args.length < 3) {
    System.err.println("String_Node_Str");
    System.exit(1);
  }
  slaveID=UUID.fromString(args[0]);
  masterHostName=args[1];
  masterPort=Integer.parseInt(args[2]);
  if (args.length == 4) {
    registrationPort=Integer.parseInt(args[3]);
  }
  System.out.println("String_Node_Str");
  keyServer=new KeyServer<String,String>(1000);
  server=new SocketServer(InetAddress.getLocalHost().getHostAddress());
  TPCMasterHandler<String,String> handler=new TPCMasterHandler<String,String>(keyServer);
  server.addHandler(handler);
  server.connect();
  System.out.println("String_Node_Str" + server.getHostname() + "String_Node_Str"+ server.getPort());
  server.run();
  logPath=server.getHostname() + "String_Node_Str" + server.getPort();
  tpcLog=new TPCLog<String,String>(logPath,keyServer);
  tpcLog.rebuildKeyServer();
  handler.setTPCLog(tpcLog);
}
Program: 102685
Project: 102685
Buggy source:
/** 
 * @param args
 */
public static void main(String[] args) throws Exception {
  if (args.length < 3) {
    System.err.println("String_Node_Str");
    System.exit(1);
  }
  slaveID=UUID.fromString(args[0]);
  masterHostName=args[1];
  masterPort=Integer.parseInt(args[2]);
  if (args.length == 4) {
    registrationPort=Integer.parseInt(args[3]);
  }
  System.out.println("String_Node_Str");
  keyServer=new KeyServer<String,String>(1000);
  server=new SocketServer(InetAddress.getLocalHost().getHostAddress());
  TPCMasterHandler<String,String> handler=new TPCMasterHandler<String,String>(keyServer);
  server.addHandler(handler);
  server.connect();
  System.out.println("String_Node_Str" + server.getHostname() + "String_Node_Str"+ server.getPort());
  server.run();
  logPath=server.getHostname() + "String_Node_Str" + server.getPort();
  tpcLog=new TPCLog<String,String>(logPath,keyServer);
  tpcLog.rebuildKeyServer();
  handler.setTPCLog(tpcLog);
}

Fixed version (ground truth):
/** 
 * @param args
 */
public static void main(String[] args) throws Exception {
  if (args.length != 4) {
    System.err.println("String_Node_Str");
    System.exit(1);
  }
  slaveID=UUID.fromString(args[0]);
  masterHostName=args[1];
  masterPort=Integer.parseInt(args[2]);
  registrationPort=Integer.parseInt(args[3]);
  System.out.println("String_Node_Str");
  keyServer=new KeyServer<String,String>(1000);
  server=new SocketServer(InetAddress.getLocalHost().getHostAddress());
  TPCMasterHandler<String,String> handler=new TPCMasterHandler<String,String>(keyServer);
  server.addHandler(handler);
  server.connect();
  System.out.println("String_Node_Str" + server.getHostname() + "String_Node_Str"+ server.getPort());
  server.run();
  logPath=server.getHostname() + "String_Node_Str" + server.getPort();
  tpcLog=new TPCLog<String,String>(logPath,keyServer);
  tpcLog.rebuildKeyServer();
  handler.setTPCLog(tpcLog);
}
Program: 102686
Project: 102686
Buggy source:
protected JXFrame resolveParentFrame(){
  ApplicationWindow activeWindow=getApplicationConfig().windowManager().getActiveWindow();
  if (activeWindow == null)   return null;
  return activeWindow.getControl();
}

Fixed version (ground truth):
protected JFrame resolveParentFrame(){
  ApplicationWindow activeWindow=getApplicationConfig().windowManager().getActiveWindow();
  if (activeWindow == null)   return null;
  return activeWindow.getControl();
}
Program: 102687
Project: 102687
Buggy source:
/** 
 * Returns the   {@link javax.swing.JFrame} of the application window that this command belongs to.
 * @return The control component of the application window, never null.
 */
protected JXFrame getParentWindowControl(){
  final ApplicationWindow applicationWindow=getApplicationWindow();
  if (applicationWindow == null) {
    return ValkyrieRepository.getInstance().getApplicationConfig().windowManager().getActiveWindow().getControl();
  }
  return applicationWindow.getControl();
}

Fixed version (ground truth):
/** 
 * Returns the   {@link javax.swing.JFrame} of the application window that this command belongs to.
 * @return The control component of the application window, never null.
 */
protected JFrame getParentWindowControl(){
  final ApplicationWindow applicationWindow=getApplicationWindow();
  if (applicationWindow == null) {
    return ValkyrieRepository.getInstance().getApplicationConfig().windowManager().getActiveWindow().getControl();
  }
  return applicationWindow.getControl();
}
Program: 102688
Project: 102688
Buggy source:
@Override protected void doExecuteCommand(){
  try {
    UIManager.setLookAndFeel(lookAndFeelClass);
    for (    ApplicationWindow appWindow : ValkyrieRepository.getInstance().getApplicationConfig().windowManager().getWindows()) {
      JXFrame control=appWindow.getControl();
      SwingUtilities.updateComponentTreeUI(control);
      for (      Window window : control.getOwnedWindows()) {
        updateWindow(window);
      }
    }
  }
 catch (  Exception e) {
    throw new ApplicationException("String_Node_Str");
  }
}

Fixed version (ground truth):
@Override protected void doExecuteCommand(){
  try {
    UIManager.setLookAndFeel(lookAndFeelClass);
    for (    ApplicationWindow appWindow : ValkyrieRepository.getInstance().getApplicationConfig().windowManager().getWindows()) {
      JFrame control=appWindow.getControl();
      SwingUtilities.updateComponentTreeUI(control);
      for (      Window window : control.getOwnedWindows()) {
        updateWindow(window);
      }
    }
  }
 catch (  Exception e) {
    throw new ApplicationException("String_Node_Str");
  }
}
Program: 102689
Project: 102689
Buggy source:
public boolean contains(AbstractCommand command){
  for (int i=0; i < members.size(); i++) {
    GroupMember member=(GroupMember)members.get(i);
    if (member.managesCommand(command.getId())) {
      return true;
    }
  }
  return false;
}

Fixed version (ground truth):
public boolean contains(AbstractCommand command){
  for (  GroupMember member : members) {
    if (member.managesCommand(command.getId())) {
      return true;
    }
  }
  return false;
}
Program: 102690
Project: 102690
Buggy source:
public void setContainersVisible(boolean visible){
  Iterator it=builders.values().iterator();
  while (it.hasNext()) {
    GroupMemberContainerManager gcm=(GroupMemberContainerManager)it.next();
    gcm.setVisible(visible);
  }
}

Fixed version (ground truth):
public void setContainersVisible(boolean visible){
  for (  GroupMemberContainerManager gcm : builders.values()) {
    gcm.setVisible(visible);
  }
}
Program: 102691
Project: 102691
Buggy source:
protected void rebuildControls(){
  Iterator iter=builders.values().iterator();
  while (iter.hasNext()) {
    GroupMemberContainerManager builder=(GroupMemberContainerManager)iter.next();
    if (builder != null) {
      builder.rebuildControlsFor(members);
    }
  }
}

Fixed version (ground truth):
protected void rebuildControls(){
  for (  GroupMemberContainerManager builder : builders.values()) {
    if (builder != null) {
      builder.rebuildControlsFor(members);
    }
  }
}
Program: 102692
Project: 102692
Buggy source:
private String buildMessage(String objectName,Object rejectedValue,Constraint constraint){
  StringBuffer buf=new StringBuffer(255);
  MessageSourceResolvable[] args=resolveArguments(constraint);
  if (logger.isDebugEnabled()) {
    logger.debug(StylerUtils.style(args));
  }
  if (objectName != null) {
    buf.append(resolveObjectName(objectName));
    buf.append(' ');
  }
  for (int i=0; i < args.length - 1; i++) {
    MessageSourceResolvable arg=args[i];
    buf.append(messages.getMessage(arg,locale));
    buf.append(' ');
  }
  buf.append(messages.getMessage(args[args.length - 1],locale));
  buf.append("String_Node_Str");
  return buf.toString();
}

Fixed version (ground truth):
protected String buildMessage(String objectName,Object rejectedValue,Constraint constraint){
  StringBuffer buf=new StringBuffer(255);
  MessageSourceResolvable[] args=resolveArguments(constraint);
  if (logger.isDebugEnabled()) {
    logger.debug(StylerUtils.style(args));
  }
  if (objectName != null) {
    buf.append(resolveObjectName(objectName));
    buf.append(' ');
  }
  for (int i=0; i < args.length - 1; i++) {
    MessageSourceResolvable arg=args[i];
    buf.append(messages.getMessage(arg,locale));
    buf.append(' ');
  }
  buf.append(messages.getMessage(args[args.length - 1],locale));
  buf.append("String_Node_Str");
  return buf.toString();
}
Program: 102693
Project: 102693
Buggy source:
void visit(Constraint constraint){
  if (constraint instanceof Range) {
    this.args.add(handleRange((Range)constraint));
  }
 else   if (constraint instanceof ParameterizedBinaryConstraint) {
    this.args.add(handleParameterizedBinaryPredicate((ParameterizedBinaryConstraint)constraint));
  }
 else {
    add(getMessageCode(constraint),null,constraint.toString());
  }
}

Fixed version (ground truth):
protected void visit(Constraint constraint){
  if (constraint instanceof Range) {
    this.args.add(handleRange((Range)constraint));
  }
 else   if (constraint instanceof ParameterizedBinaryConstraint) {
    this.args.add(handleParameterizedBinaryPredicate((ParameterizedBinaryConstraint)constraint));
  }
 else {
    add(getMessageCode(constraint),null,constraint.toString());
  }
}
Program: 102694
Project: 102694
Buggy source:
/** 
 * {@inheritDoc}If allwaysRefresh is set, this method will trigger refresh() each time it is executed.
 */
public Object getValue(){
  if (alwaysRefresh) {
    refresh();
  }
  return super.getValue();
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}If allwaysRefresh is set, this method will trigger refresh() each time it is executed.
 */
public Object getValue(){
  if (alwaysRefresh || !initialized) {
    refresh();
    initialized=true;
  }
  return super.getValue();
}
Program: 102695
Project: 102695
Buggy source:
/** 
 * Constructor supplying a refresh <code>Closure</code> that allways has to be triggered when reading the value. Additionally a refresh is triggered on construction.
 */
public RefreshableValueHolder(Closure refreshFunction,boolean alwaysRefresh,boolean lazyInit){
  super();
  Assert.notNull(refreshFunction,"String_Node_Str");
  this.refreshFunction=refreshFunction;
  this.alwaysRefresh=alwaysRefresh;
  if (!lazyInit) {
    refresh();
  }
}

Fixed version (ground truth):
/** 
 * Constructor supplying a refresh <code>Closure</code> that allways has to be triggered when reading the value. Additionally a refresh is triggered on construction.
 * @deprecated lazy initialization is always done
 */
@Deprecated public RefreshableValueHolder(Closure refreshFunction,boolean alwaysRefresh,boolean lazyInit){
  super();
  Assert.notNull(refreshFunction,"String_Node_Str");
  this.refreshFunction=refreshFunction;
  this.alwaysRefresh=alwaysRefresh;
}
Program: 102696
Project: 102696
Buggy source:
@Override public AnnotationConfigApplicationContext getObject() throws Exception {
  CommandBarApplicationContext context=new CommandBarApplicationContext();
  context.setParent(parent);
  context.register(configClass);
  context.refresh();
  return context;
}

Fixed version (ground truth):
@Override public AnnotationConfigApplicationContext getObject() throws Exception {
  AnnotationConfigApplicationContext context=new AnnotationConfigApplicationContext();
  context.setParent(parent);
  context.register(configClass);
  AnnotationConfigUtils.registerAnnotationConfigProcessors(context);
  context.getBeanFactory().addBeanPostProcessor(new ApplicationWindowSetter(getOpeningWindow()));
  context.refresh();
  return context;
}
Program: 102697
Project: 102697
Buggy source:
protected TableWidget getTable(){
  if (table == null) {
    if (useOriginalSortOrder)     this.table=new GlazedListTableWidget(null,getTableDescription(),null);
 else     this.table=new GlazedListTableWidget(null,getTableDescription());
  }
  return this.table;
}

Fixed version (ground truth):
protected TableWidget getTable(){
  if (table == null) {
    if (useOriginalSortOrder) {
      this.table=new GlazedListTableWidget(null,getTableDescription(),null,isFilteringSupported());
    }
 else     this.table=new GlazedListTableWidget(null,getTableDescription(),isFilteringSupported());
  }
  return this.table;
}
Program: 102698
Project: 102698
Buggy source:
public JComponent getComponent(){
  createComponent();
  return this.tableScroller;
}

Fixed version (ground truth):
public JComponent getComponent(){
  return this.tableScroller;
}
Program: 102699
Project: 102699
Buggy source:
/** 
 * Locates the given element on the page, and returns the actual Selenium WebElement implementation of it
 */
public WebElement findElement(By by){
  return getDriver().findElement(by);
}

Fixed version (ground truth):
/** 
 * Locates the given element on the page, and returns the actual Selenium WebElement implementation of it
 * @param by 
 * @return 
 */
public WebElement findElement(By by){
  return getDriver().findElement(by);
}
Program: 102700
Project: 102700
Buggy source:
/** 
 * Navigates to the given URL
 */
public void get(String url){
  driver.get(url);
}

Fixed version (ground truth):
/** 
 * Navigates to the given URL
 * @param url 
 */
public void get(String url){
  driver.get(url);
}
Program: 102701
Project: 102701
Buggy source:
/** 
 * Returns the Root site, to which all URLs will be appended
 */
public String getSiteRoot(){
  return siteURL;
}

Fixed version (ground truth):
/** 
 * Returns the Root site, to which all URLs will be appended
 * @return 
 */
public String getSiteRoot(){
  return siteURL;
}
Program: 102702
Project: 102702
Buggy source:
/** 
 * Injector for the presentationLayer field
 * @param files
 */
public void setPresentationLayer(IPresentationLayerInfo presentationLayer){
  this.presentationLayer=presentationLayer;
}

Fixed version (ground truth):
/** 
 * Injector for the presentationLayer field
 * @param presentationLayer 
 * @param files
 */
public void setPresentationLayer(IPresentationLayerInfo presentationLayer){
  this.presentationLayer=presentationLayer;
}
Program: 102703
Project: 102703
Buggy source:
/** 
 * Sets the member variable pageContents by reading the file contents
 * @param path
 */
public void setPageContents(String pageContents){
  this.pageContents=pageContents;
}

Fixed version (ground truth):
/** 
 * Sets the member variable pageContents by reading the file contents
 * @param pageContents 
 * @param path
 */
public void setPageContents(String pageContents){
  this.pageContents=pageContents;
}
Program: 102704
Project: 102704
Buggy source:
/** 
 * Return the value currently reflected in the UI
 */
T getWebValue();

Fixed version (ground truth):
/** 
 * Return the value currently reflected in the UI
 * @return 
 */
T getWebValue();
Program: 102705
Project: 102705
Buggy source:
/** 
 * Set the "stored value" in this element, but NOT in the browser
 */
void setValue(T value);

Fixed version (ground truth):
/** 
 * Set the "stored value" in this element, but NOT in the browser
 * @param value 
 */
void setValue(T value);
Program: 102706
Project: 102706
Buggy source:
void initPageContents();

Fixed version (ground truth):
/** 
 * Brings the page "online" by opening it, analyzing the contents, and getting it ready to deliver its contents
 */
void initPageContents();
Program: 102707
Project: 102707
Buggy source:
private void generateDerivedPageFile(PageInfo page){
  Map<String,Object> pageContext=new LinkedHashMap<String,Object>();
  String pageName=getDerivedPageClassName(page);
  pageContext.put("String_Node_Str",pageName);
  pageContext.put("String_Node_Str",page.getPackage());
  pageContext.put("String_Node_Str",getBasePageClassName(page));
  try {
    String pagePath=getDerivedPagePath(page);
    log.debug(String.format("String_Node_Str",pageName,pagePath));
    generateFile(pageContext,getCodegenTemplatePath() + "String_Node_Str",pagePath);
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
}

Fixed version (ground truth):
private void generateDerivedPageFile(PageInfo page){
  Map<String,Object> pageContext=new LinkedHashMap<String,Object>();
  String pageName=getDerivedPageClassName(page);
  pageContext.put("String_Node_Str",pageName);
  pageContext.put("String_Node_Str",page.getPackage());
  pageContext.put("String_Node_Str",getBasePageClassName(page));
  try {
    String pagePath=getDerivedPagePath(page);
    File file=new File(pagePath);
    if (!file.exists()) {
      log.debug(String.format("String_Node_Str",pageName,pagePath));
      generateFile(pageContext,getCodegenTemplatePath() + "String_Node_Str",pagePath);
    }
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
}
Program: 102708
Project: 102708
Buggy source:
private Object invokeLoadBalanced(RemoteMethodInfo remoteMethodInfo,Object[] args) throws Throwable {
  Callable callable=remoteMethodInvocationFactory.create(serviceContextName,remoteInterfaceInfo.targetInterface.getSimpleName(),remoteMethodInfo.method.getName(),args,remoteMethodInfo.argTypes,null);
  Member targetMember=remoteMethodInfo.loadBalancer.getNext();
  DistributedTask<String> task=new DistributedTask<String>(callable,targetMember);
  Future future=executorService.submit(task);
  try {
    return future.get(remoteMethodInfo.timeoutMs,TimeUnit.MILLISECONDS);
  }
 catch (  ExecutionException e) {
    Throwable cause=e.getCause();
    if (cause == null) {
      cause=new MemberLeftException();
    }
    throw cause;
  }
catch (  TimeoutException e) {
    throw new RemoteMethodTimeoutException(format("String_Node_Str",remoteMethodInfo.method.toString(),remoteMethodInfo.timeoutMs),e);
  }
}

Fixed version (ground truth):
private Object invokeLoadBalanced(RemoteMethodInfo remoteMethodInfo,Object[] args) throws Throwable {
  Callable callable=remoteMethodInvocationFactory.create(serviceContextName,remoteInterfaceInfo.targetInterface.getSimpleName(),remoteMethodInfo.method.getName(),args,remoteMethodInfo.argTypes,null);
  Member targetMember=remoteMethodInfo.loadBalancer.getNext();
  DistributedTask<String> task=new DistributedTask<String>(callable,targetMember);
  Future future=executorService.submit(task);
  try {
    return future.get(remoteMethodInfo.timeoutMs,TimeUnit.MILLISECONDS);
  }
 catch (  MemberLeftException e) {
    throw e;
  }
catch (  ExecutionException e) {
    Throwable cause=e.getCause();
    if (cause == null) {
      cause=new MemberLeftException();
    }
 else {
      StackTraceElement[] clientSideStackTrace=Thread.currentThread().getStackTrace();
      fixStrackTrace(cause,clientSideStackTrace);
    }
    throw cause;
  }
catch (  TimeoutException e) {
    throw new RemoteMethodTimeoutException(format("String_Node_Str",remoteMethodInfo.method.toString(),remoteMethodInfo.timeoutMs),e);
  }
}
Program: 102709
Project: 102709
Buggy source:
private Object invokePartitioned(RemoteMethodInfo remoteMethodInfo,Object[] args) throws Throwable {
  Object partitionKey=getPartitionKey(remoteMethodInfo,args);
  Callable callable=remoteMethodInvocationFactory.create(serviceContextName,remoteInterfaceInfo.targetInterface.getSimpleName(),remoteMethodInfo.method.getName(),args,remoteMethodInfo.argTypes,partitionKey);
  Future future=executorService.submit(callable);
  try {
    return future.get(remoteMethodInfo.timeoutMs,TimeUnit.MILLISECONDS);
  }
 catch (  ExecutionException e) {
    throw e.getCause();
  }
catch (  TimeoutException e) {
    throw new RemoteMethodTimeoutException(format("String_Node_Str",remoteMethodInfo.method.toString(),remoteMethodInfo.timeoutMs),e);
  }
}

Fixed version (ground truth):
private Object invokePartitioned(RemoteMethodInfo remoteMethodInfo,Object[] args) throws Throwable {
  Object partitionKey=getPartitionKey(remoteMethodInfo,args);
  Callable callable=remoteMethodInvocationFactory.create(serviceContextName,remoteInterfaceInfo.targetInterface.getSimpleName(),remoteMethodInfo.method.getName(),args,remoteMethodInfo.argTypes,partitionKey);
  Future future=executorService.submit(callable);
  try {
    return future.get(remoteMethodInfo.timeoutMs,TimeUnit.MILLISECONDS);
  }
 catch (  MemberLeftException e) {
    throw e;
  }
catch (  ExecutionException e) {
    Throwable cause=e.getCause();
    if (cause == null) {
      cause=new MemberLeftException();
    }
 else {
      StackTraceElement[] clientSideStackTrace=Thread.currentThread().getStackTrace();
      fixStrackTrace(cause,clientSideStackTrace);
    }
    throw cause;
  }
catch (  TimeoutException e) {
    throw new RemoteMethodTimeoutException(format("String_Node_Str",remoteMethodInfo.method.toString(),remoteMethodInfo.timeoutMs),e);
  }
}
Program: 102710
Project: 102710
Buggy source:
@Test public void exceptionUnwrapping(){
  TestService proxy=proxyProvider.getProxy(TestService.class);
  String arg="String_Node_Str";
  when(testServiceMock.singleArg(arg)).thenThrow(new MyRuntimeException());
  try {
    proxy.singleArg(arg);
    fail();
  }
 catch (  MyRuntimeException expected) {
    expected.printStackTrace();
  }
}

Fixed version (ground truth):
@Test public void exceptionUnwrapping(){
  TestService proxy=proxyProvider.getProxy(TestService.class);
  String arg="String_Node_Str";
  when(testServiceMock.singleArg(arg)).thenThrow(new MyRuntimeException());
  try {
    proxy.singleArg(arg);
    fail();
  }
 catch (  MyRuntimeException expected) {
    System.err.println("String_Node_Str");
    expected.printStackTrace();
    System.err.println("String_Node_Str");
  }
}
Program: 102711
Project: 102711
Buggy source:
@Test public void exceptionUnwrapping(){
  TestService proxy=proxyProvider.getProxy(TestService.class);
  String arg="String_Node_Str";
  when(testServiceMock.singleArg(arg)).thenThrow(new MyRuntimeException());
  try {
    proxy.singleArg(arg);
    fail();
  }
 catch (  MyRuntimeException expected) {
  }
}

Fixed version (ground truth):
@Test public void exceptionUnwrapping(){
  TestService proxy=proxyProvider.getProxy(TestService.class);
  String arg="String_Node_Str";
  when(testServiceMock.singleArg(arg)).thenThrow(new MyRuntimeException());
  try {
    proxy.singleArg(arg);
    fail();
  }
 catch (  MyRuntimeException expected) {
    System.err.println("String_Node_Str");
    expected.printStackTrace();
    System.err.println("String_Node_Str");
  }
}