nus-yam/ex-repair huggingface dataset:
Program: 59117
Project: 59117
Buggy source:
@Transactional(rollbackOn={AxelorException.class,Exception.class}) public ProductionOrder generateProductionOrder(BillOfMaterial billOfMaterial,BigDecimal qtyRequested,Project businessProject) throws AxelorException {
  ProductionOrder productionOrder=this.createProductionOrder(businessProject,false);
  BigDecimal qty=qtyRequested.divide(billOfMaterial.getQty());
  ManufOrder manufOrder=manufOrderService.generateManufOrder(qty,ManufOrderService.DEFAULT_PRIORITY,ManufOrderService.IS_TO_INVOICE,billOfMaterial.getCompany(),billOfMaterial,new LocalDateTime());
  manufOrder=manufOrderWorkflowService.plan(manufOrder);
  productionOrder.addManufOrderListItem(manufOrder);
  return productionOrder.save();
}

Fixed version (ground truth):
@Transactional(rollbackOn={AxelorException.class,Exception.class}) public ProductionOrder generateProductionOrder(BillOfMaterial billOfMaterial,BigDecimal qtyRequested,Project businessProject) throws AxelorException {
  ProductionOrder productionOrder=this.createProductionOrder(businessProject,false);
  BigDecimal qty=qtyRequested.divide(billOfMaterial.getQty());
  ManufOrder manufOrder=manufOrderService.generateManufOrder(qty,ManufOrderService.DEFAULT_PRIORITY,ManufOrderService.IS_TO_INVOICE,billOfMaterial.getCompany(),billOfMaterial,new LocalDateTime());
  productionOrder.addManufOrderListItem(manufOrder);
  return productionOrder.save();
}
Program: 59119
Project: 59119
Buggy source:
public PurchaseOrder createPurchaseOrder(Project project,UserInfo buyerUserInfo,Company company,Partner contactPartner,Currency currency,LocalDate deliveryDate,String externalReference,int invoicingTypeSelect,Location location,LocalDate orderDate,PriceList priceList,Partner supplierPartner) throws AxelorException {
  PurchaseOrder purchaseOrder=new PurchaseOrder();
  purchaseOrder.setProject(project);
  purchaseOrder.setBuyerUserInfo(buyerUserInfo);
  purchaseOrder.setCompany(company);
  purchaseOrder.setContactPartner(contactPartner);
  purchaseOrder.setCurrency(currency);
  purchaseOrder.setDeliveryDate(deliveryDate);
  purchaseOrder.setExternalReference(externalReference);
  purchaseOrder.setInvoicingTypeSelect(invoicingTypeSelect);
  purchaseOrder.setLocation(location);
  purchaseOrder.setOrderDate(orderDate);
  purchaseOrder.setPriceList(priceList);
  purchaseOrder.setPurchaseOrderLineList(new ArrayList<PurchaseOrderLine>());
  purchaseOrder.setPurchaseOrderSeq(this.getSequence(company));
  purchaseOrder.setStatusSelect(IPurchaseOrder.STATUS_DRAFT);
  purchaseOrder.setSupplierPartner(supplierPartner);
  return purchaseOrder;
}

Fixed version (ground truth):
public PurchaseOrder createPurchaseOrder(Project project,UserInfo buyerUserInfo,Company company,Partner contactPartner,Currency currency,LocalDate deliveryDate,String externalReference,int invoicingTypeSelect,Location location,LocalDate orderDate,PriceList priceList,Partner supplierPartner) throws AxelorException {
  LOG.debug("String_Node_Str",new Object[]{company.getName(),externalReference,supplierPartner.getFullName()});
  PurchaseOrder purchaseOrder=new PurchaseOrder();
  purchaseOrder.setProject(project);
  purchaseOrder.setBuyerUserInfo(buyerUserInfo);
  purchaseOrder.setCompany(company);
  purchaseOrder.setContactPartner(contactPartner);
  purchaseOrder.setCurrency(currency);
  purchaseOrder.setDeliveryDate(deliveryDate);
  purchaseOrder.setExternalReference(externalReference);
  purchaseOrder.setInvoicingTypeSelect(invoicingTypeSelect);
  purchaseOrder.setLocation(location);
  purchaseOrder.setOrderDate(orderDate);
  purchaseOrder.setPriceList(priceList);
  purchaseOrder.setPurchaseOrderLineList(new ArrayList<PurchaseOrderLine>());
  purchaseOrder.setPurchaseOrderSeq(this.getSequence(company));
  purchaseOrder.setStatusSelect(IPurchaseOrder.STATUS_DRAFT);
  purchaseOrder.setSupplierPartner(supplierPartner);
  return purchaseOrder;
}
Program: 59120
Project: 59120
Buggy source:
@Transactional(rollbackOn={AxelorException.class,Exception.class}) public void createPurchaseOrder(Partner supplierPartner,List<SalesOrderLine> salesOrderLineList,SalesOrder salesOrder) throws AxelorException {
  PurchaseOrder purchaseOrder=purchaseOrderService.createPurchaseOrder(salesOrder.getProject(),user,salesOrder.getCompany(),null,supplierPartner.getCurrency(),null,null,IPurchaseOrder.INVOICING_FREE,purchaseOrderService.getLocation(salesOrder.getCompany()),today,PriceList.all().filter("String_Node_Str",supplierPartner).fetchOne(),supplierPartner);
  for (  SalesOrderLine salesOrderLine : salesOrderLineList) {
    purchaseOrder.addPurchaseOrderLineListItem(purchaseOrderLineService.createPurchaseOrderLine(purchaseOrder,salesOrderLine));
  }
  purchaseOrder.save();
}

Fixed version (ground truth):
@Transactional(rollbackOn={AxelorException.class,Exception.class}) public void createPurchaseOrder(Partner supplierPartner,List<SalesOrderLine> salesOrderLineList,SalesOrder salesOrder) throws AxelorException {
  LOG.debug("String_Node_Str",new Object[]{salesOrder.getSalesOrderSeq()});
  PurchaseOrder purchaseOrder=purchaseOrderService.createPurchaseOrder(salesOrder.getProject(),user,salesOrder.getCompany(),null,supplierPartner.getCurrency(),null,null,IPurchaseOrder.INVOICING_FREE,purchaseOrderService.getLocation(salesOrder.getCompany()),today,PriceList.all().filter("String_Node_Str",supplierPartner).fetchOne(),supplierPartner);
  for (  SalesOrderLine salesOrderLine : salesOrderLineList) {
    purchaseOrder.addPurchaseOrderLineListItem(purchaseOrderLineService.createPurchaseOrderLine(purchaseOrder,salesOrderLine));
  }
  purchaseOrder.save();
}
Program: 59121
Project: 59121
Buggy source:
public Map<Partner,List<SalesOrderLine>> splitBySupplierPartner(List<SalesOrderLine> salesOrderLineList){
  Map<Partner,List<SalesOrderLine>> salesOrderLinesBySupplierPartner=new HashMap<Partner,List<SalesOrderLine>>();
  for (  SalesOrderLine salesOrderLine : salesOrderLineList) {
    if (salesOrderLine.getSaleSupplySelect() == IProduct.SALE_SUPPLY_PURCHASE) {
      Partner supplierPartner=salesOrderLine.getSupplierPartner();
      if (!salesOrderLinesBySupplierPartner.containsKey(supplierPartner)) {
        salesOrderLinesBySupplierPartner.put(supplierPartner,new ArrayList<SalesOrderLine>());
      }
      salesOrderLinesBySupplierPartner.get(supplierPartner).add(salesOrderLine);
    }
  }
  return salesOrderLinesBySupplierPartner;
}

