nus-yam/ex-repair huggingface dataset:
Program: 144352
Project: 144352
Buggy source:
public String addAddress() throws Exception {
  if (hasFieldErrors()) {
    return INPUT;
  }
  Address addressEntity=transformToEntityBeanAddress(address);
  addressEntity.setModifiedBy(commonUtils.getUserNameFromSession());
  addressEntity.setCreatedBy(commonUtils.getUserNameFromSession());
  addressEntity.setCreatedTimestamp(new Date());
  customerService.addAddress(addressEntity);
  Map sessionAttributes=ActionContext.getContext().getSession();
  sessionAttributes.put("String_Node_Str",orderIdParam);
  return SUCCESS;
}

Fixed version (ground truth):
public String addAddress() throws Exception {
  if (hasFieldErrors()) {
    return INPUT;
  }
  try {
    Address addressEntity=transformToEntityBeanAddress(address);
    addressEntity.setModifiedBy(commonUtils.getUserNameFromSession());
    addressEntity.setCreatedBy(commonUtils.getUserNameFromSession());
    addressEntity.setCreatedTimestamp(new Date());
    customerService.addAddress(addressEntity);
  }
 catch (  AddressAlreadyExistsException e) {
    addFieldError("String_Node_Str",getText("String_Node_Str"));
    return INPUT;
  }
  Map sessionAttributes=ActionContext.getContext().getSession();
  sessionAttributes.put("String_Node_Str",orderIdParam);
  return SUCCESS;
}
Program: 144353
Project: 144353
Buggy source:
@Override public List<VesselSchedules> findVesselSchedulesByCriteria(String column,String value){
  log.debug("String_Node_Str");
  Session session=getSessionFactory().getCurrentSession();
  List<VesselSchedules> vesselSchedules=session.createCriteria(VesselSchedules.class).add(Restrictions.like(column,value)).list();
  return vesselSchedules;
}

Fixed version (ground truth):
@Override public List<VesselSchedules> findVesselSchedulesByCriteria(String column,String value){
  log.debug("String_Node_Str");
  Session session=getSessionFactory().getCurrentSession();
  List<VesselSchedules> vesselSchedules=session.createCriteria(VesselSchedules.class).add(Restrictions.like(column,value,MatchMode.ANYWHERE)).list();
  return vesselSchedules;
}
Program: 144354
Project: 144354
Buggy source:
/** 
 * @param clientId
 * @companyCode companyCode 3-character companyCode (eg., NTY, MTY)
 * @return next booking no. Eg, NTY-0007, MTY-0000
 */
@Override public String findNextBookingNo(Integer clientId,String companyCode){
  Integer nextBookingNo=orderDao.findNextBookingNo(clientId,companyCode);
  String nextBookingNoAsStr=nextBookingNo.toString();
  int zerosToAdd=4 - nextBookingNoAsStr.length();
  if (zerosToAdd == 3)   return companyCode + "String_Node_Str" + nextBookingNoAsStr;
 else   if (zerosToAdd == 2)   return companyCode + "String_Node_Str" + nextBookingNoAsStr;
 else   return companyCode + "String_Node_Str" + nextBookingNoAsStr;
}

Fixed version (ground truth):
/** 
 * @param clientId
 * @companyCode companyCode 3-character companyCode (eg., NTY, MTY)
 * @return next booking no. Eg, NTY-0007, MTY-0000
 */
@Override public String findNextBookingNo(Integer clientId,String companyCode){
  Integer nextBookingNo=orderDao.findNextBookingNo(clientId,companyCode);
  String nextBookingNoAsStr=nextBookingNo.toString();
  int zerosToAdd=4 - nextBookingNoAsStr.length();
  if (zerosToAdd == 3)   return companyCode + "String_Node_Str" + nextBookingNoAsStr;
 else   if (zerosToAdd == 2)   return companyCode + "String_Node_Str" + nextBookingNoAsStr;
 else   if (zerosToAdd == 1)   return companyCode + "String_Node_Str" + nextBookingNoAsStr;
 else   return companyCode + "String_Node_Str" + nextBookingNoAsStr;
}
Program: 144357
Project: 144357
Buggy source:
public String archiveOrder(){
  Map sessionAttributes=ActionContext.getContext().getSession();
  Orders orderEntity=orderService.findOrdersById(orderIdParam);
  orderEntity.setOrderStatus("String_Node_Str");
  orderService.updateOrder(orderEntity);
  sessionAttributes.put("String_Node_Str",orderIdParam);
  clearErrorsAndMessages();
  addActionMessage("String_Node_Str");
  return SUCCESS;
}

Fixed version (ground truth):
public String archiveOrder(){
  Map sessionAttributes=ActionContext.getContext().getSession();
  Orders orderEntity=orderService.findOrdersById(orderIdParam);
  String str=orderEntity.getOrderStatus();
  orderEntity.setOrderStatus(str + "String_Node_Str");
  orderService.updateOrder(orderEntity);
  sessionAttributes.put("String_Node_Str",orderIdParam);
  clearErrorsAndMessages();
  addActionMessage("String_Node_Str");
  return SUCCESS;
}
Program: 144360
Project: 144360
Buggy source:
private void validateChangePasswordPage(String currentPassword){
  if (StringUtils.isNotBlank(passwordBean.getNewPassword()) && StringUtils.isNotBlank(passwordBean.getRetypeNewPassword())) {
    if (!passwordBean.getNewPassword().equals(passwordBean.getRetypeNewPassword()))     addFieldError("String_Node_Str",getText("String_Node_Str"));
  }
  if (!BCrypt.checkpw(passwordBean.getCurrentPassword(),currentPassword))   addFieldError("String_Node_Str",getText("String_Node_Str"));
}

Fixed version (ground truth):
private void validateChangePasswordPage(String currentPassword){
  if (StringUtils.isNotBlank(passwordBean.getNewPassword()) && StringUtils.isNotBlank(passwordBean.getRetypeNewPassword())) {
    if (!passwordBean.getNewPassword().equals(passwordBean.getRetypeNewPassword()))     addFieldError("String_Node_Str",getText("String_Node_Str"));
  }
}
Program: 144361
Project: 144361
Buggy source:
@Override public void prepare(){
  vendorShippingList=vendorService.findVendorsByCriteria("String_Node_Str","String_Node_Str",1);
  vendorTruckingList=vendorService.findVendorsByCriteria("String_Node_Str","String_Node_Str",1);
  vendorTypeList=parameterService.getParameterMap(ParameterConstants.VENDOR_TYPE);
  vendorClassList=parameterService.getParameterMap(ParameterConstants.VENDOR_CLASS);
  statusList=parameterService.getParameterMap(ParameterConstants.STATUS);
  portsList=parameterService.getParameterMap(ParameterConstants.PORTS);
  truckTypeList=parameterService.getParameterMap(ParameterConstants.TRUCK_TYPE);
  containerSearchList=parameterService.getParameterMap(ParameterConstants.CONTAINER_SEARCH);
  containerSizeList=parameterService.getParameterMap(ParameterConstants.CONTAINERS,ParameterConstants.CONTAINER_SIZE);
  containerEirTypeList=parameterService.getParameterMap(ParameterConstants.CONTAINERS,ParameterConstants.EIR_TYPE);
  containerStatusList=parameterService.getParameterMap(ParameterConstants.CONTAINERS,ParameterConstants.CONTAINER_STATUS);
}

