nus-yam/ex-repair huggingface dataset:
Program: 6105
Project: 6105
Buggy source:
public static boolean showMessage(Component parent,AppView app,TicketLineInfo oLine){
  Window window=getWindow(parent);
  JProductLineEdit myMsg;
  if (window instanceof Frame) {
    myMsg=new JProductLineEdit((Frame)window,true);
  }
 else {
    myMsg=new JProductLineEdit((Dialog)window,true);
  }
  return myMsg.init(app,oLine);
}

Fixed version (ground truth):
public static TicketLineInfo showMessage(Component parent,AppView app,TicketLineInfo oLine){
  Window window=getWindow(parent);
  JProductLineEdit myMsg;
  if (window instanceof Frame) {
    myMsg=new JProductLineEdit((Frame)window,true);
  }
 else {
    myMsg=new JProductLineEdit((Dialog)window,true);
  }
  return myMsg.init(app,oLine);
}
Program: 6106
Project: 6106
Buggy source:
private void m_jButtonOKActionPerformed(java.awt.event.ActionEvent evt){
  m_oLineTicket.setProperty("String_Node_Str",m_oLine.getProperty("String_Node_Str"));
  m_oLineTicket.setMultiply(m_oLine.getMultiply());
  m_oLineTicket.setPrice(m_oLine.getPrice());
  m_bok=true;
  dispose();
}

Fixed version (ground truth):
private void m_jButtonOKActionPerformed(java.awt.event.ActionEvent evt){
  returnLine=m_oLine;
  dispose();
}
Program: 6107
Project: 6107
Buggy source:
@Deprecated public TicketTaxInfo[] getTaxLines(){
  return taxes.toArray(new TicketTaxInfo[taxes.size()]);
}

Fixed version (ground truth):
public TicketTaxInfo[] getTaxLines(){
  Map<String,TicketTaxInfo> m=new HashMap<String,TicketTaxInfo>();
  TicketLineInfo oLine;
  for (Iterator<TicketLineInfo> i=m_aLines.iterator(); i.hasNext(); ) {
    oLine=i.next();
    TicketTaxInfo t=m.get(oLine.getTaxInfo().getId());
    if (t == null) {
      t=new TicketTaxInfo(oLine.getTaxInfo());
      m.put(t.getTaxInfo().getId(),t);
    }
    t.add(oLine.getSubValue());
  }
  Collection<TicketTaxInfo> avalues=m.values();
  return avalues.toArray(new TicketTaxInfo[avalues.size()]);
}
Program: 6108
Project: 6108
Buggy source:
/** 
 * Creates a new instance of SentenceContainerGeneric 
 */
public DataLogicSales(){
  productcatDatas=new Datas[]{Datas.STRING,Datas.STRING,Datas.STRING,Datas.STRING,Datas.BOOLEAN,Datas.BOOLEAN,Datas.DOUBLE,Datas.DOUBLE,Datas.STRING,Datas.STRING,Datas.IMAGE,Datas.DOUBLE,Datas.DOUBLE,Datas.BOOLEAN,Datas.INT,Datas.BYTES};
  stockdiaryDatas=new Datas[]{Datas.STRING,Datas.TIMESTAMP,Datas.INT,Datas.STRING,Datas.STRING,Datas.DOUBLE,Datas.DOUBLE};
  paymenttabledatas=new Datas[]{Datas.STRING,Datas.STRING,Datas.TIMESTAMP,Datas.STRING,Datas.STRING,Datas.DOUBLE};
  stockdatas=new Datas[]{Datas.STRING,Datas.STRING,Datas.STRING,Datas.DOUBLE,Datas.DOUBLE,Datas.DOUBLE};
}

Fixed version (ground truth):
/** 
 * Creates a new instance of SentenceContainerGeneric 
 */
public DataLogicSales(){
  productcatDatas=new Datas[]{Datas.STRING,Datas.STRING,Datas.STRING,Datas.STRING,Datas.BOOLEAN,Datas.BOOLEAN,Datas.DOUBLE,Datas.DOUBLE,Datas.STRING,Datas.STRING,Datas.IMAGE,Datas.DOUBLE,Datas.DOUBLE,Datas.BOOLEAN,Datas.INT,Datas.BYTES};
  stockdiaryDatas=new Datas[]{Datas.STRING,Datas.TIMESTAMP,Datas.INT,Datas.STRING,Datas.STRING,Datas.DOUBLE,Datas.DOUBLE};
  paymenttabledatas=new Datas[]{Datas.STRING,Datas.STRING,Datas.TIMESTAMP,Datas.STRING,Datas.STRING,Datas.DOUBLE};
  stockdatas=new Datas[]{Datas.STRING,Datas.STRING,Datas.STRING,Datas.DOUBLE,Datas.DOUBLE,Datas.DOUBLE};
  auxiliarDatas=new Datas[]{Datas.STRING,Datas.STRING};
}
Program: 6109
Project: 6109
Buggy source:
private void m_btnBackActionPerformed(java.awt.event.ActionEvent evt){
  this.showParentCategory();
}

Fixed version (ground truth):
private void m_btnBackActionPerformed(java.awt.event.ActionEvent evt){
  showRootCategoriesPanel();
}
Program: 6110
Project: 6110
Buggy source:
protected void fireSelectedProduct(ProductInfoExt prod){
  EventListener[] l=listeners.getListeners(ActionListener.class);
  ActionEvent e=null;
  for (int i=0; i < l.length; i++) {
    if (e == null) {
      e=new ActionEvent(prod,ActionEvent.ACTION_PERFORMED,prod.getID());
    }
    ((ActionListener)l[i]).actionPerformed(e);
  }
}

Fixed version (ground truth):
protected void fireSelectedProduct(ProductInfoExt prod){
  EventListener[] l=listeners.getListeners(ActionListener.class);
  ActionEvent e=null;
  for (int i=0; i < l.length; i++) {
    if (e == null) {
      e=new ActionEvent(prod,ActionEvent.ACTION_PERFORMED,prod.getID());
    }
    ((ActionListener)l[i]).actionPerformed(e);
  }
  this.checkForAuxilar(prod);
}
Program: 6111
Project: 6111
Buggy source:
/** 
 * A method that shows a category a level higher in a categories tree.
 */
private void showParentCategory(){
  int categoryOneLevelHigher=(listOfCategories.size() - 2);
  if (categoryOneLevelHigher < 0) {
    this.showRootCategoriesPanel();
  }
 else {
    selectIndicatorPanel(new ImageIcon(tnbbutton.getThumbNail(listOfCategories.get(categoryOneLevelHigher).getImage())),listOfCategories.get(categoryOneLevelHigher).getName());
    selectCategoryPanel(listOfCategories.get(categoryOneLevelHigher).getID());
    listOfCategories.remove(listOfCategories.size() - 1);
  }
}

Fixed version (ground truth):
/** 
 * A method that shows a category a level higher in a categories tree.
 */
