nus-yam/ex-repair huggingface dataset:
Program: 102600
Project: 102600
Buggy source:
/** 
 * Retrieves the data for the value with the specified name, within the specified open key.
 */
public String wfmQueryValue(final HKEY hKey,final String valueName) throws XfsException {
  final ZSTR data=new ZSTR(SIZE_LIMIT,true);
  final DWORD cchData=new DWORD(0L);
  final int errorCode=wfmQueryValue0(hKey,new ZSTR(valueName),data,cchData);
  XfsException.throwFor(errorCode);
  return data.toString();
}

Fixed version (ground truth):
/** 
 * Retrieves the data for the value with the specified name, within the specified open key.
 */
public String wfmQueryValue(final HKEY hKey,final String valueName) throws XfsException {
  final ZSTR data=new ZSTR(SIZE_LIMIT,true);
  final DWORD cchData=new DWORD(data.getSize());
  final int errorCode=wfmQueryValue0(hKey,new ZSTR(valueName),data,cchData);
  XfsException.throwFor(errorCode);
  return data.toString();
}
Program: 102602
Project: 102602
Buggy source:
@Override protected void execute(){
  final WFSPTRRAWDATA rawData=new WFSPTRRAWDATA();
  rawData.allocate();
  rawData.setData(new byte[]{27,64,'A'});
  WFSResult wfsResult=null;
  try {
    wfsResult=new PTRRawDataCallable(service,rawData).call();
    System.out.println(wfsResult);
  }
 catch (  final XfsException e) {
    showException(e);
  }
 finally {
    if (wfsResult != null) {
      XfsServiceManager.getInstance().free(wfsResult);
    }
  }
}

Fixed version (ground truth):
@Override protected void execute(){
  final RawData3 rawData=new RawData3.Builder(new byte[]{27,64,'A'}).build();
  WFSResult wfsResult=null;
  try {
    wfsResult=new PTRRawDataCallable(service,rawData).call();
    System.out.println(wfsResult);
  }
 catch (  final XfsException e) {
    showException(e);
  }
 finally {
    if (wfsResult != null) {
      XfsServiceManager.getInstance().free(wfsResult);
    }
  }
}
Program: 102603
Project: 102603
Buggy source:
@Override protected void execute(){
  table=new Table(getClass(),"String_Node_Str","String_Node_Str");
  try {
    final WFSPTRSTATUS status=new PTRStatusCallable(service).call();
    addRow("String_Node_Str",status.getDevice());
    addRow("String_Node_Str",status.getMedia());
    addPaperSupplyStates(status.getPaper());
    addRow("String_Node_Str",status.getToner());
    addRow("String_Node_Str",status.getInk());
    addRow("String_Node_Str",status.getLamp());
    addRow("String_Node_Str",status.getRetractBins());
    addRow("String_Node_Str",status.getMediaOnStacker());
    addRow("String_Node_Str",status.getExtra());
    addRow("String_Node_Str",status.getGuidLights());
    addRow("String_Node_Str",status.getDevicePosition());
    addRow("String_Node_Str",status.getPowerSaveRecoveryTime());
    addRow("String_Node_Str",status.getPaperType());
    addRow("String_Node_Str",status.getAntiFraudModule());
    getContent().setUIElement(table);
  }
 catch (  final XfsException e) {
    showException(e);
  }
}

Fixed version (ground truth):
@Override protected void execute(){
  table=new Table(getClass(),"String_Node_Str","String_Node_Str");
  try {
    final PtrStatus3 status=new PTRStatusCallable(service).call();
    addRow("String_Node_Str",status.getDevice());
    addRow("String_Node_Str",status.getMedia());
    addPaperSupplyStates(status.getPaper());
    addRow("String_Node_Str",status.getToner());
    addRow("String_Node_Str",status.getInk());
    addRow("String_Node_Str",status.getLamp());
    addRow("String_Node_Str",status.getRetractBins());
    addRow("String_Node_Str",status.getMediaOnStacker());
    addRow("String_Node_Str",status.getExtra());
    if (status instanceof PtrStatus310) {
      PtrStatus310 status310=(PtrStatus310)status;
      addRow("String_Node_Str",status310.getGuidLights());
      addRow("String_Node_Str",status310.getDevicePosition());
      addRow("String_Node_Str",status310.getPowerSaveRecoveryTime());
    }
    if (status instanceof PtrStatus320) {
      PtrStatus320 status320=(PtrStatus320)status;
      addRow("String_Node_Str",status320.getPaperTypes());
      addRow("String_Node_Str",status320.getAntiFraudModule());
    }
    getContent().setUIElement(table);
  }
 catch (  final XfsException e) {
    showException(e);
  }
}
Program: 102604
Project: 102604
Buggy source:
private void addPaperSupplyStates(final PTRPaper[] paperStates){
  for (int i=0; i < paperStates.length; i++) {
    if (PTRPaper.NOTSUPP.equals(paperStates[i])) {
      continue;
    }
    addRow("String_Node_Str" + i,paperStates[i]);
  }
}

Fixed version (ground truth):
private void addPaperSupplyStates(final PaperStatus[] paperStates){
  for (int i=0; i < paperStates.length; i++) {
    if (PaperStatus.NOTSUPP.equals(paperStates[i])) {
      continue;
    }
    addRow("String_Node_Str" + i,paperStates[i]);
  }
}
Program: 102605
Project: 102605
Buggy source:
private void addPTRService(final PTRService service){
  try {
    WFSPTRSTATUS status=new PTRStatusCallable(service).call();
    table.addRowWithCommand(new ExecuteSubTaskCommand(taskManager,new PTRStatusTask(service)),service,status.getDevice());
  }
 catch (  XfsException e) {
    table.addRow(service,e.getError());
  }
}

Fixed version (ground truth):
private void addPTRService(final PTRService service){
  try {
    PtrStatus3 status=new PTRStatusCallable(service).call();
    table.addRowWithCommand(new ExecuteSubTaskCommand(taskManager,new PTRStatusTask(service)),service,status.getDevice());
  }
 catch (  XfsException e) {
    table.addRow(service,e.getError());
  }
}
Program: 102606
Project: 102606
Buggy source:
@Override public WFSPTRCAPS call() throws XfsException {
  final String method="String_Node_Str";
  final XfsInfoCommand infoCommand=new XfsInfoCommand(ptrService,PTRInfoCommand.CAPABILITIES);
  final WFSResult wfsResult=infoCommand.call();
  try {
    final WFSPTRCAPS caps=new WFSPTRCAPS(wfsResult.getResults(),ptrService.getXfsVersion());
    if (LOG.isInfoEnabled()) {
      LOG.info(method,"String_Node_Str" + caps);
    }
    return new WFSPTRCAPS(caps,ptrService.getXfsVersion());
  }
  finally {
    if (wfsResult != null) {
      XfsServiceManager.getInstance().free(wfsResult);
    }
  }
}