Fixed version (ground truth):
public Map<Partner,List<SalesOrderLine>> splitBySupplierPartner(List<SalesOrderLine> salesOrderLineList) throws AxelorException {
  Map<Partner,List<SalesOrderLine>> salesOrderLinesBySupplierPartner=new HashMap<Partner,List<SalesOrderLine>>();
  for (  SalesOrderLine salesOrderLine : salesOrderLineList) {
    if (salesOrderLine.getSaleSupplySelect() == IProduct.SALE_SUPPLY_PURCHASE) {
      Partner supplierPartner=salesOrderLine.getSupplierPartner();
      if (supplierPartner == null) {
        throw new AxelorException(String.format("String_Node_Str",salesOrderLine.getProductName()),IException.CONFIGURATION_ERROR);
      }
      if (!salesOrderLinesBySupplierPartner.containsKey(supplierPartner)) {
        salesOrderLinesBySupplierPartner.put(supplierPartner,new ArrayList<SalesOrderLine>());
      }
      salesOrderLinesBySupplierPartner.get(supplierPartner).add(salesOrderLine);
    }
  }
  return salesOrderLinesBySupplierPartner;
}
Program: 59122
Project: 59122
Buggy source:
public boolean isStockMoveProduct(SalesOrderLine salesOrderLine) throws AxelorException {
  Company company=salesOrderLine.getSalesOrder().getCompany();
  SupplychainConfig supplychainConfig=supplychainConfigService.getSupplychainConfig(company);
  Product product=salesOrderLine.getProduct();
  if (product != null && ((product.getProductTypeSelect().equals(IProduct.PRODUCT_TYPE_SERVICE) && supplychainConfig.getHasOutSmForNonStorableProduct()) || (product.getProductTypeSelect().equals(IProduct.PRODUCT_TYPE_STORABLE) && supplychainConfig.getHasOutSmForStorableProduct())) && salesOrderLine.getSaleSupplySelect() == IProduct.SALE_SUPPLY_FROM_STOCK) {
    return true;
  }
  return false;
}

Fixed version (ground truth):
public boolean isStockMoveProduct(SalesOrderLine salesOrderLine) throws AxelorException {
  Company company=salesOrderLine.getSalesOrder().getCompany();
  SupplychainConfig supplychainConfig=supplychainConfigService.getSupplychainConfig(company);
  Product product=salesOrderLine.getProduct();
  if (product != null && ((product.getProductTypeSelect().equals(IProduct.PRODUCT_TYPE_SERVICE) && supplychainConfig.getHasOutSmForNonStorableProduct()) || (product.getProductTypeSelect().equals(IProduct.PRODUCT_TYPE_STORABLE) && supplychainConfig.getHasOutSmForStorableProduct()))) {
    return true;
  }
  return false;
}
Program: 59123
Project: 59123
Buggy source:
private List<InvoiceLine> createInvoiceLine(Invoice invoice,StockMoveLine stockMoveLine) throws AxelorException {
  Product product=stockMoveLine.getProduct();
  if (product == null)   throw new AxelorException(String.format("String_Node_Str",stockMoveLine.getStockMove().getStockMoveSeq()),IException.CONFIGURATION_ERROR);
  InvoiceLineGenerator invoiceLineGenerator=new InvoiceLineGenerator(invoice,product,product.getName(),stockMoveLine.getPrice(),product.getDescription(),stockMoveLine.getQty(),stockMoveLine.getUnit(),null,product.getInvoiceLineType(),stockMoveLine.getProductVariant(),BigDecimal.ZERO,0,null,false){
    @Override public List<InvoiceLine> creates() throws AxelorException {
      InvoiceLine invoiceLine=this.createInvoiceLine();
      List<InvoiceLine> invoiceLines=new ArrayList<InvoiceLine>();
      invoiceLines.add(invoiceLine);
      return invoiceLines;
    }
  }
;
  return invoiceLineGenerator.creates();
}

Fixed version (ground truth):
private List<InvoiceLine> createInvoiceLine(Invoice invoice,StockMoveLine stockMoveLine) throws AxelorException {
  Product product=stockMoveLine.getProduct();
  if (product == null)   throw new AxelorException(String.format("String_Node_Str",stockMoveLine.getStockMove().getStockMoveSeq()),IException.CONFIGURATION_ERROR);
  Task task=null;
  if (invoice.getProject() != null) {
    task=invoice.getProject().getDefaultTask();
  }
  InvoiceLineGenerator invoiceLineGenerator=new InvoiceLineGenerator(invoice,product,product.getName(),stockMoveLine.getPrice(),product.getDescription(),stockMoveLine.getQty(),stockMoveLine.getUnit(),task,product.getInvoiceLineType(),stockMoveLine.getProductVariant(),BigDecimal.ZERO,0,null,false){
    @Override public List<InvoiceLine> creates() throws AxelorException {
      InvoiceLine invoiceLine=this.createInvoiceLine();
      List<InvoiceLine> invoiceLines=new ArrayList<InvoiceLine>();
      invoiceLines.add(invoiceLine);
      return invoiceLines;
    }
  }
;
  return invoiceLineGenerator.creates();
}
Program: 59125
Project: 59125
Buggy source:
public void resetProductInformation(ActionResponse response){
  response.setValue("String_Node_Str",null);
  response.setValue("String_Node_Str",null);
  response.setValue("String_Node_Str",null);
  response.setValue("String_Node_Str",null);
  response.setValue("String_Node_Str",null);
  response.setValue("String_Node_Str",null);
  response.setValue("String_Node_Str",null);
  response.setValue("String_Node_Str",null);
}

