Program: 175533
Project: 175533
Buggy source:
/** 
 * Create Web Contents
 * @param actionRequest
 * @param actionResponse
 * @throws Exception 
 */
private void createJournals(ActionRequest actionRequest,ActionResponse actionResponse) throws Exception {
  ThemeDisplay themeDisplay=(ThemeDisplay)actionRequest.getAttribute(WebKeys.THEME_DISPLAY);
  double loader=10;
  ServiceContext serviceContext=ServiceContextFactory.getInstance(Group.class.getName(),actionRequest);
  Locale defaultLocale=LocaleUtil.fromLanguageId(themeDisplay.getUser().getLanguageId());
  Map<Locale,String> descriptionMap=new HashMap<Locale,String>();
  descriptionMap.put(defaultLocale,StringPool.BLANK);
  String content=buildFields(themeDisplay.getCompanyGroupId(),locales,baseArticle);
  System.out.println("String_Node_Str" + numberOfArticles + "String_Node_Str");
  for (long i=1; i <= numberOfArticles; i++) {
    if (numberOfArticles >= 100) {
      if (i == (int)(numberOfArticles * (loader / 100))) {
        System.out.println("String_Node_Str" + (int)loader + "String_Node_Str");
        loader=loader + 10;
      }
    }
    StringBundler title=new StringBundler(2);
    title.append(baseTitle);
    title.append(i);
    Map<Locale,String> titleMap=new HashMap<Locale,String>();
    titleMap.put(defaultLocale,title.toString());
    _journalArticleLocalService.addArticle(serviceContext.getUserId(),groupId,folderId,titleMap,descriptionMap,content,LDFPortletKeys._DDM_STRUCTURE_KEY,LDFPortletKeys._DDM_TEMPLATE_KEY,serviceContext);
  }
  SessionMessages.add(actionRequest,"String_Node_Str");
  System.out.println("String_Node_Str" + numberOfArticles + "String_Node_Str");
}

Fixed version (ground truth):
/** 
 * Create Web Contents
 * @param actionRequest
 * @param actionResponse
 * @throws Exception 
 */
private void createJournals(ActionRequest actionRequest,ActionResponse actionResponse) throws Exception {
  ThemeDisplay themeDisplay=(ThemeDisplay)actionRequest.getAttribute(WebKeys.THEME_DISPLAY);
  double loader=10;
  ServiceContext serviceContext=ServiceContextFactory.getInstance(Group.class.getName(),actionRequest);
  Locale defaultLocale=LocaleUtil.fromLanguageId(themeDisplay.getUser().getLanguageId());
  Map<Locale,String> descriptionMap=new ConcurrentHashMap<Locale,String>();
  descriptionMap.put(defaultLocale,StringPool.BLANK);
  String content=buildFields(themeDisplay.getCompanyGroupId(),locales,baseArticle);
  System.out.println("String_Node_Str" + numberOfArticles + "String_Node_Str");
  for (long i=1; i <= numberOfArticles; i++) {
    if (numberOfArticles >= 100) {
      if (i == (int)(numberOfArticles * (loader / 100))) {
        System.out.println("String_Node_Str" + (int)loader + "String_Node_Str");
        loader=loader + 10;
      }
    }
    StringBundler title=new StringBundler(2);
    title.append(baseTitle);
    title.append(i);
    Map<Locale,String> titleMap=new ConcurrentHashMap<Locale,String>();
    titleMap.put(defaultLocale,title.toString());
    _journalArticleLocalService.addArticle(serviceContext.getUserId(),groupId,folderId,titleMap,descriptionMap,content,LDFPortletKeys._DDM_STRUCTURE_KEY,LDFPortletKeys._DDM_TEMPLATE_KEY,serviceContext);
  }
  SessionMessages.add(actionRequest,"String_Node_Str");
  System.out.println("String_Node_Str" + numberOfArticles + "String_Node_Str");
}