Program: 165479
Project: 165479
Buggy source:
/** 
 * Create the frame.
 */
public RenamerGUI(final MoviescraperPreferences preferences,Movie sampleMovie){
  System.out.println("String_Node_Str" + sampleMovie);
  this.sampleMovie=sampleMovie;
  setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
  setBounds(100,100,800,600);
  contentPane=new JPanel();
  contentPane.setBorder(new EmptyBorder(5,5,5,5));
  setContentPane(contentPane);
  GridBagLayout gbl_contentPane=new GridBagLayout();
  gbl_contentPane.columnWidths=new int[]{0,0,0};
  gbl_contentPane.rowHeights=new int[]{0,0,0,0,0};
  gbl_contentPane.columnWeights=new double[]{0.0,1.0,Double.MIN_VALUE};
  gbl_contentPane.rowWeights=new double[]{0.0,0.0,0.0,0.0,1.0,0.0};
  contentPane.setLayout(gbl_contentPane);
  JLabel lblRenamestring=new JLabel("String_Node_Str");
  GridBagConstraints gbc_lblRenamestring=new GridBagConstraints();
  gbc_lblRenamestring.insets=new Insets(0,0,5,5);
  gbc_lblRenamestring.anchor=GridBagConstraints.EAST;
  gbc_lblRenamestring.gridx=0;
  gbc_lblRenamestring.gridy=0;
  contentPane.add(lblRenamestring,gbc_lblRenamestring);
  textFieldRenameString=new JTextField(MoviescraperPreferences.getRenamerString());
  GridBagConstraints gbc_textFieldRenameString=new GridBagConstraints();
  gbc_textFieldRenameString.insets=new Insets(0,0,5,0);
  gbc_textFieldRenameString.fill=GridBagConstraints.HORIZONTAL;
  gbc_textFieldRenameString.gridx=1;
  gbc_textFieldRenameString.gridy=0;
  contentPane.add(textFieldRenameString,gbc_textFieldRenameString);
  textFieldRenameString.setColumns(10);
  textFieldRenameString.addKeyListener(new KeyAdapter(){
    @Override public void keyReleased(    KeyEvent e){
      preferences.setRenamerString(textFieldRenameString.getText());
      updateExample();
    }
  }
);
  JLabel lblAvailableString=new JLabel("String_Node_Str");
  GridBagConstraints gbc_lblavailablestring=new GridBagConstraints();
  gbc_lblavailablestring.insets=new Insets(0,0,5,5);
  gbc_lblavailablestring.anchor=GridBagConstraints.EAST;
  gbc_lblavailablestring.gridx=0;
  gbc_lblavailablestring.gridy=1;
  contentPane.add(lblAvailableString,gbc_lblavailablestring);
  JTextField availbleTagsTextField=new JTextField(Renamer.getAvailableTags());
  availbleTagsTextField.setEditable(false);
  GridBagConstraints gbc_textFieldRenameStringTwo=new GridBagConstraints();
  gbc_textFieldRenameStringTwo.insets=new Insets(0,0,5,0);
  gbc_textFieldRenameStringTwo.fill=GridBagConstraints.HORIZONTAL;
  gbc_textFieldRenameStringTwo.gridx=1;
  gbc_textFieldRenameStringTwo.gridy=1;
  contentPane.add(availbleTagsTextField,gbc_textFieldRenameStringTwo);
  availbleTagsTextField.setColumns(10);
  JLabel lblSanitizerString=new JLabel("String_Node_Str");
  GridBagConstraints gbc_lblSanitizerString=new GridBagConstraints();
  gbc_lblSanitizerString.insets=new Insets(0,0,5,5);
  gbc_lblSanitizerString.anchor=GridBagConstraints.EAST;
  gbc_lblSanitizerString.gridx=0;
  gbc_lblSanitizerString.gridy=2;
  contentPane.add(lblSanitizerString,gbc_lblSanitizerString);
  textFieldSanitizerString=new JTextField(MoviescraperPreferences.getSanitizerForFilename());
  GridBagConstraints gbc_textFieldSanitizerString=new GridBagConstraints();
  gbc_textFieldSanitizerString.insets=new Insets(0,0,5,0);
  gbc_textFieldSanitizerString.fill=GridBagConstraints.HORIZONTAL;
  gbc_textFieldSanitizerString.gridx=1;
  gbc_textFieldSanitizerString.gridy=2;
  contentPane.add(textFieldSanitizerString,gbc_textFieldSanitizerString);
  textFieldSanitizerString.setColumns(10);
  textFieldSanitizerString.addKeyListener(new KeyAdapter(){
    @Override public void keyReleased(    KeyEvent e){
      preferences.setSanitizerForFilename(textFieldSanitizerString.getText());
      updateExample();
    }
  }
);
  lblExample=new JLabel("String_Node_Str");
  GridBagConstraints gbc_lblExample=new GridBagConstraints();
  gbc_lblExample.anchor=GridBagConstraints.EAST;
  gbc_lblExample.insets=new Insets(0,0,5,5);
  gbc_lblExample.gridx=0;
  gbc_lblExample.gridy=3;
  contentPane.add(lblExample,gbc_lblExample);
  textFieldExample=new JTextField();
  textFieldExample.setEditable(false);
  GridBagConstraints gbc_textFieldExample=new GridBagConstraints();
  gbc_textFieldExample.insets=new Insets(0,0,5,0);
  gbc_textFieldExample.fill=GridBagConstraints.HORIZONTAL;
  gbc_textFieldExample.gridx=1;
  gbc_textFieldExample.gridy=3;
  contentPane.add(textFieldExample,gbc_textFieldExample);
  textFieldExample.setColumns(10);
  fileDetailPanel=new FileDetailPanel(preferences,new GUIMain());
  fileDetailPanel.hideArtworkPanel();
  scrollPane=new JScrollPane();
  scrollPane.setViewportView(fileDetailPanel);
  GridBagConstraints gbc_scrollPane=new GridBagConstraints();
  gbc_scrollPane.insets=new Insets(0,0,5,0);
  gbc_scrollPane.gridwidth=3;
  gbc_scrollPane.fill=GridBagConstraints.BOTH;
  gbc_scrollPane.gridx=0;
  gbc_scrollPane.gridy=4;
  contentPane.add(scrollPane,gbc_scrollPane);
  panel=new JPanel();
  GridBagConstraints gbc_panel=new GridBagConstraints();
  gbc_panel.gridwidth=2;
  gbc_panel.gridx=0;
  gbc_panel.gridy=5;
  contentPane.add(panel,gbc_panel);
  panel.setLayout(new BoxLayout(panel,BoxLayout.X_AXIS));
  btnOk=new JButton("String_Node_Str");
  panel.add(btnOk);
  btnOk.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      Settings.savePreferences();
      RenamerGUI.this.dispose();
    }
  }
);
  btnCancel=new JButton("String_Node_Str");
  panel.add(btnCancel);
  btnCancel.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      RenamerGUI.this.dispose();
    }
  }
);
  fileDetailPanel.setNewMovie(getFakeMovie(),false);
  updateExample();
  this.setVisible(true);
}

