nus-yam/ex-repair huggingface dataset:
Program: 78422
Project: 78422
Buggy source:
public HashSet<String> search(Date dateStart,Date dateEnd,Address meetingPoint,HashSet<Dog> dogList,boolean cash){
  loadDogSitterList();
  SimpleDateFormat dateNumDayOfWeek=new SimpleDateFormat("String_Node_Str");
  int nStartDay=Integer.parseInt(dateNumDayOfWeek.format(dateStart));
  int nEndDay=Integer.parseInt(dateNumDayOfWeek.format(dateEnd));
  searchStep0(meetingPoint);
  searchStep1(dateStart,dateEnd,nStartDay,nEndDay);
  searchStep2(dateStart,dateEnd,nStartDay,nEndDay);
  searchStep3(dogList);
  searchStep4(dogList);
  searchStep5(dateStart,dateEnd,dogList);
  searchStep6(cash);
  System.out.println("String_Node_Str");
  if (dogSitterSearchList.size() != 0) {
    for (    DogSitter ds : dogSitterSearchList) {
      System.out.println(ds.getEmail());
    }
  }
 else {
    System.out.println("String_Node_Str");
  }
  HashSet<String> dogSitterMailList=new HashSet<String>();
  for (  DogSitter ds : dogSitterSearchList) {
    dogSitterMailList.add(ds.getEmail());
  }
  return dogSitterMailList;
}

Fixed version (ground truth):
public HashSet<String> search(Date dateStart,Date dateEnd,Address meetingPoint,HashSet<Dog> dogList,boolean cash){
  loadDogSitterList();
  SimpleDateFormat dateNumDayOfWeek=new SimpleDateFormat("String_Node_Str");
  int nStartDay=Integer.parseInt(dateNumDayOfWeek.format(dateStart));
  int nEndDay=Integer.parseInt(dateNumDayOfWeek.format(dateEnd));
  searchStep0(meetingPoint);
  searchStep1(dateStart,dateEnd,nStartDay,nEndDay);
  searchStep2(dateStart,dateEnd,nStartDay,nEndDay);
  searchStep3(dogList);
  searchStep4(dogList);
  searchStep5(dateStart,dateEnd);
  searchStep6(cash);
  System.out.println("String_Node_Str");
  if (dogSitterSearchList.size() != 0) {
    for (    DogSitter ds : dogSitterSearchList) {
      System.out.println(ds.getEmail());
    }
  }
 else {
    System.out.println("String_Node_Str");
  }
  HashSet<String> dogSitterMailList=new HashSet<String>();
  for (  DogSitter ds : dogSitterSearchList) {
    dogSitterMailList.add(ds.getEmail());
  }
  return dogSitterMailList;
}
Program: 78423
Project: 78423
Buggy source:
private void searchStep5(Date dateStart,Date dateEnd,HashSet<Dog> dogList){
  HashSet<DogSitter> toRemove=new HashSet<DogSitter>();
  for (  DogSitter ds : dogSitterSearchList) {
    HashMap<Integer,Assignment> listAssignment=ds.getAssignmentList();
    for (    Integer key : listAssignment.keySet()) {
      Assignment a=listAssignment.get(key);
      if (((dateStart.after(a.getDateStart()) || dateStart.equals(a.getDateStart())) && (dateStart.before(a.getDateStart()) || dateStart.equals(a.getDateStart()))) || ((dateEnd.after(a.getDateEnd()) || dateEnd.equals(a.getDateEnd())) && (dateEnd.before(a.getDateEnd()) || dateEnd.equals(a.getDateEnd())))) {
        toRemove.add(ds);
      }
    }
  }
  for (  DogSitter ds : toRemove) {
    dogSitterSearchList.remove(ds);
  }
}

Fixed version (ground truth):
private void searchStep5(Date dateStart,Date dateEnd){
  HashSet<DogSitter> toRemove=new HashSet<DogSitter>();
  for (  DogSitter ds : dogSitterSearchList) {
    HashMap<Integer,Assignment> listAssignment=ds.getAssignmentList();
    for (    Integer key : listAssignment.keySet()) {
      Assignment a=listAssignment.get(key);
      if (((dateStart.after(a.getDateStart()) || dateStart.equals(a.getDateStart())) && (dateStart.before(a.getDateStart()) || dateStart.equals(a.getDateStart()))) || ((dateEnd.after(a.getDateEnd()) || dateEnd.equals(a.getDateEnd())) && (dateEnd.before(a.getDateEnd()) || dateEnd.equals(a.getDateEnd())))) {
        toRemove.add(ds);
      }
    }
  }
  for (  DogSitter ds : toRemove) {
    dogSitterSearchList.remove(ds);
  }
}
Program: 78424
Project: 78424
Buggy source:
public HashMap<Integer,Assignment> getAssignmentList(){
  Singleton singleton=new Singleton();
  return singleton.getCustomerListAssignmentFromDB(email);
}

Fixed version (ground truth):
public HashMap<Integer,Assignment> getAssignmentList(){
  Singleton singleton=new Singleton();
  return singleton.getDogSitterListAssignmentFromDB(email);
}
Program: 78425
Project: 78425
Buggy source:
public static void main(String[] args){
  CustomerProxy proxyLogin=new CustomerProxy();
  if (proxyLogin.customerAccessDataVerifier("String_Node_Str","String_Node_Str")) {
    System.out.println("String_Node_Str");
  }
 else {
    System.out.println("String_Node_Str");
  }
  CustomerProxy proxy=new CustomerProxy("String_Node_Str");
  HashMap<Integer,Assignment> assignmentList=proxy.getAssignmentList();
  SimpleDateFormat dateFormat=new SimpleDateFormat("String_Node_Str");
  Date birthdate=new Date();
  try {
    birthdate=dateFormat.parse("String_Node_Str");
  }
 catch (  ParseException e) {
    e.printStackTrace();
  }
  HashSet<Dog> selectedDogs=new HashSet<Dog>(2);
  Singleton singleton=new Singleton();
  Dog d=singleton.createDogFromDB(3);
  selectedDogs.add(d);
  d=singleton.createDogFromDB(4);
  selectedDogs.add(d);
  Date start=new Date();
  Date end=new Date();
  SimpleDateFormat dateFormat2=new SimpleDateFormat("String_Node_Str");
  try {
    start=dateFormat2.parse("String_Node_Str");
    end=dateFormat2.parse("String_Node_Str");
  }
 catch (  ParseException e) {
    e.printStackTrace();
  }
  System.out.println("String_Node_Str");
  proxy.search(start,end,new Address("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"),selectedDogs,false);
  proxy.estimatePriceAssignment(selectedDogs,start,end);
  proxy.addAssignment("String_Node_Str",start,end,selectedDogs,new Address("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"),true);
}

