nus-yam/ex-repair huggingface dataset:
Program: 78369
Project: 78369
Buggy source:
/** 
 * Constructor
 * @param email the user's email
 * @param guiSignUp GUI from where GUICustomerLabel is invoked
 */
public GUICustomerLabel(String email,GUISignUp guiSignUp){
  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.email=email;
  proxy=new CustomerProxy(email);
  guiSignUp.setEnabled(false);
  this.addWindowListener(new WindowAdapter(){
    @Override public void windowClosing(    WindowEvent e){
      super.windowClosing(e);
      guiSignUp.setEnabled(true);
    }
  }
);
  guiCustomerLabel=this;
  initComponents();
}

Fixed version (ground truth):
/** 
 * Constructor
 * @param email the user's email
 * @param guiSignUp GUI from where GUICustomerLabel is invoked
 */
public GUICustomerLabel(String email,GUISignUp guiSignUp){
  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.email=email;
  proxy=new CustomerProxy(email);
  this.guiSignUp=guiSignUp;
  this.addWindowListener(new WindowAdapter(){
    @Override public void windowClosing(    WindowEvent e){
      super.windowClosing(e);
      guiSignUp.getGuiLogin().setEnabled(true);
    }
  }
);
  guiCustomerLabel=this;
  initComponents();
}
Program: 78372
Project: 78372
Buggy source:
public GUILogin(){
  setTitle("String_Node_Str");
  setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
  setLayout(new BorderLayout());
  setResizable(false);
  setExtendedState(JFrame.MAXIMIZED_BOTH);
  initComponents();
}

Fixed version (ground truth):
public GUILogin(){
  setTitle("String_Node_Str");
  setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
  setLayout(new BorderLayout());
  setResizable(false);
  setExtendedState(JFrame.MAXIMIZED_BOTH);
  guiLogin=this;
  initComponents();
}
Program: 78374
Project: 78374
Buggy source:
/** 
 * Constructor
 */
public GUISignUp(){
  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());
  proxy=new CustomerProxy(textEmail.getText());
  guiSignUp=this;
  initComponents();
}

Fixed version (ground truth):
/** 
 * Constructor
 */
public GUISignUp(GUILogin guiLogin){
  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());
  proxy=new CustomerProxy(textEmail.getText());
  this.guiLogin=guiLogin;
  guiLogin.setEnabled(false);
  guiSignUp=this;
  this.addWindowListener(new WindowAdapter(){
    @Override public void windowClosing(    WindowEvent e){
      super.windowClosing(e);
      guiLogin.setEnabled(true);
    }
  }
);
  initComponents();
}
Program: 78377
Project: 78377
Buggy source:
public static void main(String[] args) throws Exception {
  GUISignUp guiSignUp=new GUISignUp();
  String inputEmail;
  Scanner tastiera=new Scanner(System.in);
  System.out.println("String_Node_Str");
  inputEmail=tastiera.nextLine();
  System.out.println("String_Node_Str" + inputEmail);
  GUICustomerLabel guiCustomerLabel=new GUICustomerLabel(inputEmail,guiSignUp);
  guiCustomerLabel.setVisible(true);
}

Fixed version (ground truth):
public static void main(String[] args) throws Exception {
}
Program: 78379
Project: 78379
Buggy source:
public GUIDogsitterReply(Review review,String email){
  this.review=review;
  this.email=email;
  proxy=new DogSitterProxy(email);
  initComponent();
}

Fixed version (ground truth):
public GUIDogsitterReply(Review review,String email,GUIShowDogsitterReview guiShowDogsitterReview){
  this.review=review;
  this.email=email;
  guiDogsitterReply=this;
  proxy=new DogSitterProxy(email);
  this.guiShowDogsitterReview=guiShowDogsitterReview;
  guiShowDogsitterReview.setEnabled(false);
  this.addWindowListener(new WindowAdapter(){
    @Override public void windowClosing(    WindowEvent e){
      super.windowClosing(e);
      guiShowDogsitterReview.setEnabled(true);
    }
  }
);
  initComponent();
}
Program: 78380
Project: 78380
Buggy source:
@Override public void actionPerformed(ActionEvent e){
  dispose();
}

Fixed version (ground truth):
@Override public void actionPerformed(ActionEvent e){
  boolean strError=false;
  String error="String_Node_Str";
  String reply=textReply.getText();
  if (reply.equals("String_Node_Str")) {
    strError=true;
    error="String_Node_Str";
  }
  if (reply.contains("String_Node_Str")) {
    strError=true;
    error="String_Node_Str";
  }
  if (strError) {
    JOptionPane.showMessageDialog(new JFrame(),error,"String_Node_Str",JOptionPane.ERROR_MESSAGE);
  }
 else   if (proxy.replyToReview(review.getCode(),reply)) {
    JOptionPane.showMessageDialog(new JFrame(),"String_Node_Str","String_Node_Str",JOptionPane.INFORMATION_MESSAGE);
    guiShowDogsitterReview.getGuiShowDogsitterAssignment().dispatchEvent(new WindowEvent(guiShowDogsitterReview.getGuiShowDogsitterAssignment(),WindowEvent.WINDOW_CLOSING));
    guiShowDogsitterReview.dispatchEvent(new WindowEvent(guiShowDogsitterReview,WindowEvent.WINDOW_CLOSING));
    guiDogsitterReply.dispatchEvent(new WindowEvent(guiDogsitterReply,WindowEvent.WINDOW_CLOSING));
  }
}
Program: 78382
Project: 78382
Buggy source:
public GUILogin(){
  setTitle("String_Node_Str");
  setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
  setLayout(new BorderLayout());
  setExtendedState(JFrame.MAXIMIZED_BOTH);
  initComponents();
}

Fixed version (ground truth):
public GUILogin(){
  setTitle("String_Node_Str");
  setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
  setLayout(new BorderLayout());
  setResizable(false);
  setExtendedState(JFrame.MAXIMIZED_BOTH);
  initComponents();
}
Program: 78383
Project: 78383
Buggy source:
@Override public void actionPerformed(ActionEvent e){
  GUIDogsitterReply guiDogsitterReply=new GUIDogsitterReply(review,email);
  guiDogsitterReply.setVisible(true);
  guiShowDogsitterAssignment.dispose();
  dispose();
}

