nus-yam/ex-repair huggingface dataset:
Program: 113008
Project: 113008
Buggy source:
public static DataAdapter<?> createAdapter(final PropertyManagement propertyManagement) throws Exception {
  final Class<DimensionExtractor> dimensionExtractorClass=propertyManagement.getPropertyAsClass(CommonParameters.Common.DIMENSION_EXTRACT_CLASS,DimensionExtractor.class);
  return ClusteringUtils.createAdapter(propertyManagement.getPropertyAsString(CentroidParameters.Centroid.DATA_TYPE_ID),propertyManagement.getPropertyAsString(CentroidParameters.Centroid.DATA_NAMESPACE_URI,BasicFeatureTypes.DEFAULT_NAMESPACE),((PersistableStore)StoreParameters.StoreParam.STORE.getHelper().getValue(propertyManagement)).getDataStoreOptions().createAdapterStore(),dimensionExtractorClass.newInstance().getDimensionNames());
}

Fixed version (ground truth):
public static DataAdapter<?> createAdapter(final PropertyManagement propertyManagement) throws Exception {
  final Class<DimensionExtractor> dimensionExtractorClass=propertyManagement.getPropertyAsClass(CommonParameters.Common.DIMENSION_EXTRACT_CLASS,DimensionExtractor.class);
  return ClusteringUtils.createAdapter(propertyManagement.getPropertyAsString(CentroidParameters.Centroid.DATA_TYPE_ID),propertyManagement.getPropertyAsString(CentroidParameters.Centroid.DATA_NAMESPACE_URI,BasicFeatureTypes.DEFAULT_NAMESPACE),((PersistableStore)StoreParameters.StoreParam.INPUT_STORE.getHelper().getValue(propertyManagement)).getDataStoreOptions().createAdapterStore(),dimensionExtractorClass.newInstance().getDimensionNames());
}
Program: 113009
Project: 113009
Buggy source:
public static PrimaryIndex[] getIndices(final PropertyManagement propertyManagement){
  PersistableStore store=(PersistableStore)StoreParameters.StoreParam.STORE.getHelper().getValue(propertyManagement);
  final IndexStore indexStore=store.getDataStoreOptions().createIndexStore();
  final mil.nga.giat.geowave.core.store.CloseableIterator<Index<?,?>> it=indexStore.getIndices();
  final List<PrimaryIndex> indices=new LinkedList<PrimaryIndex>();
  while (it.hasNext()) {
    indices.add((PrimaryIndex)it.next());
  }
  try {
    it.close();
  }
 catch (  final IOException e) {
    LOGGER.warn("String_Node_Str" + e);
  }
  final PrimaryIndex[] result=new PrimaryIndex[indices.size()];
  indices.toArray(result);
  return result;
}

Fixed version (ground truth):
public static PrimaryIndex[] getIndices(final PropertyManagement propertyManagement){
  PersistableStore store=(PersistableStore)StoreParameters.StoreParam.INPUT_STORE.getHelper().getValue(propertyManagement);
  final IndexStore indexStore=store.getDataStoreOptions().createIndexStore();
  final mil.nga.giat.geowave.core.store.CloseableIterator<Index<?,?>> it=indexStore.getIndices();
  final List<PrimaryIndex> indices=new LinkedList<PrimaryIndex>();
  while (it.hasNext()) {
    indices.add((PrimaryIndex)it.next());
  }
  try {
    it.close();
  }
 catch (  final IOException e) {
    LOGGER.warn("String_Node_Str" + e);
  }
  final PrimaryIndex[] result=new PrimaryIndex[indices.size()];
  indices.toArray(result);
  return result;
}
Program: 113010
Project: 113010
Buggy source:
public static DataAdapter[] getAdapters(final PropertyManagement propertyManagement) throws IOException {
  PersistableStore store=(PersistableStore)StoreParameters.StoreParam.STORE.getHelper().getValue(propertyManagement);
  final AdapterStore adapterStore=store.getDataStoreOptions().createAdapterStore();
  final mil.nga.giat.geowave.core.store.CloseableIterator<DataAdapter<?>> it=adapterStore.getAdapters();
  final List<DataAdapter> adapters=new LinkedList<DataAdapter>();
  while (it.hasNext()) {
    adapters.add(it.next());
  }
  it.close();
  final DataAdapter[] result=new DataAdapter[adapters.size()];
  adapters.toArray(result);
  return result;
}

Fixed version (ground truth):
public static DataAdapter[] getAdapters(final PropertyManagement propertyManagement) throws IOException {
  PersistableStore store=(PersistableStore)StoreParameters.StoreParam.INPUT_STORE.getHelper().getValue(propertyManagement);
  final AdapterStore adapterStore=store.getDataStoreOptions().createAdapterStore();
  final mil.nga.giat.geowave.core.store.CloseableIterator<DataAdapter<?>> it=adapterStore.getAdapters();
  final List<DataAdapter> adapters=new LinkedList<DataAdapter>();
  while (it.hasNext()) {
    adapters.add(it.next());
  }
  it.close();
  final DataAdapter[] result=new DataAdapter[adapters.size()];
  adapters.toArray(result);
  return result;
}
Program: 113011
Project: 113011
Buggy source:
public static PrimaryIndex createIndex(final PropertyManagement propertyManagement) throws Exception {
  PersistableStore store=(PersistableStore)StoreParameters.StoreParam.STORE.getHelper().getValue(propertyManagement);
  final IndexStore indexStore=store.getDataStoreOptions().createIndexStore();
  return (PrimaryIndex)indexStore.getIndex(new ByteArrayId(propertyManagement.getPropertyAsString(CentroidParameters.Centroid.INDEX_ID)));
}

Fixed version (ground truth):
public static PrimaryIndex createIndex(final PropertyManagement propertyManagement) throws Exception {
  PersistableStore store=(PersistableStore)StoreParameters.StoreParam.INPUT_STORE.getHelper().getValue(propertyManagement);
  final IndexStore indexStore=store.getDataStoreOptions().createIndexStore();
  return (PrimaryIndex)indexStore.getIndex(new ByteArrayId(propertyManagement.getPropertyAsString(CentroidParameters.Centroid.INDEX_ID)));
}
Program: 113012
Project: 113012
Buggy source:
@Override public void setup(final PropertyManagement runTimeProperties,final Class<?> scope,final Configuration configuration){
  super.setup(runTimeProperties,scope,configuration);
  final ParameterEnum[] params=new ParameterEnum[]{StoreParameters.StoreParam.STORE};
  runTimeProperties.setConfig(params,configuration,scope);
}

