nus-yam/ex-repair huggingface dataset:
Program: 86811
Project: 86811
Buggy source:
/** 
 * @see {@link CohortQueryService#getPatientsHavingRangedObs(TimeModifier,Concept,Concept,Date,Date,List<Location>,List<EncounterType>,RangeComparator,Object,RangeComparator,Object)}
 */
@Test @Verifies(value="String_Node_Str",method="String_Node_Str") public void getPatientsHavingRangedObs_shouldGetPatientsWithAnyObsOfASpecifiedConceptInASpecifiedEncounterType() throws Exception {
  CohortQueryService service=Context.getService(CohortQueryService.class);
  List<EncounterType> encTypeList=Collections.singletonList(new EncounterType(1));
  Cohort cohort=service.getPatientsHavingRangedObs(TimeModifier.ANY,new Concept(5089),null,null,null,null,encTypeList,null,null,null,null);
  Assert.assertEquals(1,cohort.size());
  Assert.assertTrue(cohort.contains(7));
}

Fixed version (ground truth):
/** 
 * @see {@link CohortQueryService#getPatientsHavingRangedObs(TimeModifier,Concept,Concept,Date,Date,List<Location>,List<EncounterType>,RangeComparator,Object,RangeComparator,Object)}
 */
@Test @Verifies(value="String_Node_Str",method="String_Node_Str") public void getPatientsHavingRangedObs_shouldGetPatientsWithAnyObsOfASpecifiedConceptInASpecifiedEncounterType() throws Exception {
  CohortQueryService service=Context.getService(CohortQueryService.class);
  List<EncounterType> encTypeList=Collections.singletonList(new EncounterType(1));
  Cohort cohort=service.getPatientsHavingRangedObs(TimeModifier.ANY,new Concept(5089),null,null,null,null,encTypeList,null,null,null,null);
  assertCohort(cohort,7);
}
Program: 86812
Project: 86812
Buggy source:
/** 
 * Manage Definitions Controller
 */
@RequestMapping("String_Node_Str") public void manageDefinitions(@RequestParam(required=true,value="String_Node_Str") Class<? extends Definition> type,@RequestParam(required=false,value="String_Node_Str") Boolean includeRetired,ModelMap model){
  boolean retired=includeRetired != null && includeRetired.booleanValue();
  List<? extends Definition> definitions=DefinitionContext.getAllDefinitions(type,retired);
  Map<Class<? extends Definition>,List<Definition>> defsByType=new TreeMap<Class<? extends Definition>,List<Definition>>(new DefinitionNameComparator());
  for (  Class<? extends Definition> supportedType : DefinitionContext.getDefinitionService(type).getDefinitionTypes()) {
    defsByType.put(supportedType,new ArrayList<Definition>());
  }
  for (  Definition d : definitions) {
    List<Definition> l=defsByType.get(d.getClass());
    if (l == null) {
      l=new ArrayList<Definition>();
    }
    l.add(d);
    defsByType.put(d.getClass(),l);
  }
  model.addAttribute("String_Node_Str",type);
  model.addAttribute("String_Node_Str",defsByType);
  model.addAttribute("String_Node_Str",definitions);
}

Fixed version (ground truth):
/** 
 * Manage Definitions Controller
 */
@RequestMapping("String_Node_Str") public void manageDefinitions(@RequestParam(required=true,value="String_Node_Str") Class<? extends Definition> type,@RequestParam(required=false,value="String_Node_Str") Boolean includeRetired,ModelMap model){
  boolean retired=includeRetired != null && includeRetired.booleanValue();
  List<? extends Definition> definitions=DefinitionContext.getAllDefinitions(type,retired);
  Map<Class<? extends Definition>,List<Definition>> defsByType=new TreeMap<Class<? extends Definition>,List<Definition>>(new DefinitionNameComparator());
  for (  Class<? extends Definition> supportedType : DefinitionContext.getDefinitionService(type).getDefinitionTypes()) {
    defsByType.put(supportedType,new ArrayList<Definition>());
  }
  for (  Definition d : definitions) {
    List<Definition> l=defsByType.get(d.getClass());
    if (l == null) {
      l=new ArrayList<Definition>();
    }
    l.add(d);
    defsByType.put(d.getClass(),l);
  }
  if (!ModuleFactory.getStartedModulesMap().containsKey("String_Node_Str")) {
    defsByType.remove(DataExportDataSetDefinition.class);
  }
  model.addAttribute("String_Node_Str",type);
  model.addAttribute("String_Node_Str",defsByType);
  model.addAttribute("String_Node_Str",definitions);
}
Program: 86813
Project: 86813
Buggy source:
/** 
 * @return the searches
 */
public Map<String,Mapped<CohortDefinition>> getSearches(){
  return searches;
}

Fixed version (ground truth):
/** 
 * @return the searches
 */
public Map<String,Mapped<CohortDefinition>> getSearches(){
  if (searches == null) {
    searches=new HashMap<String,Mapped<CohortDefinition>>();
  }
  return searches;
}
Program: 86814
Project: 86814
Buggy source:
/** 
 * @see CohortDefinitionEvaluator#evaluateCohort(CohortDefinition,EvaluationContext)
 */
public Cohort evaluate(CohortDefinition cohortDefinition,EvaluationContext evaluationContext){
  Cohort cohort=new Cohort();
  SqlCohortDefinition sqlCohortDefinition=(SqlCohortDefinition)cohortDefinition;
  cohort=Context.getService(CohortQueryService.class).executeSqlQuery(sqlCohortDefinition.getQueryDefinition().getQueryString(),evaluationContext.getParameterValues());
  return cohort;
}

Fixed version (ground truth):
/** 
 * @see CohortDefinitionEvaluator#evaluateCohort(CohortDefinition,EvaluationContext)
 */
public Cohort evaluate(CohortDefinition cohortDefinition,EvaluationContext context){
  SqlCohortDefinition sqlCohortDefinition=(SqlCohortDefinition)cohortDefinition;
  String query=sqlCohortDefinition.getQueryDefinition().getQueryString();
  Cohort c=Context.getService(CohortQueryService.class).executeSqlQuery(query,context.getParameterValues());
  if (context.getBaseCohort() != null) {
    c=Cohort.intersect(c,context.getBaseCohort());
  }
  return c;
}
Program: 86815
Project: 86815
Buggy source:
/** 
 * @param column to add
 */
public void addColumn(String columnName,Mapped<? extends CohortDefinition> column){
  getColumns().put(columnName,column);
}

Fixed version (ground truth):
/** 
 * @param column to add
 */