Fixed version (ground truth):
@Override public void prepare(){
  vendorShippingList=vendorService.findVendorsByCriteria("String_Node_Str","String_Node_Str",1);
  vendorTruckingList=vendorService.findVendorsByCriteria("String_Node_Str","String_Node_Str",1);
  vendorTypeList=parameterService.getParameterMap(ParameterConstants.VENDOR_TYPE);
  vendorClassList=parameterService.getParameterMap(ParameterConstants.VENDOR_CLASS);
  statusList=parameterService.getParameterMap(ParameterConstants.STATUS);
  portsList=parameterService.getParameterMap(ParameterConstants.PORTS);
  truckTypeList=parameterService.getParameterMap(ParameterConstants.TRUCK_TYPE);
  bookingNumSearchList=parameterService.getParameterMap(ParameterConstants.ORDER,ParameterConstants.BOOKING_SEARCH);
  containerSearchList=parameterService.getParameterMap(ParameterConstants.CONTAINER_SEARCH);
  containerSizeList=parameterService.getParameterMap(ParameterConstants.CONTAINERS,ParameterConstants.CONTAINER_SIZE);
  containerEirTypeList=parameterService.getParameterMap(ParameterConstants.CONTAINERS,ParameterConstants.EIR_TYPE);
  containerStatusList=parameterService.getParameterMap(ParameterConstants.CONTAINERS,ParameterConstants.CONTAINER_STATUS);
}
Program: 144363
Project: 144363
Buggy source:
public String approveOrder(){
  Map sessionAttributes=ActionContext.getContext().getSession();
  Orders orderEntity=orderService.findOrdersById(orderIdParam);
  List<OrderItems> orderItemsEntity=operationsService.findAllOrderItemsByOrderId(orderIdParam);
  if (orderItemsEntity.size() == 0) {
    List<Orders> orderEntityList=orderService.findAllOrders();
    for (    Orders orderElem : orderEntityList) {
      orders.add(transformToOrderFormBean(orderElem));
    }
    sessionAttributes.put("String_Node_Str",orderIdParam);
    clearErrorsAndMessages();
    addActionError("String_Node_Str");
    return INPUT;
  }
  Booking=notificationService.countAll();
  System.out.println("String_Node_Str" + Booking);
  orderEntity.setOrderStatus("String_Node_Str");
  orderService.updateOrder(orderEntity);
  sessionAttributes.put("String_Node_Str",orderIdParam);
  clearErrorsAndMessages();
  addActionMessage("String_Node_Str");
  return SUCCESS;
}

Fixed version (ground truth):
public String approveOrder(){
  Map sessionAttributes=ActionContext.getContext().getSession();
  Orders orderEntity=orderService.findOrdersById(orderIdParam);
  List<OrderItems> orderItemsEntity=operationsService.findAllOrderItemsByOrderId(orderIdParam);
  if (orderItemsEntity.size() == 0) {
    List<Orders> orderEntityList=orderService.findAllOrders();
    for (    Orders orderElem : orderEntityList) {
      orders.add(transformToOrderFormBean(orderElem));
    }
    sessionAttributes.put("String_Node_Str",orderIdParam);
    clearErrorsAndMessages();
    addActionError("String_Node_Str");
    return INPUT;
  }
  Booking=notificationService.countAll();
  System.out.println("String_Node_Str" + Booking);
  orderEntity.setOrderStatus("String_Node_Str");
  orderService.updateOrder(orderEntity);
  for (int i=0; i < orderItemsEntity.size(); i++) {
    if (orderEntity.getServiceMode().equals("String_Node_Str")) {
      orderItemsEntity.get(i).setStatus("String_Node_Str");
    }
 else     if (orderEntity.getServiceMode().equals("String_Node_Str") || orderEntity.getServiceMode().equals("String_Node_Str")) {
      orderItemsEntity.get(i).setStatus("String_Node_Str");
    }
 else {
      orderItemsEntity.get(i).setStatus("String_Node_Str");
    }
    orderService.updateItemListing(orderItemsEntity.get(i));
  }
  sessionAttributes.put("String_Node_Str",orderIdParam);
  clearErrorsAndMessages();
  addActionMessage("String_Node_Str");
  return SUCCESS;
}
Program: 144364
Project: 144364
Buggy source:
public VesselSchedules(Integer vesselScheduleId,Integer clientId,Integer vendorId,String originPort,String departureDate,String departureTime,String destinationPort,String arrivalDate,String arrivalTime,Date createdTimestamp,String createdBy,Date modifiedTimestamp,String modifiedBy,String voyageNumber,String vendorCode,String vesselName){
  this.vesselScheduleId=vesselScheduleId;
  this.clientId=clientId;
  this.vendorId=vendorId;
  this.originPort=originPort;
  this.departureDate=departureDate;
  this.departureTime=departureTime;
  this.destinationPort=destinationPort;
  this.arrivalDate=arrivalDate;
  this.arrivalTime=arrivalTime;
  this.createdTimestamp=createdTimestamp;
  this.createdBy=createdBy;
  this.modifiedTimestamp=modifiedTimestamp;
  this.modifiedBy=modifiedBy;
  this.voyageNumber=voyageNumber;
  this.vendorCode=vendorCode;
  this.vesselName=vesselName;
}