Fixed version (ground truth):
@Override public void actionPerformed(ActionEvent e){
  GUIDogsitterReply guiDogsitterReply=new GUIDogsitterReply(review,email,guiShowDogsitterReview);
  guiDogsitterReply.setVisible(true);
}
Program: 78384
Project: 78384
Buggy source:
/** 
 * permette di visualizzare direttamente la risposta del dogsitter sotto la recensione o di aggiungerne una
 */
@Override protected void showReply(){
  GridLayout gridLayout=new GridLayout(1,1,5,5);
  closeButton=new JButton("String_Node_Str");
  replyButton=new JButton("String_Node_Str");
  ActionListener close=new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      guiShowDogsitterAssignment.setEnabled(true);
      dispose();
    }
  }
;
  ActionListener reply=new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      GUIDogsitterReply guiDogsitterReply=new GUIDogsitterReply(review,email);
      guiDogsitterReply.setVisible(true);
      guiShowDogsitterAssignment.dispose();
      dispose();
    }
  }
;
  if (!(review.getReply().equals("String_Node_Str"))) {
    panelReply.setBorder(BorderFactory.createTitledBorder("String_Node_Str"));
    textReply.setLineWrap(true);
    textReply.setEditable(false);
    textReply.setText(review.getReply());
    panelReply.setLayout(new GridLayout(2,1));
    panelReply.add(textReply);
    closeButton.addActionListener(close);
    closePanel.setBorder(BorderFactory.createEmptyBorder(70,20,20,20));
    closePanel.add(closeButton);
  }
 else {
    gridLayout.setColumns(2);
    closePanel.setLayout(gridLayout);
    closePanel.setBorder(BorderFactory.createEmptyBorder(100,20,20,20));
    closeButton.addActionListener(close);
    replyButton.addActionListener(reply);
    closePanel.add(replyButton);
    closePanel.add(closeButton);
  }
}

Fixed version (ground truth):
/** 
 * permette di visualizzare direttamente la risposta del dogsitter sotto la recensione o di aggiungerne una
 */
@Override protected void showReply(){
  GridLayout gridLayout=new GridLayout(1,1,5,5);
  closeButton=new JButton("String_Node_Str");
  replyButton=new JButton("String_Node_Str");
  ActionListener reply=new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      GUIDogsitterReply guiDogsitterReply=new GUIDogsitterReply(review,email,guiShowDogsitterReview);
      guiDogsitterReply.setVisible(true);
    }
  }
;
  if (!(review.getReply().equals("String_Node_Str"))) {
    panelReply.setBorder(BorderFactory.createTitledBorder("String_Node_Str"));
    textReply.setLineWrap(true);
    textReply.setEditable(false);
    textReply.setText(review.getReply());
    panelReply.setLayout(new GridLayout(2,1));
    panelReply.add(textReply);
    closeButton.addActionListener(e -> guiShowDogsitterReview.dispatchEvent(new WindowEvent(guiShowDogsitterReview,WindowEvent.WINDOW_CLOSING)));
    closePanel.setBorder(BorderFactory.createEmptyBorder(70,20,20,20));
    closePanel.add(closeButton);
  }
 else {
    gridLayout.setColumns(2);
    closePanel.setLayout(gridLayout);
    closePanel.setBorder(BorderFactory.createEmptyBorder(100,20,20,20));
    closeButton.addActionListener(e -> guiShowDogsitterReview.dispatchEvent(new WindowEvent(guiShowDogsitterReview,WindowEvent.WINDOW_CLOSING)));
    replyButton.addActionListener(reply);
    closePanel.add(replyButton);
    closePanel.add(closeButton);
  }
}
Program: 78385
Project: 78385
Buggy source:
public GUIShowDogsitterReview(Review review,String email,GUIShowDogsitterAssignment guiShowDogsitterAssignment){
  super(review);
  this.email=email;
  this.guiShowDogsitterAssignment=guiShowDogsitterAssignment;
  guiShowDogsitterAssignment.setEnabled(false);
  this.addWindowListener(new WindowAdapter(){
    @Override public void windowClosing(    WindowEvent e){
      super.windowClosing(e);
      guiShowDogsitterAssignment.setEnabled(true);
    }
  }
);
}

Fixed version (ground truth):
public GUIShowDogsitterReview(Review review,String email,GUIShowDogsitterAssignment guiShowDogsitterAssignment){
  super(review);
  this.email=email;
  this.guiShowDogsitterAssignment=guiShowDogsitterAssignment;
  guiShowDogsitterReview=this;
  guiShowDogsitterAssignment.setEnabled(false);
  this.addWindowListener(new WindowAdapter(){
    @Override public void windowClosing(    WindowEvent e){
      super.windowClosing(e);
      guiShowDogsitterAssignment.setEnabled(true);
    }
  }
);
}
Program: 78386
Project: 78386
Buggy source:
@Override public void actionPerformed(ActionEvent registrationAe){
  if (registrationAe.getActionCommand().equals("String_Node_Str")) {
    if (textName.getText().equals("String_Node_Str") || textWeight.getText().equals("String_Node_Str")) {
      JOptionPane.showMessageDialog(new JFrame(),"String_Node_Str","String_Node_Str",JOptionPane.ERROR_MESSAGE);
    }
 else {
      boolean add=addNewDog();
      if (add) {
        JOptionPane.showMessageDialog(new JFrame(),"String_Node_Str","String_Node_Str",JOptionPane.INFORMATION_MESSAGE);
        dispose();
      }
    }
  }
  if (registrationAe.getActionCommand().equals("String_Node_Str")) {
    dispose();
  }
}

Fixed version (ground truth):
@Override public void actionPerformed(ActionEvent registrationAe){
  if (registrationAe.getActionCommand().equals("String_Node_Str")) {
    if (textName.getText().equals("String_Node_Str") || textWeight.getText().equals("String_Node_Str")) {
      JOptionPane.showMessageDialog(new JFrame(),"String_Node_Str","String_Node_Str",JOptionPane.ERROR_MESSAGE);
    }
 else {
      boolean add=addNewDog();
      if (add) {
        JOptionPane.showMessageDialog(new JFrame(),"String_Node_Str","String_Node_Str",JOptionPane.INFORMATION_MESSAGE);
        guiAddDog.dispatchEvent(new WindowEvent(guiAddDog,WindowEvent.WINDOW_CLOSING));
        guiDogs.dispatchEvent(new WindowEvent(guiDogs,WindowEvent.WINDOW_CLOSING));
      }
    }
  }
  if (registrationAe.getActionCommand().equals("String_Node_Str")) {
    guiAddDog.dispatchEvent(new WindowEvent(guiAddDog,WindowEvent.WINDOW_CLOSING));
  }
}
Program: 78388
Project: 78388
Buggy source:
/** 
 * costruttore
 * @param email identifica il proprietario del cane
 */