Fixed version (ground truth):
@Override public void setup(final PropertyManagement runTimeProperties,final Class<?> scope,final Configuration configuration){
  super.setup(runTimeProperties,scope,configuration);
  final ParameterEnum[] params=new ParameterEnum[]{StoreParameters.StoreParam.INPUT_STORE};
  runTimeProperties.setConfig(params,configuration,scope);
}
Program: 113013
Project: 113013
Buggy source:
@Override public void initialize(final JobContext context,final Class<?> scope) throws IOException {
  super.initialize(context,scope);
  adapterStore=new SerializableAdapterStore(((PersistableStore)StoreParameters.StoreParam.STORE.getHelper().getValue(context,scope,null)).getDataStoreOptions().createAdapterStore());
  init();
}

Fixed version (ground truth):
@Override public void initialize(final JobContext context,final Class<?> scope) throws IOException {
  super.initialize(context,scope);
  adapterStore=new SerializableAdapterStore(((PersistableStore)StoreParameters.StoreParam.INPUT_STORE.getHelper().getValue(context,scope,null)).getDataStoreOptions().createAdapterStore());
  init();
}
Program: 113015
Project: 113015
Buggy source:
public AdapterStore getAdapterStore(final PropertyManagement runTimeProperties) throws Exception {
  PersistableStore store=(PersistableStore)StoreParameters.StoreParam.STORE.getHelper().getValue(runTimeProperties);
  return store.getDataStoreOptions().createAdapterStore();
}

Fixed version (ground truth):
public AdapterStore getAdapterStore(final PropertyManagement runTimeProperties) throws Exception {
  PersistableStore store=(PersistableStore)StoreParameters.StoreParam.INPUT_STORE.getHelper().getValue(runTimeProperties);
  return store.getDataStoreOptions().createAdapterStore();
}
Program: 113016
Project: 113016
Buggy source:
public IndexStore getIndexStore(final PropertyManagement runTimeProperties) throws Exception {
  PersistableStore store=(PersistableStore)StoreParameters.StoreParam.STORE.getHelper().getValue(runTimeProperties);
  return store.getDataStoreOptions().createIndexStore();
}

Fixed version (ground truth):
public IndexStore getIndexStore(final PropertyManagement runTimeProperties) throws Exception {
  PersistableStore store=(PersistableStore)StoreParameters.StoreParam.INPUT_STORE.getHelper().getValue(runTimeProperties);
  return store.getDataStoreOptions().createIndexStore();
}
Program: 113017
Project: 113017
Buggy source:
@Override public Collection<ParameterEnum<?>> getParameters(){
  final List<ParameterEnum<?>> params=new ArrayList<ParameterEnum<?>>();
  if (inputFormat != null) {
    params.addAll(inputFormat.getParameters());
  }
  if (outputFormat != null) {
    params.addAll(inputFormat.getParameters());
  }
  params.addAll(Arrays.asList(new ParameterEnum<?>[]{StoreParam.STORE,Output.REDUCER_COUNT,Output.OUTPUT_FORMAT}));
  return params;
}

Fixed version (ground truth):
@Override public Collection<ParameterEnum<?>> getParameters(){
  final List<ParameterEnum<?>> params=new ArrayList<ParameterEnum<?>>();
  if (inputFormat != null) {
    params.addAll(inputFormat.getParameters());
  }
  if (outputFormat != null) {
    params.addAll(inputFormat.getParameters());
  }
  params.addAll(Arrays.asList(new ParameterEnum<?>[]{StoreParam.INPUT_STORE,Output.REDUCER_COUNT,Output.OUTPUT_FORMAT}));
  return params;
}
Program: 113018
Project: 113018
Buggy source:
@Override public List<ParameterEnum<?>> getParameters(){
  return Arrays.asList(new ParameterEnum<?>[]{ExtractParameters.Extract.INDEX_ID,ExtractParameters.Extract.ADAPTER_ID,ExtractParameters.Extract.QUERY,ExtractParameters.Extract.MAX_INPUT_SPLIT,ExtractParameters.Extract.MIN_INPUT_SPLIT,StoreParam.STORE});
}

Fixed version (ground truth):
@Override public List<ParameterEnum<?>> getParameters(){
  return Arrays.asList(new ParameterEnum<?>[]{ExtractParameters.Extract.INDEX_ID,ExtractParameters.Extract.ADAPTER_ID,ExtractParameters.Extract.QUERY,ExtractParameters.Extract.MAX_INPUT_SPLIT,ExtractParameters.Extract.MIN_INPUT_SPLIT,StoreParam.INPUT_STORE});
}
Program: 113020
Project: 113020
Buggy source:
@Override public Collection<ParameterEnum<?>> getParameters(){
  return Arrays.asList(new ParameterEnum<?>[]{StoreParam.STORE});
}

Fixed version (ground truth):
@Override public Collection<ParameterEnum<?>> getParameters(){
  return Arrays.asList(new ParameterEnum<?>[]{StoreParam.INPUT_STORE});
}
Program: 113021
Project: 113021
Buggy source:
@Override public void setup(final PropertyManagement runTimeProperties,final Configuration configuration) throws Exception {
  final DataStorePluginOptions dataStoreOptions=((PersistableStore)runTimeProperties.getProperty(StoreParam.STORE)).getDataStoreOptions();
  GeoWaveInputFormat.setDataStoreName(configuration,dataStoreOptions.getType());
  GeoWaveInputFormat.setStoreConfigOptions(configuration,dataStoreOptions.getFactoryOptionsAsMap());
}

Fixed version (ground truth):
@Override public void setup(final PropertyManagement runTimeProperties,final Configuration configuration) throws Exception {
  final DataStorePluginOptions dataStoreOptions=((PersistableStore)runTimeProperties.getProperty(StoreParam.INPUT_STORE)).getDataStoreOptions();
  GeoWaveInputFormat.setDataStoreName(configuration,dataStoreOptions.getType());
  GeoWaveInputFormat.setStoreConfigOptions(configuration,dataStoreOptions.getFactoryOptionsAsMap());
}
Program: 113022
Project: 113022
Buggy source:
@Override public Collection<ParameterEnum<?>> getParameters(){
  final Set<ParameterEnum<?>> params=new HashSet<ParameterEnum<?>>();
  params.addAll(super.getParameters());
  params.addAll(Arrays.asList(new ParameterEnum<?>[]{StoreParameters.StoreParam.STORE,GlobalParameters.Global.BATCH_ID}));
  params.addAll(MapReduceParameters.getParameters());
  params.addAll(NestedGroupCentroidAssignment.getParameters());
  params.addAll(Arrays.asList(new ParameterEnum<?>[]{HullParameters.Hull.WRAPPER_FACTORY_CLASS,HullParameters.Hull.PROJECTION_CLASS,HullParameters.Hull.REDUCER_COUNT,HullParameters.Hull.DATA_TYPE_ID,HullParameters.Hull.DATA_NAMESPACE_URI,HullParameters.Hull.INDEX_ID}));
  return params;
}