Fixed version (ground truth):
public void resetProductInformation(ActionResponse response){
  response.setValue("String_Node_Str",null);
  response.setValue("String_Node_Str",null);
  response.setValue("String_Node_Str",null);
  response.setValue("String_Node_Str",null);
  response.setValue("String_Node_Str",null);
  response.setValue("String_Node_Str",null);
  response.setValue("String_Node_Str",null);
  response.setValue("String_Node_Str",null);
  response.setValue("String_Node_Str",null);
}
Program: 59127
Project: 59127
Buggy source:
public void resetProductInformation(ActionResponse response){
  response.setValue("String_Node_Str",null);
  response.setValue("String_Node_Str",null);
  response.setValue("String_Node_Str",null);
  response.setValue("String_Node_Str",null);
  response.setValue("String_Node_Str",null);
  response.setValue("String_Node_Str",null);
  response.setValue("String_Node_Str",null);
}

Fixed version (ground truth):
public void resetProductInformation(ActionResponse response){
  response.setValue("String_Node_Str",null);
  response.setValue("String_Node_Str",null);
  response.setValue("String_Node_Str",null);
  response.setValue("String_Node_Str",null);
  response.setValue("String_Node_Str",null);
  response.setValue("String_Node_Str",null);
  response.setValue("String_Node_Str",null);
  response.setValue("String_Node_Str",null);
}
Program: 59128
Project: 59128
Buggy source:
public Map<Partner,List<SalesOrderLine>> splitBySupplierPartner(List<SalesOrderLine> salesOrderLineList){
  Map<Partner,List<SalesOrderLine>> salesOrderLinesBySupplierPartner=new HashMap<Partner,List<SalesOrderLine>>();
  for (  SalesOrderLine salesOrderLine : salesOrderLineList) {
    Partner supplierPartner=salesOrderLine.getSupplierPartner();
    if (!salesOrderLinesBySupplierPartner.containsKey(supplierPartner)) {
      salesOrderLinesBySupplierPartner.put(supplierPartner,new ArrayList<SalesOrderLine>());
    }
    salesOrderLinesBySupplierPartner.get(supplierPartner).add(salesOrderLine);
  }
  return salesOrderLinesBySupplierPartner;
}

Fixed version (ground truth):
public Map<Partner,List<SalesOrderLine>> splitBySupplierPartner(List<SalesOrderLine> salesOrderLineList){
  Map<Partner,List<SalesOrderLine>> salesOrderLinesBySupplierPartner=new HashMap<Partner,List<SalesOrderLine>>();
  for (  SalesOrderLine salesOrderLine : salesOrderLineList) {
    if (salesOrderLine.getSaleSupplySelect() == IProduct.SALE_SUPPLY_PURCHASE) {
      Partner supplierPartner=salesOrderLine.getSupplierPartner();
      if (!salesOrderLinesBySupplierPartner.containsKey(supplierPartner)) {
        salesOrderLinesBySupplierPartner.put(supplierPartner,new ArrayList<SalesOrderLine>());
      }
      salesOrderLinesBySupplierPartner.get(supplierPartner).add(salesOrderLine);
    }
  }
  return salesOrderLinesBySupplierPartner;
}
Program: 59129
Project: 59129
Buggy source:
public void updateLocations(Location fromLocation,Location toLocation,Product product,BigDecimal qty,int fromStatus,int toStatus,LocalDate lastFutureStockMoveDate,ProductVariant productVariant,TrackingNumber trackingNumber) throws AxelorException {
switch (fromStatus) {
case IStockMove.STATUS_PLANNED:
    locationLineService.updateLocation(fromLocation,product,qty,false,true,true,null,trackingNumber,productVariant);
  locationLineService.updateLocation(toLocation,product,qty,false,true,false,null,trackingNumber,productVariant);
break;
case IStockMove.STATUS_REALIZED:
locationLineService.updateLocation(fromLocation,product,qty,true,true,true,null,trackingNumber,productVariant);
locationLineService.updateLocation(toLocation,product,qty,true,true,false,null,trackingNumber,productVariant);
break;
default :
break;
}
switch (toStatus) {
case IStockMove.STATUS_PLANNED:
locationLineService.updateLocation(fromLocation,product,qty,false,true,false,lastFutureStockMoveDate,trackingNumber,productVariant);
locationLineService.updateLocation(toLocation,product,qty,false,true,true,lastFutureStockMoveDate,trackingNumber,productVariant);
break;
case IStockMove.STATUS_REALIZED:
locationLineService.updateLocation(fromLocation,product,qty,true,true,false,null,trackingNumber,productVariant);
locationLineService.updateLocation(toLocation,product,qty,true,true,true,null,trackingNumber,productVariant);
break;
default :
break;
}
}

Fixed version (ground truth):
public void updateLocations(Location fromLocation,Location toLocation,Product product,BigDecimal qty,int fromStatus,int toStatus,LocalDate lastFutureStockMoveDate,ProductVariant productVariant,TrackingNumber trackingNumber,Project businessProject) throws AxelorException {
switch (fromStatus) {
case IStockMove.STATUS_PLANNED:
    locationLineService.updateLocation(fromLocation,product,qty,false,true,true,null,trackingNumber,productVariant,businessProject);
  locationLineService.updateLocation(toLocation,product,qty,false,true,false,null,trackingNumber,productVariant,businessProject);
break;
case IStockMove.STATUS_REALIZED:
locationLineService.updateLocation(fromLocation,product,qty,true,true,true,null,trackingNumber,productVariant,businessProject);
locationLineService.updateLocation(toLocation,product,qty,true,true,false,null,trackingNumber,productVariant,businessProject);
break;
default :
break;
}
switch (toStatus) {
case IStockMove.STATUS_PLANNED:
locationLineService.updateLocation(fromLocation,product,qty,false,true,false,lastFutureStockMoveDate,trackingNumber,productVariant,businessProject);
locationLineService.updateLocation(toLocation,product,qty,false,true,true,lastFutureStockMoveDate,trackingNumber,productVariant,businessProject);
break;
case IStockMove.STATUS_REALIZED:
locationLineService.updateLocation(fromLocation,product,qty,true,true,false,null,trackingNumber,productVariant,businessProject);
locationLineService.updateLocation(toLocation,product,qty,true,true,true,null,trackingNumber,productVariant,businessProject);
break;
default :
break;
}
}
Program: 59130
Project: 59130
Buggy source:
public boolean isManagedConsumedProduct(BillOfMaterial billOfMaterial){
  if (billOfMaterial != null && billOfMaterial.getProdProcess() != null && billOfMaterial.getProdProcess().getProdProcessLineList() != null) {
    for (    ProdProcessLine prodProcessLine : billOfMaterial.getProdProcess().getProdProcessLineList()) {
      if ((prodProcessLine.getToConsumeProdProductList() != null && !prodProcessLine.getToConsumeProdProductList().isEmpty()) || (prodProcessLine.getToProduceProdProductList() != null && !prodProcessLine.getToProduceProdProductList().isEmpty())) {
        return true;
      }
    }
  }
  return false;
}