public GUIAddDog(String email){
  this.email=email;
  proxy=new CustomerProxy(email);
  initComponent();
}

Fixed version (ground truth):
/** 
 * costruttore
 * @param email identifica il proprietario del cane
 */
public GUIAddDog(String email,GUIDogs guiDogs){
  this.email=email;
  proxy=new CustomerProxy(email);
  guiAddDog=this;
  this.guiDogs=guiDogs;
  guiDogs.setEnabled(false);
  this.addWindowListener(new WindowAdapter(){
    @Override public void windowClosing(    WindowEvent e){
      super.windowClosing(e);
      guiDogs.setEnabled(true);
    }
  }
);
  initComponent();
}
Program: 78389
Project: 78389
Buggy source:
/** 
 * Create a new window that shows the developer team informations.
 */
public GUIAwards(){
  initComponent();
}

Fixed version (ground truth):
/** 
 * Create a new window that shows the developer team informations.
 */
public GUIAwards(GUIHome guiHome){
  guiHome.setEnabled(false);
  this.addWindowListener(new WindowAdapter(){
    @Override public void windowClosing(    WindowEvent e){
      super.windowClosing(e);
      guiHome.setEnabled(true);
    }
  }
);
  initComponent();
}
Program: 78390
Project: 78390
Buggy source:
/** 
 * Costruttore
 * @param email: riferimento all'utente
 */
public GUIChangePassword(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.email=email;
  this.proxy=new CustomerProxy(email);
  initComponents();
}

Fixed version (ground truth):
/** 
 * Costruttore
 * @param email: riferimento all'utente
 */
public GUIChangePassword(String email,GUIHome guiHome){
  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.email=email;
  this.proxy=new CustomerProxy(email);
  guiChangePassword=this;
  guiHome.setEnabled(false);
  this.addWindowListener(new WindowAdapter(){
    @Override public void windowClosing(    WindowEvent e){
      super.windowClosing(e);
      guiHome.setEnabled(true);
    }
  }
);
  initComponents();
}
Program: 78391
Project: 78391
Buggy source:
@Override public void actionPerformed(ActionEvent passwordAe){
  if (passwordAe.getActionCommand().equals("String_Node_Str")) {
    currentPassword="String_Node_Str";
    newPassword="String_Node_Str";
    confirmPassword="String_Node_Str";
    currentPassword=readPassword(textCurrentPassword.getPassword());
    newPassword=readPassword(textNewPassword.getPassword());
    confirmPassword=readPassword(textPasswordConf.getPassword());
    if (currentPassword == "String_Node_Str" || newPassword == "String_Node_Str" || confirmPassword == "String_Node_Str") {
      JOptionPane.showMessageDialog(new JFrame(),"String_Node_Str","String_Node_Str",JOptionPane.ERROR_MESSAGE);
    }
 else     if (checkPassword(currentPassword)) {
      if (!(getSpecialCharacterCount(newPassword))) {
        if (changePasswordFields(newPassword,confirmPassword)) {
          JOptionPane.showMessageDialog(new JFrame(),"String_Node_Str","String_Node_Str",JOptionPane.INFORMATION_MESSAGE);
          dispose();
        }
      }
 else {
        JOptionPane.showMessageDialog(new JFrame(),"String_Node_Str","String_Node_Str",JOptionPane.ERROR_MESSAGE);
      }
    }
  }
  if (passwordAe.getActionCommand().equals("String_Node_Str")) {
    dispose();
  }
}

Fixed version (ground truth):
@Override public void actionPerformed(ActionEvent passwordAe){
  if (passwordAe.getActionCommand().equals("String_Node_Str")) {
    currentPassword="String_Node_Str";
    newPassword="String_Node_Str";
    confirmPassword="String_Node_Str";
    currentPassword=readPassword(textCurrentPassword.getPassword());
    newPassword=readPassword(textNewPassword.getPassword());
    confirmPassword=readPassword(textPasswordConf.getPassword());
    if (currentPassword == "String_Node_Str" || newPassword == "String_Node_Str" || confirmPassword == "String_Node_Str") {
      JOptionPane.showMessageDialog(new JFrame(),"String_Node_Str","String_Node_Str",JOptionPane.ERROR_MESSAGE);
    }
 else     if (checkPassword(currentPassword)) {
      if (!(getSpecialCharacterCount(newPassword))) {
        if (changePasswordFields(newPassword,confirmPassword)) {
          JOptionPane.showMessageDialog(new JFrame(),"String_Node_Str","String_Node_Str",JOptionPane.INFORMATION_MESSAGE);
          guiChangePassword.dispatchEvent(new WindowEvent(guiChangePassword,WindowEvent.WINDOW_CLOSING));
        }
      }
 else {
        JOptionPane.showMessageDialog(new JFrame(),"String_Node_Str","String_Node_Str",JOptionPane.ERROR_MESSAGE);
      }
    }
  }
}
Program: 78393
Project: 78393
Buggy source:
/** 
 * Open a window that permits to the customer to change his password.
 */
public void changePassword(){
  GUIChangePassword guiChangePassword=new GUIChangePassword(email);
  guiChangePassword.setVisible(true);
}

Fixed version (ground truth):
/** 
 * Open a window that permits to the customer to change his password.
 */
public void changePassword(){
  GUIChangePassword guiChangePassword=new GUIChangePassword(email,guiCustomer);
  guiChangePassword.setVisible(true);
}
Program: 78394
Project: 78394
Buggy source:
/** 
 * Open the windows for changing dogs' informations.
 */
public void dogsSettings(){
  GUIDogs guiDogs=new GUIDogs(email);
  guiDogs.setVisible(true);
}

Fixed version (ground truth):
/** 
 * Open the windows for changing dogs' informations.
 */