Fixed version (ground truth):
@Override public PtrCapabilities3 call() throws XfsException {
  final String method="String_Node_Str";
  final XfsInfoCommand<PtrInfoCommand> infoCommand=new XfsInfoCommand<>(ptrService,PtrInfoCommand.CAPABILITIES);
  final WFSResult wfsResult=infoCommand.call();
  try {
    final PtrCapabilities3 result=PtrFactory.create(ptrService.getXfsVersion(),wfsResult.getResults(),PtrCapabilities3.class);
    if (LOG.isInfoEnabled()) {
      LOG.info(method,"String_Node_Str" + result);
    }
    return result;
  }
  finally {
    if (wfsResult != null) {
      XfsServiceManager.getInstance().free(wfsResult);
    }
  }
}
Program: 102607
Project: 102607
Buggy source:
@Override public WFSResult call() throws XfsException {
  final XfsExecuteCommand rawDataCommand=new XfsExecuteCommand(ptrService,PTRExecuteCommand.RAW_DATA,rawData);
  return rawDataCommand.call();
}

Fixed version (ground truth):
@Override public WFSResult call() throws XfsException {
  final XfsExecuteCommand<PtrExecuteCommand> rawDataCommand=new XfsExecuteCommand<>(ptrService,PtrExecuteCommand.RAW_DATA,rawData);
  return rawDataCommand.call();
}
Program: 102608
Project: 102608
Buggy source:
public PTRRawDataCallable(final PTRService ptrService,final WFSPTRRAWDATA rawData){
  this.ptrService=ptrService;
  this.rawData=rawData;
}

Fixed version (ground truth):
public PTRRawDataCallable(final PTRService ptrService,final RawData3 rawData){
  this.ptrService=ptrService;
  this.rawData=rawData;
}
Program: 102609
Project: 102609
Buggy source:
@Override public WFSPTRSTATUS call() throws XfsException {
  final XfsCommand infoCommand=new XfsInfoCommand(ptrService,PTRInfoCommand.STATUS);
  final WFSResult wfsResult=infoCommand.call();
  try {
    final WFSPTRSTATUS status=new WFSPTRSTATUS(ptrService.getXfsVersion(),wfsResult.getResults());
    if (LOG.isInfoEnabled()) {
      final String method="String_Node_Str";
      LOG.info(method,"String_Node_Str" + status);
    }
    return new WFSPTRSTATUS(ptrService.getXfsVersion(),status);
  }
  finally {
    if (wfsResult != null) {
      XfsServiceManager.getInstance().free(wfsResult);
    }
  }
}

Fixed version (ground truth):
@Override public PtrStatus3 call() throws XfsException {
  final XfsCommand infoCommand=new XfsInfoCommand<>(ptrService,PtrInfoCommand.STATUS);
  final WFSResult wfsResult=infoCommand.call();
  try {
    final PtrStatus3 result=PtrFactory.create(ptrService.getXfsVersion(),wfsResult.getResults(),PtrStatus3.class);
    if (LOG.isInfoEnabled()) {
      final String method="String_Node_Str";
      LOG.info(method,"String_Node_Str" + result);
    }
    return result;
  }
  finally {
    if (wfsResult != null) {
      XfsServiceManager.getInstance().free(wfsResult);
    }
  }
}
Program: 102610
Project: 102610
Buggy source:
/** 
 * Retrieves the data for the value with the specified name, within the specified open key.
 */
public String wfmQueryValue(final HKEY hKey,final String valueName) throws XfsException {
  final ZSTR data=new ZSTR(SIZE_LIMIT,true);
  final DWORD cchData=new DWORD(0L);
  final int errorCode=wfmQueryValue0(hKey,new ZSTR(valueName),data,cchData);
  XfsException.throwFor(errorCode);
  return data.toString();
}

Fixed version (ground truth):
/** 
 * Retrieves the data for the value with the specified name, within the specified open key.
 */
public String wfmQueryValue(final HKEY hKey,final String valueName) throws XfsException {
  final ZSTR data=new ZSTR(SIZE_LIMIT,true);
  final DWORD cchData=new DWORD(data.getSize());
  final int errorCode=wfmQueryValue0(hKey,new ZSTR(valueName),data,cchData);
  XfsException.throwFor(errorCode);
  return data.toString();
}
Program: 102611
Project: 102611
Buggy source:
public ULongArray(Pointer pointer,int length){
  this(length);
  assignBuffer(pointer);
}

Fixed version (ground truth):
public ULongArray(Pointer pointer,int length){
  this(length);
  if (length != 0) {
    assignBuffer(pointer);
  }
}
Program: 102612
Project: 102612
Buggy source:
public UShortArray(final Pointer p,final int length){
  this(length);
  assignBuffer(p);
}

Fixed version (ground truth):
public UShortArray(final Pointer p,final int length){
  this(length);
  if (length != 0) {
    assignBuffer(p);
  }
}
Program: 102613
Project: 102613
Buggy source:
public XfsUIntArray(Pointer pointer,int length){
  super(new UINT[length]);
  for (int i=0; i < array.length; i++) {
    array[i]=new UINT();
  }
  assignBuffer(pointer);
}

Fixed version (ground truth):
public XfsUIntArray(Pointer pointer,int length){
  super(new UINT[length]);
  for (int i=0; i < array.length; i++) {
    array[i]=new UINT();
  }
  if (length != 0) {
    assignBuffer(pointer);
  }
}
Program: 102614
Project: 102614
Buggy source:
public PositionInfo310(PositionInfo310 copy){
  this();
  allocate();
  set(copy);
}

Fixed version (ground truth):
private PositionInfo310(Builder builder){
  this();
  allocate();
  position.set(builder.position);
  additionalBunches.set(builder.additionalBunches);
  bunchesRemaining.set(builder.bunchesRemaining);
}
Program: 102615
Project: 102615
Buggy source:
public AdditionalBunches getAdditionalBunches(){
  return additionalBunches.get();
}

Fixed version (ground truth):
public Optional<AdditionalBunches> getAdditionalBunches(){
  return additionalBunches.get();
}
Program: 102616
Project: 102616
Buggy source:
public void execute(final Task task){
  final String method="String_Node_Str";
  if (LOG.isDebugEnabled()) {
    LOG.debug(method,"String_Node_Str" + task + "String_Node_Str"+ taskPath);
  }
  for (int i=0; i < taskPath.size(); i++) {
    Task activeTask=taskPath.remove(i);
    activeTask.getCommands().removeCommandsChangedListener(this);
    activeTask.getContent().removeUIContentListener(this);
  }
  internalExecute(task);
}

