Program: 24344
Project: 24344
Buggy source:
private void sort_group_content_by_time(String group){
  Date time;
  List<String> feeds_array=read_csv_to_list(new String[]{storage + "String_Node_Str" + group+ "String_Node_Str","String_Node_Str","String_Node_Str"}).get(0);
  List<Date> dates=new ArrayList<Date>();
  List<String> links_ordered=new ArrayList<String>();
  List<String> content_all=new ArrayList<String>();
  List<String> links, pubDates, content;
  for (  String feed : feeds_array) {
    String content_path=storage + "String_Node_Str" + feed+ "String_Node_Str";
    File test=new File(content_path);
    if (test.exists()) {
      List<List<String>> contenter=read_csv_to_list(new String[]{content_path,"String_Node_Str","String_Node_Str","String_Node_Str"});
      links=contenter.get(0);
      pubDates=contenter.get(1);
      content=read_file_to_list("String_Node_Str" + feed + "String_Node_Str",0);
      if (pubDates.get(0).length() < 8)       pubDates=read_csv_to_list(new String[]{content_path,"String_Node_Str","String_Node_Str"}).get(0);
      if (pubDates.get(0).length() < 8)       pubDates=read_csv_to_list(new String[]{content_path,"String_Node_Str","String_Node_Str"}).get(0);
      final int size=pubDates.size();
      for (int i=0; i < size; i++) {
        content_all.add(content.get(i));
        try {
          time=(new SimpleDateFormat("String_Node_Str",Locale.ENGLISH)).parse(pubDates.get(i));
        }
 catch (        Exception e) {
          try {
            time=(new SimpleDateFormat("String_Node_Str",Locale.ENGLISH)).parse(pubDates.get(i));
          }
 catch (          Exception t) {
            try {
              time=(new SimpleDateFormat("String_Node_Str",Locale.ENGLISH)).parse(pubDates.get(i));
            }
 catch (            Exception c) {
              try {
                time=(new SimpleDateFormat("String_Node_Str",Locale.ENGLISH)).parse(pubDates.get(i));
              }
 catch (              Exception n) {
                try {
                  time=(new SimpleDateFormat("String_Node_Str",Locale.ENGLISH)).parse(pubDates.get(i));
                }
 catch (                Exception o) {
                  try {
                    time=(new SimpleDateFormat("String_Node_Str",Locale.ENGLISH)).parse(pubDates.get(i));
                  }
 catch (                  Exception r) {
                    try {
                      time=(new SimpleDateFormat("String_Node_Str",Locale.ENGLISH)).parse(pubDates.get(i));
                    }
 catch (                    Exception x) {
                      main_view.log("String_Node_Str" + pubDates.get(i));
                      time=new Date();
                    }
                  }
                }
              }
            }
          }
        }
        final int sizer=dates.size();
        for (int j=0; j < sizer; j++) {
          if (time.before(dates.get(j))) {
            dates.add(j,time);
            links_ordered.add(j,links.get(i));
            break;
          }
 else           if ((j == dates.size() - 1) && (time.after(dates.get(j)))) {
            dates.add(time);
            links_ordered.add(links.get(i));
            break;
          }
        }
        if (dates.size() == 0) {
          dates.add(time);
          links_ordered.add(links.get(i));
        }
      }
    }
  }
  final String group_content_path="String_Node_Str" + group + "String_Node_Str";
  String last_url="String_Node_Str";
  if (main_view.exists("String_Node_Str" + group + "String_Node_Str")) {
    List<List<String>> bonne=read_csv_to_list(new String[]{storage + "String_Node_Str" + group+ "String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"});
    List<String> urls=bonne.get(0);
    List<String> marks=bonne.get(1);
    int sized=marks.size();
    for (int i=sized - 1; i >= 0; i--) {
      if (marks.get(i).equals("String_Node_Str")) {
        last_url=urls.get(i);
        break;
      }
    }
    if ((last_url.equals("String_Node_Str")) && (sized > 0))     last_url=urls.get(0);
  }
  if (last_url.equals("String_Node_Str"))   last_url=links_ordered.get(0);
  main_view.delete(group_content_path);
  try {
    BufferedWriter out=new BufferedWriter(new FileWriter(storage + group_content_path,true));
    if (links_ordered.size() > 0) {
      for (      String link : links_ordered) {
        for (        String line : content_all) {
          if (line.contains(link)) {
            if (link.equals(last_url))             out.write(line + "String_Node_Str");
 else             out.write(line + "String_Node_Str");
            break;
          }
        }
      }
    }
    out.close();
  }
 catch (  Exception e) {
  }
}

