Program: 175537
Project: 175537
Buggy source:
/** 
 * Create Sites
 * @param actionRequest
 * @param actionResponse
 * @throws PortalException 
 */
private void createSites(ActionRequest actionRequest,ActionResponse actionResponse) throws PortalException {
  double loader=10;
  ServiceContext serviceContext=ServiceContextFactory.getInstance(Group.class.getName(),actionRequest);
  System.out.println("String_Node_Str" + numberOfSites + "String_Node_Str");
  @SuppressWarnings("String_Node_Str") Map<Locale,String> descriptionMap=new ConcurrentHashMap<Locale,String>(){
{
      put(LocaleUtil.getDefault(),StringPool.BLANK);
    }
  }
;
  for (long i=1; i <= numberOfSites; i++) {
    if (numberOfSites >= 100) {
      if (i == (int)(numberOfSites * (loader / 100))) {
        System.out.println("String_Node_Str" + (int)loader + "String_Node_Str");
        loader=loader + 10;
      }
    }
    StringBundler siteName=new StringBundler(2);
    siteName.append(baseSiteName).append(i);
    @SuppressWarnings("String_Node_Str") Map<Locale,String> nameMap=new ConcurrentHashMap<Locale,String>(){
{
        put(LocaleUtil.getDefault(),siteName.toString());
      }
    }
;
    try {
      _groupLocalService.addGroup(serviceContext.getUserId(),parentGroupId,null,0,liveGroupId,nameMap,descriptionMap,siteType,manualMembership,GroupConstants.DEFAULT_MEMBERSHIP_RESTRICTION,StringPool.BLANK,site,inheritContent,active,serviceContext);
    }
 catch (    DuplicateGroupException e) {
      _log.error("String_Node_Str" + siteName.toString() + "String_Node_Str"+ e.getMessage());
    }
  }
  SessionMessages.add(actionRequest,"String_Node_Str");
  System.out.println("String_Node_Str" + numberOfSites + "String_Node_Str");
}

Fixed version (ground truth):
/** 
 * Create Sites
 * @param actionRequest
 * @param actionResponse
 * @throws PortalException 
 */
private void createSites(ActionRequest actionRequest,ActionResponse actionResponse) throws PortalException {
  long numberOfSites=0;
  String baseSiteName=StringPool.BLANK;
  int siteType=GroupConstants.TYPE_SITE_OPEN;
  long parentGroupId=GroupConstants.DEFAULT_PARENT_GROUP_ID;
  long liveGroupId=GroupConstants.DEFAULT_LIVE_GROUP_ID;
  boolean manualMembership=false;
  boolean site=true;
  boolean inheritContent=false;
  boolean active=true;
  numberOfSites=ParamUtil.getLong(actionRequest,"String_Node_Str",0);
  baseSiteName=ParamUtil.getString(actionRequest,"String_Node_Str","String_Node_Str");
  siteType=ParamUtil.getInteger(actionRequest,"String_Node_Str",GroupConstants.TYPE_SITE_OPEN);
  parentGroupId=ParamUtil.getLong(actionRequest,"String_Node_Str",GroupConstants.DEFAULT_PARENT_GROUP_ID);
  liveGroupId=ParamUtil.getLong(actionRequest,"String_Node_Str",GroupConstants.DEFAULT_LIVE_GROUP_ID);
  manualMembership=ParamUtil.getBoolean(actionRequest,"String_Node_Str",true);
  site=ParamUtil.getBoolean(actionRequest,"String_Node_Str",true);
  inheritContent=ParamUtil.getBoolean(actionRequest,"String_Node_Str",false);
  active=ParamUtil.getBoolean(actionRequest,"String_Node_Str",true);
  double loader=10;
  ServiceContext serviceContext=ServiceContextFactory.getInstance(Group.class.getName(),actionRequest);
  System.out.println("String_Node_Str" + numberOfSites + "String_Node_Str");
  @SuppressWarnings("String_Node_Str") Map<Locale,String> descriptionMap=new ConcurrentHashMap<Locale,String>(){
{
      put(LocaleUtil.getDefault(),StringPool.BLANK);
    }
  }
;
  for (long i=1; i <= numberOfSites; i++) {
    if (numberOfSites >= 100) {
      if (i == (int)(numberOfSites * (loader / 100))) {
        System.out.println("String_Node_Str" + (int)loader + "String_Node_Str");
        loader=loader + 10;
      }
    }
    StringBundler siteName=new StringBundler(2);
    siteName.append(baseSiteName).append(i);
    @SuppressWarnings("String_Node_Str") Map<Locale,String> nameMap=new ConcurrentHashMap<Locale,String>(){
{
        put(LocaleUtil.getDefault(),siteName.toString());
      }
    }
;
    try {
      _groupLocalService.addGroup(serviceContext.getUserId(),parentGroupId,null,0,liveGroupId,nameMap,descriptionMap,siteType,manualMembership,GroupConstants.DEFAULT_MEMBERSHIP_RESTRICTION,StringPool.BLANK,site,inheritContent,active,serviceContext);
    }
 catch (    DuplicateGroupException e) {
      _log.error("String_Node_Str" + siteName.toString() + "String_Node_Str"+ e.getMessage());
    }
  }
  SessionMessages.add(actionRequest,"String_Node_Str");
  System.out.println("String_Node_Str" + numberOfSites + "String_Node_Str");
}