Fixed version (ground truth):
public void execute(final Task task){
  final String method="String_Node_Str";
  if (LOG.isDebugEnabled()) {
    LOG.debug(method,"String_Node_Str" + task + "String_Node_Str"+ taskPath);
  }
  for (int i=taskPath.size() - 1; i >= 0; i--) {
    Task activeTask=taskPath.remove(i);
    activeTask.getCommands().removeCommandsChangedListener(this);
    activeTask.getContent().removeUIContentListener(this);
  }
  internalExecute(task);
}
Program: 102617
Project: 102617
Buggy source:
private void checkRequests(){
  final String method="String_Node_Str";
  final long currentTime=System.currentTimeMillis();
  for (int i=0; i < requests.size(); i++) {
    Request request=requests.get(i);
    if (request.getTimeoutTime() > currentTime) {
      continue;
    }
    long activeTime=request.getTimeoutTime() - request.startTime;
    if (request.cancelled) {
      if (LOG.isWarnEnabled()) {
        LOG.warn(method,"String_Node_Str" + request.requestId + "String_Node_Str");
      }
      requests.remove(i);
      requestQueue.terminateRequest(request.requestId);
    }
 else {
      if (LOG.isWarnEnabled()) {
        LOG.warn(method,"String_Node_Str" + request.requestId + "String_Node_Str"+ activeTime+ "String_Node_Str");
      }
      request.cancelled=true;
      requestQueue.cancelRequest(request.requestId);
    }
  }
}

Fixed version (ground truth):
private void checkRequests(){
  final String method="String_Node_Str";
  final long currentTime=System.currentTimeMillis();
  for (Iterator<Request> i=requests.iterator(); i.hasNext(); ) {
    Request request=i.next();
    if (request.getTimeoutTime() > currentTime) {
      continue;
    }
    long activeTime=request.getTimeoutTime() - request.startTime;
    if (request.cancelled) {
      if (LOG.isWarnEnabled()) {
        LOG.warn(method,"String_Node_Str" + request.requestId + "String_Node_Str");
      }
      i.remove();
      requestQueue.terminateRequest(request.requestId);
    }
 else {
      if (LOG.isWarnEnabled()) {
        LOG.warn(method,"String_Node_Str" + request.requestId + "String_Node_Str"+ activeTime+ "String_Node_Str");
      }
      request.cancelled=true;
      requestQueue.cancelRequest(request.requestId);
    }
  }
}
Program: 102618
Project: 102618
Buggy source:
public void execute(final Task task){
  final String method="String_Node_Str";
  if (LOG.isDebugEnabled()) {
    LOG.debug(method,"String_Node_Str" + task + "String_Node_Str"+ taskPath);
  }
  for (int i=0; i < taskPath.size(); i++) {
    Task activeTask=taskPath.remove(i);
    activeTask.getCommands().removeCommandsChangedListener(this);
    activeTask.getContent().removeUIContentListener(this);
  }
  internalExecute(task);
}

Fixed version (ground truth):
public void execute(final Task task){
  final String method="String_Node_Str";
  if (LOG.isDebugEnabled()) {
    LOG.debug(method,"String_Node_Str" + task + "String_Node_Str"+ taskPath);
  }
  for (int i=taskPath.size() - 1; i >= 0; i--) {
    Task activeTask=taskPath.remove(i);
    activeTask.getCommands().removeCommandsChangedListener(this);
    activeTask.getContent().removeUIContentListener(this);
  }
  internalExecute(task);
}
Program: 102619
Project: 102619
Buggy source:
private void checkRequests(){
  final String method="String_Node_Str";
  final long currentTime=System.currentTimeMillis();
  for (int i=0; i < requests.size(); i++) {
    Request request=requests.get(i);
    if (request.getTimeoutTime() > currentTime) {
      continue;
    }
    long activeTime=request.getTimeoutTime() - request.startTime;
    if (request.cancelled) {
      if (LOG.isWarnEnabled()) {
        LOG.warn(method,"String_Node_Str" + request.requestId + "String_Node_Str");
      }
      requests.remove(i);
      requestQueue.terminateRequest(request.requestId);
    }
 else {
      if (LOG.isWarnEnabled()) {
        LOG.warn(method,"String_Node_Str" + request.requestId + "String_Node_Str"+ activeTime+ "String_Node_Str");
      }
      request.cancelled=true;
      requestQueue.cancelRequest(request.requestId);
    }
  }
}

Fixed version (ground truth):
private void checkRequests(){
  final String method="String_Node_Str";
  final long currentTime=System.currentTimeMillis();
  for (Iterator<Request> i=requests.iterator(); i.hasNext(); ) {
    Request request=i.next();
    if (request.getTimeoutTime() > currentTime) {
      continue;
    }
    long activeTime=request.getTimeoutTime() - request.startTime;
    if (request.cancelled) {
      if (LOG.isWarnEnabled()) {
        LOG.warn(method,"String_Node_Str" + request.requestId + "String_Node_Str");
      }
      i.remove();
      requestQueue.terminateRequest(request.requestId);
    }
 else {
      if (LOG.isWarnEnabled()) {
        LOG.warn(method,"String_Node_Str" + request.requestId + "String_Node_Str"+ activeTime+ "String_Node_Str");
      }
      request.cancelled=true;
      requestQueue.cancelRequest(request.requestId);
    }
  }
}
Program: 102620
Project: 102620
Buggy source:
@Override public boolean equals(Object obj){
  if (obj instanceof Capabilities3_10) {
    Capabilities3_10 capabilities3_10=(Capabilities3_10)obj;
    return new EqualsBuilder().appendSuper(super.equals(obj)).append(getDIPMode(),capabilities3_10.getDIPMode()).append(getMemoryChipProtocols(),capabilities3_10.getMemoryChipProtocols()).append(getGuidLights(),capabilities3_10.getGuidLights()).append(getEjectPosition(),capabilities3_10.getEjectPosition()).append(isPowerSaveControl(),capabilities3_10.isPowerSaveControl()).isEquals();
  }
  return false;
}

Fixed version (ground truth):
@Override public boolean equals(Object obj){
  if (obj instanceof Capabilities3_10) {
    Capabilities3_10 capabilities3_10=(Capabilities3_10)obj;
    return new EqualsBuilder().appendSuper(super.equals(obj)).append(getDIPMode(),capabilities3_10.getDIPMode()).append(getMemoryChipProtocols().orElse(null),capabilities3_10.getMemoryChipProtocols().orElse(null)).append(getGuidLights(),capabilities3_10.getGuidLights()).append(getEjectPosition(),capabilities3_10.getEjectPosition()).append(isPowerSaveControl(),capabilities3_10.isPowerSaveControl()).isEquals();
  }
  return false;
}
Program: 102621
Project: 102621
Buggy source:
public WORD getDayOfWeek(){
  return dayOfWeek;
}

Fixed version (ground truth):
public int getDayOfWeek(){
  return dayOfWeek.intValue();
}
Program: 102622
Project: 102622
Buggy source:
public WORD getYear(){
  return year;
}

Fixed version (ground truth):
public int getYear(){
  return year.intValue();
}
Program: 102623
Project: 102623
Buggy source:
public WORD getMinute(){
  return minute;
}