Fixed version (ground truth):
@Override public Collection<ParameterEnum<?>> getParameters(){
  final Set<ParameterEnum<?>> params=new HashSet<ParameterEnum<?>>();
  params.addAll(super.getParameters());
  params.addAll(Arrays.asList(new ParameterEnum<?>[]{StoreParameters.StoreParam.INPUT_STORE,StoreParameters.StoreParam.OUTPUT_STORE,GlobalParameters.Global.BATCH_ID}));
  params.addAll(MapReduceParameters.getParameters());
  params.addAll(NestedGroupCentroidAssignment.getParameters());
  params.addAll(Arrays.asList(new ParameterEnum<?>[]{HullParameters.Hull.WRAPPER_FACTORY_CLASS,HullParameters.Hull.PROJECTION_CLASS,HullParameters.Hull.REDUCER_COUNT,HullParameters.Hull.DATA_TYPE_ID,HullParameters.Hull.DATA_NAMESPACE_URI,HullParameters.Hull.INDEX_ID}));
  return params;
}
Program: 113023
Project: 113023
Buggy source:
@Override public Collection<ParameterEnum<?>> getParameters(){
  final Set<ParameterEnum<?>> params=new HashSet<ParameterEnum<?>>();
  params.addAll(Arrays.asList(new ParameterEnum<?>[]{ExtractParameters.Extract.REDUCER_COUNT,ExtractParameters.Extract.OUTPUT_DATA_TYPE_ID,ExtractParameters.Extract.DATA_NAMESPACE_URI,ExtractParameters.Extract.DIMENSION_EXTRACT_CLASS,ExtractParameters.Extract.INDEX_ID,ExtractParameters.Extract.ADAPTER_ID,ExtractParameters.Extract.MIN_INPUT_SPLIT,ExtractParameters.Extract.MAX_INPUT_SPLIT,ExtractParameters.Extract.QUERY,StoreParam.STORE,GlobalParameters.Global.BATCH_ID}));
  params.addAll(MapReduceParameters.getParameters());
  return params;
}

Fixed version (ground truth):
@Override public Collection<ParameterEnum<?>> getParameters(){
  final Set<ParameterEnum<?>> params=new HashSet<ParameterEnum<?>>();
  params.addAll(Arrays.asList(new ParameterEnum<?>[]{ExtractParameters.Extract.REDUCER_COUNT,ExtractParameters.Extract.OUTPUT_DATA_TYPE_ID,ExtractParameters.Extract.DATA_NAMESPACE_URI,ExtractParameters.Extract.DIMENSION_EXTRACT_CLASS,ExtractParameters.Extract.INDEX_ID,ExtractParameters.Extract.ADAPTER_ID,ExtractParameters.Extract.MIN_INPUT_SPLIT,ExtractParameters.Extract.MAX_INPUT_SPLIT,ExtractParameters.Extract.QUERY,StoreParam.INPUT_STORE,GlobalParameters.Global.BATCH_ID}));
  params.addAll(MapReduceParameters.getParameters());
  return params;
}
Program: 113024
Project: 113024
Buggy source:
@Override public Collection<ParameterEnum<?>> getParameters(){
  final Set<ParameterEnum<?>> params=new HashSet<ParameterEnum<?>>();
  params.addAll(super.getParameters());
  params.addAll(Arrays.asList(new ParameterEnum<?>[]{StoreParameters.StoreParam.STORE,GlobalParameters.Global.BATCH_ID}));
  params.addAll(CentroidManagerGeoWave.getParameters());
  params.addAll(MapReduceParameters.getParameters());
  params.addAll(NestedGroupCentroidAssignment.getParameters());
  return params;
}

Fixed version (ground truth):
@Override public Collection<ParameterEnum<?>> getParameters(){
  final Set<ParameterEnum<?>> params=new HashSet<ParameterEnum<?>>();
  params.addAll(super.getParameters());
  params.addAll(Arrays.asList(new ParameterEnum<?>[]{StoreParameters.StoreParam.INPUT_STORE,GlobalParameters.Global.BATCH_ID}));
  params.addAll(CentroidManagerGeoWave.getParameters());
  params.addAll(MapReduceParameters.getParameters());
  params.addAll(NestedGroupCentroidAssignment.getParameters());
  return params;
}
Program: 113025
Project: 113025
Buggy source:
@Override public int run(final Configuration config,final PropertyManagement runTimeProperties) throws Exception {
  final DataStorePluginOptions dataStoreOptions=((PersistableStore)runTimeProperties.getProperty(StoreParam.STORE)).getDataStoreOptions();
  GeoWaveInputFormat.setDataStoreName(config,dataStoreOptions.getType());
  GeoWaveInputFormat.setStoreConfigOptions(config,dataStoreOptions.getFactoryOptionsAsMap());
  runTimeProperties.setConfig(new ParameterEnum[]{CentroidParameters.Centroid.EXTRACTOR_CLASS,CentroidParameters.Centroid.WRAPPER_FACTORY_CLASS},config,GroupAssignmentMapReduce.class);
  NestedGroupCentroidAssignment.setParameters(config,getScope(),runTimeProperties);
  CentroidManagerGeoWave.setParameters(config,getScope(),runTimeProperties);
  NestedGroupCentroidAssignment.setZoomLevel(config,getScope(),zoomLevel);
  return super.run(config,runTimeProperties);
}

Fixed version (ground truth):
@Override public int run(final Configuration config,final PropertyManagement runTimeProperties) throws Exception {
  final DataStorePluginOptions dataStoreOptions=((PersistableStore)runTimeProperties.getProperty(StoreParam.INPUT_STORE)).getDataStoreOptions();
  GeoWaveInputFormat.setDataStoreName(config,dataStoreOptions.getType());
  GeoWaveInputFormat.setStoreConfigOptions(config,dataStoreOptions.getFactoryOptionsAsMap());
  runTimeProperties.setConfig(new ParameterEnum[]{CentroidParameters.Centroid.EXTRACTOR_CLASS,CentroidParameters.Centroid.WRAPPER_FACTORY_CLASS},config,GroupAssignmentMapReduce.class);
  NestedGroupCentroidAssignment.setParameters(config,getScope(),runTimeProperties);
  CentroidManagerGeoWave.setParameters(config,getScope(),runTimeProperties);
  NestedGroupCentroidAssignment.setZoomLevel(config,getScope(),zoomLevel);
  return super.run(config,runTimeProperties);
}
Program: 113026
Project: 113026
Buggy source:
@Override public Collection<ParameterEnum<?>> getParameters(){
  final Set<ParameterEnum<?>> params=new HashSet<ParameterEnum<?>>();
  params.addAll(kmeansRunner.singleSamplekmeansJobRunner.getParameters());
  params.addAll(kmeansRunner.parallelJobRunner.getParameters());
  params.addAll(Arrays.asList(new ParameterEnum<?>[]{JumpParameters.Jump.RANGE_OF_CENTROIDS,JumpParameters.Jump.KPLUSPLUS_MIN,ClusteringParameters.Clustering.MAX_REDUCER_COUNT,CentroidParameters.Centroid.WRAPPER_FACTORY_CLASS,CentroidParameters.Centroid.INDEX_ID,CentroidParameters.Centroid.DATA_TYPE_ID,CentroidParameters.Centroid.DATA_NAMESPACE_URI,CentroidParameters.Centroid.EXTRACTOR_CLASS,CommonParameters.Common.DISTANCE_FUNCTION_CLASS,CommonParameters.Common.DIMENSION_EXTRACT_CLASS,StoreParameters.StoreParam.STORE,GlobalParameters.Global.BATCH_ID}));
  params.addAll(MapReduceParameters.getParameters());
  params.remove(CentroidParameters.Centroid.ZOOM_LEVEL);
  params.remove(SampleParameters.Sample.DATA_TYPE_ID);
  params.remove(SampleParameters.Sample.INDEX_ID);
  return params;
}