public void dogsSettings(){
  GUIDogs guiDogs=new GUIDogs(email,guiCustomer);
  guiDogs.setVisible(true);
}
Program: 78395
Project: 78395
Buggy source:
@Override public void actionPerformed(ActionEvent registrationAe){
  if (registrationAe.getActionCommand().equals("String_Node_Str")) {
    if (textName.getText().equals("String_Node_Str") || textWeight.getText().equals("String_Node_Str")) {
      JOptionPane.showMessageDialog(new JFrame(),"String_Node_Str","String_Node_Str",JOptionPane.ERROR_MESSAGE);
    }
 else {
      if (setNewValues()) {
        JOptionPane.showMessageDialog(new JFrame(),"String_Node_Str","String_Node_Str",JOptionPane.INFORMATION_MESSAGE);
        dispose();
      }
    }
  }
  if (registrationAe.getActionCommand().equals("String_Node_Str")) {
    dispose();
  }
}

Fixed version (ground truth):
@Override public void actionPerformed(ActionEvent registrationAe){
  if (registrationAe.getActionCommand().equals("String_Node_Str")) {
    if (textName.getText().equals("String_Node_Str") || textWeight.getText().equals("String_Node_Str")) {
      JOptionPane.showMessageDialog(new JFrame(),"String_Node_Str","String_Node_Str",JOptionPane.ERROR_MESSAGE);
    }
 else {
      if (setNewValues()) {
        JOptionPane.showMessageDialog(new JFrame(),"String_Node_Str","String_Node_Str",JOptionPane.INFORMATION_MESSAGE);
        guiDogInfo.dispatchEvent(new WindowEvent(guiDogInfo,WindowEvent.WINDOW_CLOSING));
      }
    }
  }
}
Program: 78396
Project: 78396
Buggy source:
/** 
 * costruttore
 * @param dog oggetto di cui si vogliono visualizzare le informazioni
 * @param email
 */
public GUIDogInfo(Dog dog,String email){
  this.dog=dog;
  this.email=email;
  proxy=new CustomerProxy(this.email);
  initComponent();
}

Fixed version (ground truth):
/** 
 * costruttore
 * @param dog oggetto di cui si vogliono visualizzare le informazioni
 * @param email
 */
public GUIDogInfo(Dog dog,String email,GUIDogs guiDogs){
  this.dog=dog;
  this.email=email;
  proxy=new CustomerProxy(this.email);
  guiDogs.setEnabled(false);
  guiDogInfo=this;
  this.addWindowListener(new WindowAdapter(){
    @Override public void windowClosing(    WindowEvent e){
      super.windowClosing(e);
      guiDogs.setEnabled(true);
    }
  }
);
  initComponent();
}
Program: 78398
Project: 78398
Buggy source:
/** 
 * Open a window that permits to the dog sitter to change his password.
 */
public void changePassword(){
  GUIDogSitterChangePassword guiDogSitterChangePassword=new GUIDogSitterChangePassword(email);
  guiDogSitterChangePassword.setVisible(true);
}

Fixed version (ground truth):
/** 
 * Open a window that permits to the dog sitter to change his password.
 */
public void changePassword(){
  GUIDogSitterChangePassword guiDogSitterChangePassword=new GUIDogSitterChangePassword(email,guiHome);
  guiDogSitterChangePassword.setVisible(true);
}
Program: 78399
Project: 78399
Buggy source:
/** 
 * Constructor
 * @param email : reference to the user
 */
public GUIDogSitterChangePassword(String email){
  super(email);
  dogSitterProxy=new DogSitterProxy(email);
}

Fixed version (ground truth):
/** 
 * Constructor
 * @param email : reference to the user
 */
public GUIDogSitterChangePassword(String email,GUIHome guiHome){
  super(email,guiHome);
  dogSitterProxy=new DogSitterProxy(email);
}
Program: 78400
Project: 78400
Buggy source:
@Override public void actionPerformed(ActionEvent e){
  if (proxy.disableDog(dog.getID())) {
    JOptionPane.showMessageDialog(new Frame(),dog.getName() + "String_Node_Str","String_Node_Str",JOptionPane.INFORMATION_MESSAGE);
    dispose();
  }
}

Fixed version (ground truth):
@Override public void actionPerformed(ActionEvent e){
  if (proxy.disableDog(dog.getID())) {
    JOptionPane.showMessageDialog(new Frame(),dog.getName() + "String_Node_Str","String_Node_Str",JOptionPane.INFORMATION_MESSAGE);
    guiDogs.dispatchEvent(new WindowEvent(guiDogs,WindowEvent.WINDOW_CLOSING));
  }
}
Program: 78401
Project: 78401
Buggy source:
/** 
 * costruttore
 * @param email identifica il proprietario del cane
 */
public GUIDogs(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());
  setVisible(true);
  this.email=email;
  proxy=new CustomerProxy(this.email);
  dogList=proxy.getDogList();
  dogBoxes=new DogBox[dogList.size()];
  initComponents();
}

Fixed version (ground truth):
/** 
 * costruttore
 * @param email identifica il proprietario del cane
 */
public GUIDogs(String email,GUIHome guiHome){
  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());
  setVisible(true);
  guiDogs=this;
  guiHome.setEnabled(false);
  this.addWindowListener(new WindowAdapter(){
    @Override public void windowClosing(    WindowEvent e){
      super.windowClosing(e);
      guiHome.setEnabled(true);
    }
  }
);
  this.email=email;
  proxy=new CustomerProxy(this.email);
  dogList=proxy.getDogList();
  dogBoxes=new DogBox[dogList.size()];
  initComponents();
}
Program: 78403
Project: 78403
Buggy source:
/** 
 * Open a windows that shows the software developer team.
 */
public void credits(){
  GUIAwards credits=new GUIAwards();
  credits.setVisible(true);
}

Fixed version (ground truth):
/** 
 * Open a windows that shows the software developer team.
 */
public void credits(){
  GUIAwards credits=new GUIAwards(guiHome);
  credits.setVisible(true);
}
Program: 78404
Project: 78404
Buggy source:
/** 
 * Open a windows that shows the informations about the software.
 */
public void info(){
  GUIInfo info=new GUIInfo();
  info.setVisible(true);
}

Fixed version (ground truth):
/** 
 * Open a windows that shows the informations about the software.
 */
public void info(){
  GUIInfo info=new GUIInfo(guiHome);
  info.setVisible(true);
}
Program: 78405
Project: 78405
Buggy source:
/** 
 * Constuctor of the class
 */