Fixed version (ground truth):
public boolean isManagedConsumedProduct(BillOfMaterial billOfMaterial){
  if (billOfMaterial != null && billOfMaterial.getProdProcess() != null && billOfMaterial.getProdProcess().getProdProcessLineList() != null) {
    for (    ProdProcessLine prodProcessLine : billOfMaterial.getProdProcess().getProdProcessLineList()) {
      if ((prodProcessLine.getToConsumeProdProductList() != null && !prodProcessLine.getToConsumeProdProductList().isEmpty())) {
        return true;
      }
    }
  }
  return false;
}
Program: 59131
Project: 59131
Buggy source:
public OperationOrder createOperationOrder(ManufOrder manufOrder,int priority,boolean isToInvoice,ProdResource prodResource,ProdResource machineProdResource,ProdProcessLine prodProcessLine,LocalDateTime plannedStartDateT) throws AxelorException {
  logger.debug("String_Node_Str",priority,manufOrder.getManufOrderSeq());
  OperationOrder operationOrder=new OperationOrder(priority,this.computeName(manufOrder,priority),isToInvoice,manufOrder,prodResource,machineProdResource,IOperationOrder.STATUS_DRAFT,prodProcessLine,plannedStartDateT);
  operationOrder.setPlannedEndDateT(this.computePlannedEndDateT(operationOrder));
  operationOrder.setPlannedDuration(this.getDuration(this.computeDuration(operationOrder.getPlannedStartDateT(),operationOrder.getPlannedEndDateT())));
  this._createToConsumeProdProductList(operationOrder,prodProcessLine);
  this._createToProduceProdProductList(operationOrder,prodProcessLine);
  this._createHumanResourceList(operationOrder,machineProdResource);
  operationOrder=operationOrder.save();
  operationOrderStockMoveService.createToConsumeStockMove(operationOrder);
  operationOrderStockMoveService.createToProduceStockMove(operationOrder);
  operationOrder.setStatusSelect(IOperationOrder.STATUS_PLANNED);
  return operationOrder;
}

Fixed version (ground truth):
public OperationOrder createOperationOrder(ManufOrder manufOrder,int priority,boolean isToInvoice,ProdResource prodResource,ProdResource machineProdResource,ProdProcessLine prodProcessLine,LocalDateTime plannedStartDateT) throws AxelorException {
  logger.debug("String_Node_Str",priority,manufOrder.getManufOrderSeq());
  OperationOrder operationOrder=new OperationOrder(priority,this.computeName(manufOrder,priority),isToInvoice,manufOrder,prodResource,machineProdResource,IOperationOrder.STATUS_DRAFT,prodProcessLine,plannedStartDateT);
  operationOrder.setPlannedEndDateT(this.computePlannedEndDateT(operationOrder));
  operationOrder.setPlannedDuration(this.getDuration(this.computeDuration(operationOrder.getPlannedStartDateT(),operationOrder.getPlannedEndDateT())));
  this._createToConsumeProdProductList(operationOrder,prodProcessLine);
  this._createHumanResourceList(operationOrder,machineProdResource);
  operationOrder=operationOrder.save();
  operationOrderStockMoveService.createToConsumeStockMove(operationOrder);
  operationOrderStockMoveService.createToProduceStockMove(operationOrder);
  operationOrder.setStatusSelect(IOperationOrder.STATUS_PLANNED);
  return operationOrder;
}
Program: 59132
Project: 59132
Buggy source:
@Transactional(rollbackOn={AxelorException.class,Exception.class}) public ProductionOrder generateProductionOrder(BillOfMaterial billOfMaterial,BigDecimal qty) throws AxelorException {
  ProductionOrder productionOrder=this.createProductionOrder(null,false);
  ManufOrder manufOrder=manufOrderService.generateManufOrder(qty,ManufOrderService.DEFAULT_PRIORITY,ManufOrderService.IS_TO_INVOICE,billOfMaterial.getCompany(),billOfMaterial,new LocalDateTime());
  productionOrder.addManufOrderListItem(manufOrder);
  return productionOrder.save();
}

Fixed version (ground truth):
@Transactional(rollbackOn={AxelorException.class,Exception.class}) public ProductionOrder generateProductionOrder(BillOfMaterial billOfMaterial,BigDecimal qtyRequested) throws AxelorException {
  ProductionOrder productionOrder=this.createProductionOrder(null,false);
  BigDecimal qty=qtyRequested.divide(billOfMaterial.getQty());
  ManufOrder manufOrder=manufOrderService.generateManufOrder(qty,ManufOrderService.DEFAULT_PRIORITY,ManufOrderService.IS_TO_INVOICE,billOfMaterial.getCompany(),billOfMaterial,new LocalDateTime());
  productionOrder.addManufOrderListItem(manufOrder);
  return productionOrder.save();
}
Program: 59133
Project: 59133
Buggy source:
public Project createProject(String name,int businessStatusSelect,Partner clientPartner,Company company,Partner contactPartner,boolean isBusiness,boolean isProject){
  Project project=new Project();
  project.setName(name);
  project.setBusinessStatusSelect(businessStatusSelect);
  project.setCandidateSet(new HashSet<Candidate>());
  project.setClientPartner(clientPartner);
  project.setCompany(company);
  project.setContactPartner(contactPartner);
  project.setEmployeeSet(new HashSet<Employee>());
  project.setExportTypeSelect(IProject.REPORT_TYPE_PDF);
  project.setIsBusiness(isBusiness);
  project.setIsProject(isProject);
  project.setUnit(GeneralService.getUnit());
  return project;
}

Fixed version (ground truth):
public Project createProject(String name,int businessStatusSelect,Partner clientPartner,Company company,Partner contactPartner,boolean isBusiness,boolean isProject){
  Project project=new Project();
  project.setName(name);
  project.setBusinessStatusSelect(businessStatusSelect);
  project.setClientPartner(clientPartner);
  project.setCompany(company);
  project.setContactPartner(contactPartner);
  project.setExportTypeSelect(IProject.REPORT_TYPE_PDF);
  project.setIsBusiness(isBusiness);
  project.setIsProject(isProject);
  project.setUnit(GeneralService.getUnit());
  return project;
}
Program: 59134
Project: 59134
Buggy source:
public Object createObject(Map<String,Object> context,Object obj,Mapper mapper) throws AxelorException {
  if (context != null) {
    final int random=new Random().nextInt();
    for (    final Property p : mapper.getProperties()) {
      if (p.isVirtual() || p.isPrimary() || p.isVersion()) {
        continue;
      }
      LOG.debug("String_Node_Str",p.getName());
      Object value=context.get(p.getName());
      LOG.debug("String_Node_Str",value);
      if (value != null) {
        if (value instanceof String && p.isUnique()) {
          value=((String)value) + "String_Node_Str" + random+ "String_Node_Str";
        }
        if (value instanceof Map) {
          Map map=(Map)value;
          Object id=map.get("String_Node_Str");
          value=JPA.find((Class)p.getTarget(),Long.parseLong(id.toString()));
        }
        p.set(obj,value);
      }
    }
    return obj;
  }
  return null;
}