Fixed version (ground truth):
@Override public Collection<ParameterEnum<?>> getParameters(){
  final Set<ParameterEnum<?>> params=new HashSet<ParameterEnum<?>>();
  params.addAll(kmeansRunner.singleSamplekmeansJobRunner.getParameters());
  params.addAll(kmeansRunner.parallelJobRunner.getParameters());
  params.addAll(Arrays.asList(new ParameterEnum<?>[]{JumpParameters.Jump.RANGE_OF_CENTROIDS,JumpParameters.Jump.KPLUSPLUS_MIN,ClusteringParameters.Clustering.MAX_REDUCER_COUNT,CentroidParameters.Centroid.WRAPPER_FACTORY_CLASS,CentroidParameters.Centroid.INDEX_ID,CentroidParameters.Centroid.DATA_TYPE_ID,CentroidParameters.Centroid.DATA_NAMESPACE_URI,CentroidParameters.Centroid.EXTRACTOR_CLASS,CommonParameters.Common.DISTANCE_FUNCTION_CLASS,CommonParameters.Common.DIMENSION_EXTRACT_CLASS,StoreParameters.StoreParam.INPUT_STORE,GlobalParameters.Global.BATCH_ID}));
  params.addAll(MapReduceParameters.getParameters());
  params.remove(CentroidParameters.Centroid.ZOOM_LEVEL);
  params.remove(SampleParameters.Sample.DATA_TYPE_ID);
  params.remove(SampleParameters.Sample.INDEX_ID);
  return params;
}
Program: 113027
Project: 113027
Buggy source:
@Override public Collection<ParameterEnum<?>> getParameters(){
  final Set<ParameterEnum<?>> params=new HashSet<ParameterEnum<?>>();
  params.addAll(kmeansJobRunner.getParameters());
  params.addAll(Arrays.asList(new ParameterEnum<?>[]{ClusteringParameters.Clustering.MAX_REDUCER_COUNT,SampleParameters.Sample.SAMPLE_SIZE,SampleParameters.Sample.SAMPLE_RANK_FUNCTION,CentroidParameters.Centroid.WRAPPER_FACTORY_CLASS,CentroidParameters.Centroid.INDEX_ID,CentroidParameters.Centroid.DATA_TYPE_ID,CentroidParameters.Centroid.DATA_NAMESPACE_URI,CentroidParameters.Centroid.EXTRACTOR_CLASS,CommonParameters.Common.DISTANCE_FUNCTION_CLASS,CommonParameters.Common.DIMENSION_EXTRACT_CLASS,StoreParameters.StoreParam.STORE,GlobalParameters.Global.BATCH_ID,ClusteringParameters.Clustering.MAX_REDUCER_COUNT}));
  params.addAll(MapReduceParameters.getParameters());
  params.addAll(NestedGroupCentroidAssignment.getParameters());
  params.remove(CentroidParameters.Centroid.ZOOM_LEVEL);
  params.remove(SampleParameters.Sample.DATA_TYPE_ID);
  params.remove(SampleParameters.Sample.INDEX_ID);
  return params;
}

Fixed version (ground truth):
@Override public Collection<ParameterEnum<?>> getParameters(){
  final Set<ParameterEnum<?>> params=new HashSet<ParameterEnum<?>>();
  params.addAll(kmeansJobRunner.getParameters());
  params.addAll(Arrays.asList(new ParameterEnum<?>[]{ClusteringParameters.Clustering.MAX_REDUCER_COUNT,SampleParameters.Sample.SAMPLE_SIZE,SampleParameters.Sample.SAMPLE_RANK_FUNCTION,CentroidParameters.Centroid.WRAPPER_FACTORY_CLASS,CentroidParameters.Centroid.INDEX_ID,CentroidParameters.Centroid.DATA_TYPE_ID,CentroidParameters.Centroid.DATA_NAMESPACE_URI,CentroidParameters.Centroid.EXTRACTOR_CLASS,CommonParameters.Common.DISTANCE_FUNCTION_CLASS,CommonParameters.Common.DIMENSION_EXTRACT_CLASS,StoreParameters.StoreParam.INPUT_STORE,GlobalParameters.Global.BATCH_ID,ClusteringParameters.Clustering.MAX_REDUCER_COUNT}));
  params.addAll(MapReduceParameters.getParameters());
  params.addAll(NestedGroupCentroidAssignment.getParameters());
  params.remove(CentroidParameters.Centroid.ZOOM_LEVEL);
  params.remove(SampleParameters.Sample.DATA_TYPE_ID);
  params.remove(SampleParameters.Sample.INDEX_ID);
  return params;
}
Program: 113028
Project: 113028
Buggy source:
@Override public Collection<ParameterEnum<?>> getParameters(){
  final Set<ParameterEnum<?>> params=new HashSet<ParameterEnum<?>>();
  params.addAll(Arrays.asList(new ParameterEnum<?>[]{SampleParameters.Sample.MAX_SAMPLE_SIZE,SampleParameters.Sample.SAMPLE_ITERATIONS,SampleParameters.Sample.MIN_SAMPLE_SIZE,CentroidParameters.Centroid.WRAPPER_FACTORY_CLASS,CentroidParameters.Centroid.INDEX_ID,CentroidParameters.Centroid.DATA_TYPE_ID,CentroidParameters.Centroid.DATA_NAMESPACE_URI,CentroidParameters.Centroid.EXTRACTOR_CLASS,CommonParameters.Common.DISTANCE_FUNCTION_CLASS,CommonParameters.Common.DIMENSION_EXTRACT_CLASS,StoreParameters.StoreParam.STORE,GlobalParameters.Global.BATCH_ID}));
  params.addAll(MapReduceParameters.getParameters());
  params.addAll(NestedGroupCentroidAssignment.getParameters());
  params.addAll(CentroidManagerGeoWave.getParameters());
  params.addAll(initialSampleRunner.getParameters());
  return params;
}