public GUIInfo(){
  initComponent();
}

Fixed version (ground truth):
/** 
 * Constuctor of the class
 */
public GUIInfo(GUIHome guiCustomer){
  guiCustomer.setEnabled(false);
  this.addWindowListener(new WindowAdapter(){
    @Override public void windowClosing(    WindowEvent e){
      super.windowClosing(e);
      guiCustomer.setEnabled(true);
    }
  }
);
  initComponent();
}
Program: 78406
Project: 78406
Buggy source:
/** 
 * Constuctor of the class
 * @param assignment of which informations are displayed
 * @param email of the customer
 * @param guiDogSitter GUI from which is created
 */
public GUIAssignmentInformationDogsitter(Assignment assignment,String email,GUIDogSitter guiDogSitter){
  super(assignment,email,guiDogSitter);
  initComponents();
}

Fixed version (ground truth):
public GUIAssignmentInformationDogsitter(Assignment a,String email,GUIDogSitter guiHome){
  super(a,email,guiHome);
}
Program: 78407
Project: 78407
Buggy source:
public GUIDailyAssignments(CalendarState cs,String email,Date todayDate){
  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());
  setVisible(true);
  this.email=email;
  proxy=new CustomerProxy(email);
  this.listAssigment=proxy.getAssignmentList();
  this.todayDate=todayDate;
  initComponents(cs);
  guiDailyAssignments=this;
}

Fixed version (ground truth):
public GUIDailyAssignments(CalendarState cs,String email,Date todayDate){
  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());
  setVisible(true);
  this.email=email;
  this.todayDate=todayDate;
  proxy=new CustomerProxy(email);
  this.listAssigment=proxy.getAssignmentList();
  initComponents(cs);
  guiDailyAssignments=this;
}
Program: 78408
Project: 78408
Buggy source:
/** 
 * crea un JPanel che contiene le informazioni dell'appuntamento da cancellare: stato, descrizione e i bottoni( Delete and More info)
 * @param i indice del JPanel
 */
private void createPanelOrderDelete(int i){
  infoPanel[i]=new JPanel();
  panelButtons=new JPanel();
  panelButtons.setBorder(BorderFactory.createEmptyBorder(5,0,5,150));
  infoPanel[i].setLayout(new BorderLayout());
  infoPanel[i].setMaximumSize(new Dimension(450,150));
  labelDescription[i].setBorder(BorderFactory.createEmptyBorder(5,10,5,100));
  infoPanel[i].add(labelDescription[i],BorderLayout.CENTER);
  panelButtons.add(button[i]);
  panelButtons.add(buttonInfo[i]);
  infoPanel[i].add(panelButtons,BorderLayout.EAST);
  infoPanel[i].setBorder(BorderFactory.createEmptyBorder(5,10,5,150));
  p.add(infoPanel[i]);
}

Fixed version (ground truth):
/** 
 * crea un JPanel che contiene le informazioni dell'appuntamento da cancellare: stato, descrizione e i bottoni( Delete and More info)
 * @param i indice del JPanel
 */
protected void createPanelOrderDelete(int i){
  infoPanel[i]=new JPanel();
  panelButtons=new JPanel();
  panelButtons.setBorder(BorderFactory.createEmptyBorder(5,0,5,150));
  infoPanel[i].setLayout(new BorderLayout());
  infoPanel[i].setMaximumSize(new Dimension(450,150));
  labelDescription[i].setBorder(BorderFactory.createEmptyBorder(5,10,5,100));
  infoPanel[i].add(labelDescription[i],BorderLayout.CENTER);
  panelButtons.add(button[i]);
  panelButtons.add(buttonInfo[i]);
  infoPanel[i].add(panelButtons,BorderLayout.EAST);
  infoPanel[i].setBorder(BorderFactory.createEmptyBorder(5,10,5,150));
  p.add(infoPanel[i]);
}
Program: 78409
Project: 78409
Buggy source:
/** 
 * crea un JPanel che contiene le informazioni dell'appuntamento: stato, descrizione e il bottone - More info
 * @param i indice del JPanel
 */
private void createPanelOrder(int i){
  infoPanel[i]=new JPanel();
  infoPanel[i].setLayout(new BorderLayout());
  infoPanel[i].setMaximumSize(new Dimension(450,150));
  labelDescription[i].setBorder(BorderFactory.createEmptyBorder(5,10,5,50));
  infoPanel[i].add(labelDescription[i],BorderLayout.CENTER);
  infoPanel[i].add(button[i],BorderLayout.EAST);
  infoPanel[i].setBorder(BorderFactory.createEmptyBorder(15,10,5,15));
  p.add(infoPanel[i]);
}

Fixed version (ground truth):
/** 
 * crea un JPanel che contiene le informazioni dell'appuntamento: stato, descrizione e il bottone - More info
 * @param i indice del JPanel
 */
protected void createPanelOrder(int i){
  infoPanel[i]=new JPanel();
  infoPanel[i].setLayout(new BorderLayout());
  infoPanel[i].setMaximumSize(new Dimension(450,150));
  labelDescription[i].setBorder(BorderFactory.createEmptyBorder(5,10,5,50));
  infoPanel[i].add(labelDescription[i],BorderLayout.CENTER);
  infoPanel[i].add(button[i],BorderLayout.EAST);
  infoPanel[i].setBorder(BorderFactory.createEmptyBorder(15,10,5,15));
  p.add(infoPanel[i]);
}
Program: 78411
Project: 78411
Buggy source:
protected void clickOnCalendarButton(ActionEvent cae){
  JButton pressedButton=(JButton)cae.getSource();
  String strTodayDate;
  if (Integer.parseInt(pressedButton.getText()) < 10) {
    strTodayDate="String_Node_Str" + pressedButton.getText() + "String_Node_Str"+ labelDateMonthYear.getText();
  }
 else {
    strTodayDate=pressedButton.getText() + "String_Node_Str" + labelDateMonthYear.getText();
  }
  SimpleDateFormat dateFormat=new SimpleDateFormat("String_Node_Str");
  Date todayDate=new Date();
  try {
    todayDate=dateFormat.parse(strTodayDate);
  }
 catch (  ParseException e) {
    e.printStackTrace();
  }
  if ((!(cae.getActionCommand().equals("String_Node_Str"))) && ((calendarState.equals(CalendarState.NORMAL)) || (calendarState.equals(CalendarState.REMOVING)))) {
    GUIDailyAssignments guiDailyAssignments=new GUIDailyAssignments(calendarState,email,todayDate);
    guiDailyAssignments.setVisible(true);
  }
}