public void addColumn(String columnName,CohortDefinition column,Map<String,Object> mappings){
  getColumns().put(columnName,new Mapped<CohortDefinition>(column,mappings));
}
Program: 86816
Project: 86816
Buggy source:
/** 
 * @return DataSetColumns constructed from rows and column definitions
 */
public List<CohortDataSetColumn> getDataSetColumns(){
  List<CohortDataSetColumn> c=new ArrayList<CohortDataSetColumn>();
  if (getRows().isEmpty()) {
    int colNum=1;
    for (    String colName : getColumns().keySet()) {
      c.add(new CohortDataSetColumn("String_Node_Str" + colNum,Cohort.class,null,colName,null,getColumns().get(colName)));
      colNum++;
    }
  }
  if (getColumns().isEmpty()) {
    int rowNum=1;
    for (    String rowName : getRows().keySet()) {
      c.add(new CohortDataSetColumn("String_Node_Str" + rowNum,Cohort.class,rowName,null,getRows().get(rowName),null));
      rowNum++;
    }
  }
  if (!getRows().isEmpty() && !getColumns().isEmpty()) {
    int rowNum=1;
    for (    String rowName : getRows().keySet()) {
      int colNum=1;
      for (      String colName : getColumns().keySet()) {
        String key=rowNum + "String_Node_Str" + colNum;
        c.add(new CohortDataSetColumn(key,Cohort.class,rowName,colName,getRows().get(rowName),getColumns().get(colName)));
        colNum++;
      }
      rowNum++;
    }
  }
  return c;
}

Fixed version (ground truth):
/** 
 * @return DataSetColumns constructed from rows and column definitions
 */
public List<CohortDataSetColumn> getDataSetColumns(){
  List<CohortDataSetColumn> c=new ArrayList<CohortDataSetColumn>();
  if (getRows().isEmpty()) {
    for (    String colName : getColumns().keySet()) {
      c.add(new CohortDataSetColumn(colName,Cohort.class,null,colName,null,getColumns().get(colName)));
    }
  }
  if (getColumns().isEmpty()) {
    for (    String rowName : getRows().keySet()) {
      c.add(new CohortDataSetColumn(rowName,Cohort.class,rowName,null,getRows().get(rowName),null));
    }
  }
  if (!getRows().isEmpty() && !getColumns().isEmpty()) {
    for (    String rowName : getRows().keySet()) {
      for (      String colName : getColumns().keySet()) {
        String key=rowName + "String_Node_Str" + colName;
        c.add(new CohortDataSetColumn(key,Cohort.class,rowName,colName,getRows().get(rowName),getColumns().get(colName)));
      }
    }
  }
  return c;
}
Program: 86817
Project: 86817
Buggy source:
/** 
 * @param row to add
 */
public void addRow(String rowName,Mapped<? extends CohortDefinition> row){
  getRows().put(rowName,row);
}

Fixed version (ground truth):
/** 
 * @param row to add
 */
public void addRow(String rowName,CohortDefinition row,Map<String,Object> mappings){
  getRows().put(rowName,new Mapped<CohortDefinition>(row,mappings));
}
Program: 86818
Project: 86818
Buggy source:
/** 
 * @param collectionType the collectionType to set
 */
public void setCollectionType(Class<? extends Collection<?>> collectionType){
  this.collectionType=collectionType;
}

Fixed version (ground truth):
/** 
 * @param collectionType the collectionType to set
 */
public void setCollectionType(Class<? extends Collection> collectionType){
  this.collectionType=collectionType;
}
Program: 86819
Project: 86819
Buggy source:
/** 
 * @return the collectionType
 */
public Class<? extends Collection<?>> getCollectionType(){
  return collectionType;
}

Fixed version (ground truth):
/** 
 * @return the collectionType
 */
public Class<? extends Collection> getCollectionType(){
  return collectionType;
}
Program: 86820
Project: 86820
Buggy source:
/** 
 * @return the properties
 */
public Properties getProperties(){
  return properties;
}

Fixed version (ground truth):
/** 
 * @return the properties
 */
public Properties getProperties(){
  if (properties == null) {
    properties=new Properties();
  }
  return properties;
}
Program: 86822
Project: 86822
Buggy source:
/** 
 * @see DataSetEvaluator#evaluate(DataSetDefinition,EvaluationContext)
 */
public DataSet evaluate(DataSetDefinition dataSetDefinition,EvaluationContext context){
  context=ObjectUtil.nvl(context,new EvaluationContext());
  if (context.getBaseCohort() == null || context.getBaseCohort().isEmpty()) {
    context.setBaseCohort(Context.getPatientSetService().getAllPatients());
  }
  MapDataSet data=new MapDataSet(dataSetDefinition,context);
  CohortDataSetDefinition dsd=(CohortDataSetDefinition)dataSetDefinition;
  CohortDefinitionService cds=Context.getService(CohortDefinitionService.class);
  for (  CohortDataSetColumn col : dsd.getDataSetColumns()) {
    Cohort rowCohort=(col.getRowDefinition() == null ? context.getBaseCohort() : cds.evaluate(col.getRowDefinition(),context));
    Cohort colCohort=(col.getColumnDefinition() == null ? context.getBaseCohort() : cds.evaluate(col.getColumnDefinition(),context));
    Cohort c=Cohort.intersect(rowCohort,colCohort);
    data.addData(col,c);
  }
  return data;
}

Fixed version (ground truth):
/** 
 * @see DataSetEvaluator#evaluate(DataSetDefinition,EvaluationContext)
 */
public DataSet evaluate(DataSetDefinition dataSetDefinition,EvaluationContext context){
  context=ObjectUtil.nvl(context,new EvaluationContext());
  if (context.getBaseCohort() == null) {
    context.setBaseCohort(Context.getPatientSetService().getAllPatients());
  }
  MapDataSet data=new MapDataSet(dataSetDefinition,context);
  CohortDataSetDefinition dsd=(CohortDataSetDefinition)dataSetDefinition;
  CohortDefinitionService cds=Context.getService(CohortDefinitionService.class);
  for (  CohortDataSetColumn col : dsd.getDataSetColumns()) {
    Cohort rowCohort=(col.getRowDefinition() == null ? context.getBaseCohort() : cds.evaluate(col.getRowDefinition(),context));
    Cohort colCohort=(col.getColumnDefinition() == null ? context.getBaseCohort() : cds.evaluate(col.getColumnDefinition(),context));
    Cohort c=Cohort.intersect(rowCohort,colCohort);
    data.addData(col,c);
  }
  return data;
}
Program: 86824
Project: 86824
Buggy source:
/** 
 * @see DataSetDefinitionPersister#purgeDataSetDefinition(DataSetDefinition)
 */