Fixed version (ground truth):
public static void main(String[] args){
  CustomerProxy proxyLogin=new CustomerProxy();
  if (proxyLogin.customerAccessDataVerifier("String_Node_Str","String_Node_Str")) {
    System.out.println("String_Node_Str");
  }
 else {
    System.out.println("String_Node_Str");
  }
  CustomerProxy proxy=new CustomerProxy("String_Node_Str");
  HashMap<Integer,Assignment> assignmentList=proxy.getAssignmentList();
  SimpleDateFormat dateFormat=new SimpleDateFormat("String_Node_Str");
  Date birthdate=new Date();
  try {
    birthdate=dateFormat.parse("String_Node_Str");
  }
 catch (  ParseException e) {
    e.printStackTrace();
  }
  HashSet<Dog> selectedDogs=new HashSet<Dog>(2);
  Singleton singleton=new Singleton();
  Dog d=singleton.createDogFromDB(3);
  selectedDogs.add(d);
  d=singleton.createDogFromDB(4);
  selectedDogs.add(d);
  Date start=new Date();
  Date end=new Date();
  SimpleDateFormat dateFormat2=new SimpleDateFormat("String_Node_Str");
  try {
    start=dateFormat2.parse("String_Node_Str");
    end=dateFormat2.parse("String_Node_Str");
  }
 catch (  ParseException e) {
    e.printStackTrace();
  }
  System.out.println("String_Node_Str");
  proxy.search(start,end,new Address("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"),selectedDogs,false);
  proxy.estimatePriceAssignment(selectedDogs,start,end);
}
Program: 78426
Project: 78426
Buggy source:
public static void main(String[] args){
  DogSitterProxy proxy=new DogSitterProxy("String_Node_Str");
  DogSitterProxy proxyLogin=new DogSitterProxy();
  System.out.println("String_Node_Str" + proxyLogin.dogSitterAccessDataVerifier("String_Node_Str","String_Node_Str"));
  System.out.println("String_Node_Str" + proxyLogin.dogSitterAccessDataVerifier("String_Node_Str","String_Node_Str"));
  HashMap<Integer,Assignment> listAssignment=proxy.getAssignmentList();
  Assignment a=listAssignment.get(1);
  System.out.println(a.getDateStart());
  System.out.println(proxy.getCustomerNameOfAssignment(1));
  System.out.println(proxy.getCustomerSurnameOfAssignment(1));
  System.out.println(proxy.getReview(1));
  proxy.getName();
  proxy.getSurname();
  proxy.getPassword();
  proxy.getPhoneNumber();
  proxy.getDateOfBirth();
  proxy.getAddress();
  proxy.getPaymentMethod();
  System.out.println(proxy.getDogsNumber());
  Area area=proxy.getArea();
  area.printPlaces();
  System.out.println(proxy.isAcceptingCash());
  HashSet<DogSize> listDogSize=proxy.getListDogSize();
  System.out.println("String_Node_Str");
  for (  DogSize ds : listDogSize) {
    System.out.println(ds);
  }
  Availability availability=new Availability();
  String strTime1="String_Node_Str";
  String strTime2="String_Node_Str";
  String strTime3="String_Node_Str";
  String strTime4="String_Node_Str";
  String strTime5="String_Node_Str";
  String strTime6="String_Node_Str";
  String strTime7="String_Node_Str";
  String strTime8="String_Node_Str";
  String strTime0="String_Node_Str";
  Time time1=Time.valueOf(strTime1);
  Time time2=Time.valueOf(strTime3);
  Time time5=Time.valueOf(strTime5);
  Time time7=Time.valueOf(strTime7);
  Time time8=Time.valueOf(strTime8);
  availability.setDayAvailability(new WorkingTime(time1,time2),WeekDays.MON);
  availability.setDayAvailability(new WorkingTime(time7,time8),WeekDays.TUE);
  availability.setDayAvailability(new WorkingTime(Time.valueOf(strTime5),Time.valueOf(strTime7)),WeekDays.WED);
  availability.setDayAvailability(new WorkingTime(Time.valueOf(strTime1),Time.valueOf(strTime8)),WeekDays.THU);
  availability.setDayAvailability(new WorkingTime(Time.valueOf(strTime3),Time.valueOf(strTime6)),WeekDays.FRI);
  availability.setDayAvailability(new WorkingTime(Time.valueOf(strTime3),Time.valueOf(strTime4)),WeekDays.SAT);
  availability.setDayAvailability(new WorkingTime(Time.valueOf(strTime0),Time.valueOf(strTime0)),WeekDays.SUN);
  proxy.updateDateTimeAvailability(availability);
}

Fixed version (ground truth):
public static void main(String[] args){
  DogSitterProxy proxy=new DogSitterProxy("String_Node_Str");
  DogSitterProxy proxyLogin=new DogSitterProxy();
  System.out.println("String_Node_Str" + proxyLogin.dogSitterAccessDataVerifier("String_Node_Str","String_Node_Str"));
  System.out.println("String_Node_Str" + proxyLogin.dogSitterAccessDataVerifier("String_Node_Str","String_Node_Str"));
  HashMap<Integer,Assignment> listAssignment=proxy.getAssignmentList();
  for (  Integer key : listAssignment.keySet()) {
    Assignment a=listAssignment.get(key);
    System.out.println(a.getCode());
  }
}
Program: 78429
Project: 78429
Buggy source:
private void searchStep5(Date dateStart,Date dateEnd){
  HashSet<DogSitter> toRemove=new HashSet<DogSitter>();
  for (  DogSitter ds : dogSitterSearchList) {
    HashMap<Integer,Assignment> listAssignment=ds.getAssignmentList();
    for (    Integer key : listAssignment.keySet()) {
      Assignment a=listAssignment.get(key);
      if (((dateStart.after(a.getDateStart()) || dateStart.equals(a.getDateStart())) && (dateStart.before(a.getDateStart()) || dateStart.equals(a.getDateStart()))) || ((dateEnd.after(a.getDateEnd()) || dateEnd.equals(a.getDateEnd())) && (dateEnd.before(a.getDateEnd()) || dateEnd.equals(a.getDateEnd())))) {
        toRemove.add(ds);
      }
    }
  }
  for (  DogSitter ds : toRemove) {
    dogSitterSearchList.remove(ds);
  }
}