Fixed version (ground truth):
@Override public Collection<ParameterEnum<?>> getParameters(){
  final Set<ParameterEnum<?>> params=new HashSet<ParameterEnum<?>>();
  params.addAll(Arrays.asList(new ParameterEnum<?>[]{SampleParameters.Sample.MAX_SAMPLE_SIZE,SampleParameters.Sample.SAMPLE_ITERATIONS,SampleParameters.Sample.MIN_SAMPLE_SIZE,CentroidParameters.Centroid.WRAPPER_FACTORY_CLASS,CentroidParameters.Centroid.INDEX_ID,CentroidParameters.Centroid.DATA_TYPE_ID,CentroidParameters.Centroid.DATA_NAMESPACE_URI,CentroidParameters.Centroid.EXTRACTOR_CLASS,CommonParameters.Common.DISTANCE_FUNCTION_CLASS,CommonParameters.Common.DIMENSION_EXTRACT_CLASS,StoreParameters.StoreParam.INPUT_STORE,GlobalParameters.Global.BATCH_ID}));
  params.addAll(MapReduceParameters.getParameters());
  params.addAll(NestedGroupCentroidAssignment.getParameters());
  params.addAll(CentroidManagerGeoWave.getParameters());
  params.addAll(initialSampleRunner.getParameters());
  return params;
}
Program: 113029
Project: 113029
Buggy source:
@Override public void execute(OperationParams params) throws Exception {
  if (parameters.size() != 1) {
    throw new ParameterException("String_Node_Str");
  }
  String inputStoreName=parameters.get(0);
  File configFile=(File)params.getContext().get(ConfigOptions.PROPERTIES_FILE_CONTEXT);
  if (inputStoreOptions == null) {
    StoreLoader inputStoreLoader=new StoreLoader(inputStoreName);
    if (!inputStoreLoader.loadFromConfig(configFile)) {
      throw new ParameterException("String_Node_Str" + inputStoreLoader.getStoreName());
    }
    inputStoreOptions=inputStoreLoader.getDataStorePlugin();
  }
  PersistableStore persistedStore=new PersistableStore(inputStoreOptions);
  final PropertyManagement properties=new PropertyManagement();
  properties.store(StoreParameters.StoreParam.STORE,persistedStore);
  PropertyManagementConverter converter=new PropertyManagementConverter(properties);
  converter.readProperties(commonOptions);
  converter.readProperties(dbScanOptions);
  DBScanIterationsJobRunner runner=new DBScanIterationsJobRunner();
  int status=runner.run(properties);
  if (status != 0) {
    throw new RuntimeException("String_Node_Str" + status);
  }
}

Fixed version (ground truth):
@Override public void execute(OperationParams params) throws Exception {
  if (parameters.size() != 1) {
    throw new ParameterException("String_Node_Str");
  }
  String inputStoreName=parameters.get(0);
  File configFile=(File)params.getContext().get(ConfigOptions.PROPERTIES_FILE_CONTEXT);
  if (inputStoreOptions == null) {
    StoreLoader inputStoreLoader=new StoreLoader(inputStoreName);
    if (!inputStoreLoader.loadFromConfig(configFile)) {
      throw new ParameterException("String_Node_Str" + inputStoreLoader.getStoreName());
    }
    inputStoreOptions=inputStoreLoader.getDataStorePlugin();
  }
  PersistableStore persistedStore=new PersistableStore(inputStoreOptions);
  final PropertyManagement properties=new PropertyManagement();
  properties.store(StoreParameters.StoreParam.INPUT_STORE,persistedStore);
  PropertyManagementConverter converter=new PropertyManagementConverter(properties);
  converter.readProperties(commonOptions);
  converter.readProperties(dbScanOptions);
  DBScanIterationsJobRunner runner=new DBScanIterationsJobRunner();
  int status=runner.run(properties);
  if (status != 0) {
    throw new RuntimeException("String_Node_Str" + status);
  }
}
Program: 113030
Project: 113030
Buggy source:
@Override public void execute(OperationParams params) throws Exception {
  if (parameters.size() != 1) {
    throw new ParameterException("String_Node_Str");
  }
  String inputStoreName=parameters.get(0);
  File configFile=(File)params.getContext().get(ConfigOptions.PROPERTIES_FILE_CONTEXT);
  if (inputStoreOptions == null) {
    StoreLoader inputStoreLoader=new StoreLoader(inputStoreName);
    if (!inputStoreLoader.loadFromConfig(configFile)) {
      throw new ParameterException("String_Node_Str" + inputStoreLoader.getStoreName());
    }
    inputStoreOptions=inputStoreLoader.getDataStorePlugin();
  }
  PersistableStore persistedStore=new PersistableStore(inputStoreOptions);
  final PropertyManagement properties=new PropertyManagement();
  properties.store(StoreParameters.StoreParam.STORE,persistedStore);
  PropertyManagementConverter converter=new PropertyManagementConverter(properties);
  converter.readProperties(commonOptions);
  converter.readProperties(kmeansCommonOptions);
  converter.readProperties(kmeansJumpOptions);
  MultiLevelJumpKMeansClusteringJobRunner runner=new MultiLevelJumpKMeansClusteringJobRunner();
  int status=runner.run(properties);
  if (status != 0) {
    throw new RuntimeException("String_Node_Str" + status);
  }
}