public void purgeDataSetDefinition(DataSetDefinition dataSetDefinition){
  DataExportDataSetDefinition dsd=(DataExportDataSetDefinition)dataSetDefinition;
  Context.getService(ReportObjectService.class).purgeReportObject(dsd.getDataExport());
}

Fixed version (ground truth):
/** 
 * @see DataSetDefinitionPersister#purgeDataSetDefinition(DataSetDefinition)
 */
public void purgeDataSetDefinition(DataSetDefinition dataSetDefinition){
  DataExportDataSetDefinition dsd=(DataExportDataSetDefinition)dataSetDefinition;
  Context.getService(AdministrationService.class).deleteReportObject(dsd.getDataExport().getId());
}
Program: 86825
Project: 86825
Buggy source:
/** 
 * @throws Exception
 */
@Test public void shouldRemoveDataSetDefintion() throws Exception {
  DataSetDefinitionPersister persister=new DataExportDataSetDefinitionPersister();
  DataSetDefinition beforePurge=persister.getDataSetDefinitions("String_Node_Str",true).get(0);
  int idBefore=beforePurge.getId();
  persister.purgeDataSetDefinition(beforePurge);
  DataSetDefinition afterPurge=persister.getDataSetDefinition(idBefore);
  Assert.assertNull(afterPurge);
}

Fixed version (ground truth):
@Test public void shouldRemoveDataSetDefintion() throws Exception {
  DataSetDefinitionPersister persister=new DataExportDataSetDefinitionPersister();
  DataSetDefinition beforePurge=persister.getDataSetDefinitions("String_Node_Str",true).get(0);
  int idBefore=beforePurge.getId();
  persister.purgeDataSetDefinition(beforePurge);
  DataSetDefinition afterPurge=persister.getDataSetDefinition(idBefore);
  Assert.assertNull(afterPurge);
}
Program: 86826
Project: 86826
Buggy source:
public static final List<PatientIdentifierType> GLOBAL_PROPERTY_PREFERRED_IDENTIFIER_TYPES(){
  String propertyValue=Context.getAdministrationService().getGlobalProperty("String_Node_Str");
  List<PatientIdentifierType> pits=new ArrayList<PatientIdentifierType>();
  if (propertyValue != null) {
    for (    String s : propertyValue.split("String_Node_Str")) {
      pits.add(Context.getPatientService().getPatientIdentifierTypeByName(s));
    }
  }
  return pits;
}

Fixed version (ground truth):
public static final List<PatientIdentifierType> GLOBAL_PROPERTY_PREFERRED_IDENTIFIER_TYPES(){
  String propertyValue=Context.getAdministrationService().getGlobalProperty("String_Node_Str");
  List<PatientIdentifierType> pits=new ArrayList<PatientIdentifierType>();
  if (StringUtils.hasText(propertyValue)) {
    for (    String s : propertyValue.split("String_Node_Str")) {
      PatientIdentifierType pit=Context.getPatientService().getPatientIdentifierTypeByName(s);
      if (pit != null)       pits.add(pit);
    }
  }
  return pits;
}
Program: 86827
Project: 86827
Buggy source:
public Cohort evaluate(CohortDefinition cohortDefinition,EvaluationContext context){
  NumericObsCohortDefinition cd=(NumericObsCohortDefinition)cohortDefinition;
  return Context.getService(CohortQueryService.class).getPatientsHavingNumericObs(cd.getTimeModifier(),cd.getQuestion(),cd.getGroupingConcept(),cd.getOnOrAfter(),cd.getOnOrBefore(),cd.getLocationList(),cd.getEncounterTypeList(),cd.getModifier1(),cd.getValue1(),cd.getModifier2(),cd.getValue2());
}

Fixed version (ground truth):
/** 
 * @see org.openmrs.module.reporting.cohort.definition.evaluator.CohortDefinitionEvaluator#evaluate(org.openmrs.module.reporting.cohort.definition.CohortDefinition,org.openmrs.module.reporting.evaluation.EvaluationContext)
 * @should get patients with any obs of a specified concept
 * @should test any with many properties specified
 * @should test avg with many properties specified
 * @should test last with many properties specified 
 */
public Cohort evaluate(CohortDefinition cohortDefinition,EvaluationContext context){
  NumericObsCohortDefinition cd=(NumericObsCohortDefinition)cohortDefinition;
  return Context.getService(CohortQueryService.class).getPatientsHavingNumericObs(cd.getTimeModifier(),cd.getQuestion(),cd.getGroupingConcept(),cd.getOnOrAfter(),cd.getOnOrBefore(),cd.getLocationList(),cd.getEncounterTypeList(),cd.getModifier1(),cd.getValue1(),cd.getModifier2(),cd.getValue2());
}
Program: 86829
Project: 86829
Buggy source:
/** 
 * Should validate whether all parameter mappings have been specified.
 * @param indicatorForm
 * @param errors
 */
public void validateCountIndicator(IndicatorForm indicatorForm,Errors errors){
  if (indicatorForm != null) {
    validateCohortIndicator(indicatorForm,errors);
    if (indicatorForm.getCohortDefinition() == null) {
      ValidationUtils.rejectIfEmpty(errors,"String_Node_Str","String_Node_Str","String_Node_Str");
    }
    List<Parameter> parameters=indicatorForm.getCohortDefinition().getParameters();
    for (    Parameter parameter : parameters) {
      Object value=indicatorForm.getParameterMapping().get(parameter.getName());
      log.info("String_Node_Str" + value + "String_Node_Str");
      if (value == null || value.equals("String_Node_Str")) {
        ValidationUtils.rejectIfEmptyOrWhitespace(errors,"String_Node_Str","String_Node_Str","String_Node_Str");
      }
    }
  }
}

Fixed version (ground truth):
/** 
 * Should validate whether all parameter mappings have been specified.
 * @param indicatorForm
 * @param errors
 */