Fixed version (ground truth):
private void searchStep5(Date dateStart,Date dateEnd){
  HashSet<DogSitter> toRemove=new HashSet<DogSitter>();
  for (  DogSitter ds : dogSitterSearchList) {
    HashMap<Integer,Assignment> listAssignment=ds.getAssignmentList();
    for (    Integer key : listAssignment.keySet()) {
      Assignment a=listAssignment.get(key);
      if (((dateStart.after(a.getDateStart()) || dateStart.equals(a.getDateStart())) && (dateEnd.before(a.getDateEnd()) || dateEnd.equals(a.getDateEnd()))) || ((dateStart.before(a.getDateStart()) || dateStart.equals(a.getDateStart())) && (dateEnd.after(a.getDateEnd()) || dateEnd.equals(a.getDateEnd())))) {
        toRemove.add(ds);
      }
      if (dateStart.before(a.getDateStart()) && (dateEnd.after(a.getDateStart()) && dateEnd.before(a.getDateEnd()))) {
        toRemove.add(ds);
      }
      if (dateEnd.after(a.getDateEnd()) && (dateStart.after(a.getDateStart()) && dateStart.before(a.getDateEnd()))) {
        toRemove.add(ds);
      }
    }
  }
  for (  DogSitter ds : toRemove) {
    dogSitterSearchList.remove(ds);
  }
}
Program: 78431
Project: 78431
Buggy source:
public HashSet<String> search(Date dateStart,Date dateEnd,Address meetingPoint,HashSet<Dog> dogList,boolean cash){
  loadDogSitterList();
  SimpleDateFormat dateNumDayOfWeek=new SimpleDateFormat("String_Node_Str");
  int nStartDay=Integer.parseInt(dateNumDayOfWeek.format(dateStart));
  int nEndDay=Integer.parseInt(dateNumDayOfWeek.format(dateEnd));
  searchStep0(meetingPoint);
  searchStep1(dateStart,dateEnd,nStartDay,nEndDay);
  searchStep2(dateStart,dateEnd,nStartDay,nEndDay);
  searchStep3(dogList);
  searchStep4(dogList);
  searchStep5(dateStart,dateEnd,dogList);
  searchStep6(cash);
  System.out.println("String_Node_Str");
  for (  DogSitter ds : dogSitterSearchList) {
    System.out.println(ds.getEmail());
  }
  HashSet<String> dogSitterMailList=new HashSet<String>();
  for (  DogSitter ds : dogSitterSearchList) {
    dogSitterMailList.add(ds.getEmail());
  }
  return dogSitterMailList;
}

Fixed version (ground truth):
public HashSet<String> search(Date dateStart,Date dateEnd,Address meetingPoint,HashSet<Dog> dogList,boolean cash){
  loadDogSitterList();
  SimpleDateFormat dateNumDayOfWeek=new SimpleDateFormat("String_Node_Str");
  int nStartDay=Integer.parseInt(dateNumDayOfWeek.format(dateStart));
  int nEndDay=Integer.parseInt(dateNumDayOfWeek.format(dateEnd));
  searchStep0(meetingPoint);
  searchStep1(dateStart,dateEnd,nStartDay,nEndDay);
  searchStep2(dateStart,dateEnd,nStartDay,nEndDay);
  searchStep3(dogList);
  searchStep4(dogList);
  searchStep5(dateStart,dateEnd,dogList);
  searchStep6(cash);
  System.out.println("String_Node_Str");
  if (dogSitterSearchList.size() != 0) {
    for (    DogSitter ds : dogSitterSearchList) {
      System.out.println(ds.getEmail());
    }
  }
 else {
    System.out.println("String_Node_Str");
  }
  HashSet<String> dogSitterMailList=new HashSet<String>();
  for (  DogSitter ds : dogSitterSearchList) {
    dogSitterMailList.add(ds.getEmail());
  }
  return dogSitterMailList;
}
Program: 78432
Project: 78432
Buggy source:
public static void main(String[] args){
  CustomerProxy proxyLogin=new CustomerProxy();
  if (proxyLogin.customerAccessDataVerifier("String_Node_Str","String_Node_Str")) {
    System.out.println("String_Node_Str");
  }
 else {
    System.out.println("String_Node_Str");
  }
  CustomerProxy proxy=new CustomerProxy("String_Node_Str");
  HashMap<Integer,Assignment> assignmentList=proxy.getAssignmentList();
  SimpleDateFormat dateFormat=new SimpleDateFormat("String_Node_Str");
  Date birthdate=new Date();
  try {
    birthdate=dateFormat.parse("String_Node_Str");
  }
 catch (  ParseException e) {
    e.printStackTrace();
  }
  proxy.updateAddress("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str");
  HashSet<Dog> selectedDogs=new HashSet<Dog>(2);
  Singleton singleton=new Singleton();
  Dog d=singleton.createDogFromDB(3);
  selectedDogs.add(d);
  d=singleton.createDogFromDB(4);
  selectedDogs.add(d);
  Date start=new Date();
  Date end=new Date();
  SimpleDateFormat dateFormat2=new SimpleDateFormat("String_Node_Str");
  try {
    start=dateFormat2.parse("String_Node_Str");
    end=dateFormat2.parse("String_Node_Str");
  }
 catch (  ParseException e) {
    e.printStackTrace();
  }
  System.out.println("String_Node_Str");
  proxy.search(start,end,new Address("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"),selectedDogs,false);
  proxy.estimatePriceAssignment(selectedDogs,start,end);
  System.out.println("String_Node_Str");
  proxy.removeAssignment(5);
}

Fixed version (ground truth):
public static void main(String[] args){
  CustomerProxy proxyLogin=new CustomerProxy();
  if (proxyLogin.customerAccessDataVerifier("String_Node_Str","String_Node_Str")) {
    System.out.println("String_Node_Str");
  }
 else {
    System.out.println("String_Node_Str");
  }
  CustomerProxy proxy=new CustomerProxy("String_Node_Str");
  HashMap<Integer,Assignment> assignmentList=proxy.getAssignmentList();
  SimpleDateFormat dateFormat=new SimpleDateFormat("String_Node_Str");
  Date birthdate=new Date();
  try {
    birthdate=dateFormat.parse("String_Node_Str");
  }
 catch (  ParseException e) {
    e.printStackTrace();
  }
  HashSet<Dog> selectedDogs=new HashSet<Dog>(2);
  Singleton singleton=new Singleton();
  Dog d=singleton.createDogFromDB(3);
  selectedDogs.add(d);
  d=singleton.createDogFromDB(4);
  selectedDogs.add(d);
  Date start=new Date();
  Date end=new Date();
  SimpleDateFormat dateFormat2=new SimpleDateFormat("String_Node_Str");
  try {
    start=dateFormat2.parse("String_Node_Str");
    end=dateFormat2.parse("String_Node_Str");
  }
 catch (  ParseException e) {
    e.printStackTrace();
  }
  System.out.println("String_Node_Str");
  proxy.search(start,end,new Address("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"),selectedDogs,false);
  proxy.estimatePriceAssignment(selectedDogs,start,end);
  proxy.addAssignment("String_Node_Str",start,end,selectedDogs,new Address("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"),true);
}
Program: 78433
Project: 78433
Buggy source:
public GUIListAssignments(CalendarState cs,HashMap<Integer,Assignment> listAssignment,String email,GUICustomer guiCustomer){
  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.listAssignment=listAssignment;
  this.email=email;
  this.proxy=new CustomerProxy(email);
  initComponents(cs,guiCustomer);
}