Fixed version (ground truth):
public int getMinute(){
  return minute.intValue();
}
Program: 102624
Project: 102624
Buggy source:
public WORD getSecond(){
  return second;
}

Fixed version (ground truth):
public int getSecond(){
  return second.intValue();
}
Program: 102625
Project: 102625
Buggy source:
public WORD getHour(){
  return hour;
}

Fixed version (ground truth):
public int getHour(){
  return hour.intValue();
}
Program: 102626
Project: 102626
Buggy source:
public WORD getMonth(){
  return month;
}

Fixed version (ground truth):
public int getMonth(){
  return month.intValue();
}
Program: 102627
Project: 102627
Buggy source:
public WORD getDay(){
  return day;
}

Fixed version (ground truth):
public int getDay(){
  return day.intValue();
}
Program: 102628
Project: 102628
Buggy source:
public WORD getMilliseconds(){
  return milliseconds;
}

Fixed version (ground truth):
public int getMilliseconds(){
  return milliseconds.intValue();
}
Program: 102629
Project: 102629
Buggy source:
@Override public String toString(){
  String result=new String(getBytes(),US_ASCII);
  if (result.indexOf(NUL) != -1) {
    result=result.substring(0,result.indexOf(NUL));
  }
  return result;
}

Fixed version (ground truth):
@Override public String toString(){
  String result=new String(getBytes(),StandardCharsets.US_ASCII);
  if (result.indexOf(NUL) != -1) {
    result=result.substring(0,result.indexOf(NUL));
  }
  return result;
}
Program: 102630
Project: 102630
Buggy source:
public ZSTR(final String s){
  this(s.length() + 1,true);
  put((s + NUL).getBytes(US_ASCII));
}

Fixed version (ground truth):
public ZSTR(final String s){
  this(s.length() + 1,true);
  put((s + NUL).getBytes(StandardCharsets.US_ASCII));
}
Program: 102631
Project: 102631
Buggy source:
@Override public NoteTypeList3 call() throws XfsException {
  NoteTypeList3 result;
  XfsInfoCommand<CimInfoCommand> command=new XfsInfoCommand<CimInfoCommand>(cimService,CimInfoCommand.BANKNOTE_TYPES);
  WFSResult wfsResult=null;
  try {
    wfsResult=new XfsCallable(command).call();
    result=CimFactory.create(cimService.getXfsVersion(),wfsResult.getResults(),NoteTypeList3.class);
    if (LOG.isInfoEnabled()) {
      LOG.info("String_Node_Str",result);
    }
  }
  finally {
    if (wfsResult != null) {
      XfsServiceManager.getInstance().free(wfsResult);
    }
  }
  return result;
}

Fixed version (ground truth):
@Override public NoteTypeList3 call() throws XfsException {
  NoteTypeList3 result;
  XfsInfoCommand<CimInfoCommand> command=new XfsInfoCommand<CimInfoCommand>(cimService,CimInfoCommand.BANKNOTE_TYPES);
  WFSResult wfsResult=null;
  try {
    wfsResult=command.call();
    result=CimFactory.create(cimService.getXfsVersion(),wfsResult.getResults(),NoteTypeList3.class);
    if (LOG.isInfoEnabled()) {
      LOG.info("String_Node_Str",result);
    }
  }
  finally {
    if (wfsResult != null) {
      XfsServiceManager.getInstance().free(wfsResult);
    }
  }
  return result;
}
Program: 102632
Project: 102632
Buggy source:
@Override public CashInStatus3 call() throws XfsException {
  CashInStatus3 result;
  XfsInfoCommand<CimInfoCommand> command=new XfsInfoCommand<CimInfoCommand>(cimService,CimInfoCommand.BANKNOTE_TYPES);
  WFSResult wfsResult=null;
  try {
    wfsResult=new XfsCallable(command).call();
    result=CimFactory.create(cimService.getXfsVersion(),wfsResult.getResults(),CashInStatus3.class);
    if (LOG.isInfoEnabled()) {
      LOG.info("String_Node_Str",result);
    }
  }
  finally {
    if (wfsResult != null) {
      XfsServiceManager.getInstance().free(wfsResult);
    }
  }
  return result;
}

Fixed version (ground truth):
@Override public CashInStatus3 call() throws XfsException {
  CashInStatus3 result;
  XfsInfoCommand<CimInfoCommand> command=new XfsInfoCommand<CimInfoCommand>(cimService,CimInfoCommand.BANKNOTE_TYPES);
  WFSResult wfsResult=null;
  try {
    wfsResult=command.call();
    result=CimFactory.create(cimService.getXfsVersion(),wfsResult.getResults(),CashInStatus3.class);
    if (LOG.isInfoEnabled()) {
      LOG.info("String_Node_Str",result);
    }
  }
  finally {
    if (wfsResult != null) {
      XfsServiceManager.getInstance().free(wfsResult);
    }
  }
  return result;
}
Program: 102633
Project: 102633
Buggy source:
@Override public CashUnitCapabilities3_20 call() throws XfsException {
  CashUnitCapabilities3_20 result;
  XfsInfoCommand<CimInfoCommand> command=new XfsInfoCommand<CimInfoCommand>(cimService,CimInfoCommand.CASH_UNIT_CAPABILITIES);
  WFSResult wfsResult=null;
  try {
    wfsResult=new XfsCallable(command).call();
    result=CimFactory.create(cimService.getXfsVersion(),wfsResult.getResults(),CashUnitCapabilities3_20.class);
    if (LOG.isInfoEnabled()) {
      LOG.info("String_Node_Str",result);
    }
  }
  finally {
    if (wfsResult != null) {
      XfsServiceManager.getInstance().free(wfsResult);
    }
  }
  return result;
}

Fixed version (ground truth):
@Override public CashUnitCapabilities3_20 call() throws XfsException {
  CashUnitCapabilities3_20 result;
  XfsInfoCommand<CimInfoCommand> command=new XfsInfoCommand<CimInfoCommand>(cimService,CimInfoCommand.CASH_UNIT_CAPABILITIES);
  WFSResult wfsResult=null;
  try {
    wfsResult=command.call();
    result=CimFactory.create(cimService.getXfsVersion(),wfsResult.getResults(),CashUnitCapabilities3_20.class);
    if (LOG.isInfoEnabled()) {
      LOG.info("String_Node_Str",result);
    }
  }
  finally {
    if (wfsResult != null) {
      XfsServiceManager.getInstance().free(wfsResult);
    }
  }
  return result;
}
Program: 102634
Project: 102634
Buggy source:
@Override public CashInfo3 call() throws XfsException {
  CashInfo3 result;
  XfsInfoCommand<CimInfoCommand> command=new XfsInfoCommand<CimInfoCommand>(cimService,CimInfoCommand.CASH_UNIT_INFO);
  WFSResult wfsResult=null;
  try {
    wfsResult=new XfsCallable(command).call();
    result=CimFactory.create(cimService.getXfsVersion(),wfsResult.getResults(),CashInfo3.class);
    if (LOG.isInfoEnabled()) {
      LOG.info("String_Node_Str",result);
    }
  }
  finally {
    if (wfsResult != null) {
      XfsServiceManager.getInstance().free(wfsResult);
    }
  }
  return result;
}