Fixed version (ground truth):
@Override public void execute(OperationParams params) throws Exception {
  if (parameters.size() != 1) {
    throw new ParameterException("String_Node_Str");
  }
  String inputStoreName=parameters.get(0);
  File configFile=(File)params.getContext().get(ConfigOptions.PROPERTIES_FILE_CONTEXT);
  if (inputStoreOptions == null) {
    StoreLoader inputStoreLoader=new StoreLoader(inputStoreName);
    if (!inputStoreLoader.loadFromConfig(configFile)) {
      throw new ParameterException("String_Node_Str" + inputStoreLoader.getStoreName());
    }
    inputStoreOptions=inputStoreLoader.getDataStorePlugin();
  }
  PersistableStore persistedStore=new PersistableStore(inputStoreOptions);
  final PropertyManagement properties=new PropertyManagement();
  properties.store(StoreParameters.StoreParam.INPUT_STORE,persistedStore);
  PropertyManagementConverter converter=new PropertyManagementConverter(properties);
  converter.readProperties(commonOptions);
  converter.readProperties(kmeansCommonOptions);
  converter.readProperties(kmeansJumpOptions);
  MultiLevelJumpKMeansClusteringJobRunner runner=new MultiLevelJumpKMeansClusteringJobRunner();
  int status=runner.run(properties);
  if (status != 0) {
    throw new RuntimeException("String_Node_Str" + status);
  }
}
Program: 113031
Project: 113031
Buggy source:
@Override public void execute(OperationParams params) throws Exception {
  if (parameters.size() != 1) {
    throw new ParameterException("String_Node_Str");
  }
  String inputStoreName=parameters.get(0);
  File configFile=(File)params.getContext().get(ConfigOptions.PROPERTIES_FILE_CONTEXT);
  if (inputStoreOptions == null) {
    StoreLoader inputStoreLoader=new StoreLoader(inputStoreName);
    if (!inputStoreLoader.loadFromConfig(configFile)) {
      throw new ParameterException("String_Node_Str" + inputStoreLoader.getStoreName());
    }
    inputStoreOptions=inputStoreLoader.getDataStorePlugin();
  }
  PersistableStore persistedStore=new PersistableStore(inputStoreOptions);
  final PropertyManagement properties=new PropertyManagement();
  properties.store(StoreParameters.StoreParam.STORE,persistedStore);
  PropertyManagementConverter converter=new PropertyManagementConverter(properties);
  converter.readProperties(commonOptions);
  converter.readProperties(kmeansCommonOptions);
  MultiLevelKMeansClusteringJobRunner runner=new MultiLevelKMeansClusteringJobRunner();
  int status=runner.run(properties);
  if (status != 0) {
    throw new RuntimeException("String_Node_Str" + status);
  }
}

Fixed version (ground truth):
@Override public void execute(OperationParams params) throws Exception {
  if (parameters.size() != 1) {
    throw new ParameterException("String_Node_Str");
  }
  String inputStoreName=parameters.get(0);
  File configFile=(File)params.getContext().get(ConfigOptions.PROPERTIES_FILE_CONTEXT);
  if (inputStoreOptions == null) {
    StoreLoader inputStoreLoader=new StoreLoader(inputStoreName);
    if (!inputStoreLoader.loadFromConfig(configFile)) {
      throw new ParameterException("String_Node_Str" + inputStoreLoader.getStoreName());
    }
    inputStoreOptions=inputStoreLoader.getDataStorePlugin();
  }
  PersistableStore persistedStore=new PersistableStore(inputStoreOptions);
  final PropertyManagement properties=new PropertyManagement();
  properties.store(StoreParameters.StoreParam.INPUT_STORE,persistedStore);
  PropertyManagementConverter converter=new PropertyManagementConverter(properties);
  converter.readProperties(commonOptions);
  converter.readProperties(kmeansCommonOptions);
  MultiLevelKMeansClusteringJobRunner runner=new MultiLevelKMeansClusteringJobRunner();
  int status=runner.run(properties);
  if (status != 0) {
    throw new RuntimeException("String_Node_Str" + status);
  }
}
Program: 113032
Project: 113032
Buggy source:
@Override public void execute(OperationParams params) throws Exception {
  if (parameters.size() != 1) {
    throw new ParameterException("String_Node_Str");
  }
  String inputStoreName=parameters.get(0);
  File configFile=(File)params.getContext().get(ConfigOptions.PROPERTIES_FILE_CONTEXT);
  if (inputStoreOptions == null) {
    StoreLoader inputStoreLoader=new StoreLoader(inputStoreName);
    if (!inputStoreLoader.loadFromConfig(configFile)) {
      throw new ParameterException("String_Node_Str" + inputStoreLoader.getStoreName());
    }
    inputStoreOptions=inputStoreLoader.getDataStorePlugin();
  }
  PersistableStore persistedStore=new PersistableStore(inputStoreOptions);
  final PropertyManagement properties=new PropertyManagement();
  properties.store(StoreParameters.StoreParam.STORE,persistedStore);
  PropertyManagementConverter converter=new PropertyManagementConverter(properties);
  converter.readProperties(commonOptions);
  converter.readProperties(nnOptions);
  GeoWaveExtractNNJobRunner runner=new GeoWaveExtractNNJobRunner();
  int status=runner.run(properties);
  if (status != 0) {
    throw new RuntimeException("String_Node_Str" + status);
  }
}

Fixed version (ground truth):
@Override public void execute(OperationParams params) throws Exception {
  if (parameters.size() != 1) {
    throw new ParameterException("String_Node_Str");
  }
  String inputStoreName=parameters.get(0);
  File configFile=(File)params.getContext().get(ConfigOptions.PROPERTIES_FILE_CONTEXT);
  if (inputStoreOptions == null) {
    StoreLoader inputStoreLoader=new StoreLoader(inputStoreName);
    if (!inputStoreLoader.loadFromConfig(configFile)) {
      throw new ParameterException("String_Node_Str" + inputStoreLoader.getStoreName());
    }
    inputStoreOptions=inputStoreLoader.getDataStorePlugin();
  }
  PersistableStore persistedStore=new PersistableStore(inputStoreOptions);
  final PropertyManagement properties=new PropertyManagement();
  properties.store(StoreParameters.StoreParam.INPUT_STORE,persistedStore);
  PropertyManagementConverter converter=new PropertyManagementConverter(properties);
  converter.readProperties(commonOptions);
  converter.readProperties(nnOptions);
  GeoWaveExtractNNJobRunner runner=new GeoWaveExtractNNJobRunner();
  int status=runner.run(properties);
  if (status != 0) {
    throw new RuntimeException("String_Node_Str" + status);
  }
}
Program: 113033
Project: 113033
Buggy source:
@Override protected void runChild(Runner runner,RunNotifier notifier){
  if (runner instanceof GeoWaveIT) {
    itRunner=(GeoWaveIT)runner;
  }
  super.runChild(runner,notifier);
}

Fixed version (ground truth):
@Override protected void runChild(Runner runner,RunNotifier notifier){
  if (runner instanceof GeoWaveITRunner) {
    itRunner=(GeoWaveITRunner)runner;
  }
  super.runChild(runner,notifier);
}
Program: 113035
Project: 113035
Buggy source:
@Override public void tearDown() throws Exception {
synchronized (GeoWaveIT.MUTEX) {
    if (!GeoWaveIT.DEFER_CLEANUP.get()) {
      if (jettyServer != null) {
        try {
          jettyServer.stop();
          jettyServer=null;
        }
 catch (        final Exception e) {
          LOGGER.error("String_Node_Str",e);
        }
      }
    }
  }
}