Fixed version (ground truth):
public Object createObject(Map<String,Object> context,Object obj,Mapper mapper) throws AxelorException {
  if (context != null) {
    final int random=new Random().nextInt();
    for (    final Property p : mapper.getProperties()) {
      if (p.isVirtual() || p.isPrimary() || p.isVersion()) {
        continue;
      }
      LOG.debug("String_Node_Str",p.getName());
      Object value=context.get(p.getName());
      LOG.debug("String_Node_Str",value);
      if (value != null) {
        if (value instanceof String && p.isUnique()) {
          value=((String)value) + "String_Node_Str" + random+ "String_Node_Str";
        }
        if (value instanceof Map) {
          LOG.debug("String_Node_Str");
          Map map=(Map)value;
          Object id=map.get("String_Node_Str");
          value=JPA.find((Class)p.getTarget(),Long.parseLong(id.toString()));
        }
        if (value instanceof List) {
          LOG.debug("String_Node_Str");
          List<Object> valueList=(List<Object>)value;
          List<Object> resultList=Lists.newArrayList();
          if (valueList != null) {
            for (            Object object : valueList) {
              Map map=(Map)object;
              Object id=map.get("String_Node_Str");
              resultList.add(JPA.find((Class)p.getTarget(),Long.parseLong(id.toString())));
            }
          }
          value=resultList;
        }
        p.set(obj,value);
      }
    }
    return obj;
  }
  return null;
}
Program: 59135
Project: 59135
Buggy source:
/** 
 * Obtenir la version de taxe d'un produit.
 * @param product
 * @param amendment
 * @return
 * @throws AxelorException 
 */
public TaxLine getTaxLine(LocalDate date,Product product,Company company,FiscalPosition fiscalPosition,boolean isPurchase) throws AxelorException {
  TaxLine taxLine=taxService.getTaxLine(this.getProductTax(product,company,fiscalPosition,isPurchase),date);
  if (taxLine != null) {
    return taxLine;
  }
  throw new AxelorException(String.format("String_Node_Str",product.getCode()),IException.CONFIGURATION_ERROR);
}

Fixed version (ground truth):
/** 
 * Obtenir la version de taxe d'un produit.
 * @param product
 * @param amendment
 * @return
 * @throws AxelorException 
 */
public TaxLine getTaxLine(LocalDate date,Product product,Company company,FiscalPosition fiscalPosition,boolean isPurchase) throws AxelorException {
  TaxLine taxLine=new TaxService().getTaxLine(this.getProductTax(product,company,fiscalPosition,isPurchase),date);
  if (taxLine != null) {
    return taxLine;
  }
  throw new AxelorException(String.format("String_Node_Str",product.getCode()),IException.CONFIGURATION_ERROR);
}
Program: 59136
Project: 59136
Buggy source:
protected InvoiceLineGenerator(Invoice invoice,Product product,String productName,BigDecimal price,String description,BigDecimal qty,Unit unit,Task task,InvoiceLineType invoiceLineType,ProductVariant productVariant,BigDecimal discountAmount,int discountTypeSelect,BigDecimal exTaxTotal,boolean isTaxInvoice){
  this.invoice=invoice;
  this.product=product;
  this.productName=productName;
  this.price=price;
  this.description=description;
  this.qty=qty;
  this.unit=unit;
  this.task=task;
  this.invoiceLineType=invoiceLineType;
  this.productVariant=productVariant;
  this.discountTypeSelect=discountTypeSelect;
  this.discountAmount=discountAmount;
  this.exTaxTotal=exTaxTotal;
  this.isTaxInvoice=isTaxInvoice;
  this.today=GeneralService.getTodayDate();
  this.currencyService=new CurrencyService(this.today);
}

Fixed version (ground truth):
protected InvoiceLineGenerator(Invoice invoice,Product product,String productName,BigDecimal price,String description,BigDecimal qty,Unit unit,Task task,InvoiceLineType invoiceLineType,ProductVariant productVariant,BigDecimal discountAmount,int discountTypeSelect,BigDecimal exTaxTotal,boolean isTaxInvoice){
  this.invoice=invoice;
  this.product=product;
  this.productName=productName;
  this.price=price;
  this.description=description;
  this.qty=qty;
  this.unit=unit;
  this.task=task;
  this.invoiceLineType=invoiceLineType;
  this.productVariant=productVariant;
  this.discountTypeSelect=discountTypeSelect;
  this.discountAmount=discountAmount;
  this.exTaxTotal=exTaxTotal;
  this.isTaxInvoice=isTaxInvoice;
  this.today=GeneralService.getTodayDate();
  this.currencyService=new CurrencyService(this.today);
  this.accountManagementService=new AccountManagementService();
}
Program: 59139
Project: 59139
Buggy source:
@Override protected void process(){
  this.markEventReminderProcess();
}

Fixed version (ground truth):
@Override protected void process(){
  this.markEventReminderProcess();
  this.generateMessageProcess();
}
Program: 59140
Project: 59140
Buggy source:
public void setPartnerSequence(ActionRequest request,ActionResponse response) throws AxelorException {
  Partner partner=request.getContext().asType(Partner.class);
  if (partner.getPartnerSeq() == null) {
    String ref=sequenceService.getSequence(IAdministration.PARTNER,false);
    if (ref == null)     throw new AxelorException("String_Node_Str",IException.CONFIGURATION_ERROR);
 else     response.setValue("String_Node_Str",ref);
  }
}