Fixed version (ground truth):
public VesselSchedules(Integer vesselScheduleId,Integer clientId,Integer vendorId,String originPort,String departureDate,String departureTime,String destinationPort,String arrivalDate,String arrivalTime,Date createdTimestamp,String createdBy,Date modifiedTimestamp,String modifiedBy,String voyageNumber,String vendorCode,String vesselName,String vendorName){
  this.vesselScheduleId=vesselScheduleId;
  this.clientId=clientId;
  this.vendorId=vendorId;
  this.originPort=originPort;
  this.departureDate=departureDate;
  this.departureTime=departureTime;
  this.destinationPort=destinationPort;
  this.arrivalDate=arrivalDate;
  this.arrivalTime=arrivalTime;
  this.createdTimestamp=createdTimestamp;
  this.createdBy=createdBy;
  this.modifiedTimestamp=modifiedTimestamp;
  this.modifiedBy=modifiedBy;
  this.voyageNumber=voyageNumber;
  this.vendorCode=vendorCode;
  this.vesselName=vesselName;
  this.vendorName=vendorName;
}
Program: 144365
Project: 144365
Buggy source:
public VesselSchedules transformToEntityBean(VesselScheduleBean formBean){
  VesselSchedules entity=new VesselSchedules();
  Client client=clientService.findClientById(getClientId().toString());
  entity.setClientId(client.getClientId());
  if (formBean.getVesselScheduleId() != null) {
    entity.setVesselScheduleId(new Integer(formBean.getVesselScheduleId()));
  }
  entity.setVoyageNumber(formBean.getVoyageNumber());
  entity.setVendorId(formBean.getVendorId());
  entity.setOriginPort(formBean.getOriginPort());
  entity.setDestinationPort(formBean.getDestinationPort());
  entity.setArrivalDate(formBean.getArrivalDate());
  entity.setArrivalTime(formBean.getArrivalTime());
  entity.setDepartureTime(formBean.getDepartureTime());
  entity.setDepartureDate(formBean.getDepartureDate());
  entity.setVendorCode(vendorService.findVendorById(formBean.getVendorId()).getVendorCode());
  entity.setVesselName(formBean.getVesselName());
  entity.setCreatedBy(formBean.getCreatedBy());
  entity.setCreatedTimestamp(formBean.getCreatedTimestamp());
  return entity;
}

Fixed version (ground truth):
public VesselSchedules transformToEntityBean(VesselScheduleBean formBean){
  VesselSchedules entity=new VesselSchedules();
  Client client=clientService.findClientById(getClientId().toString());
  entity.setClientId(client.getClientId());
  if (formBean.getVesselScheduleId() != null) {
    entity.setVesselScheduleId(new Integer(formBean.getVesselScheduleId()));
  }
  entity.setVoyageNumber(formBean.getVoyageNumber());
  entity.setVendorId(formBean.getVendorId());
  entity.setOriginPort(formBean.getOriginPort());
  entity.setDestinationPort(formBean.getDestinationPort());
  entity.setArrivalDate(formBean.getArrivalDate());
  entity.setArrivalTime(formBean.getArrivalTime());
  entity.setDepartureTime(formBean.getDepartureTime());
  entity.setDepartureDate(formBean.getDepartureDate());
  entity.setVendorCode(vendorService.findVendorById(formBean.getVendorId()).getVendorCode());
  entity.setVesselName(formBean.getVesselName());
  entity.setCreatedBy(formBean.getCreatedBy());
  entity.setCreatedTimestamp(formBean.getCreatedTimestamp());
  entity.setVendorName(vendorService.findVendorById(formBean.getVendorId()).getVendorName());
  return entity;
}
Program: 144366
Project: 144366
Buggy source:
public String getColumnFilter(){
  String column="String_Node_Str";
  if ("String_Node_Str".equals(vesselSchedule.getVesselScheduleCriteria())) {
    column="String_Node_Str";
  }
 else   if ("String_Node_Str".equals(vesselSchedule.getVesselScheduleCriteria())) {
    column="String_Node_Str";
  }
 else   if ("String_Node_Str".equals(vesselSchedule.getVesselScheduleCriteria())) {
    column="String_Node_Str";
  }
 else   if ("String_Node_Str".equals(vesselSchedule.getVesselScheduleCriteria())) {
    column="String_Node_Str";
  }
 else   if ("String_Node_Str".equals(vesselSchedule.getVesselScheduleCriteria())) {
    column="String_Node_Str";
  }
  return column;
}

Fixed version (ground truth):
public String getColumnFilter(){
  String column="String_Node_Str";
  if ("String_Node_Str".equals(vesselSchedule.getVesselScheduleCriteria())) {
    column="String_Node_Str";
  }
 else   if ("String_Node_Str".equals(vesselSchedule.getVesselScheduleCriteria())) {
    column="String_Node_Str";
  }
 else   if ("String_Node_Str".equals(vesselSchedule.getVesselScheduleCriteria())) {
    column="String_Node_Str";
  }
 else   if ("String_Node_Str".equals(vesselSchedule.getVesselScheduleCriteria())) {
    column="String_Node_Str";
  }
 else   if ("String_Node_Str".equals(vesselSchedule.getVesselScheduleCriteria())) {
    column="String_Node_Str";
  }
 else   if ("String_Node_Str".equals(vesselSchedule.getVesselScheduleCriteria())) {
    column="String_Node_Str";
  }
  return column;
}
Program: 144367
Project: 144367
Buggy source:
public void addAddress(Address address);

Fixed version (ground truth):
public Integer addAddress(Address address);
Program: 144368
Project: 144368
Buggy source:
@Override public void addAddress(Address address){
  log.debug("String_Node_Str");
  try {
    Session session=getSessionFactory().getCurrentSession();
    session.save(address);
    log.debug("String_Node_Str");
  }
 catch (  RuntimeException re) {
    log.error("String_Node_Str",re);
    throw re;
  }
}

Fixed version (ground truth):
@Override public Integer addAddress(Address address){
  log.debug("String_Node_Str");
  try {
    Session session=getSessionFactory().getCurrentSession();
    Integer addressId=(Integer)session.save(address);
    log.debug("String_Node_Str");
    return addressId;
  }
 catch (  RuntimeException re) {
    log.error("String_Node_Str",re);
    throw re;
  }
}
Program: 144369
Project: 144369
Buggy source:
public void addAddress(Address address);

Fixed version (ground truth):
public Integer addAddress(Address address) throws AddressAlreadyExistsException ;
Program: 144370
Project: 144370
Buggy source:
@Override @Transactional(propagation=Propagation.REQUIRED,readOnly=false) public void addAddress(Address address){
  addressDao.addAddress(address);
}

Fixed version (ground truth):
@Override @Transactional(propagation=Propagation.REQUIRED,readOnly=false) public Integer addAddress(Address address) throws AddressAlreadyExistsException {
  if (addressDao.findAddressByAddressLine(address.getAddressLine1()).size() > 0)   throw new AddressAlreadyExistsException(address.getAddressLine1());
 else   return addressDao.addAddress(address);
}
Program: 144371
Project: 144371
Buggy source:
@Override public List<VesselSchedules> findAllVesselSchedule(){
  log.debug("String_Node_Str");
  try {
    log.debug("String_Node_Str");
    Query query=getSessionFactory().getCurrentSession().createQuery("String_Node_Str");
    List<VesselSchedules> results=(List<VesselSchedules>)query.list();
    return results;
  }
 catch (  Exception e) {
    log.error("String_Node_Str",e);
    throw e;
  }
}