Fixed version (ground truth):
@Override public void tearDown() throws Exception {
synchronized (GeoWaveITRunner.MUTEX) {
    if (!GeoWaveITRunner.DEFER_CLEANUP.get()) {
      if (jettyServer != null) {
        try {
          jettyServer.stop();
          jettyServer=null;
        }
 catch (        final Exception e) {
          LOGGER.error("String_Node_Str",e);
        }
      }
    }
  }
}
Program: 113036
Project: 113036
Buggy source:
/** 
 * Take the options and translate them from a map.
 * @param properties
 */
public void transformFromMap(Map<String,String> properties){
  Properties props=new Properties();
  for (  Entry<String,String> prop : properties.entrySet()) {
    props.setProperty(prop.getKey(),prop.getValue());
  }
  transformFromProperties(props);
}

Fixed version (ground truth):
/** 
 * Take the options and translate them from a map.
 * @param properties
 */
public void transformFromMap(Map<String,String> properties){
  Properties props=new Properties();
  for (  Entry<String,String> prop : properties.entrySet()) {
    if (prop.getValue() != null) {
      props.setProperty(prop.getKey(),prop.getValue());
    }
  }
  transformFromProperties(props);
}
Program: 113037
Project: 113037
Buggy source:
public ConfigOption(final String name,final String description,final boolean optional){
  this.name=name;
  this.description=description;
  this.optional=optional;
}

Fixed version (ground truth):
public ConfigOption(final String name,final String description,final boolean optional,final Class type){
  this.name=name;
  this.description=description;
  this.optional=optional;
  this.type=type;
}
Program: 113038
Project: 113038
Buggy source:
/** 
 * This method will use the parameter descriptions from JCommander to create/populate an AbstractConfigOptions map.
 */
public static ConfigOption[] createConfigOptionsFromJCommander(Object createOptionsInstance){
  ConfigOption[] opts=null;
  if (createOptionsInstance != null) {
    JCommanderPrefixTranslator translator=new JCommanderPrefixTranslator();
    translator.addObject(createOptionsInstance);
    JCommanderTranslationMap map=translator.translate();
    Collection<TranslationEntry> entries=map.getEntries().values();
    opts=new ConfigOption[entries.size()];
    int optCounter=0;
    for (    TranslationEntry entry : entries) {
      ConfigOption opt=new ConfigOption(entry.getAsPropertyName(),entry.getDescription(),!entry.isRequired());
      opt.setPassword(entry.isPassword());
      opts[optCounter++]=opt;
    }
  }
 else {
    opts=new ConfigOption[0];
  }
  return opts;
}

Fixed version (ground truth):
/** 
 * This method will use the parameter descriptions from JCommander to create/populate an AbstractConfigOptions map.
 */
public static ConfigOption[] createConfigOptionsFromJCommander(Object createOptionsInstance){
  ConfigOption[] opts=null;
  if (createOptionsInstance != null) {
    JCommanderPrefixTranslator translator=new JCommanderPrefixTranslator();
    translator.addObject(createOptionsInstance);
    JCommanderTranslationMap map=translator.translate();
    Collection<TranslationEntry> entries=map.getEntries().values();
    final List<ConfigOption> options=new ArrayList<ConfigOption>();
    for (    TranslationEntry entry : entries) {
      if (!entry.isHidden()) {
        ConfigOption opt=new ConfigOption(entry.getAsPropertyName(),entry.getDescription(),!entry.isRequired(),entry.getParam().getType());
        opt.setPassword(entry.isPassword());
        options.add(opt);
      }
    }
    opts=options.toArray(new ConfigOption[options.size()]);
  }
 else {
    opts=new ConfigOption[0];
  }
  return opts;
}
Program: 113039
Project: 113039
Buggy source:
@Override public Param apply(final ConfigOption input){
  if (input.isPassword()) {
    return new Param(input.getName(),String.class,input.getDescription(),!input.isOptional(),"String_Node_Str",Collections.singletonMap(Parameter.IS_PASSWORD,Boolean.TRUE));
  }
  return new Param(input.getName(),GenericTypeResolver.resolveTypeArgument(input.getClass(),ConfigOption.class),input.getDescription(),!input.isOptional());
}

Fixed version (ground truth):
@Override public Param apply(final ConfigOption input){
  if (input.isPassword()) {
    return new Param(input.getName(),String.class,input.getDescription(),!input.isOptional(),"String_Node_Str",Collections.singletonMap(Parameter.IS_PASSWORD,Boolean.TRUE));
  }
  if (input.getType().isPrimitive() && input.getType() == boolean.class) {
    return new Param(input.getName(),input.getType(),input.getDescription(),true,"String_Node_Str",Collections.singletonMap(Parameter.OPTIONS,BooleanOptions));
  }
  return new Param(input.getName(),input.getType(),input.getDescription(),!input.isOptional());
}
Program: 113042
Project: 113042
Buggy source:
public static SimpleFeatureType createMissionSummaryDataType(){
  final SimpleFeatureTypeBuilder simpleFeatureTypeBuilder=new SimpleFeatureTypeBuilder();
  simpleFeatureTypeBuilder.setName(MISSION_SUMMARY);
  final AttributeTypeBuilder attributeTypeBuilder=new AttributeTypeBuilder();
  simpleFeatureTypeBuilder.add(attributeTypeBuilder.binding(Polygon.class).buildDescriptor("String_Node_Str"));
  simpleFeatureTypeBuilder.add(attributeTypeBuilder.binding(String.class).buildDescriptor("String_Node_Str"));
  simpleFeatureTypeBuilder.add(attributeTypeBuilder.binding(Date.class).buildDescriptor("String_Node_Str"));
  simpleFeatureTypeBuilder.add(attributeTypeBuilder.binding(Date.class).buildDescriptor("String_Node_Str"));
  simpleFeatureTypeBuilder.add(attributeTypeBuilder.binding(Integer.class).buildDescriptor("String_Node_Str"));
  simpleFeatureTypeBuilder.add(attributeTypeBuilder.binding(String.class).buildDescriptor("String_Node_Str"));
  simpleFeatureTypeBuilder.add(attributeTypeBuilder.binding(String.class).buildDescriptor("String_Node_Str"));
  simpleFeatureTypeBuilder.add(attributeTypeBuilder.binding(String.class).buildDescriptor("String_Node_Str"));
  final TimeDescriptorConfiguration timeConfig=new TimeDescriptorConfiguration();
  timeConfig.setStartRangeName("String_Node_Str");
  timeConfig.setEndRangeName("String_Node_Str");
  final SimpleFeatureType type=simpleFeatureTypeBuilder.buildFeatureType();
  timeConfig.updateType(type);
  return type;
}