public void validateCountIndicator(IndicatorForm indicatorForm,Errors errors){
  if (indicatorForm != null) {
    validateCohortIndicator(indicatorForm,errors);
    if (indicatorForm.getCohortDefinition() == null) {
      ValidationUtils.rejectIfEmpty(errors,"String_Node_Str","String_Node_Str","String_Node_Str");
    }
    List<Parameter> parameters=indicatorForm.getCohortDefinition().getParameters();
    for (    Parameter parameter : parameters) {
      Object value=indicatorForm.getParameterMapping().get(parameter.getName());
      log.info("String_Node_Str" + value + "String_Node_Str");
      if (value == null || value.equals("String_Node_Str")) {
        errors.rejectValue("String_Node_Str","String_Node_Str",new Object[]{value},"String_Node_Str");
      }
    }
  }
}
Program: 86830
Project: 86830
Buggy source:
/** 
 * @param indicatorForm
 * @param errors
 */
public void validateFractionIndicator(IndicatorForm indicatorForm,Errors errors){
  if (indicatorForm.getNumerator() == null) {
    ValidationUtils.rejectIfEmpty(errors,"String_Node_Str","String_Node_Str","String_Node_Str");
  }
  if (indicatorForm.getDenominator() == null) {
    ValidationUtils.rejectIfEmpty(errors,"String_Node_Str","String_Node_Str","String_Node_Str");
  }
  List<Parameter> parameters=indicatorForm.getNumerator().getParameters();
  for (  Parameter parameter : parameters) {
    Object value=indicatorForm.getNumeratorParameterMapping().get(parameter.getName());
    log.info("String_Node_Str" + value + "String_Node_Str");
    if (value == null || value.equals("String_Node_Str")) {
      ValidationUtils.rejectIfEmpty(errors,"String_Node_Str","String_Node_Str","String_Node_Str");
    }
  }
  parameters=indicatorForm.getDenominator().getParameters();
  for (  Parameter parameter : parameters) {
    Object value=indicatorForm.getDenominatorParameterMapping().get(parameter.getName());
    log.info("String_Node_Str" + value + "String_Node_Str");
    if (value == null || value.equals("String_Node_Str")) {
      ValidationUtils.rejectIfEmpty(errors,"String_Node_Str","String_Node_Str","String_Node_Str");
    }
  }
}

Fixed version (ground truth):
/** 
 * @param indicatorForm
 * @param errors
 */
public void validateFractionIndicator(IndicatorForm indicatorForm,Errors errors){
  if (indicatorForm.getNumerator() == null) {
    ValidationUtils.rejectIfEmpty(errors,"String_Node_Str","String_Node_Str","String_Node_Str");
  }
  if (indicatorForm.getDenominator() == null) {
    ValidationUtils.rejectIfEmpty(errors,"String_Node_Str","String_Node_Str","String_Node_Str");
  }
  List<Parameter> parameters=indicatorForm.getNumerator().getParameters();
  for (  Parameter parameter : parameters) {
    Object value=indicatorForm.getNumeratorParameterMapping().get(parameter.getName());
    log.info("String_Node_Str" + value + "String_Node_Str");
    if (value == null || value.equals("String_Node_Str")) {
      errors.rejectValue("String_Node_Str","String_Node_Str",new Object[]{value},"String_Node_Str");
    }
  }
  parameters=indicatorForm.getDenominator().getParameters();
  for (  Parameter parameter : parameters) {
    Object value=indicatorForm.getDenominatorParameterMapping().get(parameter.getName());
    log.info("String_Node_Str" + value + "String_Node_Str");
    if (value == null || value.equals("String_Node_Str")) {
      errors.rejectValue("String_Node_Str","String_Node_Str",new Object[]{value},"String_Node_Str");
    }
  }
}
Program: 86831
Project: 86831
Buggy source:
/** 
 * @param indicatorForm
 * @param errors
 */
public void validateLocationFilter(IndicatorForm indicatorForm,Errors errors){
  List<Parameter> parameters=indicatorForm.getLocationFilter().getParameters();
  for (  Parameter parameter : parameters) {
    Object value=indicatorForm.getLocationFilterParameterMapping().get(parameter.getName());
    if (value == null || value.equals("String_Node_Str")) {
      ValidationUtils.rejectIfEmpty(errors,"String_Node_Str","String_Node_Str","String_Node_Str");
    }
  }
}

Fixed version (ground truth):
/** 
 * @param indicatorForm
 * @param errors
 */
public void validateLocationFilter(IndicatorForm indicatorForm,Errors errors){
  List<Parameter> parameters=indicatorForm.getLocationFilter().getParameters();
  for (  Parameter parameter : parameters) {
    Object value=indicatorForm.getLocationFilterParameterMapping().get(parameter.getName());
    if (value == null || value.equals("String_Node_Str")) {
      errors.rejectValue("String_Node_Str","String_Node_Str",new Object[]{value},"String_Node_Str");
    }
  }
}
Program: 86835
Project: 86835
Buggy source:
/** 
 * TODO Add javadoc What the heck is this for?
 * @param text
 * @return
 */
public CohortDefinition getStrategy(String text){
  String query=Context.getService(ReportService.class).applyReportXmlMacros(text);
  return CohortExpressionParser.parse(query);
}

Fixed version (ground truth):
/** 
 * TODO Add javadoc What the heck is this for?
 * @param text
 * @return
 */
public CohortDefinition getStrategy(String text){
  return CohortExpressionParser.parse(text);
}
Program: 86836
Project: 86836
Buggy source:
/** 
 * This is called prior to displaying a form for the first time. It tells Spring the form/command object to load into the request
 * @see org.springframework.web.servlet.mvc.AbstractFormController#formBackingObject(javax.servlet.http.HttpServletRequest)
 */
@SuppressWarnings("String_Node_Str") protected Object formBackingObject(HttpServletRequest request) throws ServletException {
  ReportData report=(ReportData)request.getSession().getAttribute(ReportingConstants.OPENMRS_REPORT_DATA);
  if (null != report) {
    return report;
  }
 else {
    MapDataSet emptyData=new MapDataSet();
    emptyData.setName("String_Node_Str");
    Map<String,DataSet> emptyMap=new HashMap<String,DataSet>();
    emptyMap.put("String_Node_Str",emptyData);
    ReportDefinition emptySchema=new ReportDefinition();
    emptySchema.setName("String_Node_Str");
    ReportData emptyReport=new ReportData();
    emptyReport.setDataSets(emptyMap);
    emptyReport.setDefinition(emptySchema);
    return emptyReport;
  }
}

Fixed version (ground truth):
/** 
 * This is called prior to displaying a form for the first time. It tells Spring the form/command object to load into the request
 * @see org.springframework.web.servlet.mvc.AbstractFormController#formBackingObject(javax.servlet.http.HttpServletRequest)
 */