private void showParentCategory(){
  int categoryOneLevelHigher=0;
  if (listOfCategories != null) {
    categoryOneLevelHigher=(listOfCategories.size() - 2);
    if (categoryOneLevelHigher < 0) {
      this.showRootCategoriesPanel();
    }
 else {
      selectIndicatorPanel(new ImageIcon(tnbbutton.getThumbNail(listOfCategories.get(categoryOneLevelHigher).getImage())),listOfCategories.get(categoryOneLevelHigher).getName());
      selectCategoryPanel(listOfCategories.get(categoryOneLevelHigher).getID());
      listOfCategories.remove(listOfCategories.size() - 1);
    }
  }
 else {
    this.showRootCategoriesPanel();
  }
}
Program: 6112
Project: 6112
Buggy source:
private void showSubcategoryPanel(CategoryInfo category){
  if (listOfCategories == null)   listOfCategories=new ArrayList<CategoryInfo>();
  selectIndicatorPanel(new ImageIcon(tnbbutton.getThumbNail(category.getImage())),category.getName());
  selectCategoryPanel(category.getID());
  listOfCategories.add(category);
  showingcategory=category;
}

Fixed version (ground truth):
private void showSubcategoryPanel(CategoryInfo category){
  if (listOfCategories == null)   listOfCategories=new ArrayList<CategoryInfo>();
  selectIndicatorPanel(new ImageIcon(tnbbutton.getThumbNail(category.getImage())),category.getName());
  selectCategoryPanel(category.getID());
  if ((listOfCategories.size() - 1) > 0) {
    if (listOfCategories.get(listOfCategories.size() - 1) != category)     listOfCategories.add(category);
  }
 else   listOfCategories.add(category);
  showingcategory=category;
}
Program: 6113
Project: 6113
Buggy source:
/** 
 * Creates a new instance of WebServiceHelper 
 */
public ExternalSalesHelper(DataLogicSystem dlsystem) throws BasicException, ServiceException, MalformedURLException {
  Properties prop=dlsystem.getResourceAsProperties("String_Node_Str");
  if (prop == null) {
    throw new BasicException(AppLocal.getIntString("String_Node_Str"));
  }
 else {
    String url=prop.getProperty("String_Node_Str");
    if (url == null || url.equals("String_Node_Str")) {
      throw new BasicException(AppLocal.getIntString("String_Node_Str"));
    }
 else {
      url=url.trim();
      if (url.endsWith("String_Node_Str")) {
        url=url.substring(0,url.length() - 14);
      }
      externalSales=new ExternalSalesImplServiceLocator().getExternalSales(new URL(url + "String_Node_Str"));
      externalCustomers=new WebServiceImplServiceLocator().getWebService(new URL(url + "String_Node_Str"));
      m_sERPUser=prop.getProperty("String_Node_Str");
      m_sERPPassword=prop.getProperty("String_Node_Str");
      if (m_sERPUser != null && m_sERPPassword != null && m_sERPPassword.startsWith("String_Node_Str")) {
        AltEncrypter cypher=new AltEncrypter("String_Node_Str" + m_sERPUser);
        m_sERPPassword=cypher.decrypt(m_sERPPassword.substring(6));
      }
      m_sERPPassword=getPasswordHash(m_sERPPassword);
      m_iERPId=Integer.parseInt(prop.getProperty("String_Node_Str"));
      m_iERPOrg=Integer.parseInt(prop.getProperty("String_Node_Str"));
      m_iERPPos=Integer.parseInt(prop.getProperty("String_Node_Str"));
    }
  }
}

Fixed version (ground truth):
/** 
 * Creates a new instance of WebServiceHelper 
 */
public ExternalSalesHelper(DataLogicSystem dlsystem) throws BasicException, ServiceException, MalformedURLException {
  Properties prop=dlsystem.getResourceAsProperties("String_Node_Str");
  if (prop == null) {
    throw new BasicException(AppLocal.getIntString("String_Node_Str"));
  }
 else {
    String url=prop.getProperty("String_Node_Str");
    if (url == null || url.equals("String_Node_Str")) {
      throw new BasicException(AppLocal.getIntString("String_Node_Str"));
    }
 else {
      url=url.trim();
      if (url.endsWith("String_Node_Str")) {
        url=url.substring(0,url.length() - 14);
      }
      externalSales=new ExternalSalesImplServiceLocator().getExternalSales(new URL(url + "String_Node_Str"));
      externalCustomers=new WebServiceImplServiceLocator().getWebService(new URL(url + "String_Node_Str"));
      m_sERPUser=prop.getProperty("String_Node_Str");
      m_sERPPassword=prop.getProperty("String_Node_Str");
      if (m_sERPUser != null && m_sERPPassword != null && m_sERPPassword.startsWith("String_Node_Str")) {
        AltEncrypter cypher=new AltEncrypter("String_Node_Str" + m_sERPUser);
        m_sERPPassword=cypher.decrypt(m_sERPPassword.substring(6));
      }
      m_sERPPassword=getPasswordHash(m_sERPPassword);
      m_iERPId=prop.getProperty("String_Node_Str");
      m_iERPOrg=prop.getProperty("String_Node_Str");
      m_iERPPos=prop.getProperty("String_Node_Str");
    }
  }
}
Program: 6116
Project: 6116
Buggy source:
/** 
 * Gets the clientId value for this BusinessPartner.
 * @return clientId
 */
public int getClientId(){
  return clientId;
}

Fixed version (ground truth):
/** 
 * Gets the clientId value for this BusinessPartner.
 * @return clientId
 */
public java.lang.String getClientId(){
  return clientId;
}
Program: 6117
Project: 6117
Buggy source:
public BusinessPartner(int clientId,java.lang.Boolean complete,com.openbravo.ws.customers.Contact[] contacts,java.lang.Boolean customer,java.lang.String description,int id,com.openbravo.ws.customers.Location[] locations,java.lang.String name,java.lang.String searchKey,java.lang.Boolean vendor){
  this.clientId=clientId;
  this.complete=complete;
  this.contacts=contacts;
  this.customer=customer;
  this.description=description;
  this.id=id;
  this.locations=locations;
  this.name=name;
  this.searchKey=searchKey;
  this.vendor=vendor;
}

Fixed version (ground truth):
public BusinessPartner(java.lang.String clientId,java.lang.Boolean complete,com.openbravo.ws.customers.Contact[] contacts,java.lang.Boolean customer,java.lang.String description,java.lang.String id,com.openbravo.ws.customers.Location[] locations,java.lang.String name,java.lang.String searchKey,java.lang.Boolean vendor){
  this.clientId=clientId;
  this.complete=complete;
  this.contacts=contacts;
  this.customer=customer;
  this.description=description;
  this.id=id;
  this.locations=locations;
  this.name=name;
  this.searchKey=searchKey;
  this.vendor=vendor;
}
Program: 6118
Project: 6118
Buggy source:
/** 
 * Gets the id value for this BusinessPartner.
 * @return id
 */
public int getId(){
  return id;
}

Fixed version (ground truth):
/** 
 * Gets the id value for this BusinessPartner.
 * @return id
 */