Fixed version (ground truth):
protected void clickOnCalendarButton(ActionEvent cae){
  JButton pressedButton=(JButton)cae.getSource();
  String strTodayDate;
  if (Integer.parseInt(pressedButton.getText()) < 10) {
    strTodayDate="String_Node_Str" + pressedButton.getText() + "String_Node_Str"+ labelDateMonthYear.getText();
  }
 else {
    strTodayDate=pressedButton.getText() + "String_Node_Str" + labelDateMonthYear.getText();
  }
  SimpleDateFormat dateFormat=new SimpleDateFormat("String_Node_Str");
  Date todayDate=new Date();
  try {
    todayDate=dateFormat.parse(strTodayDate);
  }
 catch (  ParseException e) {
    e.printStackTrace();
  }
  if ((!(cae.getActionCommand().equals("String_Node_Str"))) && ((calendarState.equals(CalendarState.NORMAL)))) {
    GUIDailyAssignmentDogsitter guiDailyAssignmentDogsitter=new GUIDailyAssignmentDogsitter(calendarState,email,todayDate);
    guiDailyAssignmentDogsitter.setVisible(true);
  }
}
Program: 78412
Project: 78412
Buggy source:
protected void clickOnTodayAssignment(ActionEvent todayAssignmentAe,Proxy proxy,GUIHome guiHome){
  if (!(todayAssignmentAe.getActionCommand().equals("String_Node_Str"))) {
    JButton pressedButton=(JButton)todayAssignmentAe.getSource();
    StringTokenizer cmdToken=new StringTokenizer(buttonTodayAssignment[0].getText(),"String_Node_Str");
    String cmd=cmdToken.nextToken();
    if (cmd.equals("String_Node_Str")) {
      calendarState=CalendarState.NORMAL;
      SimpleDateFormat dateMonth=new SimpleDateFormat("String_Node_Str");
      Date date=new Date();
      String strMonthNumber=dateMonth.format(date);
      int monthNumber=Integer.parseInt(strMonthNumber);
      try {
        updateCalendar(monthNumber,proxy);
      }
 catch (      ParseException e) {
        e.printStackTrace();
      }
      HashMap<Integer,Assignment> listAssignment=proxy.getAssignmentList();
      Assignment a=listAssignment.get(pressedButton.getDisplayedMnemonicIndex());
      if (guiHome instanceof GUICustomer) {
        GUIAssignmentInformationCustomer guiAssignment=new GUIAssignmentInformationCustomer(a,email,(GUICustomer)guiHome);
        guiAssignment.setVisible(true);
      }
 else {
        GUIAssignmentInformationDogsitter guiAssignment=new GUIAssignmentInformationDogsitter(a,email);
        guiAssignment.setVisible(true);
      }
    }
  }
}

Fixed version (ground truth):
protected void clickOnTodayAssignment(ActionEvent todayAssignmentAe,Proxy proxy,GUIHome guiHome){
  if (!(todayAssignmentAe.getActionCommand().equals("String_Node_Str"))) {
    JButton pressedButton=(JButton)todayAssignmentAe.getSource();
    StringTokenizer cmdToken=new StringTokenizer(buttonTodayAssignment[0].getText(),"String_Node_Str");
    String cmd=cmdToken.nextToken();
    if (cmd.equals("String_Node_Str")) {
      calendarState=CalendarState.NORMAL;
      SimpleDateFormat dateMonth=new SimpleDateFormat("String_Node_Str");
      Date date=new Date();
      String strMonthNumber=dateMonth.format(date);
      int monthNumber=Integer.parseInt(strMonthNumber);
      try {
        updateCalendar(monthNumber,proxy);
      }
 catch (      ParseException e) {
        e.printStackTrace();
      }
      HashMap<Integer,Assignment> listAssignment=proxy.getAssignmentList();
      Assignment a=listAssignment.get(pressedButton.getDisplayedMnemonicIndex());
      if (guiHome instanceof GUICustomer) {
        GUIAssignmentInformationCustomer guiAssignment=new GUIAssignmentInformationCustomer(a,email,(GUICustomer)guiHome);
        guiAssignment.setVisible(true);
      }
 else {
        GUIAssignmentInformationDogsitter guiAssignment=new GUIAssignmentInformationDogsitter(a,email,(GUIDogSitter)guiHome);
        guiAssignment.setVisible(true);
      }
    }
  }
}
Program: 78414
Project: 78414
Buggy source:
/** 
 * @param code
 * @return the object of type Review related to code.
 */
public Review getReview(int code){
  DBConnector dbConnector=new DBConnector();
  ResultSet rs=null;
  Review review=null;
  try {
    rs=dbConnector.askDB("String_Node_Str" + code + "String_Node_Str");
    while (rs.next()) {
      Date date=rs.getDate("String_Node_Str");
      int rating=rs.getInt("String_Node_Str");
      String title=rs.getString("String_Node_Str");
      String description=rs.getString("String_Node_Str");
      String reply=rs.getString("String_Node_Str");
      Singleton singleton=new Singleton();
      review=new Review(code,date,rating,title,description,reply);
    }
    dbConnector.closeConnection();
    return review;
  }
 catch (  SQLException e) {
    e.printStackTrace();
    return null;
  }
}

Fixed version (ground truth):
/** 
 * @param code
 * @return the object of type Review related to code.
 */
public Review getReview(int code){
  DBConnector dbConnector=new DBConnector();
  ResultSet rs=null;
  Review review=null;
  try {
    rs=dbConnector.askDB("String_Node_Str" + code + "String_Node_Str");
    while (rs.next()) {
      Date date=rs.getTimestamp("String_Node_Str");
      int rating=rs.getInt("String_Node_Str");
      String title=rs.getString("String_Node_Str");
      String description=rs.getString("String_Node_Str");
      String reply=rs.getString("String_Node_Str");
      Singleton singleton=new Singleton();
      review=new Review(code,date,rating,title,description,reply);
    }
    dbConnector.closeConnection();
    return review;
  }
 catch (  SQLException e) {
    e.printStackTrace();
    return null;
  }
}
Program: 78415
Project: 78415
Buggy source:
/** 
 * Read the list of reviews from a ResultSet object.
 * @param rs the result of query.
 * @return the HashMap of reviews.
 * @throws SQLException
 */
