Program: 78427
Project: 78427
Buggy source:
public GUINewAssignment(Date date,String email){
  setTitle("String_Node_Str");
  setSize(WIDTH,HEIGHT);
  setLocation((screenSize.width - getWidth()) / 2,(screenSize.height - getHeight()) / 2);
  setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
  setResizable(false);
  setLayout(new BorderLayout());
  this.date=date;
  this.email=email;
  strDate=dateToString(date);
  newAssignmentBox=new NewAssignmentBox(strDate);
  customerProxy=new CustomerProxy(email);
  initComponents(newAssignmentBox);
  ActionListener actionListener=new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      String fromDay=String.valueOf(newAssignmentBox.getFromDayLabel().getText());
      String fromMonth=String.valueOf(newAssignmentBox.getFromMonthLabel().getText());
      String fromYear=String.valueOf(newAssignmentBox.getFromYearLabel().getText());
      String fromHour=String.valueOf(newAssignmentBox.getFhourList().getSelectedItem());
      String fromMinute=String.valueOf(newAssignmentBox.getFminuteList().getSelectedItem());
      String day=String.valueOf(newAssignmentBox.getTdayList().getSelectedItem());
      String month=String.valueOf(newAssignmentBox.getTmonthList().getSelectedItem());
      String year=String.valueOf(newAssignmentBox.getTyearList().getSelectedItem());
      String toHour=String.valueOf(newAssignmentBox.getThourList().getSelectedItem());
      String toMinute=String.valueOf(newAssignmentBox.getTminuteList().getSelectedItem());
      SimpleDateFormat simpleDateFormat=new SimpleDateFormat("String_Node_Str");
      Date dateStart=new Date();
      Date dateEnd=new Date();
      try {
        dateStart=simpleDateFormat.parse(fromDay + "String_Node_Str" + fromMonth+ "String_Node_Str"+ fromYear+ "String_Node_Str"+ fromHour+ "String_Node_Str"+ fromMinute);
        dateEnd=simpleDateFormat.parse(day + "String_Node_Str" + month+ "String_Node_Str"+ year+ "String_Node_Str"+ toHour+ "String_Node_Str"+ toMinute);
      }
 catch (      ParseException e1) {
        e1.printStackTrace();
      }
      String countryText=String.valueOf(country.getField().getText().toUpperCase());
      String cityText=String.valueOf(city.getField().getText().toUpperCase());
      String capText=String.valueOf(cap.getField().getText().toUpperCase());
      String addressText=String.valueOf(address.getField().getText().toUpperCase());
      String numberText=String.valueOf(number.getField().getText().toUpperCase());
      Address meetingPoint=new Address(countryText,cityText,addressText,numberText,capText);
      HashSet<Dog> dogsSelected=new HashSet<>();
      for (      NewAssignmentCheckBox newAssignmentCheckBox : listCheckbox) {
        if (newAssignmentCheckBox.getCheckBox().isSelected()) {
          dogsSelected.add(newAssignmentCheckBox.getDogFromJCheckBox(newAssignmentCheckBox.getCheckBox().getText(),dogList));
        }
      }
      for (      Dog dog : dogsSelected) {
        System.out.println("String_Node_Str" + dog.getName());
      }
      if (radioButtonCash.isSelected()) {
        paymentMethod=true;
      }
 else       if (radioButtonCreditCard.isSelected()) {
        paymentMethod=false;
      }
      dogsittersMailList=customerProxy.search(dateStart,dateEnd,meetingPoint,dogsSelected,paymentMethod);
      if (dateStart.after(dateEnd)) {
        JOptionPane.showMessageDialog(new JFrame(),"String_Node_Str","String_Node_Str",JOptionPane.ERROR_MESSAGE);
      }
 else switch (month) {
case ("String_Node_Str"):
{
          if (Integer.parseInt(year) % 4 != 0) {
            if (day.equals("String_Node_Str") || day.equals("String_Node_Str") || day.equals("String_Node_Str")) {
              JOptionPane.showMessageDialog(new JFrame(),"String_Node_Str","String_Node_Str",JOptionPane.ERROR_MESSAGE);
              break;
            }
          }
          if (Integer.parseInt(year) % 4 == 0) {
            if (day.equals("String_Node_Str") || day.equals("String_Node_Str")) {
              JOptionPane.showMessageDialog(new JFrame(),"String_Node_Str","String_Node_Str",JOptionPane.ERROR_MESSAGE);
              break;
            }
          }
        }
case ("String_Node_Str"):
{
        if (day.equals("String_Node_Str")) {
          JOptionPane.showMessageDialog(new JFrame(),"String_Node_Str","String_Node_Str",JOptionPane.ERROR_MESSAGE);
          break;
        }
      }
case ("String_Node_Str"):
{
      if (day.equals("String_Node_Str")) {
        JOptionPane.showMessageDialog(new JFrame(),"String_Node_Str","String_Node_Str",JOptionPane.ERROR_MESSAGE);
        break;
      }
    }
case ("String_Node_Str"):
{
    if (day.equals("String_Node_Str")) {
      JOptionPane.showMessageDialog(new JFrame(),"String_Node_Str","String_Node_Str",JOptionPane.ERROR_MESSAGE);
      break;
    }
  }
case ("String_Node_Str"):
{
  if (day.equals("String_Node_Str")) {
    JOptionPane.showMessageDialog(new JFrame(),"String_Node_Str","String_Node_Str",JOptionPane.ERROR_MESSAGE);
    break;
  }
}
default :
{
if (dogsittersMailList.isEmpty()) {
  JOptionPane.showMessageDialog(new JFrame(),"String_Node_Str","String_Node_Str",JOptionPane.ERROR_MESSAGE);
}
 else {
  guiChooseDogsitter=new GUIChooseDogsitter(dogsittersMailList,dateStart,dateEnd,dogsSelected,meetingPoint,paymentMethod,email);
  guiChooseDogsitter.setVisible(true);
}
}
}
}
}
;
ActionListener actionListener1=new ActionListener(){
@Override public void actionPerformed(ActionEvent e){
dispose();
}
}
;
buttonCancel.addActionListener(actionListener1);
buttonSearch.addActionListener(actionListener);
}