public java.lang.String getId(){
  return id;
}
Program: 6119
Project: 6119
Buggy source:
public synchronized int hashCode(){
  if (__hashCodeCalc) {
    return 0;
  }
  __hashCodeCalc=true;
  int _hashCode=1;
  _hashCode+=getClientId();
  if (getComplete() != null) {
    _hashCode+=getComplete().hashCode();
  }
  if (getContacts() != null) {
    for (int i=0; i < java.lang.reflect.Array.getLength(getContacts()); i++) {
      java.lang.Object obj=java.lang.reflect.Array.get(getContacts(),i);
      if (obj != null && !obj.getClass().isArray()) {
        _hashCode+=obj.hashCode();
      }
    }
  }
  if (getCustomer() != null) {
    _hashCode+=getCustomer().hashCode();
  }
  if (getDescription() != null) {
    _hashCode+=getDescription().hashCode();
  }
  _hashCode+=getId();
  if (getLocations() != null) {
    for (int i=0; i < java.lang.reflect.Array.getLength(getLocations()); i++) {
      java.lang.Object obj=java.lang.reflect.Array.get(getLocations(),i);
      if (obj != null && !obj.getClass().isArray()) {
        _hashCode+=obj.hashCode();
      }
    }
  }
  if (getName() != null) {
    _hashCode+=getName().hashCode();
  }
  if (getSearchKey() != null) {
    _hashCode+=getSearchKey().hashCode();
  }
  if (getVendor() != null) {
    _hashCode+=getVendor().hashCode();
  }
  __hashCodeCalc=false;
  return _hashCode;
}

Fixed version (ground truth):
public synchronized int hashCode(){
  if (__hashCodeCalc) {
    return 0;
  }
  __hashCodeCalc=true;
  int _hashCode=1;
  if (getClientId() != null) {
    _hashCode+=getClientId().hashCode();
  }
  if (getComplete() != null) {
    _hashCode+=getComplete().hashCode();
  }
  if (getContacts() != null) {
    for (int i=0; i < java.lang.reflect.Array.getLength(getContacts()); i++) {
      java.lang.Object obj=java.lang.reflect.Array.get(getContacts(),i);
      if (obj != null && !obj.getClass().isArray()) {
        _hashCode+=obj.hashCode();
      }
    }
  }
  if (getCustomer() != null) {
    _hashCode+=getCustomer().hashCode();
  }
  if (getDescription() != null) {
    _hashCode+=getDescription().hashCode();
  }
  if (getId() != null) {
    _hashCode+=getId().hashCode();
  }
  if (getLocations() != null) {
    for (int i=0; i < java.lang.reflect.Array.getLength(getLocations()); i++) {
      java.lang.Object obj=java.lang.reflect.Array.get(getLocations(),i);
      if (obj != null && !obj.getClass().isArray()) {
        _hashCode+=obj.hashCode();
      }
    }
  }
  if (getName() != null) {
    _hashCode+=getName().hashCode();
  }
  if (getSearchKey() != null) {
    _hashCode+=getSearchKey().hashCode();
  }
  if (getVendor() != null) {
    _hashCode+=getVendor().hashCode();
  }
  __hashCodeCalc=false;
  return _hashCode;
}
Program: 6120
Project: 6120
Buggy source:
/** 
 * Sets the id value for this BusinessPartner.
 * @param id
 */
public void setId(int id){
  this.id=id;
}

Fixed version (ground truth):
/** 
 * Sets the id value for this BusinessPartner.
 * @param id
 */
public void setId(java.lang.String id){
  this.id=id;
}
Program: 6122
Project: 6122
Buggy source:
/** 
 * Sets the clientId value for this BusinessPartner.
 * @param clientId
 */
public void setClientId(int clientId){
  this.clientId=clientId;
}

Fixed version (ground truth):
/** 
 * Sets the clientId value for this BusinessPartner.
 * @param clientId
 */
public void setClientId(java.lang.String clientId){
  this.clientId=clientId;
}
Program: 6123
Project: 6123
Buggy source:
/** 
 * Gets the clientId value for this Contact.
 * @return clientId
 */
public int getClientId(){
  return clientId;
}

Fixed version (ground truth):
/** 
 * Gets the clientId value for this Contact.
 * @return clientId
 */
public java.lang.String getClientId(){
  return clientId;
}
Program: 6124
Project: 6124
Buggy source:
/** 
 * Gets the id value for this Contact.
 * @return id
 */
public int getId(){
  return id;
}

Fixed version (ground truth):
/** 
 * Gets the id value for this Contact.
 * @return id
 */
public java.lang.String getId(){
  return id;
}
Program: 6125
Project: 6125
Buggy source:
/** 
 * Sets the businessPartnerId value for this Contact.
 * @param businessPartnerId
 */
public void setBusinessPartnerId(int businessPartnerId){
  this.businessPartnerId=businessPartnerId;
}

Fixed version (ground truth):
/** 
 * Sets the businessPartnerId value for this Contact.
 * @param businessPartnerId
 */
public void setBusinessPartnerId(java.lang.String businessPartnerId){
  this.businessPartnerId=businessPartnerId;
}
Program: 6126
Project: 6126
Buggy source:
public Contact(int businessPartnerId,int clientId,java.lang.String email,java.lang.String fax,java.lang.String firstName,int id,java.lang.String lastName,java.lang.String phone,java.lang.String phone2){
  this.businessPartnerId=businessPartnerId;
  this.clientId=clientId;
  this.email=email;
  this.fax=fax;
  this.firstName=firstName;
  this.id=id;
  this.lastName=lastName;
  this.phone=phone;
  this.phone2=phone2;
}

Fixed version (ground truth):
public Contact(java.lang.String businessPartnerId,java.lang.String clientId,java.lang.String email,java.lang.String fax,java.lang.String firstName,java.lang.String id,java.lang.String lastName,java.lang.String phone,java.lang.String phone2){
  this.businessPartnerId=businessPartnerId;
  this.clientId=clientId;
  this.email=email;
  this.fax=fax;
  this.firstName=firstName;
  this.id=id;
  this.lastName=lastName;
  this.phone=phone;
  this.phone2=phone2;
}
Program: 6127
Project: 6127
Buggy source:
public synchronized int hashCode(){
  if (__hashCodeCalc) {
    return 0;
  }
  __hashCodeCalc=true;
  int _hashCode=1;
  _hashCode+=getBusinessPartnerId();
  _hashCode+=getClientId();
  if (getEmail() != null) {
    _hashCode+=getEmail().hashCode();
  }
  if (getFax() != null) {
    _hashCode+=getFax().hashCode();
  }
  if (getFirstName() != null) {
    _hashCode+=getFirstName().hashCode();
  }
  _hashCode+=getId();
  if (getLastName() != null) {
    _hashCode+=getLastName().hashCode();
  }
  if (getPhone() != null) {
    _hashCode+=getPhone().hashCode();
  }
  if (getPhone2() != null) {
    _hashCode+=getPhone2().hashCode();
  }
  __hashCodeCalc=false;
  return _hashCode;
}