private HashMap<Integer,Review> getReviewList(ResultSet rs) throws SQLException {
  HashMap<Integer,Review> reviewList=new HashMap<>();
  while (rs.next()) {
    int code=rs.getInt("String_Node_Str");
    Date date=rs.getDate("String_Node_Str");
    int rating=rs.getInt("String_Node_Str");
    String title=rs.getString("String_Node_Str");
    String description=rs.getString("String_Node_Str");
    String reply=rs.getString("String_Node_Str");
    Review r=new Review(code,date,rating,title,description,reply);
    reviewList.put(code,r);
  }
  return reviewList;
}

Fixed version (ground truth):
/** 
 * Read the list of reviews from a ResultSet object.
 * @param rs the result of query.
 * @return the HashMap of reviews.
 * @throws SQLException
 */
private HashMap<Integer,Review> getReviewList(ResultSet rs) throws SQLException {
  HashMap<Integer,Review> reviewList=new HashMap<>();
  while (rs.next()) {
    int code=rs.getInt("String_Node_Str");
    Date date=rs.getTimestamp("String_Node_Str");
    int rating=rs.getInt("String_Node_Str");
    String title=rs.getString("String_Node_Str");
    String description=rs.getString("String_Node_Str");
    String reply=rs.getString("String_Node_Str");
    Review r=new Review(code,date,rating,title,description,reply);
    reviewList.put(code,r);
  }
  return reviewList;
}
Program: 78416
Project: 78416
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");
  System.out.println(proxy.getDogsBreedsList().size());
}

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");
  proxy.getReview(4);
}
Program: 78418
Project: 78418
Buggy source:
/** 
 * METODO PER  AGGIORNARE IL DATABASE (per cambiare i valori aggiornati dall'utente nel database)
 */
private void setNewValues(){
  proxy.updateName(textName.getText());
  textName.setEditable(true);
  labelName.setLabelFor(textName);
  proxy.updateSurname(textSurname.getText());
  textSurname.setEditable(true);
  labelSurname.setLabelFor(textSurname);
  proxy.updateAddress(textCountry.getText(),textCity.getText(),textStreet.getText(),textNumber.getText(),textCap.getText());
  textCountry.setEditable(true);
  labelCountry.setLabelFor(textCountry);
  textCity.setEditable(true);
  labelCity.setLabelFor(textCity);
  textStreet.setEditable(true);
  labelStreet.setLabelFor(textStreet);
  textNumber.setEditable(true);
  labelNumber.setLabelFor(textNumber);
  textCap.setEditable(true);
  labelCap.setLabelFor(textCap);
  proxy.updatePhoneNumber(textPhoneNumber.getText());
  textPhoneNumber.setEditable(true);
  labelPhoneNumber.setLabelFor(textPhoneNumber);
}

Fixed version (ground truth):
/** 
 * METODO PER  AGGIORNARE IL DATABASE (per cambiare i valori aggiornati dall'utente nel database)
 */
private void setNewValues(){
  proxy.updateName(textName.getText());
  textName.setEditable(true);
  labelName.setLabelFor(textName);
  proxy.updateSurname(textSurname.getText());
  textSurname.setEditable(true);
  labelSurname.setLabelFor(textSurname);
  Date dateOfBirth=new Date();
  SimpleDateFormat dateFormat=new SimpleDateFormat("String_Node_Str");
  String strDateOfBirth=dayList.getSelectedItem().toString() + "String_Node_Str" + monthList.getSelectedItem().toString()+ "String_Node_Str"+ yearList.getSelectedItem().toString();
  try {
    dateOfBirth=dateFormat.parse(strDateOfBirth);
  }
 catch (  ParseException e) {
    e.printStackTrace();
  }
  boolean updateDate=proxy.updateDateOfBirth(dateOfBirth);
  proxy.updateAddress(textCountry.getText(),textCity.getText(),textStreet.getText(),textNumber.getText(),textCap.getText());
  textCountry.setEditable(true);
  labelCountry.setLabelFor(textCountry);
  textCity.setEditable(true);
  labelCity.setLabelFor(textCity);
  textStreet.setEditable(true);
  labelStreet.setLabelFor(textStreet);
  textNumber.setEditable(true);
  labelNumber.setLabelFor(textNumber);
  textCap.setEditable(true);
  labelCap.setLabelFor(textCap);
  proxy.updatePhoneNumber(textPhoneNumber.getText());
  textPhoneNumber.setEditable(true);
  labelPhoneNumber.setLabelFor(textPhoneNumber);
}
Program: 78419
Project: 78419
Buggy source:
/** 
 * METODO PER  AGGIORNARE IL DATABASE (per cambiare i valori aggiornati dall'utente nel database)
 */
private void setNewValues(){
  proxy.updateName(textName.getText());
  textName.setEditable(true);
  labelName.setLabelFor(textName);
  proxy.updateSurname(textSurname.getText());
  textSurname.setEditable(true);
  labelSurname.setLabelFor(textSurname);
  Date dateOfBirth=new Date();
  SimpleDateFormat dateFormat=new SimpleDateFormat("String_Node_Str");
  String strDateOfBirth=dayList.getSelectedItem().toString() + "String_Node_Str" + monthList.getSelectedItem().toString()+ "String_Node_Str"+ yearList.getSelectedItem().toString();
  try {
    dateOfBirth=dateFormat.parse(strDateOfBirth);
  }
 catch (  ParseException e) {
    e.printStackTrace();
  }
  boolean updateDate=proxy.updateDateOfBirth(dateOfBirth);
  proxy.updateAddress(textCountry.getText(),textCity.getText(),textStreet.getText(),textNumber.getText(),textCap.getText());
  textCountry.setEditable(true);
  labelCountry.setLabelFor(textCountry);
  textCity.setEditable(true);
  labelCity.setLabelFor(textCity);
  textStreet.setEditable(true);
  labelStreet.setLabelFor(textStreet);
  textNumber.setEditable(true);
  labelNumber.setLabelFor(textNumber);
  textCap.setEditable(true);
  labelCap.setLabelFor(textCap);
  proxy.updatePhoneNumber(textPhoneNumber.getText());
  textPhoneNumber.setEditable(true);
  labelPhoneNumber.setLabelFor(textPhoneNumber);
}