@SuppressWarnings("String_Node_Str") protected Object formBackingObject(HttpServletRequest request) throws ServletException {
  ReportData report=(ReportData)request.getSession().getAttribute(ReportingConstants.OPENMRS_REPORT_DATA);
  if (null != report) {
    return report;
  }
 else {
    EvaluationContext context=new EvaluationContext();
    PatientDataSetDefinition dsd=new PatientDataSetDefinition();
    MapDataSet emptyData=new MapDataSet(dsd,context);
    emptyData.setName("String_Node_Str");
    Map<String,DataSet> emptyMap=new HashMap<String,DataSet>();
    emptyMap.put("String_Node_Str",emptyData);
    ReportDefinition emptySchema=new ReportDefinition();
    emptySchema.setName("String_Node_Str");
    ReportData emptyReport=new ReportData();
    emptyReport.setDataSets(emptyMap);
    emptyReport.setDefinition(emptySchema);
    return emptyReport;
  }
}
Program: 86839
Project: 86839
Buggy source:
/** 
 * @see WidgetHandler#render(WidgetConfig)
 */
@Override public void render(WidgetConfig config) throws IOException {
  TextWidget w=WidgetFactory.getInstance(TextWidget.class,config);
  if (config.getType() == Character.class) {
    config.setConfiguredAttribute("String_Node_Str","String_Node_Str");
    config.setConfiguredAttribute("String_Node_Str","String_Node_Str");
  }
 else {
    config.setConfiguredAttribute("String_Node_Str","String_Node_Str");
  }
  w.render(config);
}

Fixed version (ground truth):
/** 
 * @see WidgetHandler#render(WidgetConfig)
 */
@Override public void render(WidgetConfig config) throws IOException {
  Widget w=null;
  if (config.getType() == Character.class) {
    w=WidgetFactory.getInstance(TextWidget.class,config);
    config.setConfiguredAttribute("String_Node_Str","String_Node_Str");
    config.setConfiguredAttribute("String_Node_Str","String_Node_Str");
  }
 else {
    String rows=config.getAttributeValue("String_Node_Str");
    String cols=config.getAttributeValue("String_Node_Str");
    if (StringUtils.isNotEmpty(rows) || StringUtils.isNotEmpty(cols) || "String_Node_Str".equals(config.getFormat())) {
      w=WidgetFactory.getInstance(TextAreaWidget.class,config);
    }
 else {
      w=WidgetFactory.getInstance(TextWidget.class,config);
      config.setConfiguredAttribute("String_Node_Str","String_Node_Str");
    }
  }
  w.render(config);
}
Program: 86840
Project: 86840
Buggy source:
/** 
 * Public constructor with arguments.
 * @param name
 * @param description
 * @param cohortDefinition
 * @param logicCriteria
 * @param aggregator
 */
public CohortIndicator(String name,String description,Mapped<? extends CohortDefinition> cohortDefinition,LogicCriteria logicCriteria,Class<? extends Aggregator> aggregator){
  super();
  this.setName(name);
  this.setDescription(description);
  this.cohortDefinition=cohortDefinition;
  this.logicCriteria=logicCriteria;
  this.aggregator=aggregator;
  this.setUuid(UUID.randomUUID().toString());
}

Fixed version (ground truth):
/** 
 * Public constructor with arguments.
 * @param name
 * @param description
 * @param cohortDefinition
 * @param logicCriteria
 * @param aggregator
 */
public CohortIndicator(String name,String description,Mapped<? extends CohortDefinition> cohortDefinition,LogicCriteria logicCriteria,Class<? extends Aggregator> aggregator){
  super();
  this.setName(name);
  this.setDescription(description);
  this.cohortDefinition=cohortDefinition;
  this.logicCriteria=logicCriteria;
  this.aggregator=aggregator;
}
Program: 86841
Project: 86841
Buggy source:
/** 
 * Deletes a   {@link Indicator} from the system.
 * @param datasetDefinition	the {@link Indicator} to purge
 * @should remove the Indicator
 */
public void purgeIndicator(Indicator dataSetDefinition);

Fixed version (ground truth):
/** 
 * Deletes a   {@link Indicator} from the system.
 * @param datasetDefinition	the {@link Indicator} to purge
 * @should remove the Indicator
 */
public void purgeIndicator(Indicator indicator);
Program: 86842
Project: 86842
Buggy source:
/** 
 * Saves the given   {@link Indicator} to the system.
 * @param datasetDefinition	the {@link Indicator} to save
 * @return the {@link Indicator} that was 
 * @should create new {@link Indicator}
 * @should update existing {@link Indicator}
 * @should set identifier after save
 */
public Indicator saveIndicator(Indicator datasetDefinition);

Fixed version (ground truth):
/** 
 * Saves the given   {@link Indicator} to the system.
 * @param datasetDefinition	the {@link Indicator} to save
 * @return the {@link Indicator} that was 
 * @should create new {@link Indicator}
 * @should update existing {@link Indicator}
 * @should set identifier after save
 */
public Indicator saveIndicator(Indicator indicator);
Program: 86843
Project: 86843
Buggy source:
/** 
 * @see IndicatorPersister#purgeIndicator(Indicator)
 */
public void purgeIndicator(Indicator dataSetDefinition){
  dao.purgeObject(dataSetDefinition.getId());
}

Fixed version (ground truth):
/** 
 * @see IndicatorPersister#purgeIndicator(Indicator)
 */
public void purgeIndicator(Indicator indicator){
  dao.purgeObject(indicator.getId());
}
Program: 86844
Project: 86844
Buggy source:
/** 
 * @see IndicatorPersister#saveIndicator(Indicator)
 */
public Indicator saveIndicator(Indicator dataSetDefinition){
  return dao.saveObject(dataSetDefinition);
}

Fixed version (ground truth):
/** 
 * @see IndicatorPersister#saveIndicator(Indicator)
 */
public Indicator saveIndicator(Indicator indicator){
  return dao.saveObject(indicator);
}
Program: 86845
Project: 86845
Buggy source:
/** 
 * @see IndicatorService#saveIndicator(String)
 */
public void purgeIndicator(Indicator indicator) throws APIException {
  getPersister(indicator.getClass()).saveIndicator(indicator);
}

Fixed version (ground truth):
/** 
 * @see IndicatorService#saveIndicator(String)
 */
public void purgeIndicator(Indicator indicator) throws APIException {
  getPersister(indicator.getClass()).purgeIndicator(indicator);
}
Program: 86846
Project: 86846
Buggy source:
/** 
 * @see CohortDefinitionPersister#getCohortDefinitionByName(String,boolean)
 */