Fixed version (ground truth):
public synchronized int hashCode(){
  if (__hashCodeCalc) {
    return 0;
  }
  __hashCodeCalc=true;
  int _hashCode=1;
  if (getBusinessPartnerId() != null) {
    _hashCode+=getBusinessPartnerId().hashCode();
  }
  if (getClientId() != null) {
    _hashCode+=getClientId().hashCode();
  }
  if (getEmail() != null) {
    _hashCode+=getEmail().hashCode();
  }
  if (getFax() != null) {
    _hashCode+=getFax().hashCode();
  }
  if (getFirstName() != null) {
    _hashCode+=getFirstName().hashCode();
  }
  if (getId() != null) {
    _hashCode+=getId().hashCode();
  }
  if (getLastName() != null) {
    _hashCode+=getLastName().hashCode();
  }
  if (getPhone() != null) {
    _hashCode+=getPhone().hashCode();
  }
  if (getPhone2() != null) {
    _hashCode+=getPhone2().hashCode();
  }
  __hashCodeCalc=false;
  return _hashCode;
}
Program: 6128
Project: 6128
Buggy source:
public synchronized boolean equals(java.lang.Object obj){
  if (!(obj instanceof Contact))   return false;
  Contact other=(Contact)obj;
  if (obj == null)   return false;
  if (this == obj)   return true;
  if (__equalsCalc != null) {
    return (__equalsCalc == obj);
  }
  __equalsCalc=obj;
  boolean _equals;
  _equals=true && this.businessPartnerId == other.getBusinessPartnerId() && this.clientId == other.getClientId() && ((this.email == null && other.getEmail() == null) || (this.email != null && this.email.equals(other.getEmail()))) && ((this.fax == null && other.getFax() == null) || (this.fax != null && this.fax.equals(other.getFax()))) && ((this.firstName == null && other.getFirstName() == null) || (this.firstName != null && this.firstName.equals(other.getFirstName()))) && this.id == other.getId() && ((this.lastName == null && other.getLastName() == null) || (this.lastName != null && this.lastName.equals(other.getLastName()))) && ((this.phone == null && other.getPhone() == null) || (this.phone != null && this.phone.equals(other.getPhone()))) && ((this.phone2 == null && other.getPhone2() == null) || (this.phone2 != null && this.phone2.equals(other.getPhone2())));
  __equalsCalc=null;
  return _equals;
}

Fixed version (ground truth):
public synchronized boolean equals(java.lang.Object obj){
  if (!(obj instanceof Contact))   return false;
  Contact other=(Contact)obj;
  if (obj == null)   return false;
  if (this == obj)   return true;
  if (__equalsCalc != null) {
    return (__equalsCalc == obj);
  }
  __equalsCalc=obj;
  boolean _equals;
  _equals=true && ((this.businessPartnerId == null && other.getBusinessPartnerId() == null) || (this.businessPartnerId != null && this.businessPartnerId.equals(other.getBusinessPartnerId()))) && ((this.clientId == null && other.getClientId() == null) || (this.clientId != null && this.clientId.equals(other.getClientId())))&& ((this.email == null && other.getEmail() == null) || (this.email != null && this.email.equals(other.getEmail())))&& ((this.fax == null && other.getFax() == null) || (this.fax != null && this.fax.equals(other.getFax())))&& ((this.firstName == null && other.getFirstName() == null) || (this.firstName != null && this.firstName.equals(other.getFirstName())))&& ((this.id == null && other.getId() == null) || (this.id != null && this.id.equals(other.getId())))&& ((this.lastName == null && other.getLastName() == null) || (this.lastName != null && this.lastName.equals(other.getLastName())))&& ((this.phone == null && other.getPhone() == null) || (this.phone != null && this.phone.equals(other.getPhone())))&& ((this.phone2 == null && other.getPhone2() == null) || (this.phone2 != null && this.phone2.equals(other.getPhone2())));
  __equalsCalc=null;
  return _equals;
}
Program: 6129
Project: 6129
Buggy source:
/** 
 * Sets the id value for this Contact.
 * @param id
 */
public void setId(int id){
  this.id=id;
}

Fixed version (ground truth):
/** 
 * Sets the id value for this Contact.
 * @param id
 */
public void setId(java.lang.String id){
  this.id=id;
}
Program: 6130
Project: 6130
Buggy source:
/** 
 * Gets the businessPartnerId value for this Contact.
 * @return businessPartnerId
 */
public int getBusinessPartnerId(){
  return businessPartnerId;
}

Fixed version (ground truth):
/** 
 * Gets the businessPartnerId value for this Contact.
 * @return businessPartnerId
 */
public java.lang.String getBusinessPartnerId(){
  return businessPartnerId;
}
Program: 6131
Project: 6131
Buggy source:
/** 
 * Sets the clientId value for this Contact.
 * @param clientId
 */
public void setClientId(int clientId){
  this.clientId=clientId;
}

Fixed version (ground truth):
/** 
 * Sets the clientId value for this Contact.
 * @param clientId
 */
public void setClientId(java.lang.String clientId){
  this.clientId=clientId;
}
Program: 6132
Project: 6132
Buggy source:
public void uploadOrders(Order[] orderstoupload) throws RemoteException {
  externalSales.uploadOrders(m_iERPId,m_iERPOrg,m_iERPPos,orderstoupload,m_sERPUser,m_sERPPassword);
}

Fixed version (ground truth):
public boolean uploadOrders(Order[] orderstoupload) throws RemoteException {
  return externalSales.uploadOrders(m_iERPId,m_iERPOrg,m_iERPPos,orderstoupload,m_sERPUser,m_sERPPassword);
}
Program: 6133
Project: 6133
Buggy source:
public MessageInf execute() throws BasicException {
  try {
    if (externalsales == null) {
      externalsales=new ExternalSalesHelper(dlsystem);
    }
    List<TicketInfo> ticketlist=dlintegration.getTickets();
    for (    TicketInfo ticket : ticketlist) {
      ticket.setLines(dlintegration.getTicketLines(ticket.getId()));
      ticket.setPayments(dlintegration.getTicketPayments(ticket.getId()));
    }
    if (ticketlist.size() == 0) {
      return new MessageInf(MessageInf.SGN_NOTICE,AppLocal.getIntString("String_Node_Str"));
    }
 else {
      Order[] orders=transformTickets(ticketlist);
      externalsales.uploadOrders(orders);
      dlintegration.execTicketUpdate();
      return new MessageInf(MessageInf.SGN_SUCCESS,AppLocal.getIntString("String_Node_Str"),AppLocal.getIntString("String_Node_Str",orders.length));
    }
  }
 catch (  ServiceException e) {
    throw new BasicException(AppLocal.getIntString("String_Node_Str"),e);
  }
catch (  RemoteException e) {
    throw new BasicException(AppLocal.getIntString("String_Node_Str"),e);
  }
catch (  MalformedURLException e) {
    throw new BasicException(AppLocal.getIntString("String_Node_Str"),e);
  }
}