Fixed version (ground truth):
public GUINewAssignment(Date date,String email){
  setTitle("String_Node_Str");
  setSize(WIDTH,HEIGHT);
  setLocation((screenSize.width - getWidth()) / 2,(screenSize.height - getHeight()) / 2);
  setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
  setResizable(false);
  setLayout(new BorderLayout());
  this.date=date;
  this.email=email;
  strDate=dateToString(date);
  newAssignmentBox=new NewAssignmentBox(strDate);
  customerProxy=new CustomerProxy(email);
  initComponents(newAssignmentBox);
  ActionListener actionListener=new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      String fromDay=String.valueOf(newAssignmentBox.getFromDayLabel().getText());
      String fromMonth=String.valueOf(newAssignmentBox.getFromMonthLabel().getText());
      String fromYear=String.valueOf(newAssignmentBox.getFromYearLabel().getText());
      String fromHour=String.valueOf(newAssignmentBox.getFhourList().getSelectedItem());
      String fromMinute=String.valueOf(newAssignmentBox.getFminuteList().getSelectedItem());
      String day=String.valueOf(newAssignmentBox.getTdayList().getSelectedItem());
      String month=String.valueOf(newAssignmentBox.getTmonthList().getSelectedItem());
      String year=String.valueOf(newAssignmentBox.getTyearList().getSelectedItem());
      String toHour=String.valueOf(newAssignmentBox.getThourList().getSelectedItem());
      String toMinute=String.valueOf(newAssignmentBox.getTminuteList().getSelectedItem());
      SimpleDateFormat simpleDateFormat=new SimpleDateFormat("String_Node_Str");
      Date dateStart=new Date();
      Date dateEnd=new Date();
      try {
        dateStart=simpleDateFormat.parse(fromDay + "String_Node_Str" + fromMonth+ "String_Node_Str"+ fromYear+ "String_Node_Str"+ fromHour+ "String_Node_Str"+ fromMinute);
        dateEnd=simpleDateFormat.parse(day + "String_Node_Str" + month+ "String_Node_Str"+ year+ "String_Node_Str"+ toHour+ "String_Node_Str"+ toMinute);
      }
 catch (      ParseException e1) {
        e1.printStackTrace();
      }
      String countryText=String.valueOf(country.getField().getText().toUpperCase());
      String cityText=String.valueOf(city.getField().getText().toUpperCase());
      String capText=String.valueOf(cap.getField().getText().toUpperCase());
      String addressText=String.valueOf(address.getField().getText().toUpperCase());
      String numberText=String.valueOf(number.getField().getText().toUpperCase());
      Address meetingPoint=new Address(countryText,cityText,addressText,numberText,capText);
      HashSet<Dog> dogsSelected=new HashSet<>();
      for (      NewAssignmentCheckBox newAssignmentCheckBox : listCheckbox) {
        if (newAssignmentCheckBox.getCheckBox().isSelected()) {
          dogsSelected.add(newAssignmentCheckBox.getDogFromJCheckBox(newAssignmentCheckBox.getCheckBox().getText(),dogList));
        }
      }
      for (      Dog dog : dogsSelected) {
        System.out.println("String_Node_Str" + dog.getName());
      }
      System.out.println(dogsSelected.size());
      if (radioButtonCash.isSelected()) {
        paymentMethod=true;
      }
 else       if (radioButtonCreditCard.isSelected()) {
        paymentMethod=false;
      }
      if (dateStart.after(dateEnd)) {
        JOptionPane.showMessageDialog(new JFrame(),"String_Node_Str","String_Node_Str",JOptionPane.ERROR_MESSAGE);
      }
 else       if (dogsSelected.size() == 0) {
        JOptionPane.showMessageDialog(new JFrame(),"String_Node_Str","String_Node_Str",JOptionPane.ERROR_MESSAGE);
      }
 else       if (!radioButtonCash.isSelected() && !radioButtonCreditCard.isSelected()) {
        JOptionPane.showMessageDialog(new JFrame(),"String_Node_Str","String_Node_Str",JOptionPane.ERROR_MESSAGE);
      }
 else switch (month) {
case ("String_Node_Str"):
{
          if (Integer.parseInt(year) % 4 != 0) {
            if (day.equals("String_Node_Str") || day.equals("String_Node_Str") || day.equals("String_Node_Str")) {
              JOptionPane.showMessageDialog(new JFrame(),"String_Node_Str","String_Node_Str",JOptionPane.ERROR_MESSAGE);
              break;
            }
          }
          if (Integer.parseInt(year) % 4 == 0) {
            if (day.equals("String_Node_Str") || day.equals("String_Node_Str")) {
              JOptionPane.showMessageDialog(new JFrame(),"String_Node_Str","String_Node_Str",JOptionPane.ERROR_MESSAGE);
              break;
            }
          }
        }
case ("String_Node_Str"):
{
        if (day.equals("String_Node_Str")) {
          JOptionPane.showMessageDialog(new JFrame(),"String_Node_Str","String_Node_Str",JOptionPane.ERROR_MESSAGE);
          break;
        }
      }
case ("String_Node_Str"):
{
      if (day.equals("String_Node_Str")) {
        JOptionPane.showMessageDialog(new JFrame(),"String_Node_Str","String_Node_Str",JOptionPane.ERROR_MESSAGE);
        break;
      }
    }
case ("String_Node_Str"):
{
    if (day.equals("String_Node_Str")) {
      JOptionPane.showMessageDialog(new JFrame(),"String_Node_Str","String_Node_Str",JOptionPane.ERROR_MESSAGE);
      break;
    }
  }
case ("String_Node_Str"):
{
  if (day.equals("String_Node_Str")) {
    JOptionPane.showMessageDialog(new JFrame(),"String_Node_Str","String_Node_Str",JOptionPane.ERROR_MESSAGE);
    break;
  }
}
default :
{
dogsittersMailList=customerProxy.search(dateStart,dateEnd,meetingPoint,dogsSelected,paymentMethod);
if (dogsittersMailList.isEmpty()) {
  JOptionPane.showMessageDialog(new JFrame(),"String_Node_Str","String_Node_Str",JOptionPane.ERROR_MESSAGE);
}
 else {
  guiChooseDogsitter=new GUIChooseDogsitter(dogsittersMailList,dateStart,dateEnd,dogsSelected,meetingPoint,paymentMethod,email);
  guiChooseDogsitter.setVisible(true);
}
}
}
}
}
;
ActionListener actionListener1=new ActionListener(){
@Override public void actionPerformed(ActionEvent e){
dispose();
}
}
;
buttonCancel.addActionListener(actionListener1);
buttonSearch.addActionListener(actionListener);
}