Program: 144324
Project: 144324
Buggy source:
public String setBulkItemStatus(){
  List<Integer> ongoingBulkItems=new ArrayList();
  List<Integer> planning1BulkItems=new ArrayList();
  List<Integer> planning2BulkItems=new ArrayList();
  List<Integer> planning3BulkItems=new ArrayList();
  List<Integer> deliveredBulkItems=new ArrayList();
  List<Integer> pickupBulkItems=new ArrayList();
  List<Integer> positionedBulkItems=new ArrayList();
  List<Integer> departureBulkItems=new ArrayList();
  List<Integer> transitBulkItems=new ArrayList();
  List<Integer> arrivedBulkItems=new ArrayList();
  List<Integer> returnedBulkItems=new ArrayList();
  List<Integer> consolidationBulkItems=new ArrayList();
  Map sessionAttributes=ActionContext.getContext().getSession();
  if ("String_Node_Str".equals(orderItem.getEditItem())) {
    if (check == null) {
      sessionAttributes.put("String_Node_Str",orderStatusLogsBean.getOrderId());
      return "String_Node_Str";
    }
 else {
      for (int i=0; i < check.length; i++) {
        if (check[i].equals("String_Node_Str") || check[i].equals("String_Node_Str") || "String_Node_Str".equals(check[i])) {
          sessionAttributes.put("String_Node_Str",orderStatusLogsBean.getOrderId());
          return "String_Node_Str";
        }
        Integer orderStatusItemId=Integer.parseInt(check[i]);
        Orders orderEntity=orderService.findOrdersById(orderStatusLogsService.findOrderItemById(orderStatusItemId).getOrderId());
        order=transformToOrderFormBean(orderEntity);
        OrderItems orderItemEntity=orderStatusLogsService.findOrderItemById(orderStatusItemId);
        List<OrderStatusLogs> orderStatusLogsEntityList=orderStatusLogsService.findAllShipmentLogs(orderStatusItemId);
        orderItem=transformToOrderItemFormBean(orderItemEntity);
        for (        OrderStatusLogs orderStatusLogsElem : orderStatusLogsEntityList) {
          orderStatusLogs.add(transformToOrderStatusLogsFormBean(orderStatusLogsElem));
        }
        sessionAttributes.put("String_Node_Str",orderItemEntity.getOrderItemId());
        if ("String_Node_Str".equals(orderItemEntity.getStatus())) {
          ongoingBulkItems.add(orderStatusItemId);
          if (planning1BulkItems.size() > 0 || planning2BulkItems.size() > 0 || planning3BulkItems.size() > 0 || deliveredBulkItems.size() > 0 || pickupBulkItems.size() > 0 || positionedBulkItems.size() > 0 || departureBulkItems.size() > 0 || transitBulkItems.size() > 0 || arrivedBulkItems.size() > 0 || returnedBulkItems.size() > 0 || consolidationBulkItems.size() > 0) {
            return "String_Node_Str";
          }
        }
 else         if ("String_Node_Str".equals(orderItemEntity.getStatus())) {
          planning1BulkItems.add(orderStatusItemId);
          if (ongoingBulkItems.size() > 0 || planning2BulkItems.size() > 0 || planning3BulkItems.size() > 0 || deliveredBulkItems.size() > 0 || pickupBulkItems.size() > 0 || positionedBulkItems.size() > 0 || departureBulkItems.size() > 0 || transitBulkItems.size() > 0 || arrivedBulkItems.size() > 0 || returnedBulkItems.size() > 0 || consolidationBulkItems.size() > 0) {
            return "String_Node_Str";
          }
        }
 else         if ("String_Node_Str".equals(orderItemEntity.getStatus())) {
          planning2BulkItems.add(orderStatusItemId);
          if (planning1BulkItems.size() > 0 || ongoingBulkItems.size() > 0 || planning3BulkItems.size() > 0 || deliveredBulkItems.size() > 0 || pickupBulkItems.size() > 0 || positionedBulkItems.size() > 0 || departureBulkItems.size() > 0 || transitBulkItems.size() > 0 || arrivedBulkItems.size() > 0 || returnedBulkItems.size() > 0 || consolidationBulkItems.size() > 0) {
            return "String_Node_Str";
          }
        }
 else         if ("String_Node_Str".equals(orderItemEntity.getStatus())) {
          planning3BulkItems.add(orderStatusItemId);
          if (planning1BulkItems.size() > 0 || planning2BulkItems.size() > 0 || ongoingBulkItems.size() > 0 || deliveredBulkItems.size() > 0 || pickupBulkItems.size() > 0 || positionedBulkItems.size() > 0 || departureBulkItems.size() > 0 || transitBulkItems.size() > 0 || arrivedBulkItems.size() > 0 || returnedBulkItems.size() > 0 || consolidationBulkItems.size() > 0) {
            return "String_Node_Str";
          }
        }
 else         if ("String_Node_Str".equals(orderItemEntity.getStatus())) {
          deliveredBulkItems.add(orderStatusItemId);
          if (planning1BulkItems.size() > 0 || planning2BulkItems.size() > 0 || planning3BulkItems.size() > 0 || ongoingBulkItems.size() > 0 || pickupBulkItems.size() > 0 || positionedBulkItems.size() > 0 || departureBulkItems.size() > 0 || transitBulkItems.size() > 0 || arrivedBulkItems.size() > 0 || returnedBulkItems.size() > 0 || consolidationBulkItems.size() > 0) {
            return "String_Node_Str";
          }
        }
 else         if ("String_Node_Str".equals(orderItemEntity.getStatus())) {
          pickupBulkItems.add(orderStatusItemId);
          if (planning1BulkItems.size() > 0 || planning2BulkItems.size() > 0 || planning3BulkItems.size() > 0 || deliveredBulkItems.size() > 0 || ongoingBulkItems.size() > 0 || positionedBulkItems.size() > 0 || departureBulkItems.size() > 0 || transitBulkItems.size() > 0 || arrivedBulkItems.size() > 0 || returnedBulkItems.size() > 0 || consolidationBulkItems.size() > 0) {
            return "String_Node_Str";
          }
        }
 else         if ("String_Node_Str".equals(orderItemEntity.getStatus())) {
          positionedBulkItems.add(orderStatusItemId);
          if (planning1BulkItems.size() > 0 || planning2BulkItems.size() > 0 || planning3BulkItems.size() > 0 || deliveredBulkItems.size() > 0 || pickupBulkItems.size() > 0 || ongoingBulkItems.size() > 0 || departureBulkItems.size() > 0 || transitBulkItems.size() > 0 || arrivedBulkItems.size() > 0 || returnedBulkItems.size() > 0 || consolidationBulkItems.size() > 0) {
            return "String_Node_Str";
          }
        }
 else         if ("String_Node_Str".equals(orderItemEntity.getStatus())) {
          departureBulkItems.add(orderStatusItemId);
          if (planning1BulkItems.size() > 0 || planning2BulkItems.size() > 0 || planning3BulkItems.size() > 0 || deliveredBulkItems.size() > 0 || pickupBulkItems.size() > 0 || positionedBulkItems.size() > 0 || ongoingBulkItems.size() > 0 || transitBulkItems.size() > 0 || arrivedBulkItems.size() > 0 || returnedBulkItems.size() > 0 || consolidationBulkItems.size() > 0) {
            return "String_Node_Str";
          }
        }
 else         if ("String_Node_Str".equals(orderItemEntity.getStatus())) {
          transitBulkItems.add(orderStatusItemId);
          if (planning1BulkItems.size() > 0 || planning2BulkItems.size() > 0 || planning3BulkItems.size() > 0 || deliveredBulkItems.size() > 0 || pickupBulkItems.size() > 0 || positionedBulkItems.size() > 0 || departureBulkItems.size() > 0 || ongoingBulkItems.size() > 0 || arrivedBulkItems.size() > 0 || returnedBulkItems.size() > 0 || consolidationBulkItems.size() > 0) {
            return "String_Node_Str";
          }
        }
 else         if ("String_Node_Str".equals(orderItemEntity.getStatus())) {
          arrivedBulkItems.add(orderStatusItemId);
          if (planning1BulkItems.size() > 0 || planning2BulkItems.size() > 0 || planning3BulkItems.size() > 0 || deliveredBulkItems.size() > 0 || pickupBulkItems.size() > 0 || positionedBulkItems.size() > 0 || departureBulkItems.size() > 0 || transitBulkItems.size() > 0 || ongoingBulkItems.size() > 0 || returnedBulkItems.size() > 0 || consolidationBulkItems.size() > 0) {
            return "String_Node_Str";
          }
        }
 else         if ("String_Node_Str".equals(orderItemEntity.getStatus())) {
          returnedBulkItems.add(orderStatusItemId);
          if (planning1BulkItems.size() > 0 || planning2BulkItems.size() > 0 || planning3BulkItems.size() > 0 || deliveredBulkItems.size() > 0 || pickupBulkItems.size() > 0 || positionedBulkItems.size() > 0 || departureBulkItems.size() > 0 || transitBulkItems.size() > 0 || arrivedBulkItems.size() > 0 || ongoingBulkItems.size() > 0 || consolidationBulkItems.size() > 0) {
            return "String_Node_Str";
          }
        }
 else         if ("String_Node_Str".equals(orderItemEntity.getStatus())) {
          consolidationBulkItems.add(orderStatusItemId);
          if (planning1BulkItems.size() > 0 || planning2BulkItems.size() > 0 || planning3BulkItems.size() > 0 || deliveredBulkItems.size() > 0 || pickupBulkItems.size() > 0 || positionedBulkItems.size() > 0 || departureBulkItems.size() > 0 || transitBulkItems.size() > 0 || arrivedBulkItems.size() > 0 || returnedBulkItems.size() > 0 || ongoingBulkItems.size() > 0) {
            return "String_Node_Str";
          }
        }
      }
      Orders orderEntity=orderService.findOrdersById(orderStatusLogsService.findOrderItemById((Integer)sessionAttributes.get("String_Node_Str")).getOrderId());
      sessionAttributes.put("String_Node_Str",check);
      order=transformToOrderFormBean(orderEntity);
      nameSizeList=new ArrayList<String>();
      for (int x=0; x < check.length; x++) {
        OrderItems orderItemEntity=orderStatusLogsService.findOrderItemById(Integer.parseInt(check[x]));
        nameSizeList.add(orderItemEntity.getNameSize());
      }
      if (orderEntity.getServiceType().equals("String_Node_Str") || orderEntity.getServiceType().equals("String_Node_Str")) {
        if (orderEntity.getServiceMode().equals("String_Node_Str") || orderEntity.getServiceMode().equals("String_Node_Str")) {
          allFreightStatusList.add("String_Node_Str");
          allFreightStatusList.add("String_Node_Str");
          allFreightStatusList.add("String_Node_Str");
          allFreightStatusList.add("String_Node_Str");
        }
        if (orderEntity.getServiceRequirement().equals("String_Node_Str")) {
          allFreightStatusList.add("String_Node_Str");
        }
        allFreightStatusList.add("String_Node_Str");
        allFreightStatusList.add("String_Node_Str");
        allFreightStatusList.add("String_Node_Str");
        allFreightStatusList.add("String_Node_Str");
        if (orderEntity.getServiceMode().equals("String_Node_Str") || orderEntity.getServiceMode().equals("String_Node_Str")) {
          allFreightStatusList.add("String_Node_Str");
          allFreightStatusList.add("String_Node_Str");
          allFreightStatusList.add("String_Node_Str");
        }
      }
 else {
        if (orderEntity.getServiceMode().equals("String_Node_Str") || orderEntity.getServiceMode().equals("String_Node_Str")) {
          allFreightStatusList.add("String_Node_Str");
          allFreightStatusList.add("String_Node_Str");
          allFreightStatusList.add("String_Node_Str");
          allFreightStatusList.add("String_Node_Str");
        }
 else {
          allFreightStatusList.add("String_Node_Str");
          allFreightStatusList.add("String_Node_Str");
          allFreightStatusList.add("String_Node_Str");
        }
      }
      for (int x=0; x < check.length; x++) {
        OrderItems orderItemsListing=orderService.findOrderItemByOrderItemId(Integer.parseInt(check[x]));
        orderItemListings.add(transformToOrderItemFormBean(orderItemsListing));
      }
      sessionAttributes.put("String_Node_Str",nameSizeList);
    }
  }
  return "String_Node_Str";
}