Fixed version (ground truth):
public static SimpleFeatureType createMissionSummaryDataType(){
  final SimpleFeatureTypeBuilder simpleFeatureTypeBuilder=new SimpleFeatureTypeBuilder();
  simpleFeatureTypeBuilder.setName(MISSION_SUMMARY);
  simpleFeatureTypeBuilder.setNamespaceURI(NAMESPACE);
  final AttributeTypeBuilder attributeTypeBuilder=new AttributeTypeBuilder();
  simpleFeatureTypeBuilder.add(attributeTypeBuilder.binding(Polygon.class).buildDescriptor("String_Node_Str"));
  simpleFeatureTypeBuilder.add(attributeTypeBuilder.binding(String.class).buildDescriptor("String_Node_Str"));
  simpleFeatureTypeBuilder.add(attributeTypeBuilder.binding(Date.class).buildDescriptor("String_Node_Str"));
  simpleFeatureTypeBuilder.add(attributeTypeBuilder.binding(Date.class).buildDescriptor("String_Node_Str"));
  simpleFeatureTypeBuilder.add(attributeTypeBuilder.binding(Integer.class).buildDescriptor("String_Node_Str"));
  simpleFeatureTypeBuilder.add(attributeTypeBuilder.binding(String.class).buildDescriptor("String_Node_Str"));
  simpleFeatureTypeBuilder.add(attributeTypeBuilder.binding(String.class).buildDescriptor("String_Node_Str"));
  simpleFeatureTypeBuilder.add(attributeTypeBuilder.binding(String.class).buildDescriptor("String_Node_Str"));
  final TimeDescriptorConfiguration timeConfig=new TimeDescriptorConfiguration();
  timeConfig.setStartRangeName("String_Node_Str");
  timeConfig.setEndRangeName("String_Node_Str");
  final SimpleFeatureType type=simpleFeatureTypeBuilder.buildFeatureType();
  timeConfig.updateType(type);
  return type;
}
Program: 113043
Project: 113043
Buggy source:
public static SimpleFeatureType createMissionFrameDataType(){
  final SimpleFeatureTypeBuilder simpleFeatureTypeBuilder=new SimpleFeatureTypeBuilder();
  simpleFeatureTypeBuilder.setName(MISSION_FRAME);
  final AttributeTypeBuilder attributeTypeBuilder=new AttributeTypeBuilder();
  simpleFeatureTypeBuilder.add(attributeTypeBuilder.binding(Polygon.class).buildDescriptor("String_Node_Str"));
  simpleFeatureTypeBuilder.add(attributeTypeBuilder.binding(String.class).buildDescriptor("String_Node_Str"));
  simpleFeatureTypeBuilder.add(attributeTypeBuilder.binding(Date.class).buildDescriptor("String_Node_Str"));
  simpleFeatureTypeBuilder.add(attributeTypeBuilder.binding(Integer.class).buildDescriptor("String_Node_Str"));
  final TimeDescriptorConfiguration timeConfig=new TimeDescriptorConfiguration();
  timeConfig.setTimeName("String_Node_Str");
  final SimpleFeatureType type=simpleFeatureTypeBuilder.buildFeatureType();
  timeConfig.updateType(type);
  return type;
}

Fixed version (ground truth):
public static SimpleFeatureType createMissionFrameDataType(){
  final SimpleFeatureTypeBuilder simpleFeatureTypeBuilder=new SimpleFeatureTypeBuilder();
  simpleFeatureTypeBuilder.setName(MISSION_FRAME);
  simpleFeatureTypeBuilder.setNamespaceURI(NAMESPACE);
  final AttributeTypeBuilder attributeTypeBuilder=new AttributeTypeBuilder();
  simpleFeatureTypeBuilder.add(attributeTypeBuilder.binding(Polygon.class).buildDescriptor("String_Node_Str"));
  simpleFeatureTypeBuilder.add(attributeTypeBuilder.binding(String.class).buildDescriptor("String_Node_Str"));
  simpleFeatureTypeBuilder.add(attributeTypeBuilder.binding(Date.class).buildDescriptor("String_Node_Str"));
  simpleFeatureTypeBuilder.add(attributeTypeBuilder.binding(Integer.class).buildDescriptor("String_Node_Str"));
  final TimeDescriptorConfiguration timeConfig=new TimeDescriptorConfiguration();
  timeConfig.setTimeName("String_Node_Str");
  final SimpleFeatureType type=simpleFeatureTypeBuilder.buildFeatureType();
  timeConfig.updateType(type);
  return type;
}
Program: 113046
Project: 113046
Buggy source:
/** 
 * This function will append a UUID to the record that's inserted into the database.
 * @param object
 * @return
 */
@Override protected ByteArrayId getRowId(DataStatistics<?> object){
  byte[] parentRecord=super.getRowId(object).getBytes();
  ByteBuffer parentBuffer=ByteBuffer.allocate(parentRecord.length + 16);
  parentBuffer.put(parentRecord);
  UUID uuid=UUID.randomUUID();
  parentBuffer.putLong(uuid.getMostSignificantBits());
  parentBuffer.putLong(uuid.getLeastSignificantBits());
  return new ByteArrayId(parentBuffer.array());
}

Fixed version (ground truth):
/** 
 * This function will append a UUID to the record that's inserted into the database.
 * @param object
 * @return
 */
@Override protected ByteArrayId getRowId(DataStatistics<?> object){
  byte[] parentRecord=super.getRowId(object).getBytes();
  ByteBuffer parentBuffer=ByteBuffer.allocate(parentRecord.length + 1 + 16);
  parentBuffer.put(parentRecord);
  UUID uuid=UUID.randomUUID();
  parentBuffer.put(new byte[]{0});
  parentBuffer.putLong(uuid.getMostSignificantBits());
  parentBuffer.putLong(uuid.getLeastSignificantBits());
  return new ByteArrayId(parentBuffer.array());
}
Program: 113047
Project: 113047
Buggy source:
/** 
 * This function is used to change the scan object created in the superclass to enable  prefixing.
 */
@Override protected Scan applyScannerSettings(Scan scanner,ByteArrayId primaryId,ByteArrayId secondaryId){
  Scan scan=super.applyScannerSettings(scanner,primaryId,secondaryId);
  if (primaryId != null) {
    scan.setStopRow(HBaseUtils.getNextPrefix(scan.getStopRow()));
  }
  return scan;
}

Fixed version (ground truth):
/** 
 * This function is used to change the scan object created in the superclass to enable  prefixing.
 */
@Override protected Scan applyScannerSettings(Scan scanner,ByteArrayId primaryId,ByteArrayId secondaryId){
  Scan scan=super.applyScannerSettings(scanner,primaryId,secondaryId);
  if (primaryId != null) {
    ByteBuffer buf=ByteBuffer.allocate(primaryId.getBytes().length + 1);
    buf.put(primaryId.getBytes());
    buf.put(new byte[]{0});
    scan.setStopRow(HBaseUtils.getNextPrefix(buf.array()));
  }
  return scan;
}