Fixed version (ground truth):
@Override public List<VesselSchedules> findAllVesselSchedule(){
  log.debug("String_Node_Str");
  try {
    log.debug("String_Node_Str");
    return getSessionFactory().getCurrentSession().createQuery("String_Node_Str").list();
  }
 catch (  Exception e) {
    log.error("String_Node_Str",e);
    throw e;
  }
}
Program: 144377
Project: 144377
Buggy source:
public String editOrderItemsOriginConfirm(){
  Map sessionAttributes=ActionContext.getContext().getSession();
  System.out.println("String_Node_Str" + vendorId);
  System.out.println("String_Node_Str" + driverCodeParam);
  System.out.println("String_Node_Str" + truckCodeParam);
  System.out.println("String_Node_Str" + finalPickupParam);
  OrderItems entity=operationsService.findOrderItemById((Integer)sessionAttributes.get("String_Node_Str"));
  orderItem=transformToOrderItemFormBean(entity);
  Orders orderEntity=orderService.findOrdersById(entity.getOrderId());
  order=transformToOrderFormBean(orderEntity);
  List<OrderItems> orderItemsList=operationsService.findAllOrderItemsByOrderId(entity.getOrderId());
  for (  OrderItems orderItemsElem : orderItemsList) {
    if (entity.getOrderItemId() == orderItemsElem.getOrderItemId()) {
      orderItems.add(transformToOrderItemFormBean(orderItemsElem));
    }
  }
  Vendor vendorEntity=vendorService.findVendorById(vendorId);
  vendor.setVendorId(vendorEntity.getVendorId());
  vendor.setVendorName(vendorEntity.getVendorName());
  Trucks truckEntity=vendorService.findTrucksByTruckCode(truckCodeParam);
  truck=transformToFormBeanTrucks(truckEntity);
  originConfirmFlag="String_Node_Str";
  return SUCCESS;
}

Fixed version (ground truth):
public String editOrderItemsOriginConfirm(){
  Map sessionAttributes=ActionContext.getContext().getSession();
  System.out.println("String_Node_Str" + vendorId);
  System.out.println("String_Node_Str" + driverCodeParam);
  System.out.println("String_Node_Str" + truckCodeParam);
  System.out.println("String_Node_Str" + finalPickupParam);
  OrderItems entity=operationsService.findOrderItemById((Integer)sessionAttributes.get("String_Node_Str"));
  orderItem=transformToOrderItemFormBean(entity);
  Orders orderEntity=orderService.findOrdersById(entity.getOrderId());
  order=transformToOrderFormBean(orderEntity);
  List<OrderItems> orderItemsList=operationsService.findAllOrderItemsByOrderId(entity.getOrderId());
  for (  OrderItems orderItemsElem : orderItemsList) {
    if (entity.getOrderItemId() == orderItemsElem.getOrderItemId()) {
      orderItems.add(transformToOrderItemFormBean(orderItemsElem));
    }
  }
  Vendor vendorEntity=vendorService.findVendorById(vendorId);
  vendor.setVendorId(vendorEntity.getVendorId());
  vendor.setVendorName(vendorEntity.getVendorName());
  Trucks truckEntity=vendorService.findTrucksByTruckCode(truckCodeParam);
  truck=transformToFormBeanTrucks(truckEntity);
  originConfirmFlag="String_Node_Str";
  if (finalPickupParam.equals("String_Node_Str")) {
    finalPickupParam="String_Node_Str";
  }
  return SUCCESS;
}
Program: 144379
Project: 144379
Buggy source:
public String editBulkOrderItemsOriginConfirmDes(){
  System.out.println("String_Node_Str" + vendorId);
  System.out.println("String_Node_Str" + driverCodeParam);
  System.out.println("String_Node_Str" + truckCodeParam);
  System.out.println("String_Node_Str" + finalDeliveryParam);
  Map sessionAttributes=ActionContext.getContext().getSession();
  check=(String[])sessionAttributes.get("String_Node_Str");
  for (int i=0; i < check.length; i++) {
    System.out.println("String_Node_Str" + check[i]);
    Integer orderItemId=Integer.parseInt(check[i]);
    OrderItems orderItemEntity=operationsService.findOrderItemById(orderItemId);
    orderItems.add(transformToOrderItemFormBean(orderItemEntity));
  }
  Vendor vendorEntity=vendorService.findVendorById(vendorId);
  vendor.setVendorId(vendorEntity.getVendorId());
  vendor.setVendorName(vendorEntity.getVendorName());
  Trucks truckEntity=vendorService.findTrucksByTruckCode(truckCodeParam);
  truck=transformToFormBeanTrucks(truckEntity);
  destinationConfirmFlag="String_Node_Str";
  return SUCCESS;
}

Fixed version (ground truth):
public String editBulkOrderItemsOriginConfirmDes(){
  System.out.println("String_Node_Str" + vendorId);
  System.out.println("String_Node_Str" + driverCodeParam);
  System.out.println("String_Node_Str" + truckCodeParam);
  System.out.println("String_Node_Str" + finalDeliveryParam);
  Map sessionAttributes=ActionContext.getContext().getSession();
  check=(String[])sessionAttributes.get("String_Node_Str");
  for (int i=0; i < check.length; i++) {
    System.out.println("String_Node_Str" + check[i]);
    Integer orderItemId=Integer.parseInt(check[i]);
    OrderItems orderItemEntity=operationsService.findOrderItemById(orderItemId);
    orderItems.add(transformToOrderItemFormBean(orderItemEntity));
  }
  if (vendorId != null) {
    Vendor vendorEntity=vendorService.findVendorById(vendorId);
    vendor.setVendorId(vendorEntity.getVendorId());
    vendor.setVendorName(vendorEntity.getVendorName());
  }
  if (truckCodeParam != null) {
    Trucks truckEntity=vendorService.findTrucksByTruckCode(truckCodeParam);
    truck=transformToFormBeanTrucks(truckEntity);
  }
  destinationConfirmFlag="String_Node_Str";
  return SUCCESS;
}
Program: 144381
Project: 144381
Buggy source:
public String createReport(){
  Map sessionAttributes=ActionContext.getContext().getSession();
  System.out.println("String_Node_Str" + orderIdParam);
  Documents documentEntity=new Documents();
  Client client=clientService.findClientById(getClientId().toString());
  documentEntity.setClient(client);
  documentEntity.setDocumentName(DocumentsConstants.BOOKING_REQUEST_FORM);
  documentEntity.setReferenceId(orderIdParam);
  documentEntity.setReferenceTable("String_Node_Str");
  documentEntity.setOrderNumber(orderService.findOrdersById(orderIdParam).getOrderNumber());
  documentEntity.setCreatedDate(new Date());
  documentEntity.setDocumentStatus("String_Node_Str");
  documentEntity.setDocumentProcessed(0);
  documentEntity.setCreatedBy(commonUtils.getUserNameFromSession());
  documentEntity.setOutboundStage(1);
  documentEntity.setVendorCode("String_Node_Str");
  String documentCode=documentsService.findNextControlNo(getClientId(),"String_Node_Str");
  documentEntity.setControlNumber(documentCode);
  documentEntity.setReferenceNumber(documentCode.replace("String_Node_Str","String_Node_Str"));
  documentsService.addDocuments(documentEntity);
  sessionAttributes.put("String_Node_Str",orderIdParam);
  return SUCCESS;
}