Fixed version (ground truth):
public MessageInf execute() throws BasicException {
  try {
    if (externalsales == null) {
      externalsales=new ExternalSalesHelper(dlsystem);
    }
    List<TicketInfo> ticketlist=dlintegration.getTickets();
    for (    TicketInfo ticket : ticketlist) {
      ticket.setLines(dlintegration.getTicketLines(ticket.getId()));
      ticket.setPayments(dlintegration.getTicketPayments(ticket.getId()));
    }
    if (ticketlist.size() == 0) {
      return new MessageInf(MessageInf.SGN_NOTICE,AppLocal.getIntString("String_Node_Str"));
    }
 else {
      Order[] orders=transformTickets(ticketlist);
      if (!externalsales.uploadOrders(orders))       throw new BasicException(AppLocal.getIntString("String_Node_Str"));
      dlintegration.execTicketUpdate();
      return new MessageInf(MessageInf.SGN_SUCCESS,AppLocal.getIntString("String_Node_Str"),AppLocal.getIntString("String_Node_Str",orders.length));
    }
  }
 catch (  ServiceException e) {
    throw new BasicException(AppLocal.getIntString("String_Node_Str"),e);
  }
catch (  RemoteException e) {
    throw new BasicException(AppLocal.getIntString("String_Node_Str"),e);
  }
catch (  MalformedURLException e) {
    throw new BasicException(AppLocal.getIntString("String_Node_Str"),e);
  }
}
Program: 6134
Project: 6134
Buggy source:
public void uploadOrders(java.lang.String clientID,java.lang.String organizationId,java.lang.String salesChannel,com.openbravo.ws.externalsales.Order[] newOrders,java.lang.String username,java.lang.String password) throws java.rmi.RemoteException ;

Fixed version (ground truth):
public boolean uploadOrders(java.lang.String clientID,java.lang.String organizationId,java.lang.String salesChannel,com.openbravo.ws.externalsales.Order[] newOrders,java.lang.String username,java.lang.String password) throws java.rmi.RemoteException ;
Program: 6135
Project: 6135
Buggy source:
public void uploadOrders(java.lang.String clientID,java.lang.String organizationId,java.lang.String salesChannel,com.openbravo.ws.externalsales.Order[] newOrders,java.lang.String username,java.lang.String password) throws java.rmi.RemoteException {
  if (super.cachedEndpoint == null) {
    throw new org.apache.axis.NoEndPointException();
  }
  org.apache.axis.client.Call _call=createCall();
  _call.setOperation(_operations[2]);
  _call.setUseSOAPAction(true);
  _call.setSOAPActionURI("String_Node_Str");
  _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
  _call.setOperationName(new javax.xml.namespace.QName("String_Node_Str","String_Node_Str"));
  setRequestHeaders(_call);
  setAttachments(_call);
  try {
    java.lang.Object _resp=_call.invoke(new java.lang.Object[]{clientID,organizationId,salesChannel,newOrders,username,password});
    if (_resp instanceof java.rmi.RemoteException) {
      throw (java.rmi.RemoteException)_resp;
    }
    extractAttachments(_call);
  }
 catch (  org.apache.axis.AxisFault axisFaultException) {
    throw axisFaultException;
  }
}

Fixed version (ground truth):
public boolean uploadOrders(java.lang.String clientID,java.lang.String organizationId,java.lang.String salesChannel,com.openbravo.ws.externalsales.Order[] newOrders,java.lang.String username,java.lang.String password) throws java.rmi.RemoteException {
  if (super.cachedEndpoint == null) {
    throw new org.apache.axis.NoEndPointException();
  }
  org.apache.axis.client.Call _call=createCall();
  _call.setOperation(_operations[2]);
  _call.setUseSOAPAction(true);
  _call.setSOAPActionURI("String_Node_Str");
  _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
  _call.setOperationName(new javax.xml.namespace.QName("String_Node_Str","String_Node_Str"));
  setRequestHeaders(_call);
  setAttachments(_call);
  try {
    java.lang.Object _resp=_call.invoke(new java.lang.Object[]{clientID,organizationId,salesChannel,newOrders,username,password});
    if (_resp instanceof java.rmi.RemoteException) {
      throw (java.rmi.RemoteException)_resp;
    }
 else {
      extractAttachments(_call);
      try {
        return ((java.lang.Boolean)_resp).booleanValue();
      }
 catch (      java.lang.Exception _exception) {
        return ((java.lang.Boolean)org.apache.axis.utils.JavaUtils.convert(_resp,boolean.class)).booleanValue();
      }
    }
  }
 catch (  org.apache.axis.AxisFault axisFaultException) {
    throw axisFaultException;
  }
}
Program: 6137
Project: 6137
Buggy source:
public void valueChanged(ListSelectionEvent e){
  if (!e.getValueIsAdjusting()) {
    int i=m_ticketlines.getSelectedIndex();
    while (i >= 0 && m_oTicket.getLine(i).isProductCom()) {
      i--;
    }
    if (i >= 0) {
      m_cat.showCatalogPanel(m_oTicket.getLine(i).getProductID());
    }
 else {
      m_cat.showCatalogPanel(null);
    }
  }
}

Fixed version (ground truth):
public void valueChanged(ListSelectionEvent e){
  if (!e.getValueIsAdjusting()) {
    int i=m_ticketlines.getSelectedIndex();
    if (i >= 0) {
      while (i >= 0 && m_oTicket.getLine(i).isProductCom()) {
        i--;
      }
      if (i >= 0) {
        m_cat.showCatalogPanel(m_oTicket.getLine(i).getProductID());
      }
 else {
        m_cat.showCatalogPanel(null);
      }
    }
  }
}
Program: 6138
Project: 6138
Buggy source:
public void writeValueInsert(){
  reportlock=true;
  m_jTitle.setText(AppLocal.getIntString("String_Node_Str"));
  m_id=null;
  m_jRef.setText(null);
  m_jCode.setText(null);
  m_jName.setText(null);
  m_jComment.setSelected(false);
  m_jScale.setSelected(false);
  m_CategoryModel.setSelectedKey(null);
  taxcatmodel.setSelectedKey(null);
  m_jPriceBuy.setText(null);
  m_jPriceSell.setText(null);
  m_jImage.setImage(null);
  m_jstockcost.setText(null);
  m_jstockvolume.setText(null);
  m_jInCatalog.setSelected(true);
  m_jCatalogOrder.setText(null);
  txtAttributes.setText(null);
  reportlock=false;
  m_jRef.setEnabled(true);
  m_jCode.setEnabled(true);
  m_jName.setEnabled(true);
  m_jComment.setEnabled(true);
  m_jScale.setEnabled(true);
  m_jCategory.setEnabled(true);
  m_jTax.setEnabled(true);
  m_jPriceBuy.setEnabled(true);
  m_jPriceSell.setEnabled(true);
  m_jPriceSellTax.setEnabled(true);
  m_jmargin.setEnabled(true);
  m_jImage.setEnabled(true);
  m_jstockcost.setEnabled(true);
  m_jstockvolume.setEnabled(true);
  m_jInCatalog.setEnabled(true);
  m_jCatalogOrder.setEnabled(false);
  txtAttributes.setEnabled(true);
  calculateMargin();
  calculatePriceSellTax();
}