Fixed version (ground truth):
private void sort_group_content_by_time(String group){
  Date time;
  List<String> feeds_array=read_csv_to_list(new String[]{storage + "String_Node_Str" + group+ "String_Node_Str","String_Node_Str","String_Node_Str"}).get(0);
  List<Date> dates=new ArrayList<Date>();
  List<String> links_ordered=new ArrayList<String>();
  List<String> content_all=new ArrayList<String>();
  List<String> links, pubDates, content;
  for (  String feed : feeds_array) {
    String content_path=storage + "String_Node_Str" + feed+ "String_Node_Str";
    File test=new File(content_path);
    if (test.exists()) {
      List<List<String>> contenter=read_csv_to_list(new String[]{content_path,"String_Node_Str","String_Node_Str","String_Node_Str"});
      links=contenter.get(0);
      pubDates=contenter.get(1);
      content=read_file_to_list("String_Node_Str" + feed + "String_Node_Str",0);
      if (pubDates.get(0).length() < 8)       pubDates=read_csv_to_list(new String[]{content_path,"String_Node_Str","String_Node_Str"}).get(0);
      if (pubDates.get(0).length() < 8)       pubDates=read_csv_to_list(new String[]{content_path,"String_Node_Str","String_Node_Str"}).get(0);
      final int size=pubDates.size();
      for (int i=0; i < size; i++) {
        content_all.add(content.get(i));
        try {
          time=(new SimpleDateFormat("String_Node_Str",Locale.ENGLISH)).parse(pubDates.get(i));
        }
 catch (        Exception e) {
          try {
            time=(new SimpleDateFormat("String_Node_Str",Locale.ENGLISH)).parse(pubDates.get(i));
          }
 catch (          Exception t) {
            try {
              time=(new SimpleDateFormat("String_Node_Str",Locale.ENGLISH)).parse(pubDates.get(i));
            }
 catch (            Exception c) {
              try {
                time=(new SimpleDateFormat("String_Node_Str",Locale.ENGLISH)).parse(pubDates.get(i));
              }
 catch (              Exception n) {
                try {
                  time=(new SimpleDateFormat("String_Node_Str",Locale.ENGLISH)).parse(pubDates.get(i));
                }
 catch (                Exception o) {
                  try {
                    time=(new SimpleDateFormat("String_Node_Str",Locale.ENGLISH)).parse(pubDates.get(i));
                  }
 catch (                  Exception r) {
                    try {
                      time=(new SimpleDateFormat("String_Node_Str",Locale.ENGLISH)).parse(pubDates.get(i));
                    }
 catch (                    Exception x) {
                      main_view.log("String_Node_Str" + pubDates.get(i));
                      time=new Date();
                    }
                  }
                }
              }
            }
          }
        }
        final int sizer=dates.size();
        for (int j=0; j < sizer; j++) {
          if (time.before(dates.get(j))) {
            dates.add(j,time);
            links_ordered.add(j,links.get(i));
            break;
          }
 else           if ((j == dates.size() - 1) && (time.after(dates.get(j)))) {
            dates.add(time);
            links_ordered.add(links.get(i));
            break;
          }
        }
        if (dates.size() == 0) {
          dates.add(time);
          links_ordered.add(links.get(i));
        }
      }
    }
  }
  final String group_content_path="String_Node_Str" + group + "String_Node_Str";
  String last_url="String_Node_Str";
  if (main_view.exists("String_Node_Str" + group + "String_Node_Str")) {
    List<List<String>> bonne=read_csv_to_list(new String[]{storage + "String_Node_Str" + group+ "String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"});
    List<String> urls=bonne.get(1);
    List<String> marks=bonne.get(0);
    int sized=marks.size();
    for (int i=sized - 1; i >= 0; i--) {
      if (marks.get(i).equals("String_Node_Str")) {
        main_view.log("String_Node_Str" + Integer.toString(i));
        last_url=urls.get(i);
        break;
      }
    }
    if ((last_url.equals("String_Node_Str")) && (sized > 0))     last_url=urls.get(0);
  }
  if (last_url.equals("String_Node_Str"))   last_url=links_ordered.get(0);
  main_view.delete(group_content_path);
  try {
    BufferedWriter out=new BufferedWriter(new FileWriter(storage + group_content_path,true));
    if (links_ordered.size() > 0) {
      for (      String link : links_ordered) {
        for (        String line : content_all) {
          if (line.contains(link)) {
            if (link.equals(last_url)) {
              main_view.log("String_Node_Str");
              out.write("String_Node_Str" + line + "String_Node_Str");
            }
 else             out.write(line + "String_Node_Str");
            break;
          }
        }
      }
    }
    out.close();
  }
 catch (  Exception e) {
  }
}