Fixed version (ground truth):
public String createReport(){
  Map sessionAttributes=ActionContext.getContext().getSession();
  Documents documentEntity=new Documents();
  Client client=clientService.findClientById(getClientId().toString());
  documentEntity.setClient(client);
  documentEntity.setDocumentName(DocumentsConstants.BOOKING_REQUEST_FORM);
  documentEntity.setReferenceId(orderIdParam);
  documentEntity.setReferenceTable("String_Node_Str");
  documentEntity.setOrderNumber(orderService.findOrdersById(orderIdParam).getOrderNumber());
  documentEntity.setCreatedDate(new Date());
  documentEntity.setDocumentStatus("String_Node_Str");
  documentEntity.setDocumentProcessed(0);
  documentEntity.setCreatedBy(commonUtils.getUserNameFromSession());
  documentEntity.setOutboundStage(1);
  documentEntity.setVendorCode("String_Node_Str");
  String documentCode=documentsService.findNextControlNo(getClientId(),"String_Node_Str");
  documentEntity.setControlNumber(documentCode);
  documentEntity.setReferenceNumber(documentCode.replace("String_Node_Str","String_Node_Str"));
  documentsService.addDocuments(documentEntity);
  sessionAttributes.put("String_Node_Str",orderIdParam);
  return SUCCESS;
}
Program: 144384
Project: 144384
Buggy source:
public String viewInfoVendor(){
  Vendor vendorEntity=new Vendor();
  if (!StringUtils.isBlank(vendorCodeParam))   vendorEntity=vendorService.findVendorById(vendorIdParam);
 else   vendorEntity=vendorService.findVendorById(vendorIdParam);
  vendor=transformToFormBean(vendorEntity);
  Map sessionAttributes=ActionContext.getContext().getSession();
  sessionAttributes.put("String_Node_Str",vendor.getVendorId());
  if ("String_Node_Str".equals(vendor.getVendorType())) {
    return "String_Node_Str";
  }
 else {
    return "String_Node_Str";
  }
}

Fixed version (ground truth):
public String viewInfoVendor(){
  Vendor vendorEntity=new Vendor();
  if (!StringUtils.isBlank(vendorCodeParam))   vendorEntity=vendorService.findVendorByVendorCode(vendorCodeParam);
 else   vendorEntity=vendorService.findVendorById(getSessionVendorId());
  vendor=transformToFormBean(vendorEntity);
  Map sessionAttributes=ActionContext.getContext().getSession();
  sessionAttributes.put("String_Node_Str",vendor.getVendorId());
  if ("String_Node_Str".equals(vendor.getVendorType())) {
    return "String_Node_Str";
  }
 else {
    return "String_Node_Str";
  }
}
Program: 144385
Project: 144385
Buggy source:
public String editItem(){
  validateOnSubmitItem(item);
  if (hasFieldErrors()) {
    return INPUT;
  }
  Items itemEntity=transformToEntityBeanItem(item);
  itemEntity.setModifiedBy(commonUtils.getUserNameFromSession());
  itemEntity.setModifiedTimeStamp(new Date());
  customerService.updateItems(itemEntity);
  return SUCCESS;
}

Fixed version (ground truth):
public String editItem(){
  validateOnSubmitItem(item);
  if (hasFieldErrors()) {
    return INPUT;
  }
  Items itemEntity=transformToEntityBeanItem(item);
  List<OrderItems> orderItemsInBooking=orderService.findOrderItemByName(itemEntity.getItemCode());
  if (orderItemsInBooking.size() > 0) {
    Integer customerId=getCustomerSessionId();
    List<Items> itemEntityList=customerService.findItemByCustomerId(customerId);
    for (    Items itemsElem : itemEntityList) {
      items.add(transformToFormBeanItem(itemsElem));
    }
    clearErrorsAndMessages();
    addActionError("String_Node_Str");
    return INPUT;
  }
  itemEntity.setModifiedBy(commonUtils.getUserNameFromSession());
  itemEntity.setModifiedTimeStamp(new Date());
  customerService.updateItems(itemEntity);
  return SUCCESS;
}
Program: 144386
Project: 144386
Buggy source:
public String deleteItem(){
  Items itemEntity=customerService.findItemByCustomerItemsId(customersItemIdParam);
  List<OrderItems> orderItemsInBooking=orderService.findOrderItemByName(itemEntity.getItemName());
  for (  OrderItems orderItemElem : orderItemsInBooking) {
    Orders orderEntity=orderService.findOrdersById(orderItemElem.getOrderId());
    if (orderEntity.getCustomerId() == itemEntity.getCustomerId()) {
      Integer customerId=getCustomerSessionId();
      List<Items> itemEntityList=customerService.findItemByCustomerId(customerId);
      for (      Items itemsElem : itemEntityList) {
        items.add(transformToFormBeanItem(itemsElem));
      }
      clearErrorsAndMessages();
      addActionError("String_Node_Str");
      return INPUT;
    }
  }
  customerService.deleteItem(itemEntity);
  return SUCCESS;
}

Fixed version (ground truth):
public String deleteItem(){
  Items itemEntity=customerService.findItemByCustomerItemsId(customersItemIdParam);
  List<OrderItems> orderItemsInBooking=orderService.findOrderItemByName(itemEntity.getItemCode());
  if (orderItemsInBooking.size() > 0) {
    Integer customerId=getCustomerSessionId();
    List<Items> itemEntityList=customerService.findItemByCustomerId(customerId);
    for (    Items itemsElem : itemEntityList) {
      items.add(transformToFormBeanItem(itemsElem));
    }
    clearErrorsAndMessages();
    addActionError("String_Node_Str");
    return INPUT;
  }
  customerService.deleteItem(itemEntity);
  return SUCCESS;
}
Program: 144387
Project: 144387
Buggy source:
public String reloadEditPage(){
  Map sessionAttributes=ActionContext.getContext().getSession();
  Orders orderEntity=orderService.findOrdersById((Integer)sessionAttributes.get("String_Node_Str"));
  order=transformToOrderFormBean(orderEntity);
  List<VesselSchedules> vesselSchedulesList=operationsService.findVesselScheduleByVendorId((Integer)sessionAttributes.get("String_Node_Str"));
  for (  VesselSchedules vesselScheduleElem : vesselSchedulesList) {
    vesselSchedules.add(transformToFormBeanVesselSchedule(vesselScheduleElem));
  }
  return SUCCESS;
}