Fixed version (ground truth):
public GUIListAssignments(CalendarState cs,HashMap<Integer,Assignment> listAssignment,String email,GUICustomer guiCustomer){
  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.listAssignment=listAssignment;
  this.email=email;
  this.proxy=new CustomerProxy(email);
  listReview=proxy.getReviewList();
  initComponents(cs,guiCustomer);
}
Program: 78434
Project: 78434
Buggy source:
public static void main(String[] args){
  CustomerProxy proxyLogin=new CustomerProxy();
  if (proxyLogin.customerAccessDataVerifier("String_Node_Str","String_Node_Str")) {
    System.out.println("String_Node_Str");
  }
 else {
    System.out.println("String_Node_Str");
  }
  CustomerProxy proxy=new CustomerProxy("String_Node_Str");
  HashMap<Integer,Assignment> assignmentList=proxy.getAssignmentList();
  proxy.getDogSitterNameOfAssignment(2);
  proxy.getDogSitterSurnameOfAssignment(2);
  proxy.getName();
  proxy.getSurname();
  proxy.getPassword();
  proxy.getPhoneNumber();
  proxy.getDateOfBirth();
  proxy.getAddress();
  proxy.getPaymentMethod();
  SimpleDateFormat dateFormat=new SimpleDateFormat("String_Node_Str");
  Date birthdate=new Date();
  try {
    birthdate=dateFormat.parse("String_Node_Str");
  }
 catch (  ParseException e) {
    e.printStackTrace();
  }
  HashSet<Dog> selectedDogs=new HashSet<Dog>(2);
  Singleton singleton=new Singleton();
  Dog d=singleton.createDogFromDB(3);
  selectedDogs.add(d);
  d=singleton.createDogFromDB(4);
  selectedDogs.add(d);
  Date start=new Date();
  Date end=new Date();
  SimpleDateFormat dateFormat2=new SimpleDateFormat("String_Node_Str");
  try {
    start=dateFormat2.parse("String_Node_Str");
    end=dateFormat2.parse("String_Node_Str");
  }
 catch (  ParseException e) {
    e.printStackTrace();
  }
  proxy.search(start,end,new Address("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"),selectedDogs,false);
  proxy.estimatePriceAssignment(selectedDogs,start,end);
  proxy.addReview(1,"String_Node_Str",4,"String_Node_Str","String_Node_Str");
  proxy.removeReview(1);
  proxy.getAssignmentList();
  System.out.println("String_Node_Str");
  proxy.getDogList();
}

Fixed version (ground truth):
public static void main(String[] args){
  CustomerProxy proxyLogin=new CustomerProxy();
  if (proxyLogin.customerAccessDataVerifier("String_Node_Str","String_Node_Str")) {
    System.out.println("String_Node_Str");
  }
 else {
    System.out.println("String_Node_Str");
  }
  CustomerProxy proxy=new CustomerProxy("String_Node_Str");
  HashMap<Integer,Assignment> assignmentList=proxy.getAssignmentList();
  System.out.println(proxy.getReview(1).getComment());
}
Program: 78437
Project: 78437
Buggy source:
public static void main(String[] args){
  CustomerProxy proxy=new CustomerProxy("String_Node_Str");
  System.out.println(proxy.getCustomerAddress().toString());
  System.out.println(proxy.getCustomerDateOfBirth());
}

Fixed version (ground truth):
public static void main(String[] args){
  CustomerProxy proxy=new CustomerProxy("String_Node_Str");
  System.out.println(proxy.getCustomerAddress().toString());
  System.out.println(proxy.getCustomerDateOfBirth());
  System.out.println(proxy.getCustomerPassword());
}
Program: 78438
Project: 78438
Buggy source:
private void cancel(){
  calendarState=CalendarState.NORMAL;
  int i;
  for (i=0; i < NDAYMONTH; i++) {
    buttonDay[i].setBackground(new Color(204,230,255));
    buttonDay[i].setEnabled(true);
  }
  menuAssignment.setVisible(true);
  menuReview.setVisible(true);
  menuSettings.setVisible(true);
  menuExtra.setVisible(true);
  menuItemCancel.setVisible(false);
  showAssignmentOnCalendar(email);
}

Fixed version (ground truth):
private void cancel(){
  calendarState=CalendarState.NORMAL;
  int i;
  for (i=0; i < NDAYMONTH; i++) {
    buttonDay[i].setBackground(new Color(204,230,255));
    buttonDay[i].setEnabled(true);
  }
  menuAssignment.setVisible(true);
  menuReview.setVisible(true);
  menuSettings.setVisible(true);
  menuExtra.setVisible(true);
  menuItemCancel.setVisible(false);
  if (!(calendarState.equals(CalendarState.ADDING)) && !(calendarState.equals(CalendarState.REMOVING))) {
    showAssignmentOnCalendar(email);
  }
}
Program: 78441
Project: 78441
Buggy source:
public Date getCustomerDateOfBirth(){
  String serverMsg=getReply("String_Node_Str" + email);
  SimpleDateFormat dateFormat=new SimpleDateFormat();
  try {
    return dateFormat.parse(serverMsg);
  }
 catch (  ParseException e) {
    e.printStackTrace();
    return null;
  }
}

Fixed version (ground truth):
public Date getCustomerDateOfBirth(){
  String serverMsg=getReply("String_Node_Str" + email);
  SimpleDateFormat dateFormat=new SimpleDateFormat("String_Node_Str");
  try {
    return dateFormat.parse(serverMsg);
  }
 catch (  ParseException e) {
    e.printStackTrace();
    return null;
  }
}
Program: 78442
Project: 78442
Buggy source:
private void setValues(){
  String strName=proxy.getCustomerName();
  textName.setText(strName);
  textName.setEditable(true);
  labelName.setLabelFor(textName);
  String strSurname=proxy.getCustomerSurname();
  textSurname.setText(strSurname);
  textSurname.setEditable(true);
  labelSurname.setLabelFor(textSurname);
  String strPhoneNumber=proxy.getCustomerPhoneNumber();
  textPhoneNumber.setText(strPhoneNumber);
  textPhoneNumber.setEditable(true);
  labelPhoneNumber.setLabelFor(textPhoneNumber);
}