Fixed version (ground truth):
public void setPartnerSequence(ActionRequest request,ActionResponse response) throws AxelorException {
  Partner partner=request.getContext().asType(Partner.class);
  partner=Partner.find(partner.getId());
  if (partner.getPartnerSeq() == null) {
    String ref=sequenceService.getSequence(IAdministration.PARTNER,false);
    if (ref == null)     throw new AxelorException("String_Node_Str",IException.CONFIGURATION_ERROR);
 else     response.setValue("String_Node_Str",ref);
  }
}
Program: 59141
Project: 59141
Buggy source:
protected InvoiceLineGenerator(Invoice invoice,Product product,String productName,BigDecimal price,String description,BigDecimal qty,Unit unit,Task task,InvoiceLineType invoiceLineType,ProductVariant productVariant,BigDecimal discountAmount,int discountTypeSelect,BigDecimal exTaxTotal,boolean isTaxInvoice){
  this.invoice=invoice;
  this.product=product;
  this.productName=productName;
  this.price=price;
  this.description=description;
  this.qty=qty;
  this.unit=unit;
  this.task=task;
  this.invoiceLineType=invoiceLineType;
  this.productVariant=productVariant;
  this.discountTypeSelect=discountTypeSelect;
  this.discountAmount=discountAmount;
  this.exTaxTotal=exTaxTotal;
  this.isTaxInvoice=isTaxInvoice;
  this.today=GeneralService.getTodayDate();
  this.currencyService=new CurrencyService(this.today);
  this.accountManagementService=new AccountManagementService();
}

Fixed version (ground truth):
protected InvoiceLineGenerator(Invoice invoice,Product product,String productName,BigDecimal price,String description,BigDecimal qty,Unit unit,Task task,InvoiceLineType invoiceLineType,ProductVariant productVariant,BigDecimal discountAmount,int discountTypeSelect,BigDecimal exTaxTotal,boolean isTaxInvoice){
  this.invoice=invoice;
  this.product=product;
  this.productName=productName;
  this.price=price;
  this.description=description;
  this.qty=qty;
  this.unit=unit;
  this.task=task;
  this.invoiceLineType=invoiceLineType;
  this.productVariant=productVariant;
  this.discountTypeSelect=discountTypeSelect;
  this.discountAmount=discountAmount;
  this.exTaxTotal=exTaxTotal;
  this.isTaxInvoice=isTaxInvoice;
  this.today=GeneralService.getTodayDate();
  this.currencyService=new CurrencyService(this.today);
}
Program: 59143
Project: 59143
Buggy source:
public InvoiceGenerator createInvoiceGenerator(PurchaseOrder purchaseOrder) throws AxelorException {
  if (purchaseOrder.getCurrency() == null) {
    throw new AxelorException(String.format("String_Node_Str",purchaseOrder.getPurchaseOrderSeq()),IException.CONFIGURATION_ERROR);
  }
  InvoiceGenerator invoiceGenerator=new InvoiceGenerator(IInvoice.SUPPLIER_PURCHASE,purchaseOrder.getCompany(),purchaseOrder.getSupplierPartner(),purchaseOrder.getContactPartner(),purchaseOrder.getPriceList()){
    @Override public Invoice generate() throws AxelorException {
      return super.createInvoiceHeader();
    }
  }
;
  return invoiceGenerator;
}

Fixed version (ground truth):
public InvoiceGenerator createInvoiceGenerator(PurchaseOrder purchaseOrder) throws AxelorException {
  if (purchaseOrder.getCurrency() == null) {
    throw new AxelorException(String.format("String_Node_Str",purchaseOrder.getPurchaseOrderSeq()),IException.CONFIGURATION_ERROR);
  }
  InvoiceGenerator invoiceGenerator=new InvoiceGenerator(IInvoice.SUPPLIER_PURCHASE,purchaseOrder.getCompany(),purchaseOrder.getSupplierPartner(),purchaseOrder.getContactPartner(),purchaseOrder.getProject(),purchaseOrder.getPriceList()){
    @Override public Invoice generate() throws AxelorException {
      return super.createInvoiceHeader();
    }
  }
;
  return invoiceGenerator;
}
Program: 59144
Project: 59144
Buggy source:
public CurrencyConversionLine getCurrencyConversionLine(Currency startCurrency,Currency endCurrency,LocalDate localDate){
  List<CurrencyConversionLine> currencyConversionLineList=GeneralService.getCurrencyConfigurationLineList();
  if (currencyConversionLineList != null) {
    for (    CurrencyConversionLine currencyConversionLine : currencyConversionLineList) {
      if (currencyConversionLine.getStartCurrency().equals(startCurrency) && currencyConversionLine.getEndCurrency().equals(endCurrency) && currencyConversionLine.getFromDate().isBefore(localDate)&& (currencyConversionLine.getToDate() == null || currencyConversionLine.getToDate().isAfter(localDate))) {
        return currencyConversionLine;
      }
    }
  }
  return null;
}

Fixed version (ground truth):
private CurrencyConversionLine getCurrencyConversionLine(Currency startCurrency,Currency endCurrency,LocalDate localDate){
  List<CurrencyConversionLine> currencyConversionLineList=GeneralService.getCurrencyConfigurationLineList();
  if (currencyConversionLineList != null) {
    for (    CurrencyConversionLine currencyConversionLine : currencyConversionLineList) {
      if (currencyConversionLine.getStartCurrency().equals(startCurrency) && currencyConversionLine.getEndCurrency().equals(endCurrency) && currencyConversionLine.getFromDate().isBefore(localDate)&& (currencyConversionLine.getToDate() == null || currencyConversionLine.getToDate().isAfter(localDate))) {
        return currencyConversionLine;
      }
    }
  }
  return null;
}
Program: 59145
Project: 59145
Buggy source:
/** 
 * Fonction permettant de créer un courrier à destination des tiers pour un contrat standard
 * @param contractLine Un contrat
 * @param reminderMatrixLine Une ligne de relance
 * @param partnerConcerned Le tiers concerné
 * @return Un email
 * @throws AxelorException
 */
public Mail runMailStandard(ReminderMethodLine reminderMethodLine,Partner partner,Company company) throws AxelorException {
  LOG.debug("String_Node_Str");
  if (reminderMethodLine.getReminderMailModel() != null) {
    MailModel reminderMailModel=reminderMethodLine.getReminderMailModel();
    Mail reminderMail=this.createGenericMail(reminderMailModel,null,today.plusDays(reminderMethodLine.getStandardDeadline()),partner.getMainInvoicingAddress(),company);
    LinkedList<ReminderHistory> reminderHistoryList=new LinkedList<ReminderHistory>();
    reminderHistoryList.addAll(partner.getReminder().getReminderHistoryList());
    reminderMail.setReminderHistory(reminderHistoryList.getLast());
    return this.replaceTag(reminderMail);
  }
 else {
    throw new AxelorException(String.format("String_Node_Str",GeneralService.getExceptionReminderMsg(),partner.getName(),reminderMethodLine.getReminderMethod().getName(),reminderMethodLine.getReminderLevel().getName()),IException.CONFIGURATION_ERROR);
  }
}

