Program: 24352
Project: 24352
Buggy source:
@Override public void onClick(View view){
  String new_group=((EditText)add_rss_dialog.findViewById(R.id.group_edit)).getText().toString().trim().toLowerCase();
  if (new_group.length() > 0) {
    String[] groups=read_file_to_array("String_Node_Str");
    boolean found=false;
    for (int i=0; i < groups.length; i++) {
      if ((groups[i].toLowerCase()).equals(new_group))       found=true;
    }
    String[] words=new_group.split("String_Node_Str");
    new_group="String_Node_Str";
    for (int i=0; i < words.length; i++) {
      char cap=Character.toUpperCase(words[i].charAt(0));
      new_group+="String_Node_Str" + cap + words[i].substring(1,words[i].length());
    }
    if (!found)     add_group(new_group);
  }
 else   new_group=((Spinner)add_rss_dialog.findViewById(R.id.group_spinner)).getSelectedItem().toString();
  Boolean rss=false;
  String URL_check=((EditText)add_rss_dialog.findViewById(R.id.URL_edit)).getText().toString().trim();
  String feed_name=((EditText)add_rss_dialog.findViewById(R.id.name_edit)).getText().toString().trim();
  File in=new File(get_filepath("String_Node_Str"));
  download_finished=0;
  new adownload_file().execute(URL_check,"String_Node_Str");
  while (download_finished == 0) {
    try {
      Thread.sleep(20);
    }
 catch (    Exception e) {
    }
  }
  if (Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState())) {
    try {
      BufferedReader reader=new BufferedReader(new FileReader(in));
      try {
        reader.readLine();
        String line=reader.readLine();
        if (line.contains("String_Node_Str"))         rss=true;
 else         if ((line.contains("String_Node_Str")) || (line.contains("String_Node_Str")))         rss=true;
      }
 catch (      Exception e) {
        rss=false;
      }
    }
 catch (    Exception e) {
      rss=false;
    }
  }
  if (rss != null && !rss)   toast_message("String_Node_Str",0);
 else {
    if (feed_name.equals("String_Node_Str")) {
      new parsered(get_filepath("String_Node_Str"));
      String[] title=read_file_to_array("String_Node_Str");
      feed_name=title[0];
      File temp=new File(get_filepath("String_Node_Str"));
      temp.delete();
      temp=new File(get_filepath("String_Node_Str"));
      temp.delete();
    }
    add_feed(feed_name,URL_check,new_group);
    alertDialog.dismiss();
  }
  in.delete();
}

Fixed version (ground truth):
@Override public void onClick(View view){
  String new_group=((EditText)add_rss_dialog.findViewById(R.id.group_edit)).getText().toString().trim().toLowerCase();
  if (new_group.length() > 0) {
    String[] groups=read_file_to_array("String_Node_Str");
    boolean found=false;
    for (int i=0; i < groups.length; i++) {
      if ((groups[i].toLowerCase()).equals(new_group))       found=true;
    }
    String[] words=new_group.split("String_Node_Str");
    new_group="String_Node_Str";
    if (words.length == 1) {
      char cap=Character.toUpperCase(words[0].charAt(0));
      new_group+=cap + words[i].substring(1,words[0].length());
    }
 else {
      for (int i=0; i < words.length - 1; i++) {
        char cap=Character.toUpperCase(words[i].charAt(0));
        new_group+=cap + words[i].substring(1,words[i].length()) + "String_Node_Str";
      }
      new_group+=cap + words[i].substring(1,words[i].length());
    }
    if (!found)     add_group(new_group);
  }
 else   new_group=((Spinner)add_rss_dialog.findViewById(R.id.group_spinner)).getSelectedItem().toString();
  Boolean rss=false;
  String URL_check=((EditText)add_rss_dialog.findViewById(R.id.URL_edit)).getText().toString().trim();
  String feed_name=((EditText)add_rss_dialog.findViewById(R.id.name_edit)).getText().toString().trim();
  File in=new File(get_filepath("String_Node_Str"));
  download_finished=0;
  new adownload_file().execute(URL_check,"String_Node_Str");
  while (download_finished == 0) {
    try {
      Thread.sleep(20);
    }
 catch (    Exception e) {
    }
  }
  if (Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState())) {
    try {
      BufferedReader reader=new BufferedReader(new FileReader(in));
      try {
        reader.readLine();
        String line=reader.readLine();
        if (line.contains("String_Node_Str"))         rss=true;
 else         if ((line.contains("String_Node_Str")) || (line.contains("String_Node_Str")))         rss=true;
      }
 catch (      Exception e) {
        rss=false;
      }
    }
 catch (    Exception e) {
      rss=false;
    }
  }
  if (rss != null && !rss)   toast_message("String_Node_Str",0);
 else {
    if (feed_name.equals("String_Node_Str")) {
      new parsered(get_filepath("String_Node_Str"));
      String[] title=read_file_to_array("String_Node_Str");
      feed_name=title[0];
      File temp=new File(get_filepath("String_Node_Str"));
      temp.delete();
      temp=new File(get_filepath("String_Node_Str"));
      temp.delete();
    }
    add_feed(feed_name,URL_check,new_group);
    alertDialog.dismiss();
  }
  in.delete();
}