Fixed version (ground truth):
public String reloadEditPage(){
  Map sessionAttributes=ActionContext.getContext().getSession();
  Orders orderEntity=orderService.findOrdersById((Integer)sessionAttributes.get("String_Node_Str"));
  order=transformToOrderFormBean(orderEntity);
  nameSizeList=(List)sessionAttributes.get("String_Node_Str");
  sessionAttributes.put("String_Node_Str",nameSizeList);
  check=(String[])sessionAttributes.get("String_Node_Str");
  for (int x=0; x < check.length; x++) {
    OrderItems orderItemsListing=orderService.findOrderItemByOrderItemId(Integer.parseInt(check[x]));
    orderItemVesselSchedule.add(transformToOrderItemFormBean(orderItemsListing));
  }
  vendorShippingListClass=vendorService.findShippingVendorClass(customerService.findCustomerById(order.getCustomerId()).getCustomerType());
  List<VesselSchedules> vesselSchedulesList=operationsService.findVesselScheduleByOriDesClass(order.getOriginationPort(),order.getDestinationPort());
  for (  VesselSchedules vesselScheduleElem : vesselSchedulesList) {
    vesselSchedules.add(transformToFormBeanVesselSchedule(vesselScheduleElem));
  }
  return SUCCESS;
}
Program: 144393
Project: 144393
Buggy source:
public String updateBulkStatus(){
  Map sessionAttributes=ActionContext.getContext().getSession();
  try {
    String[] checkedItemsInSession=(String[])sessionAttributes.get("String_Node_Str");
    for (    String checkValue : checkedItemsInSession) {
      Integer bulkId=Integer.parseInt(checkValue);
      OrderItems orderItemEntity=orderStatusLogsService.findOrderItemById((Integer)sessionAttributes.get("String_Node_Str"));
      orderStatusLogsBean.setOrderItemId(bulkId);
      OrderStatusLogs orderStatusLogsEntity=transformToOrderStatusLogsEntity(orderStatusLogsBean);
      orderStatusLogsEntity.setCreatedTimestamp(new Date());
      orderStatusLogsEntity.setCreatedBy(commonUtils.getUserNameFromSession());
      orderStatusLogsService.addStatus(orderStatusLogsEntity);
      orderItemEntity.setStatus(orderStatusLogsBean.getStatus());
      orderStatusLogsService.updateStatusOrderItem(orderItemEntity);
    }
  }
 catch (  Exception e) {
    addActionError("String_Node_Str");
    return INPUT;
  }
  return SUCCESS;
}

Fixed version (ground truth):
public String updateBulkStatus(){
  Map sessionAttributes=ActionContext.getContext().getSession();
  try {
    String[] checkedItemsInSession=(String[])sessionAttributes.get("String_Node_Str");
    for (    String checkValue : checkedItemsInSession) {
      Integer bulkId=Integer.parseInt(checkValue);
      OrderItems orderItemEntity=orderStatusLogsService.findOrderItemById(bulkId);
      orderStatusLogsBean.setOrderItemId(orderItemEntity.getOrderItemId());
      OrderStatusLogs orderStatusLogsEntity=transformToOrderStatusLogsEntity(orderStatusLogsBean);
      sessionAttributes.put("String_Node_Str",orderStatusLogsEntity.getOrderItemId());
      orderStatusLogsEntity.setCreatedTimestamp(new Date());
      orderStatusLogsEntity.setCreatedBy(commonUtils.getUserNameFromSession());
      orderStatusLogsService.addStatus(orderStatusLogsEntity);
      orderItemEntity.setStatus(orderStatusLogsBean.getStatus());
      orderStatusLogsService.updateStatusOrderItem(orderItemEntity);
    }
  }
 catch (  Exception e) {
    addActionError("String_Node_Str");
    return INPUT;
  }
  return SUCCESS;
}
Program: 144394
Project: 144394
Buggy source:
public String deleteConsigneeContact(){
  Map sessionAttributes=ActionContext.getContext().getSession();
  Contacts consigneeContactEntity=customerService.findContactById(consigneeContactCodeParam);
  List<Orders> consigneeContactInBookingList=orderService.findConsigneeContactInBooking(consigneeContactCodeParam);
  if (consigneeContactInBookingList.size() > 0) {
    Contacts contactEntity=customerService.findContactById(contactCodeParam);
    Address addressEntity=customerService.findAddressById(addressIdParam);
    consignee=transformToFormBeanConsignee(addressEntity,contactEntity);
    List<Contacts> contactEntityList=customerService.findContactByConsignee(contactEntity.getContactId(),"String_Node_Str",getClientId());
    for (    Contacts contactElem : contactEntityList) {
      contacts.add(transformToFormBeanContacts(contactElem));
    }
    clearErrorsAndMessages();
    addActionError("String_Node_Str");
    return INPUT;
  }
  customerService.deleteContact(consigneeContactEntity);
  sessionAttributes.put("String_Node_Str",contactCodeParam);
  sessionAttributes.put("String_Node_Str",addressIdParam);
  return SUCCESS;
}

Fixed version (ground truth):
public String deleteConsigneeContact(){
  Map sessionAttributes=ActionContext.getContext().getSession();
  Contacts consigneeContactEntity=customerService.findContactById(consigneeContactCodeParam);
  List<Orders> consigneeContactInBookingList=orderService.findConsigneeContactInBooking(consigneeContactCodeParam);
  if (consigneeContactInBookingList.size() > 0) {
    Contacts contactEntity=customerService.findContactById(contactCodeParam);
    Address addressEntity=customerService.findAddressById(addressIdParam);
    consignee=transformToFormBeanConsignee(addressEntity,contactEntity);
    List<Contacts> contactEntityList=customerService.findContactByConsignee(contactEntity.getContactId(),"String_Node_Str",getClientId());
    for (    Contacts contactElem : contactEntityList) {
      contacts.add(transformToFormBeanContacts(contactElem));
    }
    clearErrorsAndMessages();
    addActionError("String_Node_Str");
    return INPUT;
  }
  customerService.deleteContact(consigneeContactEntity);
  Contacts contactEntity=customerService.findContactById(contactCodeParam);
  Address addressEntity=customerService.findAddressById(addressIdParam);
  consignee=transformToFormBeanConsignee(addressEntity,contactEntity);
  List<Contacts> contactEntityList=customerService.findContactByConsignee(contactEntity.getContactId(),"String_Node_Str",getClientId());
  for (  Contacts contactElem : contactEntityList) {
    contacts.add(transformToFormBeanContacts(contactElem));
  }
  return SUCCESS;
}
Program: 144395
Project: 144395
Buggy source:
public String addConsigneeContact() throws Exception {
  Map sessionAttributes=ActionContext.getContext().getSession();
  validateOnSubmitContact(consigneeContact);
  if (hasFieldErrors()) {
    return INPUT;
  }
  try {
    Contacts contactEntity=transformToEntityBeanConsigneeContacts(consigneeContact);
    contactEntity.setReferenceId((Integer)sessionAttributes.get("String_Node_Str"));
    contactEntity.setModifiedBy(commonUtils.getUserNameFromSession());
    contactEntity.setCreatedBy(commonUtils.getUserNameFromSession());
    contactEntity.setCreatedTimestamp(new Date());
    customerService.addContact(contactEntity);
  }
 catch (  ContactAlreadyExistsException e) {
    addFieldError("String_Node_Str",getText("String_Node_Str"));
    return INPUT;
  }
  sessionAttributes.put("String_Node_Str",sessionAttributes.get("String_Node_Str"));
  sessionAttributes.put("String_Node_Str",sessionAttributes.get("String_Node_Str"));
  clearErrorsAndMessages();
  addActionMessage("String_Node_Str");
  return SUCCESS;
}