Fixed version (ground truth):
/** 
 * Create the frame.
 */
public RenamerGUI(final MoviescraperPreferences preferences,Movie sampleMovie){
  System.out.println("String_Node_Str" + sampleMovie);
  this.sampleMovie=sampleMovie;
  if (this.sampleMovie == null)   this.sampleMovie=getFakeMovie();
  setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
  setBounds(100,100,800,600);
  contentPane=new JPanel();
  contentPane.setBorder(new EmptyBorder(5,5,5,5));
  setContentPane(contentPane);
  GridBagLayout gbl_contentPane=new GridBagLayout();
  gbl_contentPane.columnWidths=new int[]{0,0,0};
  gbl_contentPane.rowHeights=new int[]{0,0,0,0,0};
  gbl_contentPane.columnWeights=new double[]{0.0,1.0,Double.MIN_VALUE};
  gbl_contentPane.rowWeights=new double[]{0.0,0.0,0.0,0.0,1.0,0.0};
  contentPane.setLayout(gbl_contentPane);
  JLabel lblRenamestring=new JLabel("String_Node_Str");
  GridBagConstraints gbc_lblRenamestring=new GridBagConstraints();
  gbc_lblRenamestring.insets=new Insets(0,0,5,5);
  gbc_lblRenamestring.anchor=GridBagConstraints.EAST;
  gbc_lblRenamestring.gridx=0;
  gbc_lblRenamestring.gridy=0;
  contentPane.add(lblRenamestring,gbc_lblRenamestring);
  textFieldRenameString=new JTextField(MoviescraperPreferences.getRenamerString());
  GridBagConstraints gbc_textFieldRenameString=new GridBagConstraints();
  gbc_textFieldRenameString.insets=new Insets(0,0,5,0);
  gbc_textFieldRenameString.fill=GridBagConstraints.HORIZONTAL;
  gbc_textFieldRenameString.gridx=1;
  gbc_textFieldRenameString.gridy=0;
  contentPane.add(textFieldRenameString,gbc_textFieldRenameString);
  textFieldRenameString.setColumns(10);
  textFieldRenameString.addKeyListener(new KeyAdapter(){
    @Override public void keyReleased(    KeyEvent e){
      preferences.setRenamerString(textFieldRenameString.getText());
      updateExample();
    }
  }
);
  JLabel lblAvailableString=new JLabel("String_Node_Str");
  GridBagConstraints gbc_lblavailablestring=new GridBagConstraints();
  gbc_lblavailablestring.insets=new Insets(0,0,5,5);
  gbc_lblavailablestring.anchor=GridBagConstraints.EAST;
  gbc_lblavailablestring.gridx=0;
  gbc_lblavailablestring.gridy=1;
  contentPane.add(lblAvailableString,gbc_lblavailablestring);
  JTextField availbleTagsTextField=new JTextField(Renamer.getAvailableTags());
  availbleTagsTextField.setEditable(false);
  GridBagConstraints gbc_textFieldRenameStringTwo=new GridBagConstraints();
  gbc_textFieldRenameStringTwo.insets=new Insets(0,0,5,0);
  gbc_textFieldRenameStringTwo.fill=GridBagConstraints.HORIZONTAL;
  gbc_textFieldRenameStringTwo.gridx=1;
  gbc_textFieldRenameStringTwo.gridy=1;
  contentPane.add(availbleTagsTextField,gbc_textFieldRenameStringTwo);
  availbleTagsTextField.setColumns(10);
  JLabel lblSanitizerString=new JLabel("String_Node_Str");
  GridBagConstraints gbc_lblSanitizerString=new GridBagConstraints();
  gbc_lblSanitizerString.insets=new Insets(0,0,5,5);
  gbc_lblSanitizerString.anchor=GridBagConstraints.EAST;
  gbc_lblSanitizerString.gridx=0;
  gbc_lblSanitizerString.gridy=2;
  contentPane.add(lblSanitizerString,gbc_lblSanitizerString);
  textFieldSanitizerString=new JTextField(MoviescraperPreferences.getSanitizerForFilename());
  GridBagConstraints gbc_textFieldSanitizerString=new GridBagConstraints();
  gbc_textFieldSanitizerString.insets=new Insets(0,0,5,0);
  gbc_textFieldSanitizerString.fill=GridBagConstraints.HORIZONTAL;
  gbc_textFieldSanitizerString.gridx=1;
  gbc_textFieldSanitizerString.gridy=2;
  contentPane.add(textFieldSanitizerString,gbc_textFieldSanitizerString);
  textFieldSanitizerString.setColumns(10);
  textFieldSanitizerString.addKeyListener(new KeyAdapter(){
    @Override public void keyReleased(    KeyEvent e){
      preferences.setSanitizerForFilename(textFieldSanitizerString.getText());
      updateExample();
    }
  }
);
  lblExample=new JLabel("String_Node_Str");
  GridBagConstraints gbc_lblExample=new GridBagConstraints();
  gbc_lblExample.anchor=GridBagConstraints.EAST;
  gbc_lblExample.insets=new Insets(0,0,5,5);
  gbc_lblExample.gridx=0;
  gbc_lblExample.gridy=3;
  contentPane.add(lblExample,gbc_lblExample);
  textFieldExample=new JTextField();
  textFieldExample.setEditable(false);
  GridBagConstraints gbc_textFieldExample=new GridBagConstraints();
  gbc_textFieldExample.insets=new Insets(0,0,5,0);
  gbc_textFieldExample.fill=GridBagConstraints.HORIZONTAL;
  gbc_textFieldExample.gridx=1;
  gbc_textFieldExample.gridy=3;
  contentPane.add(textFieldExample,gbc_textFieldExample);
  textFieldExample.setColumns(10);
  fileDetailPanel=new FileDetailPanel(preferences,new GUIMain());
  fileDetailPanel.hideArtworkPanel();
  scrollPane=new JScrollPane();
  scrollPane.setViewportView(fileDetailPanel);
  GridBagConstraints gbc_scrollPane=new GridBagConstraints();
  gbc_scrollPane.insets=new Insets(0,0,5,0);
  gbc_scrollPane.gridwidth=3;
  gbc_scrollPane.fill=GridBagConstraints.BOTH;
  gbc_scrollPane.gridx=0;
  gbc_scrollPane.gridy=4;
  contentPane.add(scrollPane,gbc_scrollPane);
  panel=new JPanel();
  GridBagConstraints gbc_panel=new GridBagConstraints();
  gbc_panel.gridwidth=2;
  gbc_panel.gridx=0;
  gbc_panel.gridy=5;
  contentPane.add(panel,gbc_panel);
  panel.setLayout(new BoxLayout(panel,BoxLayout.X_AXIS));
  btnOk=new JButton("String_Node_Str");
  panel.add(btnOk);
  btnOk.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      Settings.savePreferences();
      RenamerGUI.this.dispose();
    }
  }
);
  btnCancel=new JButton("String_Node_Str");
  panel.add(btnCancel);
  btnCancel.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      RenamerGUI.this.dispose();
    }
  }
);
  fileDetailPanel.setNewMovie(getFakeMovie(),false,true);
  updateExample();
  this.setVisible(true);
}