Fixed version (ground truth):
public void writeValueInsert(){
  reportlock=true;
  m_jTitle.setText(AppLocal.getIntString("String_Node_Str"));
  m_id=null;
  m_jRef.setText(null);
  m_jCode.setText(null);
  m_jName.setText(null);
  m_jComment.setSelected(false);
  m_jScale.setSelected(false);
  m_CategoryModel.setSelectedKey(null);
  taxcatmodel.setSelectedKey(null);
  m_jPriceBuy.setText(null);
  setPriceSell(null);
  m_jImage.setImage(null);
  m_jstockcost.setText(null);
  m_jstockvolume.setText(null);
  m_jInCatalog.setSelected(true);
  m_jCatalogOrder.setText(null);
  txtAttributes.setText(null);
  reportlock=false;
  m_jRef.setEnabled(true);
  m_jCode.setEnabled(true);
  m_jName.setEnabled(true);
  m_jComment.setEnabled(true);
  m_jScale.setEnabled(true);
  m_jCategory.setEnabled(true);
  m_jTax.setEnabled(true);
  m_jPriceBuy.setEnabled(true);
  m_jPriceSell.setEnabled(true);
  m_jPriceSellTax.setEnabled(true);
  m_jmargin.setEnabled(true);
  m_jImage.setEnabled(true);
  m_jstockcost.setEnabled(true);
  m_jstockvolume.setEnabled(true);
  m_jInCatalog.setEnabled(true);
  m_jCatalogOrder.setEnabled(false);
  txtAttributes.setEnabled(true);
  calculateMargin();
  calculatePriceSellTax();
}
Program: 6140
Project: 6140
Buggy source:
private void calculatePriceSellTax(){
  if (!reportlock) {
    reportlock=true;
    Double dPriceSell=readCurrency(m_jPriceSell.getText());
    if (dPriceSell == null) {
      m_jPriceSellTax.setText(null);
    }
 else {
      double dTaxRate=taxeslogic.getTaxRate((TaxCategoryInfo)taxcatmodel.getSelectedItem());
      m_jPriceSellTax.setText(Formats.CURRENCY.formatValue(new Double(dPriceSell.doubleValue() * (1.0 + dTaxRate))));
    }
    reportlock=false;
  }
}

Fixed version (ground truth):
private void calculatePriceSellTax(){
  if (!reportlock) {
    reportlock=true;
    Double dPriceSell=(Double)pricesell;
    if (dPriceSell == null) {
      m_jPriceSellTax.setText(null);
    }
 else {
      double dTaxRate=taxeslogic.getTaxRate((TaxCategoryInfo)taxcatmodel.getSelectedItem());
      m_jPriceSellTax.setText(Formats.CURRENCY.formatValue(new Double(dPriceSell.doubleValue() * (1.0 + dTaxRate))));
    }
    reportlock=false;
  }
}
Program: 6141
Project: 6141
Buggy source:
private void calculatePriceSellfromPST(){
  if (!reportlock) {
    reportlock=true;
    Double dPriceSellTax=readCurrency(m_jPriceSellTax.getText());
    if (dPriceSellTax == null) {
      m_jPriceSell.setText(null);
    }
 else {
      double dTaxRate=taxeslogic.getTaxRate((TaxCategoryInfo)taxcatmodel.getSelectedItem());
      m_jPriceSell.setText(Formats.CURRENCY.formatValue(new Double(dPriceSellTax.doubleValue() / (1.0 + dTaxRate))));
    }
    reportlock=false;
  }
}

Fixed version (ground truth):
private void calculatePriceSellfromPST(){
  if (!reportlock) {
    reportlock=true;
    Double dPriceSellTax=readCurrency(m_jPriceSellTax.getText());
    if (dPriceSellTax == null) {
      setPriceSell(null);
    }
 else {
      double dTaxRate=taxeslogic.getTaxRate((TaxCategoryInfo)taxcatmodel.getSelectedItem());
      setPriceSell(new Double(dPriceSellTax.doubleValue() / (1.0 + dTaxRate)));
    }
    reportlock=false;
  }
}
Program: 6143
Project: 6143
Buggy source:
public void writeValueEOF(){
  reportlock=true;
  m_jTitle.setText(AppLocal.getIntString("String_Node_Str"));
  m_id=null;
  m_jRef.setText(null);
  m_jCode.setText(null);
  m_jName.setText(null);
  m_jComment.setSelected(false);
  m_jScale.setSelected(false);
  m_CategoryModel.setSelectedKey(null);
  taxcatmodel.setSelectedKey(null);
  m_jPriceBuy.setText(null);
  m_jPriceSell.setText(null);
  m_jImage.setImage(null);
  m_jstockcost.setText(null);
  m_jstockvolume.setText(null);
  m_jInCatalog.setSelected(false);
  m_jCatalogOrder.setText(null);
  txtAttributes.setText(null);
  reportlock=false;
  m_jRef.setEnabled(false);
  m_jCode.setEnabled(false);
  m_jName.setEnabled(false);
  m_jComment.setEnabled(false);
  m_jScale.setEnabled(false);
  m_jCategory.setEnabled(false);
  m_jTax.setEnabled(false);
  m_jPriceBuy.setEnabled(false);
  m_jPriceSell.setEnabled(false);
  m_jPriceSellTax.setEnabled(false);
  m_jmargin.setEnabled(false);
  m_jImage.setEnabled(false);
  m_jstockcost.setEnabled(false);
  m_jstockvolume.setEnabled(false);
  m_jInCatalog.setEnabled(false);
  m_jCatalogOrder.setEnabled(false);
  txtAttributes.setEnabled(false);
  calculateMargin();
  calculatePriceSellTax();
}

Fixed version (ground truth):
public void writeValueEOF(){
  reportlock=true;
  m_jTitle.setText(AppLocal.getIntString("String_Node_Str"));
  m_id=null;
  m_jRef.setText(null);
  m_jCode.setText(null);
  m_jName.setText(null);
  m_jComment.setSelected(false);
  m_jScale.setSelected(false);
  m_CategoryModel.setSelectedKey(null);
  taxcatmodel.setSelectedKey(null);
  m_jPriceBuy.setText(null);
  setPriceSell(null);
  m_jImage.setImage(null);
  m_jstockcost.setText(null);
  m_jstockvolume.setText(null);
  m_jInCatalog.setSelected(false);
  m_jCatalogOrder.setText(null);
  txtAttributes.setText(null);
  reportlock=false;
  m_jRef.setEnabled(false);
  m_jCode.setEnabled(false);
  m_jName.setEnabled(false);
  m_jComment.setEnabled(false);
  m_jScale.setEnabled(false);
  m_jCategory.setEnabled(false);
  m_jTax.setEnabled(false);
  m_jPriceBuy.setEnabled(false);
  m_jPriceSell.setEnabled(false);
  m_jPriceSellTax.setEnabled(false);
  m_jmargin.setEnabled(false);
  m_jImage.setEnabled(false);
  m_jstockcost.setEnabled(false);
  m_jstockvolume.setEnabled(false);
  m_jInCatalog.setEnabled(false);
  m_jCatalogOrder.setEnabled(false);
  txtAttributes.setEnabled(false);
  calculateMargin();
  calculatePriceSellTax();
}
Program: 6144
Project: 6144
Buggy source:
private void calculateMargin(){
  if (!reportlock) {
    reportlock=true;
    Double dPriceBuy=readCurrency(m_jPriceBuy.getText());
    Double dPriceSell=readCurrency(m_jPriceSell.getText());
    if (dPriceBuy == null || dPriceSell == null) {
      m_jmargin.setText(null);
    }
 else {
      m_jmargin.setText(Formats.PERCENT.formatValue(new Double(dPriceSell.doubleValue() / dPriceBuy.doubleValue() - 1.0)));
    }
    reportlock=false;
  }
}