Fixed version (ground truth):
public String addConsigneeContact() throws Exception {
  Map sessionAttributes=ActionContext.getContext().getSession();
  validateOnSubmitContact(consigneeContact);
  if (hasFieldErrors()) {
    return INPUT;
  }
  try {
    Contacts contactEntity=transformToEntityBeanConsigneeContacts(consigneeContact);
    contactEntity.setReferenceId(contactCodeParam);
    contactEntity.setModifiedBy(commonUtils.getUserNameFromSession());
    contactEntity.setCreatedBy(commonUtils.getUserNameFromSession());
    contactEntity.setCreatedTimestamp(new Date());
    customerService.addContact(contactEntity);
  }
 catch (  ContactAlreadyExistsException e) {
    addFieldError("String_Node_Str",getText("String_Node_Str"));
    return INPUT;
  }
  sessionAttributes.put("String_Node_Str",contactCodeParam);
  sessionAttributes.put("String_Node_Str",addressIdParam);
  clearErrorsAndMessages();
  addActionMessage("String_Node_Str");
  Contacts contactEntity=customerService.findContactById(contactCodeParam);
  Address addressEntity=customerService.findAddressById(addressIdParam);
  consignee=transformToFormBeanConsignee(addressEntity,contactEntity);
  List<Contacts> contactEntityList=customerService.findContactByConsignee(contactEntity.getContactId(),"String_Node_Str",getClientId());
  for (  Contacts contactElem : contactEntityList) {
    contacts.add(transformToFormBeanContacts(contactElem));
  }
  return SUCCESS;
}
Program: 144396
Project: 144396
Buggy source:
public String consigneeInfo(){
  Contacts contactEntity=customerService.findContactById(contactCodeParam);
  Address addressEntity=customerService.findAddressById(addressIdParam);
  consignee=transformToFormBeanConsignee(addressEntity,contactEntity);
  sessionAttributes.put("String_Node_Str",contactEntity.getReferenceId());
  List<Contacts> contactEntityList=new ArrayList<Contacts>();
  contactEntityList=customerService.findContactByConsignee(contactEntity.getContactId(),"String_Node_Str",getClientId());
  for (  Contacts contactElem : contactEntityList) {
    contacts.add(transformToFormBeanContacts(contactElem));
  }
  return SUCCESS;
}

Fixed version (ground truth):
public String consigneeInfo(){
  Contacts contactEntity=customerService.findContactById(contactCodeParam);
  Address addressEntity=customerService.findAddressById(addressIdParam);
  consignee=transformToFormBeanConsignee(addressEntity,contactEntity);
  sessionAttributes.put("String_Node_Str",contactEntity.getReferenceId());
  List<Contacts> contactEntityList=customerService.findContactByConsignee(contactEntity.getContactId(),"String_Node_Str",getClientId());
  for (  Contacts contactElem : contactEntityList) {
    contacts.add(transformToFormBeanContacts(contactElem));
  }
  return SUCCESS;
}
Program: 144403
Project: 144403
Buggy source:
public OrderStatusLogs(Integer statusId,Integer orderId,Integer orderItemId,String status,String createdBy,Date createdTimestamp,Date actualDate,String containerNumber){
  this.statusId=statusId;
  this.orderId=orderId;
  this.orderItemId=orderItemId;
  this.status=status;
  this.createdBy=createdBy;
  this.createdTimestamp=createdTimestamp;
  this.actualDate=actualDate;
  this.containerNumber=containerNumber;
}

Fixed version (ground truth):
public OrderStatusLogs(Integer statusId,Integer orderId,Integer orderItemId,String status,String createdBy,Date createdTimestamp,Date actualDate){
  this.statusId=statusId;
  this.orderId=orderId;
  this.orderItemId=orderItemId;
  this.status=status;
  this.createdBy=createdBy;
  this.createdTimestamp=createdTimestamp;
  this.actualDate=actualDate;
}
Program: 144405
Project: 144405
Buggy source:
public String reloadInlandFreightPlanning(){
  Map sessionAttributes=ActionContext.getContext().getSession();
  OrderItems entity=operationsService.findOrderItemById((Integer)sessionAttributes.get("String_Node_Str"));
  orderItem=transformToOrderItemFormBean(entity);
  Orders orderEntity=orderService.findOrdersById((Integer)sessionAttributes.get("String_Node_Str"));
  order=transformToOrderFormBean(orderEntity);
  if (orderItem.getVesselScheduleId() != null) {
    VesselSchedules vesselScheduleEntity=vesselSchedulesService.findVesselSchedulesByIdVoyageNumber(orderItem.getVesselScheduleId());
    vesselSchedule=transformToFormBeanVesselSchedule(vesselScheduleEntity);
  }
  vendorTruckingOriginList=vendorService.findVendorTruckByLocation(order.getOriginationPort());
  vendorTruckingDestinationList=vendorService.findVendorTruckByLocation(order.getDestinationPort());
  clearErrorsAndMessages();
  addActionMessage("String_Node_Str");
  if ("String_Node_Str".equals(entity.getStatus())) {
    return "String_Node_Str";
  }
 else   if ("String_Node_Str".equals(entity.getStatus())) {
    return "String_Node_Str";
  }
 else {
    return "String_Node_Str";
  }
}