Fixed version (ground truth):
private void setValues(){
  String strName=proxy.getCustomerName();
  textName.setText(strName);
  textName.setEditable(true);
  labelName.setLabelFor(textName);
  String strSurname=proxy.getCustomerSurname();
  textSurname.setText(strSurname);
  textSurname.setEditable(true);
  labelSurname.setLabelFor(textSurname);
  String strPhoneNumber=proxy.getCustomerPhoneNumber();
  textPhoneNumber.setText(strPhoneNumber);
  textPhoneNumber.setEditable(true);
  labelPhoneNumber.setLabelFor(textPhoneNumber);
  SimpleDateFormat dateFormat=new SimpleDateFormat("String_Node_Str");
  String strDate=dateFormat.format(proxy.getCustomerDateOfBirth());
  textDate.setText(strDate);
  textDate.setEditable(true);
  labelDate.setLabelFor(textDate);
  Address customerAddress=proxy.getCustomerAddress();
  System.out.println(customerAddress.toString());
  textAddress.setText(customerAddress.toString());
  textAddress.setEditable(true);
  labelAddress.setLabelFor(textAddress);
}
Program: 78443
Project: 78443
Buggy source:
public static void main(String[] args){
  CustomerProxy proxy=new CustomerProxy("String_Node_Str");
  SimpleDateFormat dateFormat2=new SimpleDateFormat("String_Node_Str");
  Date start=new Date();
  Date end=new Date();
  try {
    start=dateFormat2.parse("String_Node_Str");
    end=dateFormat2.parse("String_Node_Str");
  }
 catch (  ParseException e) {
    e.printStackTrace();
  }
  HashSet<Dog> selectedDogs=new HashSet<Dog>(2);
  Singleton singleton=new Singleton();
  Dog d=singleton.createDogFromDB(3);
  selectedDogs.add(d);
  d=singleton.createDogFromDB(4);
  selectedDogs.add(d);
  proxy.search(start,end,new Address("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"),selectedDogs,false);
  System.out.println("String_Node_Str" + proxy.estimatePriceAssignment(selectedDogs,start,end));
  System.out.println("String_Node_Str" + proxy.addAssignment("String_Node_Str",start,end,selectedDogs,new Address("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str")));
  System.out.println(proxy.getCustomerPaymentMethod().getNumber());
  System.out.println("String_Node_Str" + proxy.removeAssignment(100));
  System.out.println("String_Node_Str" + proxy.addReview(1,"String_Node_Str",4,"String_Node_Str","String_Node_Str","String_Node_Str"));
  System.out.println("String_Node_Str" + proxy.removeReview(1));
  HashMap<Integer,Review> reviewList=proxy.getReviewList();
  for (  Integer key : reviewList.keySet()) {
    System.out.println(reviewList.get(key).getCode());
  }
  System.out.println("String_Node_Str" + proxy.addDog("String_Node_Str","String_Node_Str","String_Node_Str",1,20));
}

Fixed version (ground truth):
public static void main(String[] args){
  CustomerProxy proxy=new CustomerProxy("String_Node_Str");
  System.out.println(proxy.getCustomerAddress().toString());
  System.out.println(proxy.getCustomerDateOfBirth());
}
Program: 78444
Project: 78444
Buggy source:
private void initComponents(){
  panelData.setLayout(new GridLayout(5,1,30,20));
  panelData.setBorder(BorderFactory.createTitledBorder("String_Node_Str"));
  panelButtons.setLayout(new GridLayout(1,2,5,0));
  panelButtons.setBorder(BorderFactory.createEmptyBorder(70,10,20,10));
  panelButtons.add(buttonCancel,BorderLayout.SOUTH);
  panelButtons.add(buttonSearch,BorderLayout.SOUTH);
  panelOut.add(panelData,BorderLayout.NORTH);
  panelOut.add(panelButtons,BorderLayout.CENTER);
  panelData.add(newAssignmentBox);
  panelData.add(address);
  panelData.add(city);
  panelData.add(code);
  panelData.add(country);
  scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
  scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
  add(scrollPane);
}

Fixed version (ground truth):
private void initComponents(){
  panelOut.setLayout(new BorderLayout());
  panelData.setLayout(new GridLayout(5,1,30,20));
  panelData.setBorder(BorderFactory.createTitledBorder("String_Node_Str"));
  panelOut.add(panelData,BorderLayout.NORTH);
  panelOut.add(panelButtons,BorderLayout.SOUTH);
  panelTest.add(buttonSearch);
  panelData.add(newAssignmentBox);
  panelData.add(address);
  panelData.add(city);
  panelData.add(code);
  panelData.add(country);
  panelButtons.setLayout(new GridLayout(1,2,5,0));
  panelButtons.setBorder(BorderFactory.createEmptyBorder(20,150,20,150));
  panelButtons.add(buttonCancel);
  panelButtons.add(buttonSearch);
  scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
  scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
  add(scrollPane);
}
Program: 78445
Project: 78445
Buggy source:
private HashSet<Dog> decodeDogList(String msg){
  StringTokenizer tokenMsg=new StringTokenizer(msg,"String_Node_Str");
  HashSet<Dog> dogList=new HashSet<Dog>();
  while (tokenMsg.hasMoreTokens()) {
    StringTokenizer tokenDog=new StringTokenizer(tokenMsg.nextToken(),"String_Node_Str");
    int ID=Integer.parseInt(tokenDog.nextToken());
    String name=tokenDog.nextToken();
    String breed=tokenDog.nextToken();
    DogSize size=DogSize.valueOf(tokenDog.nextToken());
    int age=Integer.parseInt(tokenDog.nextToken());
    double weight=Double.parseDouble(tokenDog.nextToken());
    Dog d=new Dog(name,breed,size,age,weight,ID);
    dogList.add(d);
  }
  return dogList;
}