public List<CohortDefinition> getCohortDefinitions(String name,boolean exactMatchOnly){
  List<Cohort> cohorts=new ArrayList<Cohort>();
  if (exactMatchOnly) {
    cohorts.add(Context.getCohortService().getCohort(name));
  }
 else {
    cohorts.addAll(Context.getCohortService().getCohorts(name));
  }
  List<CohortDefinition> ret=new ArrayList<CohortDefinition>();
  for (  Cohort c : cohorts) {
    ret.add(new StaticCohortDefinition(c));
  }
  return ret;
}

Fixed version (ground truth):
/** 
 * @see CohortDefinitionPersister#getCohortDefinitionByName(String,boolean)
 */
public List<CohortDefinition> getCohortDefinitions(String name,boolean exactMatchOnly){
  List<Cohort> cohorts=new ArrayList<Cohort>();
  if (exactMatchOnly) {
    Cohort c=Context.getCohortService().getCohort(name);
    if (c != null) {
      cohorts.add(c);
    }
  }
 else {
    cohorts.addAll(Context.getCohortService().getCohorts(name));
  }
  List<CohortDefinition> ret=new ArrayList<CohortDefinition>();
  for (  Cohort c : cohorts) {
    ret.add(new StaticCohortDefinition(c));
  }
  return ret;
}
Program: 86847
Project: 86847
Buggy source:
/** 
 * Gets the current treatment group for the given patient. TODO Refactor this -- we don't want logic like this in generic datasets.
 */
public String getCurrentTreatmentGroup(Patient patient){
  String treatmentGroup="String_Node_Str";
  try {
    Program program=Context.getProgramWorkflowService().getProgramByName("String_Node_Str");
    List<PatientProgram> patientPrograms=Context.getProgramWorkflowService().getPatientPrograms(patient,program,null,null,null,null,false);
    ProgramWorkflow workflow=program.getWorkflowByName("String_Node_Str");
    if (!patientPrograms.isEmpty()) {
      PatientState currentState=patientPrograms.get(0).getCurrentState(workflow);
      if (currentState != null && currentState.getActive()) {
        treatmentGroup="String_Node_Str";
        treatmentGroup+=currentState.getState().getConcept().getName().getName();
      }
 else {
        treatmentGroup="String_Node_Str";
      }
    }
 else {
      treatmentGroup="String_Node_Str";
    }
  }
 catch (  Exception e) {
    log.info("String_Node_Str" + patient.getPatientId() + "String_Node_Str"+ e.getCause()+ "String_Node_Str"+ e.getMessage()+ "String_Node_Str");
  }
  return treatmentGroup;
}

Fixed version (ground truth):
/** 
 * Gets the current treatment group for the given patient. TODO Refactor this -- we don't want logic like this in generic datasets.
 */
public String getCurrentTreatmentGroup(Patient patient){
  String treatmentGroup="String_Node_Str";
  try {
    Program program=Context.getProgramWorkflowService().getProgramByName("String_Node_Str");
    List<PatientProgram> patientPrograms=Context.getProgramWorkflowService().getPatientPrograms(patient,program,null,null,null,null,false);
    ProgramWorkflow workflow=program.getWorkflowByName("String_Node_Str");
    if (!patientPrograms.isEmpty()) {
      PatientState currentState=patientPrograms.get(0).getCurrentState(workflow);
      if (currentState != null && currentState.getActive()) {
        treatmentGroup="String_Node_Str";
        treatmentGroup=currentState.getState().getConcept().getName().getName();
        treatmentGroup=treatmentGroup.replace("String_Node_Str","String_Node_Str");
        treatmentGroup=treatmentGroup.replace("String_Node_Str","String_Node_Str");
        treatmentGroup=treatmentGroup.trim();
      }
 else {
        treatmentGroup="String_Node_Str";
      }
    }
 else {
      treatmentGroup="String_Node_Str";
    }
  }
 catch (  Exception e) {
    log.info("String_Node_Str" + patient.getPatientId() + "String_Node_Str"+ e.getCause()+ "String_Node_Str"+ e.getMessage()+ "String_Node_Str");
  }
  return treatmentGroup;
}
Program: 86849
Project: 86849
Buggy source:
private void dealWithIntents(){
  Intent intent=getIntent();
  Bookmark bmark=(new Gson()).fromJson(intent.getStringExtra("String_Node_Str"),Bookmark.class);
  populateFields(bmark);
}

Fixed version (ground truth):
private void dealWithIntents(){
  Intent intent=getIntent();
  try {
    final String json=intent.getStringExtra(IntentConstants.EXTRAS_KEY_BMARK);
    Bookmark bmark=(new Gson()).fromJson(json,Bookmark.class);
    populateFields(bmark);
  }
 catch (  JsonParseException e) {
    Log.e(TAG,"String_Node_Str",e);
  }
}
Program: 86850
Project: 86850
Buggy source:
@Override public boolean onItemLongClick(AdapterView<?> parent,View view,int position,long id){
  final Bookmark bmark=((Bookmark)parent.getAdapter().getItem(position));
  final Bundle bundle=new Bundle();
  String bmarkJson=(new Gson()).toJson(bmark);
  bundle.putString(TAG,bmarkJson);
  final Intent intent=new Intent(BookmarkListActivity.this,BookMarkDetailActivity.class);
  intent.putExtras(bundle);
  startActivity(intent);
  return true;
}

Fixed version (ground truth):
@Override public boolean onItemLongClick(AdapterView<?> parent,View view,int position,long id){
  final Bookmark bmark=((Bookmark)parent.getAdapter().getItem(position));
  final Bundle bundle=new Bundle();
  String bmarkJson=(new Gson()).toJson(bmark);
  bundle.putString(IntentConstants.EXTRAS_KEY_BMARK,bmarkJson);
  final Intent intent=new Intent(BookmarkListActivity.this,BookMarkDetailActivity.class);
  intent.putExtras(bundle);
  startActivity(intent);
  return true;
}
Program: 86851
Project: 86851
Buggy source:
private void setUpListView(){
  ListView lv=getListView();
  lv.setTextFilterEnabled(true);
  lv.setOnItemClickListener(new OnItemClickListener(){
    @Override public void onItemClick(    AdapterView<?> parent,    View view,    int position,    long id){
      final Bookmark bmark=((Bookmark)parent.getAdapter().getItem(position));
      final Uri uri=Uri.parse(BookieServiceUtils.urlForRedirect(bmark,settings.getBaseUrl(),settings.getUsername()));
      startActivity(new Intent(Intent.ACTION_VIEW,uri));
    }
  }
);
  lv.setOnItemLongClickListener(new OnItemLongClickListener(){
    @Override public boolean onItemLongClick(    AdapterView<?> parent,    View view,    int position,    long id){
      final Bookmark bmark=((Bookmark)parent.getAdapter().getItem(position));
      final Bundle bundle=new Bundle();
      String bmarkJson=(new Gson()).toJson(bmark);
      bundle.putString(TAG,bmarkJson);
      final Intent intent=new Intent(BookmarkListActivity.this,BookMarkDetailActivity.class);
      intent.putExtras(bundle);
      startActivity(intent);
      return true;
    }
  }
);
  lv.setOnScrollListener(new EndlessScrollListener());
}