Fixed version (ground truth):
public String setBulkItemStatus(){
  List<Integer> ongoingBulkItems=new ArrayList();
  List<Integer> planning1BulkItems=new ArrayList();
  List<Integer> planning2BulkItems=new ArrayList();
  List<Integer> planning3BulkItems=new ArrayList();
  List<Integer> deliveredBulkItems=new ArrayList();
  List<Integer> pickupBulkItems=new ArrayList();
  List<Integer> positionedBulkItems=new ArrayList();
  List<Integer> departureBulkItems=new ArrayList();
  List<Integer> transitBulkItems=new ArrayList();
  List<Integer> arrivedBulkItems=new ArrayList();
  List<Integer> returnedBulkItems=new ArrayList();
  List<Integer> consolidationBulkItems=new ArrayList();
  Map sessionAttributes=ActionContext.getContext().getSession();
  if ("String_Node_Str".equals(orderItem.getEditItem())) {
    if (check == null) {
      sessionAttributes.put("String_Node_Str",orderStatusLogsBean.getOrderId());
      return "String_Node_Str";
    }
 else {
      for (int i=0; i < check.length; i++) {
        if (check[i].equals("String_Node_Str") || check[i].equals("String_Node_Str") || "String_Node_Str".equals(check[i])) {
          sessionAttributes.put("String_Node_Str",orderStatusLogsBean.getOrderId());
          return "String_Node_Str";
        }
        Integer orderStatusItemId=Integer.parseInt(check[i]);
        Orders orderEntity=orderService.findOrdersById(orderStatusLogsService.findOrderItemById(orderStatusItemId).getOrderId());
        order=transformToOrderFormBean(orderEntity);
        OrderItems orderItemEntity=orderStatusLogsService.findOrderItemById(orderStatusItemId);
        List<OrderStatusLogs> orderStatusLogsEntityList=orderStatusLogsService.findAllShipmentLogs(orderStatusItemId);
        orderItem=transformToOrderItemFormBean(orderItemEntity);
        for (        OrderStatusLogs orderStatusLogsElem : orderStatusLogsEntityList) {
          orderStatusLogs.add(transformToOrderStatusLogsFormBean(orderStatusLogsElem));
        }
        sessionAttributes.put("String_Node_Str",orderItemEntity.getOrderItemId());
        if ("String_Node_Str".equals(orderItemEntity.getStatus())) {
          ongoingBulkItems.add(orderStatusItemId);
          if (planning1BulkItems.size() > 0 || planning2BulkItems.size() > 0 || planning3BulkItems.size() > 0 || deliveredBulkItems.size() > 0 || pickupBulkItems.size() > 0 || positionedBulkItems.size() > 0 || departureBulkItems.size() > 0 || transitBulkItems.size() > 0 || arrivedBulkItems.size() > 0 || returnedBulkItems.size() > 0 || consolidationBulkItems.size() > 0) {
            return "String_Node_Str";
          }
        }
 else         if ("String_Node_Str".equals(orderItemEntity.getStatus())) {
          planning1BulkItems.add(orderStatusItemId);
          if (ongoingBulkItems.size() > 0 || planning2BulkItems.size() > 0 || planning3BulkItems.size() > 0 || deliveredBulkItems.size() > 0 || pickupBulkItems.size() > 0 || positionedBulkItems.size() > 0 || departureBulkItems.size() > 0 || transitBulkItems.size() > 0 || arrivedBulkItems.size() > 0 || returnedBulkItems.size() > 0 || consolidationBulkItems.size() > 0) {
            return "String_Node_Str";
          }
        }
 else         if ("String_Node_Str".equals(orderItemEntity.getStatus())) {
          planning2BulkItems.add(orderStatusItemId);
          if (planning1BulkItems.size() > 0 || ongoingBulkItems.size() > 0 || planning3BulkItems.size() > 0 || deliveredBulkItems.size() > 0 || pickupBulkItems.size() > 0 || positionedBulkItems.size() > 0 || departureBulkItems.size() > 0 || transitBulkItems.size() > 0 || arrivedBulkItems.size() > 0 || returnedBulkItems.size() > 0 || consolidationBulkItems.size() > 0) {
            return "String_Node_Str";
          }
        }
 else         if ("String_Node_Str".equals(orderItemEntity.getStatus())) {
          planning3BulkItems.add(orderStatusItemId);
          if (planning1BulkItems.size() > 0 || planning2BulkItems.size() > 0 || ongoingBulkItems.size() > 0 || deliveredBulkItems.size() > 0 || pickupBulkItems.size() > 0 || positionedBulkItems.size() > 0 || departureBulkItems.size() > 0 || transitBulkItems.size() > 0 || arrivedBulkItems.size() > 0 || returnedBulkItems.size() > 0 || consolidationBulkItems.size() > 0) {
            return "String_Node_Str";
          }
        }
 else         if ("String_Node_Str".equals(orderItemEntity.getStatus())) {
          deliveredBulkItems.add(orderStatusItemId);
          if (planning1BulkItems.size() > 0 || planning2BulkItems.size() > 0 || planning3BulkItems.size() > 0 || ongoingBulkItems.size() > 0 || pickupBulkItems.size() > 0 || positionedBulkItems.size() > 0 || departureBulkItems.size() > 0 || transitBulkItems.size() > 0 || arrivedBulkItems.size() > 0 || returnedBulkItems.size() > 0 || consolidationBulkItems.size() > 0) {
            return "String_Node_Str";
          }
        }
 else         if ("String_Node_Str".equals(orderItemEntity.getStatus())) {
          pickupBulkItems.add(orderStatusItemId);
          if (planning1BulkItems.size() > 0 || planning2BulkItems.size() > 0 || planning3BulkItems.size() > 0 || deliveredBulkItems.size() > 0 || ongoingBulkItems.size() > 0 || positionedBulkItems.size() > 0 || departureBulkItems.size() > 0 || transitBulkItems.size() > 0 || arrivedBulkItems.size() > 0 || returnedBulkItems.size() > 0 || consolidationBulkItems.size() > 0) {
            return "String_Node_Str";
          }
        }
 else         if ("String_Node_Str".equals(orderItemEntity.getStatus())) {
          positionedBulkItems.add(orderStatusItemId);
          if (planning1BulkItems.size() > 0 || planning2BulkItems.size() > 0 || planning3BulkItems.size() > 0 || deliveredBulkItems.size() > 0 || pickupBulkItems.size() > 0 || ongoingBulkItems.size() > 0 || departureBulkItems.size() > 0 || transitBulkItems.size() > 0 || arrivedBulkItems.size() > 0 || returnedBulkItems.size() > 0 || consolidationBulkItems.size() > 0) {
            return "String_Node_Str";
          }
        }
 else         if ("String_Node_Str".equals(orderItemEntity.getStatus())) {
          departureBulkItems.add(orderStatusItemId);
          if (planning1BulkItems.size() > 0 || planning2BulkItems.size() > 0 || planning3BulkItems.size() > 0 || deliveredBulkItems.size() > 0 || pickupBulkItems.size() > 0 || positionedBulkItems.size() > 0 || ongoingBulkItems.size() > 0 || transitBulkItems.size() > 0 || arrivedBulkItems.size() > 0 || returnedBulkItems.size() > 0 || consolidationBulkItems.size() > 0) {
            return "String_Node_Str";
          }
        }
 else         if ("String_Node_Str".equals(orderItemEntity.getStatus())) {
          transitBulkItems.add(orderStatusItemId);
          if (planning1BulkItems.size() > 0 || planning2BulkItems.size() > 0 || planning3BulkItems.size() > 0 || deliveredBulkItems.size() > 0 || pickupBulkItems.size() > 0 || positionedBulkItems.size() > 0 || departureBulkItems.size() > 0 || ongoingBulkItems.size() > 0 || arrivedBulkItems.size() > 0 || returnedBulkItems.size() > 0 || consolidationBulkItems.size() > 0) {
            return "String_Node_Str";
          }
        }
 else         if ("String_Node_Str".equals(orderItemEntity.getStatus())) {
          arrivedBulkItems.add(orderStatusItemId);
          if (planning1BulkItems.size() > 0 || planning2BulkItems.size() > 0 || planning3BulkItems.size() > 0 || deliveredBulkItems.size() > 0 || pickupBulkItems.size() > 0 || positionedBulkItems.size() > 0 || departureBulkItems.size() > 0 || transitBulkItems.size() > 0 || ongoingBulkItems.size() > 0 || returnedBulkItems.size() > 0 || consolidationBulkItems.size() > 0) {
            return "String_Node_Str";
          }
        }
 else         if ("String_Node_Str".equals(orderItemEntity.getStatus())) {
          returnedBulkItems.add(orderStatusItemId);
          if (planning1BulkItems.size() > 0 || planning2BulkItems.size() > 0 || planning3BulkItems.size() > 0 || deliveredBulkItems.size() > 0 || pickupBulkItems.size() > 0 || positionedBulkItems.size() > 0 || departureBulkItems.size() > 0 || transitBulkItems.size() > 0 || arrivedBulkItems.size() > 0 || ongoingBulkItems.size() > 0 || consolidationBulkItems.size() > 0) {
            return "String_Node_Str";
          }
        }
 else         if ("String_Node_Str".equals(orderItemEntity.getStatus())) {
          consolidationBulkItems.add(orderStatusItemId);
          if (planning1BulkItems.size() > 0 || planning2BulkItems.size() > 0 || planning3BulkItems.size() > 0 || deliveredBulkItems.size() > 0 || pickupBulkItems.size() > 0 || positionedBulkItems.size() > 0 || departureBulkItems.size() > 0 || transitBulkItems.size() > 0 || arrivedBulkItems.size() > 0 || returnedBulkItems.size() > 0 || ongoingBulkItems.size() > 0) {
            return "String_Node_Str";
          }
        }
      }
      Orders orderEntity=orderService.findOrdersById(orderStatusLogsService.findOrderItemById((Integer)sessionAttributes.get("String_Node_Str")).getOrderId());
      sessionAttributes.put("String_Node_Str",check);
      order=transformToOrderFormBean(orderEntity);
      nameSizeList=new ArrayList<String>();
      for (int x=0; x < check.length; x++) {
        OrderItems orderItemEntity=orderStatusLogsService.findOrderItemById(Integer.parseInt(check[x]));
        nameSizeList.add(orderItemEntity.getNameSize());
      }
      if (orderEntity.getServiceType().equals("String_Node_Str") || orderEntity.getServiceType().equals("String_Node_Str")) {
        if (orderEntity.getServiceMode().equals("String_Node_Str") || orderEntity.getServiceMode().equals("String_Node_Str")) {
          allFreightStatusList.add("String_Node_Str");
          allFreightStatusList.add("String_Node_Str");
          allFreightStatusList.add("String_Node_Str");
          allFreightStatusList.add("String_Node_Str");
        }
        if (orderEntity.getServiceRequirement().equals("String_Node_Str")) {
          allFreightStatusList.add("String_Node_Str");
        }
        allFreightStatusList.add("String_Node_Str");
        allFreightStatusList.add("String_Node_Str");
        allFreightStatusList.add("String_Node_Str");
        allFreightStatusList.add("String_Node_Str");
        if (orderEntity.getServiceMode().equals("String_Node_Str") || orderEntity.getServiceMode().equals("String_Node_Str")) {
          allFreightStatusList.add("String_Node_Str");
          allFreightStatusList.add("String_Node_Str");
          allFreightStatusList.add("String_Node_Str");
        }
      }
 else {
        if (orderEntity.getServiceMode().equals("String_Node_Str")) {
          allFreightStatusList.add("String_Node_Str");
          allFreightStatusList.add("String_Node_Str");
          allFreightStatusList.add("String_Node_Str");
          allFreightStatusList.add("String_Node_Str");
        }
 else         if (orderEntity.getServiceMode().equals("String_Node_Str")) {
          allFreightStatusList.add("String_Node_Str");
          allFreightStatusList.add("String_Node_Str");
          allFreightStatusList.add("String_Node_Str");
        }
 else {
          allFreightStatusList.add("String_Node_Str");
          allFreightStatusList.add("String_Node_Str");
          allFreightStatusList.add("String_Node_Str");
          allFreightStatusList.add("String_Node_Str");
          allFreightStatusList.add("String_Node_Str");
          allFreightStatusList.add("String_Node_Str");
          allFreightStatusList.add("String_Node_Str");
        }
      }
      for (int x=0; x < check.length; x++) {
        OrderItems orderItemsListing=orderService.findOrderItemByOrderItemId(Integer.parseInt(check[x]));
        orderItemListings.add(transformToOrderItemFormBean(orderItemsListing));
      }
      sessionAttributes.put("String_Node_Str",nameSizeList);
    }
  }
  return "String_Node_Str";
}