Fixed version (ground truth):
private HashSet<Dog> decodeDogList(String msg){
  StringTokenizer tokenMsg=new StringTokenizer(msg,"String_Node_Str");
  HashSet<Dog> dogList=new HashSet<Dog>();
  int ID;
  while (tokenMsg.hasMoreTokens()) {
    StringTokenizer tokenDog=new StringTokenizer(tokenMsg.nextToken(),"String_Node_Str");
    String strID=tokenDog.nextToken();
    ID=Integer.parseInt(strID);
    String name=tokenDog.nextToken();
    String breed=tokenDog.nextToken();
    DogSize size=DogSize.valueOf(tokenDog.nextToken());
    int age=Integer.parseInt(tokenDog.nextToken());
    double weight=Double.parseDouble(tokenDog.nextToken());
    Dog d=new Dog(name,breed,size,age,weight,ID);
    dogList.add(d);
  }
  return dogList;
}
Program: 78447
Project: 78447
Buggy source:
public static String capitalizeFirstLetter(String strToCapitalize){
  if (strToCapitalize.length() > 0) {
    strToCapitalize=strToCapitalize.toLowerCase();
    return strToCapitalize.substring(0,1).toUpperCase() + strToCapitalize.substring(1,strToCapitalize.length());
  }
 else {
    return "String_Node_Str";
  }
}

Fixed version (ground truth):
public static String capitalizeFirstLetter(String strToCapitalize){
  if (strToCapitalize.length() > 0) {
    if (strToCapitalize.contains("String_Node_Str")) {
      return capitalizeFirstLetterForEachWord(strToCapitalize);
    }
    strToCapitalize=strToCapitalize.toLowerCase();
    return strToCapitalize.substring(0,1).toUpperCase() + strToCapitalize.substring(1,strToCapitalize.length());
  }
 else {
    return "String_Node_Str";
  }
}
Program: 78448
Project: 78448
Buggy source:
public PaymentMethod getCustomerPaymentMethod(){
  String serverMsg=getReply("String_Node_Str" + email);
  return decodePaymentMethodStar(serverMsg);
}

Fixed version (ground truth):
public PaymentMethod getCustomerPaymentMethod(){
  String serverMsg=getReply("String_Node_Str" + email);
  return decodePaymentMethod(serverMsg);
}
Program: 78449
Project: 78449
Buggy source:
private String getCustomerPaymentMethod(String email){
  Singleton singleton=new Singleton();
  PaymentMethod pm=singleton.createCustomerFromDB(email).getPaymentMethod();
  return pm.getNumber() + "String_Node_Str" + pm.getName()+ "String_Node_Str"+ pm.getSurname()+ "String_Node_Str"+ pm.getExpirationDate()+ "String_Node_Str"+ pm.getCvv()+ "String_Node_Str"+ pm.getAmount();
}

Fixed version (ground truth):
private String getCustomerPaymentMethod(String email){
  Singleton singleton=new Singleton();
  SimpleDateFormat dateFormat=new SimpleDateFormat("String_Node_Str");
  PaymentMethod pm=singleton.createCustomerFromDB(email).getPaymentMethod();
  String strExpiration=dateFormat.format(pm.getExpirationDate());
  return pm.getNumber() + "String_Node_Str" + pm.getName()+ "String_Node_Str"+ pm.getSurname()+ "String_Node_Str"+ strExpiration+ "String_Node_Str"+ pm.getCvv()+ "String_Node_Str"+ pm.getAmount();
}
Program: 78450
Project: 78450
Buggy source:
public HashMap<Integer,Assignment> getCustomerListAssignment(){
  String serverMsg=getReply("String_Node_Str" + email);
  StringTokenizer tokenMsg=new StringTokenizer(serverMsg,"String_Node_Str");
  HashMap<Integer,Assignment> customerListAssignment=new HashMap<Integer,Assignment>();
  while (tokenMsg.hasMoreTokens()) {
    int code=Integer.parseInt(tokenMsg.nextToken());
    HashSet<Dog> dogList=decodeDogList(tokenMsg.nextToken());
    SimpleDateFormat dateFormat=new SimpleDateFormat("String_Node_Str");
    Date dateStart=new Date();
    Date dateEnd=new Date();
    try {
      dateStart=dateFormat.parse(tokenMsg.nextToken());
      dateEnd=dateFormat.parse(tokenMsg.nextToken());
    }
 catch (    ParseException e) {
      e.printStackTrace();
    }
    boolean state;
    if (tokenMsg.nextToken().equals("String_Node_Str")) {
      state=true;
    }
 else {
      state=false;
    }
    Address meetingPoint=decodeMeetingPoint(tokenMsg.nextToken());
    Assignment a=new Assignment(code,dogList,dateStart,dateEnd,state,meetingPoint);
    customerListAssignment.put(code,a);
  }
  return customerListAssignment;
}

Fixed version (ground truth):
public HashMap<Integer,Assignment> getCustomerListAssignment(){
  String serverMsg=getReply("String_Node_Str" + email);
  System.out.println("String_Node_Str" + serverMsg);
  StringTokenizer tokenMsg=new StringTokenizer(serverMsg,"String_Node_Str");
  HashMap<Integer,Assignment> customerListAssignment=new HashMap<Integer,Assignment>();
  while (tokenMsg.hasMoreTokens()) {
    int code=Integer.parseInt(tokenMsg.nextToken());
    HashSet<Dog> dogList=decodeDogList(tokenMsg.nextToken());
    SimpleDateFormat dateFormat=new SimpleDateFormat("String_Node_Str");
    Date dateStart=new Date();
    Date dateEnd=new Date();
    try {
      dateStart=dateFormat.parse(tokenMsg.nextToken());
      dateEnd=dateFormat.parse(tokenMsg.nextToken());
    }
 catch (    ParseException e) {
      e.printStackTrace();
    }
    boolean state;
    if (tokenMsg.nextToken().equals("String_Node_Str")) {
      state=true;
    }
 else {
      state=false;
    }
    Address meetingPoint=decodeMeetingPoint(tokenMsg.nextToken());
    Assignment a=new Assignment(code,dogList,dateStart,dateEnd,state,meetingPoint);
    customerListAssignment.put(code,a);
  }
  return customerListAssignment;
}
Program: 78451
Project: 78451
Buggy source:
private String getCustomerListAssignment(String email){
  Singleton singleton=new Singleton();
  HashMap<Integer,Assignment> customerListAssignment=singleton.getCustomerListAssignmentFromDB(email);
  String msg="String_Node_Str";
  for (  Integer key : customerListAssignment.keySet()) {
    Assignment a=customerListAssignment.get(key);
    SimpleDateFormat dateFormat=new SimpleDateFormat("String_Node_Str");
    String strDateStart=dateFormat.format(a.getDateStart());
    String strDateEnd=dateFormat.format(a.getDateEnd());
    msg=msg + a.getCode() + "String_Node_Str"+ getDogListOfAssignment(a.getCode())+ "String_Node_Str"+ strDateStart+ "String_Node_Str"+ strDateEnd+ "String_Node_Str"+ a.getState()+ "String_Node_Str"+ getMeetingPoint(a.getCode())+ "String_Node_Str";
  }
  return msg;
}