Fixed version (ground truth):
private void setUpListView(){
  ListView lv=getListView();
  lv.setTextFilterEnabled(true);
  lv.setOnItemClickListener(new OnItemClickListener(){
    @Override public void onItemClick(    AdapterView<?> parent,    View view,    int position,    long id){
      final Bookmark bmark=((Bookmark)parent.getAdapter().getItem(position));
      final Uri uri=Uri.parse(BookieServiceUtils.urlForRedirect(bmark,settings.getBaseUrl(),settings.getUsername()));
      startActivity(new Intent(Intent.ACTION_VIEW,uri));
    }
  }
);
  lv.setOnItemLongClickListener(new OnItemLongClickListener(){
    @Override public boolean onItemLongClick(    AdapterView<?> parent,    View view,    int position,    long id){
      final Bookmark bmark=((Bookmark)parent.getAdapter().getItem(position));
      final Bundle bundle=new Bundle();
      String bmarkJson=(new Gson()).toJson(bmark);
      bundle.putString(IntentConstants.EXTRAS_KEY_BMARK,bmarkJson);
      final Intent intent=new Intent(BookmarkListActivity.this,BookMarkDetailActivity.class);
      intent.putExtras(bundle);
      startActivity(intent);
      return true;
    }
  }
);
  lv.setOnScrollListener(new EndlessScrollListener());
}
Program: 86852
Project: 86852
Buggy source:
@Override public void success(SearchResult searchResult,Response response){
  bmarks.addAll(searchResult.search_results);
  setProgressBarIndeterminateVisibility(false);
  Log.w(TAG,"String_Node_Str" + bmarks.size());
  adapter.notifyDataSetChanged();
  pagesLoaded=nextPage;
}

Fixed version (ground truth):
@Override public void success(SearchResult searchResult,Response response){
  bmarks.addAll(searchResult.search_results);
  setProgressBarIndeterminateVisibility(false);
  Log.w(TAG,"String_Node_Str" + bmarks.size());
  adapter.notifyDataSetChanged();
  pagesLoaded++;
}
Program: 86853
Project: 86853
Buggy source:
private void refreshWithSearch(){
  String terms;
  try {
    terms=encode(searchTerms,"String_Node_Str");
  }
 catch (  UnsupportedEncodingException e) {
    return;
  }
  setProgressBarIndeterminateVisibility(true);
  final int nextPage=pagesLoaded + 1;
  service.search(settings.getUsername(),settings.getApiKey(),terms,countPP,nextPage,new Callback<SearchResult>(){
    @Override public void success(    SearchResult searchResult,    Response response){
      bmarks.addAll(searchResult.search_results);
      setProgressBarIndeterminateVisibility(false);
      Log.w(TAG,"String_Node_Str" + bmarks.size());
      adapter.notifyDataSetChanged();
      pagesLoaded=nextPage;
    }
    @Override public void failure(    RetrofitError error){
      setProgressBarIndeterminateVisibility(false);
      handleError(error);
    }
  }
);
}

Fixed version (ground truth):
private void refreshWithSearch(){
  String terms;
  try {
    terms=encode(searchTerms,"String_Node_Str");
  }
 catch (  UnsupportedEncodingException e) {
    return;
  }
  setProgressBarIndeterminateVisibility(true);
  final int nextPage=pagesLoaded;
  service.search(settings.getUsername(),settings.getApiKey(),terms,countPP,nextPage,new Callback<SearchResult>(){
    @Override public void success(    SearchResult searchResult,    Response response){
      bmarks.addAll(searchResult.search_results);
      setProgressBarIndeterminateVisibility(false);
      Log.w(TAG,"String_Node_Str" + bmarks.size());
      adapter.notifyDataSetChanged();
      pagesLoaded++;
    }
    @Override public void failure(    RetrofitError error){
      setProgressBarIndeterminateVisibility(false);
      handleError(error);
    }
  }
);
}
Program: 86854
Project: 86854
Buggy source:
private void refreshWithNewestGlobal(){
  int nextPage=pagesLoaded + 1;
  setProgressBarIndeterminateVisibility(true);
  service.everyonesRecent(countPP,nextPage,new ServiceCallback());
}

Fixed version (ground truth):
private void refreshWithNewestGlobal(){
  int nextPage=pagesLoaded;
  setProgressBarIndeterminateVisibility(true);
  service.everyonesRecent(countPP,nextPage,new ServiceCallback());
}
Program: 86855
Project: 86855
Buggy source:
private void refreshWithNewestUser(){
  int nextPage=pagesLoaded + 1;
  setProgressBarIndeterminateVisibility(true);
  service.recent(settings.getUsername(),settings.getApiKey(),countPP,nextPage,new ServiceCallback());
}

Fixed version (ground truth):
private void refreshWithNewestUser(){
  int nextPage=pagesLoaded;
  setProgressBarIndeterminateVisibility(true);
  service.recent(settings.getUsername(),settings.getApiKey(),countPP,nextPage,new ServiceCallback());
}
Program: 86856
Project: 86856
Buggy source:
private List<Class<?>> allClassesInPackage(String packageName){
  String path=packageName.replace('.','/');
  Enumeration<URL> resources=classResourcesOn(path);
  List<File> dirs=new ArrayList<File>();
  while (resources.hasMoreElements()) {
    URL resource=resources.nextElement();
    dirs.add(new File(resource.getFile()));
  }
  List<Class<?>> classes=Lists.newArrayList();
  for (  File directory : dirs) {
    classes.addAll(findClasses(directory,packageName));
  }
  return classes;
}