Fixed version (ground truth):
private void calculateMargin(){
  if (!reportlock) {
    reportlock=true;
    Double dPriceBuy=readCurrency(m_jPriceBuy.getText());
    Double dPriceSell=(Double)pricesell;
    if (dPriceBuy == null || dPriceSell == null) {
      m_jmargin.setText(null);
    }
 else {
      m_jmargin.setText(Formats.PERCENT.formatValue(new Double(dPriceSell.doubleValue() / dPriceBuy.doubleValue() - 1.0)));
    }
    reportlock=false;
  }
}
Program: 6145
Project: 6145
Buggy source:
private void calculatePriceSellfromMargin(){
  if (!reportlock) {
    reportlock=true;
    Double dPriceBuy=readCurrency(m_jPriceBuy.getText());
    Double dMargin=readPercent(m_jmargin.getText());
    if (dMargin == null || dPriceBuy == null) {
      m_jPriceSell.setText(null);
    }
 else {
      m_jPriceSell.setText(Formats.CURRENCY.formatValue(new Double(dPriceBuy.doubleValue() * (1.0 + dMargin.doubleValue()))));
    }
    reportlock=false;
  }
}

Fixed version (ground truth):
private void calculatePriceSellfromMargin(){
  if (!reportlock) {
    reportlock=true;
    Double dPriceBuy=readCurrency(m_jPriceBuy.getText());
    Double dMargin=readPercent(m_jmargin.getText());
    if (dMargin == null || dPriceBuy == null) {
      setPriceSell(null);
    }
 else {
      setPriceSell(new Double(dPriceBuy.doubleValue() * (1.0 + dMargin.doubleValue())));
    }
    reportlock=false;
  }
}
Program: 6146
Project: 6146
Buggy source:
public Object createValue() throws BasicException {
  Object[] myprod=new Object[16];
  myprod[0]=m_id == null ? UUID.randomUUID().toString() : m_id;
  myprod[1]=m_jRef.getText();
  myprod[2]=m_jCode.getText();
  myprod[3]=m_jName.getText();
  myprod[4]=Boolean.valueOf(m_jComment.isSelected());
  myprod[5]=Boolean.valueOf(m_jScale.isSelected());
  myprod[6]=Formats.CURRENCY.parseValue(m_jPriceBuy.getText());
  myprod[7]=Formats.CURRENCY.parseValue(m_jPriceSell.getText());
  myprod[8]=m_CategoryModel.getSelectedKey();
  myprod[9]=taxcatmodel.getSelectedKey();
  myprod[10]=m_jImage.getImage();
  myprod[11]=Formats.CURRENCY.parseValue(m_jstockcost.getText());
  myprod[12]=Formats.DOUBLE.parseValue(m_jstockvolume.getText());
  myprod[13]=Boolean.valueOf(m_jInCatalog.isSelected());
  myprod[14]=Formats.INT.parseValue(m_jCatalogOrder.getText());
  myprod[15]=Formats.BYTEA.parseValue(txtAttributes.getText());
  return myprod;
}

Fixed version (ground truth):
public Object createValue() throws BasicException {
  Object[] myprod=new Object[16];
  myprod[0]=m_id == null ? UUID.randomUUID().toString() : m_id;
  myprod[1]=m_jRef.getText();
  myprod[2]=m_jCode.getText();
  myprod[3]=m_jName.getText();
  myprod[4]=Boolean.valueOf(m_jComment.isSelected());
  myprod[5]=Boolean.valueOf(m_jScale.isSelected());
  myprod[6]=Formats.CURRENCY.parseValue(m_jPriceBuy.getText());
  myprod[7]=pricesell;
  myprod[8]=m_CategoryModel.getSelectedKey();
  myprod[9]=taxcatmodel.getSelectedKey();
  myprod[10]=m_jImage.getImage();
  myprod[11]=Formats.CURRENCY.parseValue(m_jstockcost.getText());
  myprod[12]=Formats.DOUBLE.parseValue(m_jstockvolume.getText());
  myprod[13]=Boolean.valueOf(m_jInCatalog.isSelected());
  myprod[14]=Formats.INT.parseValue(m_jCatalogOrder.getText());
  myprod[15]=Formats.BYTEA.parseValue(txtAttributes.getText());
  return myprod;
}
Program: 6148
Project: 6148
Buggy source:
@Override public void clearVisor(){
  display.write(new byte[]{0x10,0x00});
  display.write(trans.transString(DeviceTicket.getWhiteString(20)));
  display.write(new byte[]{0x10,014});
  display.write(trans.transString(DeviceTicket.getWhiteString(20)));
  display.flush();
}

Fixed version (ground truth):
@Override public void clearVisor(){
  display.write(new byte[]{0x10,0x00});
  display.write(trans.transString(DeviceTicket.getWhiteString(20)));
  display.write(new byte[]{0x10,0x14});
  display.write(trans.transString(DeviceTicket.getWhiteString(20)));
  display.flush();
}
Program: 6149
Project: 6149
Buggy source:
public void actionPerformed(ActionEvent e){
  double tendered;
  try {
    tendered=m_jTendered.getValue();
  }
 catch (  BasicException eB) {
    tendered=0.0;
  }
  m_jTendered.setValue(tendered + amount);
  printState();
}

Fixed version (ground truth):
public void actionPerformed(ActionEvent e){
  double tendered;
  try {
    tendered=m_jTendered.getValue();
  }
 catch (  BasicException eB) {
    tendered=0.0;
  }
  m_jTendered.setValue(RoundUtils.round(tendered + amount));
  printState();
}
Program: 6150
Project: 6150
Buggy source:
public Object createValue() throws BasicException {
  Object[] payment=new Object[6];
  payment[0]=m_sId == null ? UUID.randomUUID().toString() : m_sId;
  payment[1]=m_App.getActiveCashIndex();
  payment[2]=datenew == null ? new Date() : datenew;
  payment[3]=m_sPaymentId == null ? UUID.randomUUID().toString() : m_sPaymentId;
  payment[4]=m_ReasonModel.getSelectedKey();
  PaymentReason reason=(PaymentReason)m_ReasonModel.getSelectedItem();
  Double dtotal=(Double)Formats.DOUBLE.parseValue(m_jtotal.getText());
  payment[5]=reason == null ? dtotal : reason.addSignum(dtotal);
  return payment;
}

Fixed version (ground truth):
public Object createValue() throws BasicException {
  Object[] payment=new Object[6];
  payment[0]=m_sId == null ? UUID.randomUUID().toString() : m_sId;
  payment[1]=m_App.getActiveCashIndex();
  payment[2]=datenew == null ? new Date() : datenew;
  payment[3]=m_sPaymentId == null ? UUID.randomUUID().toString() : m_sPaymentId;
  payment[4]=m_ReasonModel.getSelectedKey();
  PaymentReason reason=(PaymentReason)m_ReasonModel.getSelectedItem();
  Double dtotal=(Double)Formats.CURRENCY.parseValue(m_jtotal.getText());
  payment[5]=reason == null ? dtotal : reason.addSignum(dtotal);
  return payment;
}
Program: 6151
Project: 6151
Buggy source:
public String toString(){
  return m_sText;
}