Fixed version (ground truth):
@Override public CashInfo3 call() throws XfsException {
  CashInfo3 result;
  XfsInfoCommand<CimInfoCommand> command=new XfsInfoCommand<CimInfoCommand>(cimService,CimInfoCommand.CASH_UNIT_INFO);
  WFSResult wfsResult=null;
  try {
    wfsResult=command.call();
    result=CimFactory.create(cimService.getXfsVersion(),wfsResult.getResults(),CashInfo3.class);
    if (LOG.isInfoEnabled()) {
      LOG.info("String_Node_Str",result);
    }
  }
  finally {
    if (wfsResult != null) {
      XfsServiceManager.getInstance().free(wfsResult);
    }
  }
  return result;
}
Program: 102635
Project: 102635
Buggy source:
@Override public Capabilities3 call() throws XfsException {
  Capabilities3 result;
  XfsInfoCommand<CimInfoCommand> command=new XfsInfoCommand<CimInfoCommand>(cimService,CimInfoCommand.CAPABILITIES);
  WFSResult wfsResult=null;
  try {
    wfsResult=new XfsCallable(command).call();
    result=CimFactory.create(cimService.getXfsVersion(),wfsResult.getResults(),Capabilities3.class);
    if (LOG.isInfoEnabled()) {
      LOG.info("String_Node_Str",result);
    }
  }
  finally {
    if (wfsResult != null) {
      XfsServiceManager.getInstance().free(wfsResult);
    }
  }
  return result;
}

Fixed version (ground truth):
@Override public Capabilities3 call() throws XfsException {
  Capabilities3 result;
  XfsInfoCommand<CimInfoCommand> command=new XfsInfoCommand<CimInfoCommand>(cimService,CimInfoCommand.CAPABILITIES);
  WFSResult wfsResult=null;
  try {
    wfsResult=command.call();
    result=CimFactory.create(cimService.getXfsVersion(),wfsResult.getResults(),Capabilities3.class);
    if (LOG.isInfoEnabled()) {
      LOG.info("String_Node_Str",result);
    }
  }
  finally {
    if (wfsResult != null) {
      XfsServiceManager.getInstance().free(wfsResult);
    }
  }
  return result;
}
Program: 102636
Project: 102636
Buggy source:
@Override public Status3 call() throws XfsException {
  Status3 result;
  XfsInfoCommand<CimInfoCommand> command=new XfsInfoCommand<CimInfoCommand>(cimService,CimInfoCommand.STATUS);
  WFSResult wfsResult=null;
  try {
    wfsResult=new XfsCallable(command).call();
    result=CimFactory.create(cimService.getXfsVersion(),wfsResult.getResults(),Status3.class);
    if (LOG.isInfoEnabled()) {
      LOG.info("String_Node_Str",result);
    }
  }
  finally {
    if (wfsResult != null) {
      XfsServiceManager.getInstance().free(wfsResult);
    }
  }
  return result;
}

Fixed version (ground truth):
@Override public Status3 call() throws XfsException {
  Status3 result;
  XfsInfoCommand<CimInfoCommand> command=new XfsInfoCommand<CimInfoCommand>(cimService,CimInfoCommand.STATUS);
  WFSResult wfsResult=null;
  try {
    wfsResult=command.call();
    result=CimFactory.create(cimService.getXfsVersion(),wfsResult.getResults(),Status3.class);
    if (LOG.isInfoEnabled()) {
      LOG.info("String_Node_Str",result);
    }
  }
  finally {
    if (wfsResult != null) {
      XfsServiceManager.getInstance().free(wfsResult);
    }
  }
  return result;
}
Program: 102637
Project: 102637
Buggy source:
@Override public CurrencyExp3 call() throws XfsException {
  CurrencyExp3 result;
  XfsInfoCommand<CimInfoCommand> command=new XfsInfoCommand<CimInfoCommand>(cimService,CimInfoCommand.CURRENCY_EXP);
  WFSResult wfsResult=null;
  try {
    wfsResult=new XfsCallable(command).call();
    result=CimFactory.create(cimService.getXfsVersion(),wfsResult.getResults(),CurrencyExp3.class);
    if (LOG.isInfoEnabled()) {
      LOG.info("String_Node_Str",result);
    }
  }
  finally {
    if (wfsResult != null) {
      XfsServiceManager.getInstance().free(wfsResult);
    }
  }
  return result;
}

Fixed version (ground truth):
@Override public CurrencyExp3 call() throws XfsException {
  CurrencyExp3 result;
  XfsInfoCommand<CimInfoCommand> command=new XfsInfoCommand<CimInfoCommand>(cimService,CimInfoCommand.CURRENCY_EXP);
  WFSResult wfsResult=null;
  try {
    wfsResult=command.call();
    result=CimFactory.create(cimService.getXfsVersion(),wfsResult.getResults(),CurrencyExp3.class);
    if (LOG.isInfoEnabled()) {
      LOG.info("String_Node_Str",result);
    }
  }
  finally {
    if (wfsResult != null) {
      XfsServiceManager.getInstance().free(wfsResult);
    }
  }
  return result;
}
Program: 102638
Project: 102638
Buggy source:
@Override public List<DepleteInfoResult3_30> call() throws XfsException {
  List<DepleteInfoResult3_30> result;
  XfsInfoCommand<CimInfoCommand> command=new XfsInfoCommand<CimInfoCommand>(cimService,CimInfoCommand.DEPLETE_SOURCE,depleteInfo);
  WFSResult wfsResult=null;
  try {
    wfsResult=new XfsCallable(command).call();
    result=CimFactory.fromNullTerminatedArray(cimService.getXfsVersion(),wfsResult.getResults(),DepleteInfoResult3_30.class);
    if (LOG.isInfoEnabled()) {
      LOG.info("String_Node_Str",result);
    }
  }
  finally {
    if (wfsResult != null) {
      XfsServiceManager.getInstance().free(wfsResult);
    }
  }
  return result;
}