Fixed version (ground truth):
public String reloadInlandFreightPlanning(){
  Map sessionAttributes=ActionContext.getContext().getSession();
  OrderItems entity=operationsService.findOrderItemById((Integer)sessionAttributes.get("String_Node_Str"));
  orderItem=transformToOrderItemFormBean(entity);
  Orders orderEntity=orderService.findOrdersById((Integer)sessionAttributes.get("String_Node_Str"));
  order=transformToOrderFormBean(orderEntity);
  if (orderItem.getVesselScheduleId() != null) {
    VesselSchedules vesselScheduleEntity=vesselSchedulesService.findVesselSchedulesByIdVoyageNumber(orderItem.getVesselScheduleId());
    vesselSchedule=transformToFormBeanVesselSchedule(vesselScheduleEntity);
  }
  vendorTruckingOriginList=vendorService.findVendorTruckByLocation(order.getOriginationPort());
  vendorTruckingDestinationList=vendorService.findVendorTruckByLocation(order.getDestinationPort());
  nameSizeList=(List)sessionAttributes.get("String_Node_Str");
  orderItems=(List)sessionAttributes.get("String_Node_Str");
  clearErrorsAndMessages();
  addActionMessage("String_Node_Str");
  if ("String_Node_Str".equals(entity.getStatus())) {
    return "String_Node_Str";
  }
 else   if ("String_Node_Str".equals(entity.getStatus())) {
    return "String_Node_Str";
  }
 else {
    return "String_Node_Str";
  }
}
Program: 144406
Project: 144406
Buggy source:
public String reloadInlandFreightPlanningBulk(){
  Map sessionAttributes=ActionContext.getContext().getSession();
  String[] check=(String[])sessionAttributes.get("String_Node_Str");
  OrderItems entity=operationsService.findOrderItemById(Integer.parseInt(check[0]));
  orderItem=transformToOrderItemFormBean(entity);
  Orders orderEntity=orderService.findOrdersById((Integer)sessionAttributes.get("String_Node_Str"));
  order=transformToOrderFormBean(orderEntity);
  vendorTruckingOriginList=vendorService.findVendorTruckByLocation(order.getOriginationPort());
  vendorTruckingDestinationList=vendorService.findVendorTruckByLocation(order.getDestinationPort());
  clearErrorsAndMessages();
  addActionMessage("String_Node_Str");
  if ("String_Node_Str".equals(entity.getStatus())) {
    return "String_Node_Str";
  }
 else   if ("String_Node_Str".equals(entity.getStatus())) {
    return "String_Node_Str";
  }
 else {
    return "String_Node_Str";
  }
}

Fixed version (ground truth):
public String reloadInlandFreightPlanningBulk(){
  Map sessionAttributes=ActionContext.getContext().getSession();
  String[] check=(String[])sessionAttributes.get("String_Node_Str");
  OrderItems entity=operationsService.findOrderItemById(Integer.parseInt(check[0]));
  orderItem=transformToOrderItemFormBean(entity);
  Orders orderEntity=orderService.findOrdersById((Integer)sessionAttributes.get("String_Node_Str"));
  order=transformToOrderFormBean(orderEntity);
  vendorTruckingOriginList=vendorService.findVendorTruckByLocation(order.getOriginationPort());
  vendorTruckingDestinationList=vendorService.findVendorTruckByLocation(order.getDestinationPort());
  nameSizeList=(List)sessionAttributes.get("String_Node_Str");
  orderItems=(List)sessionAttributes.get("String_Node_Str");
  clearErrorsAndMessages();
  addActionMessage("String_Node_Str");
  if ("String_Node_Str".equals(entity.getStatus())) {
    return "String_Node_Str";
  }
 else   if ("String_Node_Str".equals(entity.getStatus())) {
    return "String_Node_Str";
  }
 else {
    return "String_Node_Str";
  }
}
Program: 144407
Project: 144407
Buggy source:
public OrderStatusLogs transformToOrderStatusLogsEntity(OrderStatusLogsBean formBean){
  OrderStatusLogs entity=new OrderStatusLogs();
  entity.setOrderItemId(formBean.getOrderItemId());
  entity.setOrderId(operationsService.findOrderItemById(formBean.getOrderItemId()).getOrderId());
  entity.setStatus(formBean.getStatus());
  entity.setCreatedBy(formBean.getCreatedBy());
  entity.setCreatedTimestamp(formBean.getCreatedTimestamp());
  entity.setActualDate(formBean.getActualDate());
  entity.setContainerNumber(formBean.getContainerNumber());
  return entity;
}

Fixed version (ground truth):
public OrderStatusLogs transformToOrderStatusLogsEntity(OrderStatusLogsBean formBean){
  OrderStatusLogs entity=new OrderStatusLogs();
  entity.setOrderItemId(formBean.getOrderItemId());
  entity.setOrderId(operationsService.findOrderItemById(formBean.getOrderItemId()).getOrderId());
  entity.setStatus(formBean.getStatus());
  entity.setCreatedBy(formBean.getCreatedBy());
  entity.setCreatedTimestamp(formBean.getCreatedTimestamp());
  entity.setActualDate(formBean.getActualDate());
  return entity;
}
Program: 144408
Project: 144408
Buggy source:
public OrderStatusLogsBean transformToOrderStatusLogsFormBean(OrderStatusLogs entity){
  OrderStatusLogsBean formBean=new OrderStatusLogsBean();
  formBean.setStatusId(entity.getStatusId());
  formBean.setCreatedTimestamp(entity.getCreatedTimestamp());
  formBean.setActualDate(entity.getActualDate());
  formBean.setStatus(entity.getStatus());
  formBean.setCreatedBy(entity.getCreatedBy());
  formBean.setNameSize(orderService.findOrderItemByOrderItemId(entity.getOrderItemId()).getNameSize());
  formBean.setOrderItemId(entity.getOrderItemId());
  formBean.setOrderId(operationsService.findOrderItemById(entity.getOrderItemId()).getOrderId());
  formBean.setContainerNumber(entity.getContainerNumber());
  return formBean;
}

Fixed version (ground truth):
public OrderStatusLogsBean transformToOrderStatusLogsFormBean(OrderStatusLogs entity){
  OrderStatusLogsBean formBean=new OrderStatusLogsBean();
  formBean.setStatusId(entity.getStatusId());
  formBean.setCreatedTimestamp(entity.getCreatedTimestamp());
  formBean.setActualDate(entity.getActualDate());
  formBean.setStatus(entity.getStatus());
  formBean.setCreatedBy(entity.getCreatedBy());
  formBean.setNameSize(orderService.findOrderItemByOrderItemId(entity.getOrderItemId()).getNameSize());
  formBean.setOrderItemId(entity.getOrderItemId());
  formBean.setOrderId(operationsService.findOrderItemById(entity.getOrderItemId()).getOrderId());
  return formBean;
}
Program: 144410
Project: 144410
Buggy source:
public String editItemListing(){
  OrderItems orderItemEntity=transformToOrderItemsEntityBean(orderItem);
  orderService.updateItemListing(orderItemEntity);
  return SUCCESS;
}

Fixed version (ground truth):
public String editItemListing(){
  OrderItems orderItemEntity=transformToOrderItemsEntityBean(orderItem);
  orderItemEntity.setQuantity(orderItem.getQuantity());
  orderService.updateItemListing(orderItemEntity);
  return SUCCESS;
}