Fixed version (ground truth):
/** 
 * Fonction permettant de créer un courrier à destination des tiers pour un contrat standard
 * @param contractLine Un contrat
 * @param reminderMatrixLine Une ligne de relance
 * @param partnerConcerned Le tiers concerné
 * @return Un email
 * @throws AxelorException
 */
public Mail runMailStandard(ReminderMethodLine reminderMethodLine,Partner partner,Company company) throws AxelorException {
  LOG.debug("String_Node_Str");
  if (reminderMethodLine.getReminderMailModel() != null) {
    MailModel reminderMailModel=reminderMethodLine.getReminderMailModel();
    Mail reminderMail=this.createGenericMail(reminderMailModel,null,today.plusDays(reminderMethodLine.getStandardDeadline()),partner.getMainInvoicingAddress(),company);
    reminderMail.setReminderHistory(this.getReminderHistory(partner,company));
    return this.replaceTag(reminderMail);
  }
 else {
    throw new AxelorException(String.format("String_Node_Str",GeneralService.getExceptionReminderMsg(),partner.getName(),reminderMethodLine.getReminderMethod().getName(),reminderMethodLine.getReminderLevel().getName()),IException.CONFIGURATION_ERROR);
  }
}
Program: 59146
Project: 59146
Buggy source:
public void run(ActionRequest request,ActionResponse response){
  IndicatorGenerator indicatorGenerator=request.getContext().asType(IndicatorGenerator.class);
  indicatorGenerator.find(indicatorGenerator.getId());
  try {
    indicatorGeneratorService.run(indicatorGenerator);
    response.setReload(true);
    response.setFlash("String_Node_Str");
  }
 catch (  Exception e) {
    TraceBackService.trace(response,e);
  }
}

Fixed version (ground truth):
public void run(ActionRequest request,ActionResponse response){
  IndicatorGenerator indicatorGenerator=request.getContext().asType(IndicatorGenerator.class);
  try {
    indicatorGeneratorService.run(IndicatorGenerator.find(indicatorGenerator.getId()));
    response.setReload(true);
    response.setFlash("String_Node_Str");
  }
 catch (  Exception e) {
    TraceBackService.trace(response,e);
  }
}
Program: 59147
Project: 59147
Buggy source:
public void run(ActionRequest request,ActionResponse response){
  IndicatorGeneratorGrouping indicatorGeneratorGrouping=request.getContext().asType(IndicatorGeneratorGrouping.class);
  indicatorGeneratorGrouping.find(indicatorGeneratorGrouping.getId());
  try {
    indicatorGeneratorGroupingService.run(indicatorGeneratorGrouping);
    response.setReload(true);
    response.setFlash("String_Node_Str");
  }
 catch (  Exception e) {
    TraceBackService.trace(response,e);
  }
}

Fixed version (ground truth):
public void run(ActionRequest request,ActionResponse response){
  IndicatorGeneratorGrouping indicatorGeneratorGrouping=request.getContext().asType(IndicatorGeneratorGrouping.class);
  try {
    indicatorGeneratorGroupingService.run(IndicatorGeneratorGrouping.find(indicatorGeneratorGrouping.getId()));
    response.setReload(true);
    response.setFlash("String_Node_Str");
  }
 catch (  Exception e) {
    TraceBackService.trace(response,e);
  }
}
Program: 59148
Project: 59148
Buggy source:
public void export(ActionRequest request,ActionResponse response){
  IndicatorGeneratorGrouping indicatorGeneratorGrouping=request.getContext().asType(IndicatorGeneratorGrouping.class);
  indicatorGeneratorGrouping.find(indicatorGeneratorGrouping.getId());
  try {
    indicatorGeneratorGroupingService.export(indicatorGeneratorGrouping);
    response.setReload(true);
    response.setFlash("String_Node_Str");
  }
 catch (  Exception e) {
    TraceBackService.trace(response,e);
  }
}

Fixed version (ground truth):
public void export(ActionRequest request,ActionResponse response){
  IndicatorGeneratorGrouping indicatorGeneratorGrouping=request.getContext().asType(IndicatorGeneratorGrouping.class);
  try {
    indicatorGeneratorGroupingService.export(IndicatorGeneratorGrouping.find(indicatorGeneratorGrouping.getId()));
    response.setReload(true);
    response.setFlash("String_Node_Str");
  }
 catch (  Exception e) {
    TraceBackService.trace(response,e);
  }
}
Program: 59149
Project: 59149
Buggy source:
/** 
 * Methode permettant de récupérer la liste des échéances à prélever en fonction de la société et de la date de prélèvement
 * @param company Une société
 * @param debitDate Une date de prélèvement
 * @return
 */
public List<PaymentScheduleLine> getPaymentScheduleLineToDebit(Company company,LocalDate debitDate,PaymentMode paymentMode,Currency currency){
  return PaymentScheduleLine.all().filter("String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str",company,debitDate.getDayOfMonth(),debitDate,debitDate,currency,paymentMode).fetch();
}

Fixed version (ground truth):
/** 
 * Methode permettant de récupérer la liste des échéances à prélever en fonction de la société et de la date de prélèvement
 * @param company Une société
 * @param debitDate Une date de prélèvement
 * @return
 */
public List<PaymentScheduleLine> getPaymentScheduleLineToDebit(Company company,LocalDate debitDate,PaymentMode paymentMode,Currency currency){
  return PaymentScheduleLine.all().filter("String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str",company,debitDate,currency,paymentMode).fetch();
}
Program: 59150
Project: 59150
Buggy source:
/** 
 * Méthode permettant de récupérer les factures d'échéance mensu grand compte d'un échéancier
 * @param paymentSchedule Un échéancier
 * @return
 */
public List<MoveLine> getInvoiceMoveLineListToReconcile(PaymentSchedule paymentSchedule){
  return MoveLine.all().filter("String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str",IAccount.VALIDATED_MOVE,true,IInvoice.CLIENT_SALE,paymentSchedule).fetch();
}

Fixed version (ground truth):
/** 
 * Méthode permettant de récupérer les factures d'échéance mensu grand compte d'un échéancier
 * @param paymentSchedule Un échéancier
 * @return
 */
public List<MoveLine> getInvoiceMoveLineListToReconcile(PaymentSchedule paymentSchedule){
  return MoveLine.all().filter("String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str",IAccount.VALIDATED_MOVE,true,IInvoice.CLIENT_SALE,paymentSchedule).fetch();
}
Program: 59157
Project: 59157
Buggy source:
protected void setMove() throws AxelorException {
  Move move=null;
  move=moveService.createMove(invoice);
  if (move != null) {
    invoice.setMove(move);
  }
}