Fixed version (ground truth):
@Override public List<DepleteInfoResult3_30> call() throws XfsException {
  List<DepleteInfoResult3_30> result;
  XfsInfoCommand<CimInfoCommand> command=new XfsInfoCommand<CimInfoCommand>(cimService,CimInfoCommand.DEPLETE_SOURCE,depleteInfo);
  WFSResult wfsResult=null;
  try {
    wfsResult=command.call();
    result=CimFactory.fromNullTerminatedArray(cimService.getXfsVersion(),wfsResult.getResults(),DepleteInfoResult3_30.class);
    if (LOG.isInfoEnabled()) {
      LOG.info("String_Node_Str",result);
    }
  }
  finally {
    if (wfsResult != null) {
      XfsServiceManager.getInstance().free(wfsResult);
    }
  }
  return result;
}
Program: 102639
Project: 102639
Buggy source:
@Override public DeviceLockStatus3_20 call() throws XfsException {
  DeviceLockStatus3_20 result;
  XfsInfoCommand<CimInfoCommand> command=new XfsInfoCommand<CimInfoCommand>(cimService,CimInfoCommand.DEVICELOCK_STATUS);
  WFSResult wfsResult=null;
  try {
    wfsResult=new XfsCallable(command).call();
    result=CimFactory.create(cimService.getXfsVersion(),wfsResult.getResults(),DeviceLockStatus3_20.class);
    if (LOG.isInfoEnabled()) {
      LOG.info("String_Node_Str",result);
    }
  }
  finally {
    if (wfsResult != null) {
      XfsServiceManager.getInstance().free(wfsResult);
    }
  }
  return result;
}

Fixed version (ground truth):
@Override public DeviceLockStatus3_20 call() throws XfsException {
  DeviceLockStatus3_20 result;
  XfsInfoCommand<CimInfoCommand> command=new XfsInfoCommand<CimInfoCommand>(cimService,CimInfoCommand.DEVICELOCK_STATUS);
  WFSResult wfsResult=null;
  try {
    wfsResult=command.call();
    result=CimFactory.create(cimService.getXfsVersion(),wfsResult.getResults(),DeviceLockStatus3_20.class);
    if (LOG.isInfoEnabled()) {
      LOG.info("String_Node_Str",result);
    }
  }
  finally {
    if (wfsResult != null) {
      XfsServiceManager.getInstance().free(wfsResult);
    }
  }
  return result;
}
Program: 102640
Project: 102640
Buggy source:
@Override public AllItemsInfo3_30 call() throws XfsException {
  AllItemsInfo3_30 result;
  XfsInfoCommand<CimInfoCommand> command=new XfsInfoCommand<CimInfoCommand>(cimService,CimInfoCommand.GET_ALL_ITEMS_INFO,getAllItemsInfo);
  WFSResult wfsResult=null;
  try {
    wfsResult=new XfsCallable(command).call();
    result=CimFactory.create(cimService.getXfsVersion(),wfsResult.getResults(),AllItemsInfo3_30.class);
    if (LOG.isInfoEnabled()) {
      LOG.info("String_Node_Str",result);
    }
  }
  finally {
    if (wfsResult != null) {
      XfsServiceManager.getInstance().free(wfsResult);
    }
  }
  return result;
}

Fixed version (ground truth):
@Override public AllItemsInfo3_30 call() throws XfsException {
  AllItemsInfo3_30 result;
  XfsInfoCommand<CimInfoCommand> command=new XfsInfoCommand<CimInfoCommand>(cimService,CimInfoCommand.GET_ALL_ITEMS_INFO,getAllItemsInfo);
  WFSResult wfsResult=null;
  try {
    wfsResult=command.call();
    result=CimFactory.create(cimService.getXfsVersion(),wfsResult.getResults(),AllItemsInfo3_30.class);
    if (LOG.isInfoEnabled()) {
      LOG.info("String_Node_Str",result);
    }
  }
  finally {
    if (wfsResult != null) {
      XfsServiceManager.getInstance().free(wfsResult);
    }
  }
  return result;
}
Program: 102641
Project: 102641
Buggy source:
@Override public Blacklist3_30 call() throws XfsException {
  Blacklist3_30 result;
  XfsInfoCommand<CimInfoCommand> command=new XfsInfoCommand<CimInfoCommand>(cimService,CimInfoCommand.GET_BLACKLIST);
  WFSResult wfsResult=null;
  try {
    wfsResult=new XfsCallable(command).call();
    result=CimFactory.create(cimService.getXfsVersion(),wfsResult.getResults(),Blacklist3_30.class);
    if (LOG.isInfoEnabled()) {
      LOG.info("String_Node_Str",result);
    }
  }
  finally {
    if (wfsResult != null) {
      XfsServiceManager.getInstance().free(wfsResult);
    }
  }
  return result;
}

Fixed version (ground truth):
@Override public Blacklist3_30 call() throws XfsException {
  Blacklist3_30 result;
  XfsInfoCommand<CimInfoCommand> command=new XfsInfoCommand<CimInfoCommand>(cimService,CimInfoCommand.GET_BLACKLIST);
  WFSResult wfsResult=null;
  try {
    wfsResult=command.call();
    result=CimFactory.create(cimService.getXfsVersion(),wfsResult.getResults(),Blacklist3_30.class);
    if (LOG.isInfoEnabled()) {
      LOG.info("String_Node_Str",result);
    }
  }
  finally {
    if (wfsResult != null) {
      XfsServiceManager.getInstance().free(wfsResult);
    }
  }
  return result;
}
Program: 102642
Project: 102642
Buggy source:
@Override public ItemInfo3_10 call() throws XfsException {
  ItemInfo3_10 result;
  XfsInfoCommand<CimInfoCommand> command=new XfsInfoCommand<CimInfoCommand>(cimService,CimInfoCommand.GET_ITEM_INFO,itemInfo);
  WFSResult wfsResult=null;
  try {
    wfsResult=new XfsCallable(command).call();
    result=CimFactory.create(cimService.getXfsVersion(),wfsResult.getResults(),ItemInfo3_10.class);
    if (LOG.isInfoEnabled()) {
      LOG.info("String_Node_Str",result);
    }
  }
  finally {
    if (wfsResult != null) {
      XfsServiceManager.getInstance().free(wfsResult);
    }
  }
  return result;
}

Fixed version (ground truth):
@Override public ItemInfo3_10 call() throws XfsException {
  ItemInfo3_10 result;
  XfsInfoCommand<CimInfoCommand> command=new XfsInfoCommand<CimInfoCommand>(cimService,CimInfoCommand.GET_ITEM_INFO,itemInfo);
  WFSResult wfsResult=null;
  try {
    wfsResult=command.call();
    result=CimFactory.create(cimService.getXfsVersion(),wfsResult.getResults(),ItemInfo3_10.class);
    if (LOG.isInfoEnabled()) {
      LOG.info("String_Node_Str",result);
    }
  }
  finally {
    if (wfsResult != null) {
      XfsServiceManager.getInstance().free(wfsResult);
    }
  }
  return result;
}
Program: 102643
Project: 102643
Buggy source:
@Override public List<P6Info3> call() throws XfsException {
  List<P6Info3> result;
  XfsInfoCommand<CimInfoCommand> command=new XfsInfoCommand<CimInfoCommand>(cimService,CimInfoCommand.GET_P6_INFO);
  WFSResult wfsResult=null;
  try {
    wfsResult=new XfsCallable(command).call();
    result=CimFactory.fromNullTerminatedArray(cimService.getXfsVersion(),wfsResult.getResults(),P6Info3.class);
    if (LOG.isInfoEnabled()) {
      LOG.info("String_Node_Str",result);
    }
  }
  finally {
    if (wfsResult != null) {
      XfsServiceManager.getInstance().free(wfsResult);
    }
  }
  return result;
}