Fixed version (ground truth):
private List<Class<?>> allClassesInPackage(String packageName){
  try {
    String path=packageName.replace('.','/');
    Enumeration<URL> resources=classResourcesOn(path);
    List<URI> dirs=new ArrayList<URI>();
    while (resources.hasMoreElements()) {
      URL resource=resources.nextElement();
      dirs.add(resource.toURI());
    }
    List<Class<?>> classes=Lists.newArrayList();
    for (    URI directory : dirs) {
      classes.addAll(findClasses(directory,packageName));
    }
    return classes;
  }
 catch (  Exception e) {
    throw new RuntimeException("String_Node_Str" + packageName + "String_Node_Str",e);
  }
}
Program: 86857
Project: 86857
Buggy source:
/** 
 * Recursive method used to find all classes in a given directory and subdirs.
 * @param directory   The base directory
 * @param packageName The package name for classes found inside the base directory
 * @return The classes
 */
private List<Class<?>> findClasses(File directory,String packageName){
  List<Class<?>> classes=Lists.newArrayList();
  if (isJar(directory)) {
    return classesFromJar(directory,packageName);
  }
  if (!directory.exists()) {
    return classes;
  }
  File[] files=directory.listFiles();
  if (files != null) {
    for (    File file : files) {
      if (file.isDirectory()) {
        classes.addAll(findClasses(file,packageName + "String_Node_Str" + file.getName()));
      }
 else       if (file.getName().endsWith("String_Node_Str") && isNotAnInnerClass(file.getName())) {
        classes.add(correspondingClass(packageName,file));
      }
    }
  }
  return classes;
}

Fixed version (ground truth):
/** 
 * Recursive method used to find all classes in a given directory and subdirs.
 * @param directory   The base directory
 * @param packageName The package name for classes found inside the base directory
 * @return The classes
 */
private List<Class<?>> findClasses(URI directory,String packageName){
  try {
    final String scheme=directory.getScheme();
    final String schemeSpecificPart=directory.getSchemeSpecificPart();
    if (scheme.equals("String_Node_Str") && schemeSpecificPart.contains("String_Node_Str")) {
      return findClassesInJar(directory,packageName);
    }
 else     if (scheme.equals("String_Node_Str")) {
      return findClassesInFileSystemDirectory(directory,packageName);
    }
    throw new IllegalArgumentException("String_Node_Str" + scheme + "String_Node_Str");
  }
 catch (  Exception e) {
    throw new RuntimeException("String_Node_Str" + "String_Node_Str" + directory + "String_Node_Str"+ packageName+ "String_Node_Str",e);
  }
}
Program: 86858
Project: 86858
Buggy source:
private void startTestSuiteForStory(Story story){
  String storyName=removeSuffixFrom(story.getName());
  String storyTitle=NameConverter.humanize(storyName);
  net.thucydides.core.model.Story userStory=net.thucydides.core.model.Story.withIdAndPath(storyName,storyTitle,story.getPath()).withNarrative(story.getNarrative().asString(new Keywords()).trim());
  StepEventBus.getEventBus().testSuiteStarted(userStory);
  registerTags(story);
}

Fixed version (ground truth):
private void startTestSuiteForStory(Story story){
  String storyName=removeSuffixFrom(story.getName());
  String storyTitle=NameConverter.humanize(storyName);
  net.thucydides.core.model.Story userStory=net.thucydides.core.model.Story.withIdAndPath(storyName,storyTitle,story.getPath()).withNarrative(getNarrativeFrom(story));
  StepEventBus.getEventBus().testSuiteStarted(userStory);
  registerTags(story);
}
Program: 86859
Project: 86859
Buggy source:
public void scenarioNotAllowed(Scenario scenario,String s){
}

Fixed version (ground truth):
public void scenarioNotAllowed(Scenario scenario,String s){
  StepEventBus.getEventBus().testIgnored();
}
Program: 86860
Project: 86860
Buggy source:
private void startTestSuiteForStory(Story story){
  String storyName=removeSuffixFrom(story.getName());
  String storyTitle=NameConverter.humanize(storyName);
  net.thucydides.core.model.Story userStory=net.thucydides.core.model.Story.withIdAndPath(storyName,storyTitle,story.getPath()).withNarrative(story.getNarrative().asA());
  StepEventBus.getEventBus().testSuiteStarted(userStory);
  registerTags(story);
}

Fixed version (ground truth):
private void startTestSuiteForStory(Story story){
  String storyName=removeSuffixFrom(story.getName());
  String storyTitle=NameConverter.humanize(storyName);
  net.thucydides.core.model.Story userStory=net.thucydides.core.model.Story.withIdAndPath(storyName,storyTitle,story.getPath()).withNarrative(story.getNarrative().asString(new Keywords()).trim());
  StepEventBus.getEventBus().testSuiteStarted(userStory);
  registerTags(story);
}
Program: 86861
Project: 86861
Buggy source:
public ThucydidesStepCandidate(StepCandidate stepCandidate){
  super(stepCandidate.getPatternAsString(),stepCandidate.getPriority(),stepCandidate.getStepType(),stepCandidate.getMethod(),(Class<?>)Extract.field("String_Node_Str").from(stepCandidate),(InjectableStepsFactory)Extract.field("String_Node_Str").from(stepCandidate),(Keywords)Extract.field("String_Node_Str").from(stepCandidate),new RegexPrefixCapturingPatternParser(),new ParameterConverters(),new ParameterControls());
  this.stepCandidate=stepCandidate;
}

Fixed version (ground truth):
public ThucydidesStepCandidate(StepCandidate stepCandidate){
  super(stepCandidate.getPatternAsString(),stepCandidate.getPriority(),stepCandidate.getStepType(),stepCandidate.getMethod(),(Class<?>)Extract.field("String_Node_Str").from(stepCandidate),(InjectableStepsFactory)Extract.field("String_Node_Str").from(stepCandidate),(Keywords)Extract.field("String_Node_Str").from(stepCandidate),new RegexPrefixCapturingPatternParser(),new ParameterConverters(),new ParameterControls());
  this.composedOf(stepCandidate.composedSteps());
  this.stepCandidate=stepCandidate;
}
Program: 86862
Project: 86862
Buggy source:
private Class<?> correspondingClass(String packageName,File file){
  try {
    String fullyQualifiedClassName=packageName + '.' + simpleClassNameOf(file);
    return getClassLoader().loadClass(fullyQualifiedClassName);
  }
 catch (  ClassNotFoundException e) {
    throw new IllegalArgumentException("String_Node_Str" + file,e);
  }
}

Fixed version (ground truth):
private Class<?> correspondingClass(String packageName,File file){
  String fullyQualifiedClassName=packageName + '.' + simpleClassNameOf(file);
  return loadClassWithName(fullyQualifiedClassName);
}