Fixed version (ground truth):
@Override public String toString(){
  return m_sText;
}
Program: 6152
Project: 6152
Buggy source:
public TicketLineInfo copyTicketLine(){
  TicketLineInfo l=new TicketLineInfo();
  m_sTicket=null;
  m_iLine=-1;
  l.m_dMultiply=m_dMultiply;
  l.m_dPrice=m_dPrice;
  l.tax=tax;
  l.attributes=attributes;
  l.product=product.copyTicketProduct();
  return l;
}

Fixed version (ground truth):
public TicketLineInfo copyTicketLine(){
  TicketLineInfo l=new TicketLineInfo();
  l.m_dMultiply=m_dMultiply;
  l.m_dPrice=m_dPrice;
  l.tax=tax;
  l.attributes=attributes;
  l.product=product.copyTicketProduct();
  return l;
}
Program: 6153
Project: 6153
Buggy source:
public void syncCustomersBefore() throws BasicException {
  new StaticSentence(s,"String_Node_Str").exec();
}

Fixed version (ground truth):
public abstract void syncCustomersBefore() throws BasicException ;
Program: 6154
Project: 6154
Buggy source:
public void syncCustomer(final CustomerInfoExt customer) throws BasicException {
  Transaction t=new Transaction(s){
    public Object transact() throws BasicException {
      if (new PreparedSentence(s,"String_Node_Str",new SerializerWrite(){
        public void writeValues(        DataWrite dp,        Object obj) throws BasicException {
          CustomerInfoExt c=(CustomerInfoExt)obj;
          dp.setString(1,c.getName());
          dp.setString(2,c.getAddress());
          dp.setString(3,c.getId());
        }
      }
).exec(customer) == 0) {
        new PreparedSentence(s,"String_Node_Str",new SerializerWrite(){
          public void writeValues(          DataWrite dp,          Object obj) throws BasicException {
            CustomerInfoExt c=(CustomerInfoExt)obj;
            dp.setString(1,c.getId());
            dp.setString(2,c.getName());
            dp.setString(3,c.getAddress());
          }
        }
).exec(customer);
      }
      return null;
    }
  }
;
  t.execute();
}

Fixed version (ground truth):
public abstract void syncCustomer(final CustomerInfoExt customer) throws BasicException ;
Program: 6156
Project: 6156
Buggy source:
public final SentenceList getCustomerList(){
  return new StaticSentence(s,new QBFBuilder("String_Node_Str",new String[]{"String_Node_Str"}),new SerializerWriteBasic(new Datas[]{Datas.OBJECT,Datas.STRING}),new SerializerRead(){
    public Object readValues(    DataRead dr) throws BasicException {
      return new CustomerInfo(dr.getString(1),dr.getString(2),dr.getString(3));
    }
  }
);
}

Fixed version (ground truth):
public SentenceList getCustomerList(){
  return new StaticSentence(s,new QBFBuilder("String_Node_Str",new String[]{"String_Node_Str"}),new SerializerWriteBasic(new Datas[]{Datas.OBJECT,Datas.STRING}),new SerializerRead(){
    public Object readValues(    DataRead dr) throws BasicException {
      return new CustomerInfo(dr.getString(1),dr.getString(2),dr.getString(3));
    }
  }
);
}
Program: 6157
Project: 6157
Buggy source:
public void removeActionListener(ActionListener l){
  listeners.add(ActionListener.class,l);
}

Fixed version (ground truth):
public void removeActionListener(ActionListener l){
  listeners.remove(ActionListener.class,l);
}
Program: 6158
Project: 6158
Buggy source:
/** 
 * @param args
 */
public static void main(String[] args){
  OCache oc=new OCache();
  OCache oc2=new OCache();
  int i, j;
  com.jopdesign.io.SysDevice sys=com.jopdesign.io.IOFactory.getFactory().getSysDevice();
  sys.wd=1;
  s=15;
  oc.a=1;
  i=oc.a;
  j=oc.a;
  int ref=Native.toInt(oc);
  i=Native.getField(ref,0);
  i=oc.a;
  sys.wd=0;
  oc2.a=3;
  i=oc.a;
  i=oc2.a;
  j=oc.a;
  j=oc2.a;
  sys.wd=1;
  BenchLift bl=new BenchLift();
  sys.wd=0;
  bl.perform(10);
  sys.wd=1;
}

Fixed version (ground truth):
/** 
 * @param args
 */
public static void main(String[] args){
  OCache oc=new OCache();
  OCache oc2=new OCache();
  int i, j;
  com.jopdesign.io.SysDevice sys=com.jopdesign.io.IOFactory.getFactory().getSysDevice();
  sys.wd=1;
  Basic btest=new Basic();
  sys.wd=0;
  boolean result=btest.test();
  sys.wd=1;
  System.out.println(result);
}
Program: 6159
Project: 6159
Buggy source:
private int processClass(ClassInfo classInfo){
  AppInfo appInfo=AppInfo.getSingleton();
  int cnt=0;
  int size=classInfo.getConstantPoolSize();
  for (int i=0; i < size; i++) {
    ConstantInfo constantInfo=classInfo.getConstantInfo(i);
    if (constantInfo == null) {
      continue;
    }
    ClassRef ref=constantInfo.getClassRef();
    if (ref == null) {
      continue;
    }
    ClassInfo cls=ref.getClassInfo();
    if (cls == null) {
      cls=appInfo.loadClass(ref.getClassName());
      if (cls != null) {
        newClasses.add(cls);
        cnt++;
      }
    }
    if (cls != null) {
      enqueue(cls);
    }
  }
  return cnt;
}

Fixed version (ground truth):
private int processClass(ClassInfo classInfo){
  AppInfo appInfo=AppInfo.getSingleton();
  int cnt=0;
  int size=classInfo.getConstantPoolSize();
  for (int i=0; i < size; i++) {
    ConstantInfo constantInfo=classInfo.getConstantInfo(i);
    if (constantInfo == null) {
      continue;
    }
    ClassRef ref=constantInfo.getClassRef();
    if (ref == null) {
      continue;
    }
    String className;
    if (ref.isArray()) {
      Type baseType=((ArrayType)ref.getType()).getBasicType();
      if (baseType instanceof ObjectType) {
        className=((ObjectType)baseType).getClassName();
      }
 else {
        continue;
      }
    }
 else {
      className=ref.getClassName();
    }
    ClassInfo cls;
    if (appInfo.hasClassInfo(className)) {
      cls=appInfo.getClassInfo(className);
    }
 else {
      cls=appInfo.loadClass(className);
      if (cls != null) {
        newClasses.add(cls);
        cnt++;
      }
    }
    if (cls != null) {
      enqueue(cls);
    }
  }
  return cnt;
}
Program: 6160
Project: 6160
Buggy source:
public ClassRef(String className,boolean anInterface){
  this.className=className;
  this.anInterface=anInterface ? Ternary.TRUE : Ternary.FALSE;
}

Fixed version (ground truth):
public ClassRef(String className,boolean anInterface){
  this.className=className;
  this.anInterface=anInterface ? Ternary.TRUE : Ternary.FALSE;
  arrayClass=className.startsWith("String_Node_Str");
}