Fixed version (ground truth):
@Override public List<P6Info3> call() throws XfsException {
  List<P6Info3> result;
  XfsInfoCommand<CimInfoCommand> command=new XfsInfoCommand<CimInfoCommand>(cimService,CimInfoCommand.GET_P6_INFO);
  WFSResult wfsResult=null;
  try {
    wfsResult=command.call();
    result=CimFactory.fromNullTerminatedArray(cimService.getXfsVersion(),wfsResult.getResults(),P6Info3.class);
    if (LOG.isInfoEnabled()) {
      LOG.info("String_Node_Str",result);
    }
  }
  finally {
    if (wfsResult != null) {
      XfsServiceManager.getInstance().free(wfsResult);
    }
  }
  return result;
}
Program: 102644
Project: 102644
Buggy source:
@Override public P6Signature3 call() throws XfsException {
  P6Signature3 result;
  XfsInfoCommand<CimInfoCommand> command=new XfsInfoCommand<CimInfoCommand>(cimService,CimInfoCommand.GET_P6_SIGNATURE,getP6Signature);
  WFSResult wfsResult=null;
  try {
    wfsResult=new XfsCallable(command).call();
    result=CimFactory.create(cimService.getXfsVersion(),wfsResult.getResults(),P6Signature3.class);
    if (LOG.isInfoEnabled()) {
      LOG.info("String_Node_Str",result);
    }
  }
  finally {
    if (wfsResult != null) {
      XfsServiceManager.getInstance().free(wfsResult);
    }
  }
  return result;
}

Fixed version (ground truth):
@Override public P6Signature3 call() throws XfsException {
  P6Signature3 result;
  XfsInfoCommand<CimInfoCommand> command=new XfsInfoCommand<CimInfoCommand>(cimService,CimInfoCommand.GET_P6_SIGNATURE,getP6Signature);
  WFSResult wfsResult=null;
  try {
    wfsResult=command.call();
    result=CimFactory.create(cimService.getXfsVersion(),wfsResult.getResults(),P6Signature3.class);
    if (LOG.isInfoEnabled()) {
      LOG.info("String_Node_Str",result);
    }
  }
  finally {
    if (wfsResult != null) {
      XfsServiceManager.getInstance().free(wfsResult);
    }
  }
  return result;
}
Program: 102645
Project: 102645
Buggy source:
@Override public PositionCapabilities3_10 call() throws XfsException {
  PositionCapabilities3_10 result;
  XfsInfoCommand<CimInfoCommand> command=new XfsInfoCommand<CimInfoCommand>(cimService,CimInfoCommand.POSITION_CAPABILITIES);
  WFSResult wfsResult=null;
  try {
    wfsResult=new XfsCallable(command).call();
    result=CimFactory.create(cimService.getXfsVersion(),wfsResult.getResults(),PositionCapabilities3_10.class);
    if (LOG.isInfoEnabled()) {
      LOG.info("String_Node_Str",result);
    }
  }
  finally {
    if (wfsResult != null) {
      XfsServiceManager.getInstance().free(wfsResult);
    }
  }
  return result;
}

Fixed version (ground truth):
@Override public PositionCapabilities3_10 call() throws XfsException {
  PositionCapabilities3_10 result;
  XfsInfoCommand<CimInfoCommand> command=new XfsInfoCommand<CimInfoCommand>(cimService,CimInfoCommand.POSITION_CAPABILITIES);
  WFSResult wfsResult=null;
  try {
    wfsResult=command.call();
    result=CimFactory.create(cimService.getXfsVersion(),wfsResult.getResults(),PositionCapabilities3_10.class);
    if (LOG.isInfoEnabled()) {
      LOG.info("String_Node_Str",result);
    }
  }
  finally {
    if (wfsResult != null) {
      XfsServiceManager.getInstance().free(wfsResult);
    }
  }
  return result;
}
Program: 102646
Project: 102646
Buggy source:
@Override public ReplenishInfoResult3_20 call() throws XfsException {
  ReplenishInfoResult3_20 result;
  XfsInfoCommand<CimInfoCommand> command=new XfsInfoCommand<CimInfoCommand>(cimService,CimInfoCommand.REPLENISH_TARGET,replenishInfo);
  WFSResult wfsResult=null;
  try {
    wfsResult=new XfsCallable(command).call();
    result=CimFactory.create(cimService.getXfsVersion(),wfsResult.getResults(),ReplenishInfoResult3_20.class);
    if (LOG.isInfoEnabled()) {
      LOG.info("String_Node_Str",result);
    }
  }
  finally {
    if (wfsResult != null) {
      XfsServiceManager.getInstance().free(wfsResult);
    }
  }
  return result;
}

Fixed version (ground truth):
@Override public ReplenishInfoResult3_20 call() throws XfsException {
  ReplenishInfoResult3_20 result;
  XfsInfoCommand<CimInfoCommand> command=new XfsInfoCommand<CimInfoCommand>(cimService,CimInfoCommand.REPLENISH_TARGET,replenishInfo);
  WFSResult wfsResult=null;
  try {
    wfsResult=command.call();
    result=CimFactory.create(cimService.getXfsVersion(),wfsResult.getResults(),ReplenishInfoResult3_20.class);
    if (LOG.isInfoEnabled()) {
      LOG.info("String_Node_Str",result);
    }
  }
  finally {
    if (wfsResult != null) {
      XfsServiceManager.getInstance().free(wfsResult);
    }
  }
  return result;
}
Program: 102647
Project: 102647
Buggy source:
@Override public List<TellerDetails3> call() throws XfsException {
  List<TellerDetails3> result;
  XfsInfoCommand<CimInfoCommand> command=new XfsInfoCommand<CimInfoCommand>(cimService,CimInfoCommand.TELLER_INFO,tellerInfo);
  WFSResult wfsResult=null;
  try {
    wfsResult=new XfsCallable(command).call();
    result=CimFactory.fromNullTerminatedArray(cimService.getXfsVersion(),wfsResult.getResults(),TellerDetails3.class);
    if (LOG.isInfoEnabled()) {
      LOG.info("String_Node_Str",result);
    }
  }
  finally {
    if (wfsResult != null) {
      XfsServiceManager.getInstance().free(wfsResult);
    }
  }
  return result;
}