Fixed version (ground truth):
protected void setMove() throws AxelorException {
  Move move=null;
  move=moveService.createMove(invoice);
  if (move != null) {
    invoice.setMove(move);
    moveService.createMoveUseExcessPaymentOrDue(invoice);
  }
}
Program: 59159
Project: 59159
Buggy source:
@Transactional(rollbackOn={AxelorException.class,Exception.class}) public PaymentVoucher createPaymentVoucherIPO(Invoice invoice,DateTime dateTime,BigDecimal amount,PaymentMode paymentMode) throws AxelorException {
  MoveLine customerMoveLine=mls.getCustomerMoveLine(invoice,invoice.getRejectMoveLine() != null);
  if (LOG.isDebugEnabled()) {
    LOG.debug("String_Node_Str",invoice.getInvoiceId());
  }
  if (LOG.isDebugEnabled()) {
    LOG.debug("String_Node_Str",paymentMode.getCode());
  }
  if (LOG.isDebugEnabled()) {
    LOG.debug("String_Node_Str",invoice.getCompany().getName());
  }
  if (LOG.isDebugEnabled()) {
    LOG.debug("String_Node_Str",invoice.getClientPartner().getName());
  }
  PaymentVoucher paymentVoucher=this.createPaymentVoucher(invoice.getCompany(),null,paymentMode,dateTime,invoice.getClientPartner(),amount,null,invoice,null,null,null);
  paymentVoucher.setAutoOk(true);
  List<PaymentInvoiceToPay> lines=new ArrayList<PaymentInvoiceToPay>();
  lines.add(pitps.createPaymentInvoiceToPay(paymentVoucher,1,invoice,customerMoveLine,customerMoveLine.getDebit(),customerMoveLine.getAmountRemaining(),amount));
  paymentVoucher.setPaymentInvoiceToPayList(lines);
  paymentVoucher.save();
  this.confirmPaymentVoucher(paymentVoucher,false);
  return paymentVoucher;
}

Fixed version (ground truth):
@Transactional(rollbackOn={AxelorException.class,Exception.class}) public PaymentVoucher createPaymentVoucherIPO(Invoice invoice,DateTime dateTime,BigDecimal amount,PaymentMode paymentMode) throws AxelorException {
  MoveLine customerMoveLine=ms.getCustomerMoveLine(invoice,invoice.getRejectMoveLine() != null);
  if (LOG.isDebugEnabled()) {
    LOG.debug("String_Node_Str",invoice.getInvoiceId());
  }
  if (LOG.isDebugEnabled()) {
    LOG.debug("String_Node_Str",paymentMode.getCode());
  }
  if (LOG.isDebugEnabled()) {
    LOG.debug("String_Node_Str",invoice.getCompany().getName());
  }
  if (LOG.isDebugEnabled()) {
    LOG.debug("String_Node_Str",invoice.getClientPartner().getName());
  }
  PaymentVoucher paymentVoucher=this.createPaymentVoucher(invoice.getCompany(),null,paymentMode,dateTime,invoice.getClientPartner(),amount,null,invoice,null,null,null);
  paymentVoucher.setAutoOk(true);
  List<PaymentInvoiceToPay> lines=new ArrayList<PaymentInvoiceToPay>();
  lines.add(pitps.createPaymentInvoiceToPay(paymentVoucher,1,invoice,customerMoveLine,customerMoveLine.getDebit(),customerMoveLine.getAmountRemaining(),amount));
  paymentVoucher.setPaymentInvoiceToPayList(lines);
  paymentVoucher.save();
  this.confirmPaymentVoucher(paymentVoucher,false);
  return paymentVoucher;
}
Program: 59161
Project: 59161
Buggy source:
@Override protected void configure(){
  install(new JpaModule("String_Node_Str",true,true));
  install(new AuthModule.Simple());
  bindConstant().annotatedWith(Names.named("String_Node_Str")).to(cmd.getConfig().toString());
  bindConstant().annotatedWith(Names.named("String_Node_Str")).to(cmd.getDataDir().toString());
}

Fixed version (ground truth):
@Override protected void configure(){
  install(new JpaModule("String_Node_Str",true,true));
  install(new AuthModule.Simple());
  bindConstant().annotatedWith(Names.named("String_Node_Str")).to(cmd.getConfig().toString());
  bindConstant().annotatedWith(Names.named("String_Node_Str")).to(cmd.getDataDir().toString());
  bind(String.class).annotatedWith(Names.named("String_Node_Str")).toProvider(Providers.<String>of(errorDir));
}
Program: 59162
Project: 59162
Buggy source:
@Override public Invoice generate() throws AxelorException {
  computeInvoice(invoice);
  return invoice;
}

Fixed version (ground truth):
@Override public Invoice generate() throws AxelorException {
  List<InvoiceLine> invoiceLines=new ArrayList<InvoiceLine>();
  invoiceLines.addAll(invoice.getInvoiceLineList());
  invoiceLines.addAll(invoice.getTaxInvoiceLineList());
  populate(invoice,invoiceLines);
  return invoice;
}
Program: 59163
Project: 59163
Buggy source:
public ProductVariant getStockProductVariant(ProductVariant productVariant){
  ProductVariant stockProductVariant=this.getProductVariant(productVariant.getProductVariantAttribute1(),productVariant.getProductVariantAttribute2(),productVariant.getProductVariantAttribute3(),productVariant.getProductVariantAttribute4(),productVariant.getProductVariantValue1(),productVariant.getProductVariantValue2(),productVariant.getProductVariantValue3(),productVariant.getProductVariantValue4(),true);
  if (stockProductVariant == null) {
    stockProductVariant=this.copyProductVariant(stockProductVariant,true);
  }
  return stockProductVariant;
}

Fixed version (ground truth):
public ProductVariant getStockProductVariant(ProductVariant productVariant){
  ProductVariant stockProductVariant=this.getProductVariant(productVariant.getProductVariantAttribute1(),productVariant.getProductVariantAttribute2(),productVariant.getProductVariantAttribute3(),productVariant.getProductVariantAttribute4(),productVariant.getProductVariantValue1(),productVariant.getProductVariantValue2(),productVariant.getProductVariantValue3(),productVariant.getProductVariantValue4(),true);
  if (stockProductVariant == null) {
    stockProductVariant=this.copyProductVariant(productVariant,true);
  }
  return stockProductVariant;
}
Program: 59166
Project: 59166
Buggy source:
public PriceListLine getPriceListLine(InvoiceLine invoiceLine,PriceList priceList){
  return priceListService.getPriceListLine(invoiceLine.getProduct(),priceList);
}

Fixed version (ground truth):
public PriceListLine getPriceListLine(InvoiceLine invoiceLine,PriceList priceList){
  return priceListService.getPriceListLine(invoiceLine.getProduct(),invoiceLine.getQty(),priceList);
}