Program: 24341
Project: 24341
Buggy source:
private void edit_feed(String old_name,String new_name,String new_url,String old_group,String new_group){
  remove_string_from_file(storage + "String_Node_Str" + all_string+ "String_Node_Str",old_name,true);
  append_string_to_file(storage + "String_Node_Str" + all_string+ "String_Node_Str","String_Node_Str" + new_name + "String_Node_Str"+ new_url+ "String_Node_Str"+ new_group+ "String_Node_Str");
  if (!old_name.equals(new_name))   (new File(storage + "String_Node_Str" + old_name+ "String_Node_Str")).renameTo((new File(storage + "String_Node_Str" + new_name+ "String_Node_Str")));
  if (!old_group.equals(new_group)) {
    remove_string_from_file(storage + "String_Node_Str" + old_group+ "String_Node_Str",old_name,true);
    append_string_to_file(storage + "String_Node_Str" + new_group+ "String_Node_Str","String_Node_Str" + new_name + "String_Node_Str"+ new_url+ "String_Node_Str");
    if (!exists("String_Node_Str" + old_group + "String_Node_Str"))     remove_string_from_file(storage + "String_Node_Str",old_group,false);
  }
 else {
    remove_string_from_file(storage + "String_Node_Str" + old_group+ "String_Node_Str",old_name,true);
    append_string_to_file(storage + "String_Node_Str" + old_group+ "String_Node_Str","String_Node_Str" + new_name + "String_Node_Str"+ new_url+ "String_Node_Str");
  }
  feed_list_adapter.remove_item(poser);
  feed_list_adapter.add_list_pos(poser,new_name,new_url + "String_Node_Str" + new_group+ "String_Node_Str"+ Integer.toString(count_lines(storage + "String_Node_Str" + new_name+ "String_Node_Str") - 1)+ "String_Node_Str");
  feed_list_adapter.notifyDataSetChanged();
  update_groups();
  update_manage_feeds();
  update_manage_groups();
  sort_group_content_by_time(all_string);
  if (exists("String_Node_Str" + old_group + "String_Node_Str"))   sort_group_content_by_time(old_group);
  if (exists("String_Node_Str" + new_group + "String_Node_Str"))   sort_group_content_by_time(new_group);
}

Fixed version (ground truth):
private static void edit_feed(String old_name,String new_name,String new_url,String old_group,String new_group){
  remove_string_from_file(storage + "String_Node_Str" + all_string+ "String_Node_Str",old_name,true);
  append_string_to_file(storage + "String_Node_Str" + all_string+ "String_Node_Str","String_Node_Str" + new_name + "String_Node_Str"+ new_url+ "String_Node_Str"+ new_group+ "String_Node_Str");
  if (!old_name.equals(new_name))   (new File(storage + "String_Node_Str" + old_name+ "String_Node_Str")).renameTo((new File(storage + "String_Node_Str" + new_name+ "String_Node_Str")));
  if (!old_group.equals(new_group)) {
    remove_string_from_file(storage + "String_Node_Str" + old_group+ "String_Node_Str",old_name,true);
    append_string_to_file(storage + "String_Node_Str" + new_group+ "String_Node_Str","String_Node_Str" + new_name + "String_Node_Str"+ new_url+ "String_Node_Str");
    if (!exists("String_Node_Str" + old_group + "String_Node_Str"))     remove_string_from_file(storage + "String_Node_Str",old_group,false);
  }
 else {
    remove_string_from_file(storage + "String_Node_Str" + old_group+ "String_Node_Str",old_name,true);
    append_string_to_file(storage + "String_Node_Str" + old_group+ "String_Node_Str","String_Node_Str" + new_name + "String_Node_Str"+ new_url+ "String_Node_Str");
  }
  feed_list_adapter.remove_item(poser);
  feed_list_adapter.add_list_pos(poser,new_name,new_url + "String_Node_Str" + new_group+ "String_Node_Str"+ Integer.toString(count_lines(storage + "String_Node_Str" + new_name+ "String_Node_Str") - 1)+ "String_Node_Str");
  feed_list_adapter.notifyDataSetChanged();
  update_groups();
  update_manage_feeds();
  update_manage_groups();
  sort_group_content_by_time(all_string);
  if (exists("String_Node_Str" + old_group + "String_Node_Str"))   sort_group_content_by_time(old_group);
  if (exists("String_Node_Str" + new_group + "String_Node_Str"))   sort_group_content_by_time(new_group);
}