Fixed version (ground truth):
@Override public List<TellerDetails3> call() throws XfsException {
  List<TellerDetails3> result;
  XfsInfoCommand<CimInfoCommand> command=new XfsInfoCommand<CimInfoCommand>(cimService,CimInfoCommand.TELLER_INFO,tellerInfo);
  WFSResult wfsResult=null;
  try {
    wfsResult=command.call();
    result=CimFactory.fromNullTerminatedArray(cimService.getXfsVersion(),wfsResult.getResults(),TellerDetails3.class);
    if (LOG.isInfoEnabled()) {
      LOG.info("String_Node_Str",result);
    }
  }
  finally {
    if (wfsResult != null) {
      XfsServiceManager.getInstance().free(wfsResult);
    }
  }
  return result;
}
Program: 102648
Project: 102648
Buggy source:
@Override protected void execute(){
  String method="String_Node_Str";
  try {
    this.service=service;
    stopUIXfsInputDevice();
    pressedKeys=new ArrayList<VirtualKey>();
    textInput=new TextInput();
    final WFSPINFUNCKEYDETAIL funcKeyDetail=new PINFunctionKeysCommand(service).call();
    if (LOG.isDebugEnabled()) {
      LOG.debug(method,"String_Node_Str" + funcKeyDetail);
    }
    final WfsPINGetData pinGetData=new WfsPINGetData();
    pinGetData.allocate();
    pinGetData.setActiveKeys(funcKeyDetail.getFunctionKeys());
    final Set<PINFDK> activeFDKs=EnumSet.noneOf(PINFDK.class);
    for (    final WFSPINFDK pinFDK : funcKeyDetail.getFDKs()) {
      activeFDKs.add(pinFDK.getFDK());
    }
    pinGetData.setActiveFDKs(activeFDKs);
    pinGetData.setMaxLen(0);
    pinGetData.setAutoEnd(false);
    getDataCommand=new PINGetDataCommand(service,pinGetData);
    getDataCommand.addCommandListener(this);
    getDataCommand.execute();
    final long timeOut=TaskConfig.getConfig(this).getLong(KEY_INPUT_TIMEOUT);
    startCancelTimer(timeOut);
    getContent().setUIElement(textInput);
    getCommands().setNextCommand(new CancelCommand(getClass(),getDataCommand));
  }
 catch (  final XfsException e) {
    showException(e);
    startFailed();
  }
}

Fixed version (ground truth):
@Override protected void execute(){
  String method="String_Node_Str";
  try {
    stopUIXfsInputDevice();
    pressedKeys=new ArrayList<VirtualKey>();
    textInput=new TextInput();
    final WFSPINFUNCKEYDETAIL funcKeyDetail=new PINFunctionKeysCommand(service).call();
    if (LOG.isDebugEnabled()) {
      LOG.debug(method,"String_Node_Str" + funcKeyDetail);
    }
    final WfsPINGetData pinGetData=new WfsPINGetData();
    pinGetData.allocate();
    pinGetData.setActiveKeys(funcKeyDetail.getFunctionKeys());
    final Set<PINFDK> activeFDKs=EnumSet.noneOf(PINFDK.class);
    for (    final WFSPINFDK pinFDK : funcKeyDetail.getFDKs()) {
      activeFDKs.add(pinFDK.getFDK());
    }
    pinGetData.setActiveFDKs(activeFDKs);
    pinGetData.setMaxLen(0);
    pinGetData.setAutoEnd(false);
    getDataCommand=new PINGetDataCommand(service,pinGetData);
    getDataCommand.addCommandListener(this);
    getDataCommand.execute();
    final long timeOut=TaskConfig.getConfig(this).getLong(KEY_INPUT_TIMEOUT);
    startCancelTimer(timeOut);
    getContent().setUIElement(textInput);
    getCommands().setNextCommand(new CancelCommand(getClass(),getDataCommand));
  }
 catch (  final XfsException e) {
    showException(e);
    startFailed();
  }
}
Program: 102649
Project: 102649
Buggy source:
protected void set(CamCaps caps){
  serviceClass.set(caps.serviceClass);
  type.set(caps.type);
  cameras.set(caps.cameras);
  maxPictures.set(caps.maxPictures);
  camData.set(caps.camData);
  maxDataLength.set(caps.maxDataLength);
  charSupport.set(caps.charSupport);
  extra.set(caps.extra);
}

Fixed version (ground truth):
protected void set(CamCaps caps){
  serviceClass.set(caps.serviceClass);
  type.set(caps.type);
  cameras.set(caps.cameras);
  maxPictures.set(caps.maxPictures);
  camData.set(caps.camData.get());
  maxDataLength.set(caps.maxDataLength);
  charSupport.set(caps.charSupport.get());
  extra.set(caps.extra);
}
Program: 102650
Project: 102650
Buggy source:
public XfsDWordBitmask(Class<T> aType){
  super(UINT.SIZE,aType);
}

Fixed version (ground truth):
public XfsDWordBitmask(Class<T> aType,Set<T> value){
  this(aType);
  allocate();
  set(value);
}
Program: 102651
Project: 102651
Buggy source:
public XfsWordBitmask(Class<T> aType){
  super(2,aType);
}

Fixed version (ground truth):
public XfsWordBitmask(Class<T> aType,Set<T> value){
  this(aType);
  allocate();
  set(value);
}
Program: 102652
Project: 102652
Buggy source:
@Override public int intValue(){
  return Bits.getInt(getBytes());
}

Fixed version (ground truth):
@Override public int intValue(){
  return Bits.getShort(getBytes()) & USHORT.MAX_VALUE;
}
Program: 102653
Project: 102653
Buggy source:
@Test public final void test(){
}

Fixed version (ground truth):
@Test public void test(){
  XfsDWordBitmask<MockEnum> bitmask=new XfsDWordBitmask<>(MockEnum.class,EnumSet.allOf(MockEnum.class));
  assertTrue(bitmask.get().containsAll(EnumSet.allOf(MockEnum.class)));
}
Program: 102654
Project: 102654
Buggy source:
/** 
 * Lets this Pointer point to the specified   {@link Type}.
 * @param aReference the Type this Pointer should point to
 */
public void pointTo(final Type aReference){
  if (this == NULL) {
    throw new NullPointerException("String_Node_Str");
  }
  reference=aReference;
  put(reference.getBuffer().getAddress());
}

Fixed version (ground truth):
/** 
 * Lets this Pointer point to the specified   {@link Type}.
 * @param aReference the Type this Pointer should point to
 */
public void pointTo(final Type aReference){
  if (this == NULL) {
    throw new NullPointerException("String_Node_Str");
  }
 else   if (aReference == NULL) {
    put(NULL.getBuffer().get());
  }
 else {
    reference=aReference;
    put(reference.getBuffer().getAddress());
  }
}
Program: 102655
Project: 102655
Buggy source:
@Override public void set(Map<String,String> value){
  pointTo(new ByteArray(encode(value)));
}

Fixed version (ground truth):
@Override public void set(Map<String,String> value){
  if (value.isEmpty()) {
    pointTo(NULL);
  }
 else {
    pointTo(new ByteArray(encode(value)));
  }
}