Fixed version (ground truth):
private String getCustomerListAssignment(String email){
  Singleton singleton=new Singleton();
  HashMap<Integer,Assignment> customerListAssignment=singleton.getCustomerListAssignmentFromDB(email);
  String msg="String_Node_Str";
  for (  Integer key : customerListAssignment.keySet()) {
    Assignment a=customerListAssignment.get(key);
    System.out.println("String_Node_Str" + a.getDateStart());
    SimpleDateFormat dateFormat=new SimpleDateFormat("String_Node_Str");
    String strDateStart=dateFormat.format(a.getDateStart());
    String strDateEnd=dateFormat.format(a.getDateEnd());
    msg=msg + a.getCode() + "String_Node_Str"+ getDogListOfAssignment(a.getCode())+ "String_Node_Str"+ strDateStart+ "String_Node_Str"+ strDateEnd+ "String_Node_Str"+ a.getState()+ "String_Node_Str"+ getMeetingPoint(a.getCode())+ "String_Node_Str";
  }
  return msg;
}
Program: 78452
Project: 78452
Buggy source:
public HashMap<Integer,Assignment> getDogSitterListAssignmentFromDB(DogSitter dogSitter){
  HashMap<Integer,Assignment> listAssignment=new HashMap<Integer,Assignment>();
  DBConnector dbConnector=new DBConnector();
  try {
    ResultSet rs=dbConnector.askDB("String_Node_Str" + dogSitter + "String_Node_Str");
    while (rs.next()) {
      int code=rs.getInt("String_Node_Str");
      boolean state=rs.getBoolean("String_Node_Str");
      Date dateStart=rs.getDate("String_Node_Str");
      Date dateEnd=rs.getDate("String_Node_Str");
      Address meetingPoint=getMeetingPointFromDB(code);
      HashSet dogList=getDogListFromDB(code);
      Assignment assignment=new Assignment(code,dogList,dateStart,dateEnd,meetingPoint);
      listAssignment.put(code,assignment);
    }
    dbConnector.closeConnection();
    return listAssignment;
  }
 catch (  SQLException e) {
    e.printStackTrace();
    return null;
  }
}

Fixed version (ground truth):
public HashMap<Integer,Assignment> getDogSitterListAssignmentFromDB(DogSitter dogSitter){
  HashMap<Integer,Assignment> listAssignment=new HashMap<Integer,Assignment>();
  DBConnector dbConnector=new DBConnector();
  try {
    ResultSet rs=dbConnector.askDB("String_Node_Str" + dogSitter + "String_Node_Str");
    while (rs.next()) {
      int code=rs.getInt("String_Node_Str");
      boolean state=rs.getBoolean("String_Node_Str");
      Date dateStart=rs.getTimestamp("String_Node_Str");
      Date dateEnd=rs.getTimestamp("String_Node_Str");
      Address meetingPoint=getMeetingPointFromDB(code);
      HashSet dogList=getDogListFromDB(code);
      Assignment assignment=new Assignment(code,dogList,dateStart,dateEnd,meetingPoint);
      listAssignment.put(code,assignment);
    }
    dbConnector.closeConnection();
    return listAssignment;
  }
 catch (  SQLException e) {
    e.printStackTrace();
    return null;
  }
}
Program: 78453
Project: 78453
Buggy source:
public HashMap<Integer,Assignment> getCustomerListAssignmentFromDB(String customer){
  HashMap<Integer,Assignment> listAssignment=new HashMap<Integer,Assignment>();
  DBConnector dbConnector=new DBConnector();
  try {
    ResultSet rs=dbConnector.askDB("String_Node_Str" + customer + "String_Node_Str");
    while (rs.next()) {
      int code=rs.getInt("String_Node_Str");
      boolean state=rs.getBoolean("String_Node_Str");
      Date dateStart=rs.getDate("String_Node_Str");
      Date dateEnd=rs.getDate("String_Node_Str");
      Address meetingPoint=getMeetingPointFromDB(code);
      HashSet dogList=getDogListFromDB(code);
      Assignment assignment=new Assignment(code,dogList,dateStart,dateEnd,meetingPoint);
      listAssignment.put(code,assignment);
    }
    dbConnector.closeConnection();
  }
 catch (  SQLException e) {
    e.printStackTrace();
  }
  return listAssignment;
}

Fixed version (ground truth):
public HashMap<Integer,Assignment> getCustomerListAssignmentFromDB(String customer){
  HashMap<Integer,Assignment> listAssignment=new HashMap<Integer,Assignment>();
  DBConnector dbConnector=new DBConnector();
  try {
    ResultSet rs=dbConnector.askDB("String_Node_Str" + customer + "String_Node_Str");
    while (rs.next()) {
      int code=rs.getInt("String_Node_Str");
      boolean state=rs.getBoolean("String_Node_Str");
      Date dateStart=rs.getTimestamp("String_Node_Str");
      Date dateEnd=rs.getTimestamp("String_Node_Str");
      Address meetingPoint=getMeetingPointFromDB(code);
      HashSet dogList=getDogListFromDB(code);
      Assignment assignment=new Assignment(code,dogList,dateStart,dateEnd,meetingPoint);
      listAssignment.put(code,assignment);
    }
    dbConnector.closeConnection();
  }
 catch (  SQLException e) {
    e.printStackTrace();
  }
  return listAssignment;
}
Program: 78454
Project: 78454
Buggy source:
public GUICustomer(CustomerProxy cp,String email) throws ParseException {
  setTitle("String_Node_Str");
  setSize(WIDTH,HEIGHT);
  setLocation((screenSize.width - getWidth()) / 2,(screenSize.height - getHeight()) / 2);
  setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
  setResizable(false);
  setLayout(new BorderLayout());
  this.proxy=cp;
  this.email=email;
  initComponents();
}

Fixed version (ground truth):
public GUICustomer(String email) throws ParseException {
  setTitle("String_Node_Str");
  setSize(WIDTH,HEIGHT);
  setLocation((screenSize.width - getWidth()) / 2,(screenSize.height - getHeight()) / 2);
  setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
  setResizable(false);
  setLayout(new BorderLayout());
  this.email=email;
  this.proxy=new CustomerProxy(email);
  initComponents();
}
Program: 78455
Project: 78455
Buggy source:
@Override public void actionPerformed(ActionEvent ae){
  if (ae.getActionCommand().equals("String_Node_Str") && !(textUser.equals("String_Node_Str")) && !(textPwd.equals("String_Node_Str"))) {
    if (proxy.customerAccessDataVerifier(textUser.getText(),new String(textPwd.getPassword()))) {
      GUICustomer guiCustomer=null;
      try {
        guiCustomer=new GUICustomer(proxy,textUser.getText());
      }
 catch (      ParseException e) {
        System.out.println("String_Node_Str");
      }
      guiCustomer.setVisible(true);
      setVisible(false);
    }
 else {
      JOptionPane.showMessageDialog(new JFrame(),"String_Node_Str","String_Node_Str",JOptionPane.ERROR_MESSAGE);
      textUser.setText("String_Node_Str");
      textPwd.setText("String_Node_Str");
    }
  }
  if (ae.getActionCommand().equals("String_Node_Str")) {
    GUISignUp guiSignUp=new GUISignUp();
    guiSignUp.setVisible(true);
    setVisible(false);
  }
}