Fixed version (ground truth):
/** 
 * METODO PER  AGGIORNARE IL DATABASE (per cambiare i valori aggiornati dall'utente nel database)
 */
private void setNewValues(){
  proxy.updateName(textName.getText());
  textName.setEditable(true);
  labelName.setLabelFor(textName);
  proxy.updateSurname(textSurname.getText());
  textSurname.setEditable(true);
  labelSurname.setLabelFor(textSurname);
  Date dateOfBirth=new Date();
  SimpleDateFormat dateFormat=new SimpleDateFormat("String_Node_Str");
  String strDateOfBirth=dayList.getSelectedItem().toString() + "String_Node_Str" + monthList.getSelectedItem().toString()+ "String_Node_Str"+ yearList.getSelectedItem().toString();
  try {
    dateOfBirth=dateFormat.parse(strDateOfBirth);
  }
 catch (  ParseException e) {
    e.printStackTrace();
  }
  boolean updateDate;
  if (!(updateDate=proxy.updateDateOfBirth(dateOfBirth))) {
    System.out.println("String_Node_Str");
  }
  proxy.updateAddress(textCountry.getText(),textCity.getText(),textStreet.getText(),textNumber.getText(),textCap.getText());
  textCountry.setEditable(true);
  labelCountry.setLabelFor(textCountry);
  textCity.setEditable(true);
  labelCity.setLabelFor(textCity);
  textStreet.setEditable(true);
  labelStreet.setLabelFor(textStreet);
  textNumber.setEditable(true);
  labelNumber.setLabelFor(textNumber);
  textCap.setEditable(true);
  labelCap.setLabelFor(textCap);
  proxy.updatePhoneNumber(textPhoneNumber.getText());
  textPhoneNumber.setEditable(true);
  labelPhoneNumber.setLabelFor(textPhoneNumber);
}
Program: 78420
Project: 78420
Buggy source:
/** 
 * METODO PER  AGGIORNARE IL DATABASE (per cambiare i valori aggiornati dall'utente nel database)
 */
private void setNewValues(){
  proxy.updateName(textName.getText());
  textName.setEditable(true);
  labelName.setLabelFor(textName);
  proxy.updateSurname(textSurname.getText());
  textSurname.setEditable(true);
  labelSurname.setLabelFor(textSurname);
  Date dateOfBirth=new Date();
  SimpleDateFormat dateFormat=new SimpleDateFormat("String_Node_Str");
  String strDateOfBirth=dayList.getSelectedItem().toString() + "String_Node_Str" + monthList.getSelectedItem().toString()+ "String_Node_Str"+ yearList.getSelectedItem().toString();
  try {
    dateOfBirth=dateFormat.parse(strDateOfBirth);
  }
 catch (  ParseException e) {
    e.printStackTrace();
  }
  boolean updateDate;
  if (!(updateDate=proxy.updateDateOfBirth(dateOfBirth))) {
    System.out.println("String_Node_Str");
  }
  proxy.updateAddress(textCountry.getText(),textCity.getText(),textStreet.getText(),textNumber.getText(),textCap.getText());
  textCountry.setEditable(true);
  labelCountry.setLabelFor(textCountry);
  textCity.setEditable(true);
  labelCity.setLabelFor(textCity);
  textStreet.setEditable(true);
  labelStreet.setLabelFor(textStreet);
  textNumber.setEditable(true);
  labelNumber.setLabelFor(textNumber);
  textCap.setEditable(true);
  labelCap.setLabelFor(textCap);
  proxy.updatePhoneNumber(textPhoneNumber.getText());
  textPhoneNumber.setEditable(true);
  labelPhoneNumber.setLabelFor(textPhoneNumber);
}

Fixed version (ground truth):
/** 
 * METODO PER  AGGIORNARE IL DATABASE (per cambiare i valori aggiornati dall'utente nel database)
 */
private void setNewValues(){
  proxy.updateName(textName.getText());
  textName.setEditable(true);
  labelName.setLabelFor(textName);
  proxy.updateSurname(textSurname.getText());
  textSurname.setEditable(true);
  labelSurname.setLabelFor(textSurname);
  Date dateOfBirth=new Date();
  SimpleDateFormat dateFormat=new SimpleDateFormat("String_Node_Str");
  String strDateOfBirth=dayList.getSelectedItem().toString() + "String_Node_Str" + monthList.getSelectedItem().toString()+ "String_Node_Str"+ yearList.getSelectedItem().toString();
  try {
    dateOfBirth=dateFormat.parse(strDateOfBirth);
  }
 catch (  ParseException e) {
    e.printStackTrace();
  }
  if (!(proxy.updateDateOfBirth(dateOfBirth))) {
    System.out.println("String_Node_Str");
  }
  proxy.updateAddress(textCountry.getText(),textCity.getText(),textStreet.getText(),textNumber.getText(),textCap.getText());
  textCountry.setEditable(true);
  labelCountry.setLabelFor(textCountry);
  textCity.setEditable(true);
  labelCity.setLabelFor(textCity);
  textStreet.setEditable(true);
  labelStreet.setLabelFor(textStreet);
  textNumber.setEditable(true);
  labelNumber.setLabelFor(textNumber);
  textCap.setEditable(true);
  labelCap.setLabelFor(textCap);
  proxy.updatePhoneNumber(textPhoneNumber.getText());
  textPhoneNumber.setEditable(true);
  labelPhoneNumber.setLabelFor(textPhoneNumber);
}
Program: 78421
Project: 78421
Buggy source:
public static void main(String[] args){
  String email="String_Node_Str";
  customerClient.CustomerProxy proxy=new customerClient.CustomerProxy(email);
  HashMap<Integer,Assignment> assignmentList=proxy.getAssignmentList();
  Assignment assignmentProva=assignmentList.get(1);
  GUIWriteReview prova=new GUIWriteReview(assignmentProva,email);
  prova.setVisible(true);
}

Fixed version (ground truth):
public static void main(String[] args){
  String email="String_Node_Str";
  CustomerProxy proxy=new CustomerProxy(email);
  HashMap<Integer,Assignment> assignmentList=proxy.getAssignmentList();
  Assignment assignmentProva=assignmentList.get(1);
  GUIWriteReview prova=new GUIWriteReview(assignmentProva,email);
  prova.setVisible(true);
}