Fixed version (ground truth):
@Override public void actionPerformed(ActionEvent ae){
  if (ae.getActionCommand().equals("String_Node_Str") && !(textUser.equals("String_Node_Str")) && !(textPwd.equals("String_Node_Str"))) {
    if (proxy.customerAccessDataVerifier(textUser.getText(),new String(textPwd.getPassword()))) {
      GUICustomer guiCustomer=null;
      try {
        guiCustomer=new GUICustomer(textUser.getText());
      }
 catch (      ParseException e) {
        System.out.println("String_Node_Str");
      }
      guiCustomer.setVisible(true);
      setVisible(false);
    }
 else {
      JOptionPane.showMessageDialog(new JFrame(),"String_Node_Str","String_Node_Str",JOptionPane.ERROR_MESSAGE);
      textUser.setText("String_Node_Str");
      textPwd.setText("String_Node_Str");
    }
  }
  if (ae.getActionCommand().equals("String_Node_Str")) {
    GUISignUp guiSignUp=new GUISignUp();
    guiSignUp.setVisible(true);
    setVisible(false);
  }
}
Program: 78457
Project: 78457
Buggy source:
public static void main(String[] args){
  CustomerProxy proxy=new CustomerProxy("String_Node_Str");
  SimpleDateFormat dateFormat2=new SimpleDateFormat("String_Node_Str");
  Date start=new Date();
  Date end=new Date();
  try {
    start=dateFormat2.parse("String_Node_Str");
    end=dateFormat2.parse("String_Node_Str");
  }
 catch (  ParseException e) {
    e.printStackTrace();
  }
  HashSet<Dog> selectedDogs=new HashSet<Dog>(2);
  Singleton singleton=new Singleton();
  Dog d=singleton.createDogFromDB(3);
  selectedDogs.add(d);
  d=singleton.createDogFromDB(4);
  selectedDogs.add(d);
  proxy.search(start,end,new Address("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"),selectedDogs,false);
  System.out.println("String_Node_Str" + proxy.estimatePriceAssignment(selectedDogs,start,end));
}

Fixed version (ground truth):
public static void main(String[] args){
  CustomerProxy proxy=new CustomerProxy("String_Node_Str");
  SimpleDateFormat dateFormat2=new SimpleDateFormat("String_Node_Str");
  Date start=new Date();
  Date end=new Date();
  try {
    start=dateFormat2.parse("String_Node_Str");
    end=dateFormat2.parse("String_Node_Str");
  }
 catch (  ParseException e) {
    e.printStackTrace();
  }
  HashSet<Dog> selectedDogs=new HashSet<Dog>(2);
  Singleton singleton=new Singleton();
  Dog d=singleton.createDogFromDB(3);
  selectedDogs.add(d);
  d=singleton.createDogFromDB(4);
  selectedDogs.add(d);
  proxy.search(start,end,new Address("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"),selectedDogs,false);
}
Program: 78461
Project: 78461
Buggy source:
private void openListAssignment(){
  GUIListAssignments guiListAssignments=new GUIListAssignments(calendarState,customer);
  guiListAssignments.setVisible(true);
}

Fixed version (ground truth):
private void openListAssignment(){
  GUIListAssignments guiListAssignments=new GUIListAssignments(calendarState,customer,this);
  guiListAssignments.setVisible(true);
}
Program: 78462
Project: 78462
Buggy source:
public GUIListAssignments(CalendarState cs,Customer customer){
  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.customer=customer;
  initComponents(cs,customer);
}

Fixed version (ground truth):
public GUIListAssignments(CalendarState cs,Customer customer,GUICustomer guiCustomer){
  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.customer=customer;
  initComponents(cs,customer,guiCustomer);
}
Program: 78463
Project: 78463
Buggy source:
private void createLabelState(Date d){
}

Fixed version (ground truth):
private void createLabelState(Assignment a){
}
Program: 78465
Project: 78465
Buggy source:
private void searchStep5(Date dateStart,Date dateEnd,HashSet<Dog> dogList){
  HashSet<DogSitter> toRemove=new HashSet<DogSitter>();
  for (  DogSitter ds : dogSitterList) {
    HashMap<String,Assignment> listAssignment=ds.getListAssignment();
    for (    String key : listAssignment.keySet()) {
      Assignment a=listAssignment.get(key);
      if ((dateStart.after(a.getDateStart()) && dateStart.before(a.getDateStart())) || (dateEnd.after(a.getDateEnd()) && dateEnd.before(a.getDateEnd()))) {
        toRemove.add(ds);
      }
    }
  }
  for (  DogSitter ds : toRemove) {
    dogSitterList.remove(ds);
  }
}

Fixed version (ground truth):
private void searchStep5(Date dateStart,Date dateEnd,HashSet<Dog> dogList){
  HashSet<DogSitter> toRemove=new HashSet<DogSitter>();
  for (  DogSitter ds : dogSitterList) {
    HashMap<String,Assignment> listAssignment=ds.getListAssignment();
    for (    String key : listAssignment.keySet()) {
      Assignment a=listAssignment.get(key);
      if (((dateStart.after(a.getDateStart()) || dateStart.equals(a.getDateStart())) && (dateStart.before(a.getDateStart()) || dateStart.equals(a.getDateStart()))) || ((dateEnd.after(a.getDateEnd()) || dateEnd.equals(a.getDateEnd())) && (dateEnd.before(a.getDateEnd()) || dateEnd.equals(a.getDateEnd())))) {
        toRemove.add(ds);
      }
    }
  }
  for (  DogSitter ds : toRemove) {
    dogSitterList.remove(ds);
  }
}
Program: 78467
Project: 78467
Buggy source:
public static void main(String[] args){
  Bank bank=new Bank(0);
  bank.makeBankTransaction("String_Node_Str","String_Node_Str",1000);
}

Fixed version (ground truth):
public static void main(String[] args){
  Bank bank=new Bank(0);
  bank.makeBankTransaction("String_Node_Str","String_Node_Str",18000);
}