nus-yam/ex-repair huggingface dataset:
Program: 107928
Project: 107928
Buggy source:
/** 
 * Gets the number of rows for given table This uses the JDBC connection   {@link ImportWizardModel#getJdbcConnection()} to determine the number ofrows for given table.
 * @param table Table number of rows should be returned for
 * @return Number of rows for given table, -1 in case of error
 */
protected long getNumberOfRows(String table){
  Statement statement=null;
  ResultSet resultSet=null;
  try {
    statement=wizardImport.getData().getJdbcConnection().createStatement();
    statement.execute("String_Node_Str" + table);
    resultSet=statement.getResultSet();
    if (resultSet.next()) {
      return resultSet.getLong(1);
    }
  }
 catch (  SQLException e) {
    setErrorMessage(Resources.getMessage("String_Node_Str"));
  }
 finally {
    try {
      if (resultSet != null) {
        resultSet.close();
      }
    }
 catch (    SQLException e) {
    }
    try {
      if (statement != null) {
        statement.close();
      }
    }
 catch (    SQLException e) {
    }
  }
  return -1L;
}

Fixed version (ground truth):
/** 
 * Gets the number of rows for given table This uses the JDBC connection   {@link ImportWizardModel#getJdbcConnection()} to determine the number ofrows for given table.
 * @param table Table number of rows should be returned for
 * @return Number of rows for given table, -1 in case of error
 */
private long getNumberOfRows(String table){
  Statement statement=null;
  ResultSet resultSet=null;
  try {
    statement=wizardImport.getData().getJdbcConnection().createStatement();
    statement.execute("String_Node_Str" + table);
    resultSet=statement.getResultSet();
    if (resultSet.next()) {
      return resultSet.getLong(1);
    }
  }
 catch (  SQLException e) {
    setErrorMessage(Resources.getMessage("String_Node_Str"));
  }
 finally {
    try {
      if (resultSet != null) {
        resultSet.close();
      }
    }
 catch (    SQLException e) {
    }
    try {
      if (statement != null) {
        statement.close();
      }
    }
 catch (    SQLException e) {
    }
  }
  return -1L;
}
Program: 107929
Project: 107929
Buggy source:
/** 
 * Gets the number of columns for given table This uses the JDBC connection   {@link ImportWizardModel#getJdbcConnection()} to determine the number ofcolumns for given table.
 * @param table Table number of rows should be returned for
 * @return Number of rows for given table, -1 in case of error
 */
protected int getNumberOfColumns(String table){
  ResultSet rs=null;
  int i=0;
  try {
    Connection connection=wizardImport.getData().getJdbcConnection();
    rs=connection.getMetaData().getColumns(null,null,table,null);
    while (rs.next()) {
      i++;
    }
    return i;
  }
 catch (  SQLException e) {
    setErrorMessage(Resources.getMessage("String_Node_Str"));
  }
 finally {
    try {
      if (rs != null) {
        rs.close();
      }
    }
 catch (    SQLException e) {
    }
  }
  return -1;
}

Fixed version (ground truth):
/** 
 * Gets the number of columns for given table This uses the JDBC connection   {@link ImportWizardModel#getJdbcConnection()} to determine the number ofcolumns for given table.
 * @param table Table number of rows should be returned for
 * @return Number of rows for given table, -1 in case of error
 */
private int getNumberOfColumns(String table){
  ResultSet rs=null;
  int i=0;
  try {
    Connection connection=wizardImport.getData().getJdbcConnection();
    rs=connection.getMetaData().getColumns(null,null,table,null);
    while (rs.next()) {
      i++;
    }
    return i;
  }
 catch (  SQLException e) {
    setErrorMessage(Resources.getMessage("String_Node_Str"));
  }
 finally {
    try {
      if (rs != null) {
        rs.close();
      }
    }
 catch (    SQLException e) {
    }
  }
  return -1;
}
Program: 107932
Project: 107932
Buggy source:
@Override public boolean isAbleToHandleMicroaggregation(){
  return false;
}

Fixed version (ground truth):
@Override public boolean isAbleToHandleMicroaggregation(){
  return true;
}
Program: 107933
Project: 107933
Buggy source:
@Override public boolean isAbleToHandleMicroaggregation(){
  return false;
}

Fixed version (ground truth):
@Override public boolean isAbleToHandleMicroaggregation(){
  return true;
}
Program: 107934
Project: 107934
Buggy source:
/** 
 * Sets the selection
 * @param selection
 */
public void setSelection(double selection){
  if (selection > 1d) {
    selection=1d;
  }
  if (selection < 0d) {
    selection=0d;
  }
  int value=(int)(MINIMUM + selection * (double)(MAXIMUM - MINIMUM));
  if (!this.slider.isDisposed())   this.slider.setSelection(value);
  if (!this.canvas.isDisposed())   this.canvas.redraw();
}

Fixed version (ground truth):
/** 
 * Sets the selection
 * @param selection
 */
public void setSelection(double selection){
  if (selection > 1d) {
    selection=1d;
  }
  if (selection < 0d) {
    selection=0d;
  }
  int value=(int)(MINIMUM + selection * (double)(MAXIMUM - MINIMUM));
  if (!this.root.isDisposed())   this.root.setRedraw(false);
  if (!this.slider.isDisposed())   this.slider.setSelection(value);
  if (!this.canvas.isDisposed())   this.canvas.redraw();
  if (!this.root.isDisposed())   this.root.setRedraw(true);
}
Program: 107936
Project: 107936
Buggy source:
/** 
 * Creates a new instance.
 * @param parent
 * @param controller
 */
public ViewCodingModel(final Composite parent,final Controller controller){
  this.controller=controller;
  this.controller.addListener(ModelPart.ATTRIBUTE_TYPE,this);
  this.controller.addListener(ModelPart.MODEL,this);
  this.controller.addListener(ModelPart.INPUT,this);
  this.slider=new ComponentGSSlider(parent);
  this.slider.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent arg0){
      if (model != null && model.getInputConfig() != null) {
        model.getInputConfig().setSuppressionWeight(slider.getSelection());
        model.getMetricConfiguration().setGsFactor(slider.getSelection());
      }
    }
  }
);
}

Fixed version (ground truth):
/** 
 * Creates a new instance.
 * @param parent
 * @param controller
 */
public ViewCodingModel(final Composite parent,final Controller controller){
  this.controller=controller;
  this.controller.addListener(ModelPart.MODEL,this);
  this.slider=new ComponentGSSlider(parent);
  this.slider.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent arg0){
      if (model != null && model.getInputConfig() != null) {
        model.getInputConfig().setSuppressionWeight(slider.getSelection());
        model.getMetricConfiguration().setGsFactor(slider.getSelection());
      }
    }
  }
);
  this.slider.addSelectionListener(new DelayedChangeListener(100){
    @Override public void delayedEvent(){
      controller.update(new ModelEvent(ViewCodingModel.this,ModelPart.GS_FACTOR,model.getInputConfig().getSuppressionWeight()));
    }
  }
);
}
Program: 107937
Project: 107937
Buggy source:
/** 
 * Implement this to update the view.
 */
protected abstract void update();

Fixed version (ground truth):
@Override public void update(final ModelEvent event){
  if (event.part == reset) {
    this.reset();
  }
 else   if (event.part == ModelPart.MODEL) {
    this.model=(Model)event.data;
    this.context.setModel(model);
    reset();
  }
 else {
    SWTUtil.enable(root);
    this.doUpdate(event.part);
  }
}
Program: 107938
Project: 107938
Buggy source:
/** 
 * Constructor.
 * @param parent
 * @param controller
 * @param target
 * @param reset
 */
protected ViewProperties(final Composite parent,final Controller controller,final ModelPart target,final ModelPart reset){
  controller.addListener(ModelPart.SELECTED_VIEW_CONFIG,this);
  controller.addListener(ModelPart.SELECTED_ATTRIBUTE,this);
  controller.addListener(ModelPart.ATTRIBUTE_TYPE,this);
  controller.addListener(ModelPart.METRIC,this);
  controller.addListener(ModelPart.MAX_OUTLIERS,this);
  controller.addListener(ModelPart.DATA_TYPE,this);
  controller.addListener(ModelPart.MODEL,this);
  controller.addListener(target,this);
  if (reset != null) {
    controller.addListener(reset,this);
  }
  this.reset=reset;
  this.root=parent;
  this.controller=controller;
  this.context.setTarget(target);
}

Fixed version (ground truth):
/** 
 * Constructor.
 * @param parent
 * @param controller
 * @param target
 * @param reset
 */
protected ViewProperties(final Composite parent,final Controller controller,final ModelPart target,final ModelPart reset){
  controller.addListener(ModelPart.SELECTED_VIEW_CONFIG,this);
  controller.addListener(ModelPart.SELECTED_ATTRIBUTE,this);
  controller.addListener(ModelPart.ATTRIBUTE_TYPE,this);
  controller.addListener(ModelPart.METRIC,this);
  controller.addListener(ModelPart.ATTRIBUTE_WEIGHT,this);
  controller.addListener(ModelPart.GS_FACTOR,this);
  controller.addListener(ModelPart.MAX_OUTLIERS,this);
  controller.addListener(ModelPart.DATA_TYPE,this);
  controller.addListener(ModelPart.MODEL,this);
  controller.addListener(target,this);
  if (reset != null) {
    controller.addListener(reset,this);
  }
  this.reset=reset;
  this.root=parent;
  this.controller=controller;
  this.context.setTarget(target);
}
Program: 107940
Project: 107940
Buggy source:
@Override public void widgetSelected(final SelectionEvent arg0){
  String selected=comboAggregate.getItem(comboAggregate.getSelectionIndex());
  for (  AggregateFunction function : model.getMetricDescription().getSupportedAggregateFunctions()) {
    if (function.toString().equals(selected)) {
      model.getMetricConfiguration().setAggregateFunction(function);
    }
  }
}

Fixed version (ground truth):
@Override public void widgetSelected(final SelectionEvent arg0){
  String selected=comboAggregate.getItem(comboAggregate.getSelectionIndex());
  for (  AggregateFunction function : model.getMetricDescription().getSupportedAggregateFunctions()) {
    if (function.toString().equals(selected)) {
      model.getMetricConfiguration().setAggregateFunction(function);
      controller.update(new ModelEvent(this,ModelPart.METRIC,model.getMetricDescription()));
    }
  }
}
Program: 107942
Project: 107942
Buggy source:
/** 
 * This method updates the view
 */
private void updateControls(){
  if (model == null) {
    return;
  }
  MetricConfiguration config=model.getMetricConfiguration();
  MetricDescription description=model.getMetricDescription();
  if (config == null || description == null) {
    reset();
    return;
  }
  root.setRedraw(false);
  if (!description.isMonotonicVariantSupported()) {
    this.monotonicVariant.setSelection(false);
    this.monotonicVariant.setEnabled(false);
  }
 else {
    this.monotonicVariant.setEnabled(true);
    this.monotonicVariant.setSelection(config.isMonotonic());
  }
  utilityBasedMicroaggregation.setSelection(model.getInputConfig().isUtilityBasedMicroaggregation());
  comboAggregate.removeAll();
  int index=0;
  int selected=-1;
  for (  AggregateFunction function : description.getSupportedAggregateFunctions()) {
    comboAggregate.add(function.toString());
    if (function.toString().equals(config.getAggregateFunction().toString())) {
      selected=index;
    }
    index++;
  }
  if (selected != -1) {
    comboAggregate.select(selected);
  }
  SWTUtil.enable(root);
  if (comboAggregate.getItemCount() == 0) {
    comboAggregate.add(Resources.getMessage("String_Node_Str"));
    comboAggregate.select(0);
    comboAggregate.setEnabled(false);
  }
  root.setRedraw(true);
}

Fixed version (ground truth):
/** 
 * This method updates the view
 */
private void updateControls(){
  if (this.model == null) {
    return;
  }
  MetricConfiguration config=this.model.getMetricConfiguration();
  MetricDescription description=this.model.getMetricDescription();
  if (config == null || description == null) {
    reset();
    return;
  }
  this.root.setRedraw(false);
  if (!description.isMonotonicVariantSupported()) {
    this.monotonicVariant.setSelection(false);
  }
 else {
    this.monotonicVariant.setSelection(config.isMonotonic());
  }
  boolean isAbleToHandleMicroaggregation=description.createInstance(config).isAbleToHandleMicroaggregation();
  this.utilityBasedMicroaggregation.setSelection(isAbleToHandleMicroaggregation && this.model.getInputConfig().isUtilityBasedMicroaggregation());
  this.comboAggregate.removeAll();
  int index=0;
  int selected=-1;
  for (  AggregateFunction function : description.getSupportedAggregateFunctions()) {
    comboAggregate.add(function.toString());
    if (function.toString().equals(config.getAggregateFunction().toString())) {
      selected=index;
    }
    index++;
  }
  if (selected != -1) {
    this.comboAggregate.select(selected);
  }
  SWTUtil.enable(this.root);
  if (this.comboAggregate.getItemCount() == 0) {
    this.comboAggregate.add(Resources.getMessage("String_Node_Str"));
    this.comboAggregate.select(0);
    this.comboAggregate.setEnabled(false);
  }
  this.monotonicVariant.setEnabled(description.isMonotonicVariantSupported());
  this.utilityBasedMicroaggregation.setEnabled(isAbleToHandleMicroaggregation);
  this.root.setRedraw(true);
}
Program: 107943
Project: 107943
Buggy source:
@Override public void parse(ModelCriterion criterion,boolean _default){
  if (!(criterion instanceof ModelDifferentialPrivacyCriterion)) {
    return;
  }
  ModelDifferentialPrivacyCriterion other=(ModelDifferentialPrivacyCriterion)criterion;
  this.epsilon=other.epsilon;
  this.delta=other.delta;
  if (!_default) {
    this.generalization=other.generalization.clone();
  }
  this.setEnabled(other.isEnabled());
}

Fixed version (ground truth):
@Override public void parse(ModelCriterion criterion,boolean _default){
  if (!(criterion instanceof ModelDifferentialPrivacyCriterion)) {
    return;
  }
  ModelDifferentialPrivacyCriterion other=(ModelDifferentialPrivacyCriterion)criterion;
  this.epsilon=other.epsilon;
  this.delta=other.delta;
  if (!_default) {
    this.generalization=other.generalization.clone();
  }
  if (!_default) {
    this.setEnabled(other.isEnabled());
  }
}
Program: 107944
Project: 107944
Buggy source:
@Override public void parse(ModelCriterion criterion,boolean _default){
  if (!(criterion instanceof ModelKAnonymityCriterion)) {
    return;
  }
  ModelKAnonymityCriterion other=(ModelKAnonymityCriterion)criterion;
  this.k=other.k;
  this.setEnabled(other.isEnabled());
}

Fixed version (ground truth):
@Override public void parse(ModelCriterion criterion,boolean _default){
  if (!(criterion instanceof ModelKAnonymityCriterion)) {
    return;
  }
  ModelKAnonymityCriterion other=(ModelKAnonymityCriterion)criterion;
  this.k=other.k;
  if (!_default) {
    this.setEnabled(other.isEnabled());
  }
}
Program: 107945
Project: 107945
Buggy source:
@Override public void parse(ModelCriterion criterion,boolean _default){
  if (!(criterion instanceof ModelKMapCriterion)) {
    return;
  }
  ModelKMapCriterion other=(ModelKMapCriterion)criterion;
  this.k=other.k;
  this.setEnabled(other.isEnabled());
  this.setEstimator(other.estimator);
  this.significanceLevel=other.significanceLevel;
}

Fixed version (ground truth):
@Override public void parse(ModelCriterion criterion,boolean _default){
  if (!(criterion instanceof ModelKMapCriterion)) {
    return;
  }
  ModelKMapCriterion other=(ModelKMapCriterion)criterion;
  this.k=other.k;
  this.setEstimator(other.estimator);
  this.significanceLevel=other.significanceLevel;
  if (!_default) {
    this.setEnabled(other.isEnabled());
  }
}
Program: 107946
Project: 107946
Buggy source:
@Override public void parse(ModelCriterion criterion,boolean _default){
  if (!(criterion instanceof ModelLDiversityCriterion)) {
    return;
  }
  ModelLDiversityCriterion other=(ModelLDiversityCriterion)criterion;
  this.l=other.l;
  this.c=other.c;
  this.variant=other.variant;
  this.setEnabled(other.isEnabled());
}

Fixed version (ground truth):
@Override public void parse(ModelCriterion criterion,boolean _default){
  if (!(criterion instanceof ModelLDiversityCriterion)) {
    return;
  }
  ModelLDiversityCriterion other=(ModelLDiversityCriterion)criterion;
  this.l=other.l;
  this.c=other.c;
  this.variant=other.variant;
  if (!_default) {
    this.setEnabled(other.isEnabled());
  }
}
Program: 107947
Project: 107947
Buggy source:
@Override public void parse(ModelCriterion criterion,boolean _default){
  if (!(criterion instanceof ModelRiskBasedCriterion)) {
    return;
  }
  ModelRiskBasedCriterion other=(ModelRiskBasedCriterion)criterion;
  this.threshold=other.threshold;
  this.variant=other.variant;
  this.setEnabled(other.isEnabled());
}

Fixed version (ground truth):
@Override public void parse(ModelCriterion criterion,boolean _default){
  if (!(criterion instanceof ModelRiskBasedCriterion)) {
    return;
  }
  ModelRiskBasedCriterion other=(ModelRiskBasedCriterion)criterion;
  this.threshold=other.threshold;
  this.variant=other.variant;
  if (!_default) {
    this.setEnabled(other.isEnabled());
  }
}
Program: 107948
Project: 107948
Buggy source:
@Override public void parse(ModelCriterion criterion,boolean _default){
  if (!(criterion instanceof ModelTClosenessCriterion)) {
    return;
  }
  ModelTClosenessCriterion other=(ModelTClosenessCriterion)criterion;
  this.t=other.t;
  this.variant=other.variant;
  this.setEnabled(other.isEnabled());
}

Fixed version (ground truth):
@Override public void parse(ModelCriterion criterion,boolean _default){
  if (!(criterion instanceof ModelTClosenessCriterion)) {
    return;
  }
  ModelTClosenessCriterion other=(ModelTClosenessCriterion)criterion;
  this.t=other.t;
  this.variant=other.variant;
  if (!_default) {
    this.setEnabled(other.isEnabled());
  }
}
Program: 107949
Project: 107949
Buggy source:
@Override public void widgetSelected(final SelectionEvent arg0){
  layoutTopLeft.setSelectionIdex(layoutTopRight.getSelectionIndex());
  if (layoutTopRight.getSelectionIndex() == 2) {
    layoutBottomLeft.setSelectionIdex(4);
  }
 else   if (layoutTopRight.getSelectionIndex() == 3) {
    layoutBottomLeft.setSelectionIdex(0);
    layoutBottomRight.setSelectionIdex(0);
  }
  controller.update(new ModelEvent(this,ModelPart.SELECTED_RISK_VISUALIZATION,null));
}

Fixed version (ground truth):
@Override public void widgetSelected(final SelectionEvent arg0){
  layoutTopLeft.setSelectionIdex(layoutTopRight.getSelectionIndex());
  if (layoutTopRight.getSelectionIndex() == 2) {
    layoutBottomLeft.setSelectionIdex(3);
  }
 else   if (layoutTopRight.getSelectionIndex() == 3) {
    layoutBottomLeft.setSelectionIdex(0);
    layoutBottomRight.setSelectionIdex(0);
  }
  controller.update(new ModelEvent(this,ModelPart.SELECTED_RISK_VISUALIZATION,null));
}
Program: 107951
Project: 107951
Buggy source:
/** 
 * Creates a new instance
 * @param population
 * @param handle
 * @param identifiers
 * @param stop
 * @param percentageDone
 * @param solverconfig
 * @param arxconfig
 */
RiskModelAttributes(final ARXPopulationModel population,final DataHandleInternal handle,final Set<String> identifiers,final WrappedBoolean stop,final WrappedInteger percentageDone,final ARXSolverConfiguration solverconfig,final ARXConfiguration arxconfig){
  this.population=population;
  this.handle=handle;
  this.stop=stop;
  this.solverconfig=solverconfig;
  this.arxconfig=arxconfig;
  List<List<String>> qis=new ArrayList<>();
  Set<Set<String>> powerset=getPowerSet(identifiers);
  for (  Set<String> set : powerset) {
    if (!set.isEmpty()) {
      List<String> qi=new ArrayList<String>(set);
      Collections.sort(qi,new Comparator<String>(){
        @Override public int compare(        String o1,        String o2){
          int index1=handle.getColumnIndexOf(o1);
          int index2=handle.getColumnIndexOf(o2);
          return new Integer(index1).compareTo(index2);
        }
      }
);
    }
  }
  Map<List<String>,QuasiIdentifierRisk> scores=new HashMap<>();
  int done=0;
  for (  List<String> qi : qis) {
    checkInterrupt();
    scores.put(qi,new QuasiIdentifierRisk(qi));
    percentageDone.value=(int)Math.round((double)done++ / (double)(powerset.size() - 1) * 100d);
  }
  risks=new QuasiIdentifierRisk[scores.size()];
  int idx=0;
  for (  QuasiIdentifierRisk value : scores.values()) {
    risks[idx++]=value;
  }
  Arrays.sort(risks);
}

Fixed version (ground truth):
/** 
 * Creates a new instance
 * @param population
 * @param handle
 * @param identifiers
 * @param stop
 * @param percentageDone
 * @param solverconfig
 * @param arxconfig
 */
RiskModelAttributes(final ARXPopulationModel population,final DataHandleInternal handle,final Set<String> identifiers,final WrappedBoolean stop,final WrappedInteger percentageDone,final ARXSolverConfiguration solverconfig,final ARXConfiguration arxconfig){
  this.population=population;
  this.handle=handle;
  this.stop=stop;
  this.solverconfig=solverconfig;
  this.arxconfig=arxconfig;
  List<List<String>> qis=new ArrayList<>();
  Set<Set<String>> powerset=getPowerSet(identifiers);
  for (  Set<String> set : powerset) {
    if (!set.isEmpty()) {
      List<String> qi=new ArrayList<String>(set);
      qis.add(qi);
      Collections.sort(qi,new Comparator<String>(){
        @Override public int compare(        String o1,        String o2){
          int index1=handle.getColumnIndexOf(o1);
          int index2=handle.getColumnIndexOf(o2);
          return new Integer(index1).compareTo(index2);
        }
      }
);
    }
  }
  Map<List<String>,QuasiIdentifierRisk> scores=new HashMap<>();
  int done=0;
  for (  List<String> qi : qis) {
    checkInterrupt();
    scores.put(qi,new QuasiIdentifierRisk(qi));
    percentageDone.value=(int)Math.round((double)done++ / (double)(powerset.size() - 1) * 100d);
  }
  risks=new QuasiIdentifierRisk[scores.size()];
  int idx=0;
  for (  QuasiIdentifierRisk value : scores.values()) {
    risks[idx++]=value;
  }
  Arrays.sort(risks);
}
Program: 107952
Project: 107952
Buggy source:
/** 
 * Creates a new instance for the given data type.
 * @param dataType
 * @param locale
 * @param data
 */
public HierarchyWizardModel(DataType<T> dataType,Locale locale,String[] data){
  this.data=data;
  this.dataType=dataType;
  orderModel=new HierarchyWizardModelOrder<T>(dataType,locale,getOrderData());
  if (dataType instanceof DataTypeWithRatioScale) {
    if (data.length > 1 || data[0] != DataType.NULL_VALUE) {
      intervalModel=new HierarchyWizardModelIntervals<T>(dataType,data);
    }
  }
  redactionModel=new HierarchyWizardModelRedaction<T>(dataType,data);
  if (equals(dataType,DataType.DATE)) {
    this.type=intervalModel != null ? Type.INTERVAL_BASED : Type.ORDER_BASED;
  }
 else   if (equals(dataType,DataType.DECIMAL)) {
    this.type=intervalModel != null ? Type.INTERVAL_BASED : Type.ORDER_BASED;
  }
 else   if (equals(dataType,DataType.INTEGER)) {
    this.type=intervalModel != null ? Type.INTERVAL_BASED : Type.ORDER_BASED;
  }
 else   if (equals(dataType,DataType.ORDERED_STRING)) {
    this.type=Type.ORDER_BASED;
  }
 else   if (equals(dataType,DataType.STRING)) {
    this.type=Type.REDACTION_BASED;
  }
}

Fixed version (ground truth):
/** 
 * Creates a new instance for the given data type.
 * @param dataType
 * @param locale
 * @param data
 */
public HierarchyWizardModel(DataType<T> dataType,Locale locale,String[] data){
  this.data=data;
  this.dataType=dataType;
  this.sort(this.getDataType());
  orderModel=new HierarchyWizardModelOrder<T>(dataType,locale,getOrderData());
  if (dataType instanceof DataTypeWithRatioScale) {
    if (data.length > 1 || data[0] != DataType.NULL_VALUE) {
      intervalModel=new HierarchyWizardModelIntervals<T>(dataType,data);
    }
  }
  redactionModel=new HierarchyWizardModelRedaction<T>(dataType,data);
  if (equals(dataType,DataType.DATE)) {
    this.type=intervalModel != null ? Type.INTERVAL_BASED : Type.ORDER_BASED;
  }
 else   if (equals(dataType,DataType.DECIMAL)) {
    this.type=intervalModel != null ? Type.INTERVAL_BASED : Type.ORDER_BASED;
  }
 else   if (equals(dataType,DataType.INTEGER)) {
    this.type=intervalModel != null ? Type.INTERVAL_BASED : Type.ORDER_BASED;
  }
 else   if (equals(dataType,DataType.ORDERED_STRING)) {
    this.type=Type.ORDER_BASED;
  }
 else   if (equals(dataType,DataType.STRING)) {
    this.type=Type.REDACTION_BASED;
  }
}
Program: 107953
Project: 107953
Buggy source:
/** 
 * Constructor to create an initial definition.
 * @param dataType
 * @param data
 */
public HierarchyWizardModelIntervals(final DataType<T> dataType,String[] data){
  super(data,dataType,true);
  this.data=data;
  this.update();
}

Fixed version (ground truth):
/** 
 * Constructor to create an initial definition.
 * @param dataType
 * @param data
 */
public HierarchyWizardModelIntervals(final DataType<T> dataType,String[] data){
  super(data,dataType,true);
  this.update();
}
Program: 107954
Project: 107954
Buggy source:
/** 
 * Constructor to create an initial definition.
 * @param dataType
 * @param locale
 * @param data
 */
public HierarchyWizardModelOrder(final DataType<T> dataType,final Locale locale,String[] data){
  super(data,dataType,false);
  this.data=data;
  this.locale=locale;
  this.internalSort(super.getDataType());
  this.update();
}

Fixed version (ground truth):
/** 
 * Constructor to create an initial definition.
 * @param dataType
 * @param locale
 * @param data
 */
public HierarchyWizardModelOrder(final DataType<T> dataType,final Locale locale,String[] data){
  super(data,dataType,false);
  this.locale=locale;
  this.update();
}
Program: 107955
Project: 107955
Buggy source:
/** 
 * Sorts the data.
 * @param type
 * @return
 */
public boolean sort(DataType<?> type){
  boolean result=internalSort(type);
  update();
  return result;
}

Fixed version (ground truth):
/** 
 * Sorts the data.
 * @param type
 * @return
 */
public boolean sort(final DataType<?> type){
  boolean result=true;
  try {
    Arrays.sort(this.data,new Comparator<String>(){
      @Override public int compare(      String o1,      String o2){
        try {
          return type.compare(o1,o2);
        }
 catch (        NumberFormatException|ParseException e) {
          throw new RuntimeException(e);
        }
      }
    }
);
  }
 catch (  Exception e) {
    result=false;
  }
  update();
  return result;
}
Program: 107956
Project: 107956
Buggy source:
/** 
 * Writes the hierarchies to the file.
 * @param config
 * @param prefix
 * @param zip
 * @throws IOException
 */
private void writeHierarchies(final ModelConfiguration config,final String prefix,final ZipOutputStream zip) throws IOException {
  for (  Entry<String,Hierarchy> entry : config.getHierarchies().entrySet()) {
    zip.putNextEntry(new ZipEntry(prefix + "String_Node_Str" + toFileName(entry.getKey())+ "String_Node_Str"));
    final CSVDataOutput out=new CSVDataOutput(zip,model.getCSVSyntax().getDelimiter());
    out.write(entry.getValue().getHierarchy());
  }
}

Fixed version (ground truth):
/** 
 * Writes the hierarchies to the file.
 * @param config
 * @param prefix
 * @param zip
 * @throws IOException
 */
private void writeHierarchies(final ModelConfiguration config,final String prefix,final ZipOutputStream zip) throws IOException {
  Set<String> saved=new HashSet<>();
  for (  Entry<String,Hierarchy> entry : config.getHierarchies().entrySet()) {
    zip.putNextEntry(new ZipEntry(prefix + "String_Node_Str" + toFileName(entry.getKey())+ "String_Node_Str"));
    CSVDataOutput out=new CSVDataOutput(zip,model.getCSVSyntax().getDelimiter());
    out.write(entry.getValue().getHierarchy());
    saved.add(entry.getKey());
  }
  DataDefinition definition=null;
  if (config == model.getInputConfig())   definition=model.getInputDefinition();
 else   definition=model.getOutputDefinition();
  DataHandle handle=config.getInput().getHandle();
  for (int i=0; i < handle.getNumColumns(); i++) {
    final String attr=handle.getAttributeName(i);
    if (!saved.contains(attr) && definition.getHierarchy(attr) != null && definition.getHierarchy(attr).length != 0 && definition.getHierarchy(attr)[0].length != 0) {
      zip.putNextEntry(new ZipEntry(prefix + "String_Node_Str" + toFileName(attr)+ "String_Node_Str"));
      CSVDataOutput out=new CSVDataOutput(zip,model.getCSVSyntax().getDelimiter());
      out.write(definition.getHierarchy(attr));
      saved.add(attr);
    }
  }
}
Program: 107959
Project: 107959
Buggy source:
/** 
 * Creates the folds
 * @param length
 * @param k
 * @param random
 * @return
 */
private List<List<Integer>> getFolds(int length,int k){
  List<Integer> rows=new ArrayList<>();
  for (int row=0; row < length; row++) {
    rows.add(row);
  }
  Collections.shuffle(rows,random);
  List<List<Integer>> folds=new ArrayList<>();
  int size=rows.size() / k;
  size=size > 1 ? size : 1;
  for (int i=0; i < k; i++) {
    int min=i * size;
    int max=(i + 1) * size;
    if (i == k - 1) {
      max=rows.size();
    }
    if (max < rows.size()) {
      List<Integer> fold=new ArrayList<>();
      for (int j=min; j < max; j++) {
        fold.add(rows.get(j));
      }
      folds.add(fold);
    }
  }
  rows.clear();
  rows=null;
  return folds;
}

Fixed version (ground truth):
/** 
 * Creates the folds
 * @param length
 * @param k
 * @param random
 * @return
 */
private List<List<Integer>> getFolds(int length,int k){
  List<Integer> rows=new ArrayList<>();
  for (int row=0; row < length; row++) {
    rows.add(row);
  }
  Collections.shuffle(rows,random);
  List<List<Integer>> folds=new ArrayList<>();
  int size=rows.size() / k;
  size=size > 1 ? size : 1;
  for (int i=0; i < k; i++) {
    int min=i * size;
    int max=(i + 1) * size;
    if (i == k - 1) {
      max=rows.size();
    }
    List<Integer> fold=new ArrayList<>();
    for (int j=min; j < max; j++) {
      fold.add(rows.get(j));
    }
    folds.add(fold);
  }
  rows.clear();
  rows=null;
  return folds;
}
Program: 107961
Project: 107961
Buggy source:
@Override @SuppressWarnings("String_Node_Str") public void initialize(DataManager manager){
  super.initialize(manager);
  if (this.populationModel != null) {
    this.populationModel.makeBackwardsCompatible(manager.getDataGeneralized().getDataLength());
  }
  if (this.estimator != null) {
    double samplingFraction=(double)manager.getDataGeneralized().getDataLength() / (double)this.populationModel.getPopulationSize();
switch (this.estimator) {
case POISSON:
      this.derivedK=calculateKPoisson(Math.round(samplingFraction * (double)this.k));
    break;
case ZERO_TRUNCATED_POISSON:
  this.derivedK=calculateKZeroPoisson(Math.round(samplingFraction * (double)this.k));
break;
default :
throw new IllegalArgumentException("String_Node_Str" + this.estimator);
}
}
if (this.derivedK > manager.getDataGeneralized().getDataLength()) {
this.derivedK=manager.getDataGeneralized().getDataLength();
}
this.derivedK=Math.min(this.k,this.derivedK);
}

Fixed version (ground truth):
@Override @SuppressWarnings("String_Node_Str") public void initialize(DataManager manager){
  super.initialize(manager);
  if (this.populationModel != null) {
    this.populationModel.makeBackwardsCompatible(manager.getDataGeneralized().getDataLength());
  }
  if (this.estimator != null) {
    double samplingFraction=(double)manager.getDataGeneralized().getDataLength() / (double)this.populationModel.getPopulationSize();
switch (this.estimator) {
case POISSON:
      this.derivedK=calculateKPoisson(samplingFraction * (double)this.k);
    break;
case ZERO_TRUNCATED_POISSON:
  this.derivedK=calculateKZeroPoisson(samplingFraction * (double)this.k);
break;
default :
throw new IllegalArgumentException("String_Node_Str" + this.estimator);
}
}
if (this.derivedK > manager.getDataGeneralized().getDataLength()) {
this.derivedK=manager.getDataGeneralized().getDataLength();
}
this.derivedK=Math.min(this.k,this.derivedK);
}
Program: 107962
Project: 107962
Buggy source:
/** 
 * Called when the hierarchy changes
 * @param hierarchy
 */
private void actionHierarchyChanged(Hierarchy hierarchy){
  if (model == null || model.getInputConfig() == null) {
    return;
  }
  updateMinMax();
  if (hierarchy == null) {
    model.getInputConfig().removeHierarchy(attribute);
  }
 else {
    model.getInputConfig().setHierarchy(attribute,hierarchy);
  }
  model.getInputConfig().removeHierarchyBuilder(attribute);
  controller.update(new ModelEvent(ViewAttributeTransformation.this,ModelPart.HIERARCHY,hierarchy));
}

Fixed version (ground truth):
/** 
 * Called when the hierarchy changes
 * @param hierarchy
 */
private void actionHierarchyChanged(Hierarchy hierarchy){
  if (model == null || model.getInputConfig() == null) {
    return;
  }
  updateMinMax();
  if (hierarchy == null || hierarchy.getHierarchy() == null) {
    model.getInputConfig().removeHierarchy(attribute);
  }
 else {
    model.getInputConfig().setHierarchy(attribute,hierarchy);
  }
  model.getInputConfig().removeHierarchyBuilder(attribute);
  controller.update(new ModelEvent(ViewAttributeTransformation.this,ModelPart.HIERARCHY,hierarchy));
}
Program: 107963
Project: 107963
Buggy source:
/** 
 * Writes the hierarchies to the file.
 * @param config
 * @param prefix
 * @param zip
 * @throws IOException
 */
private void writeHierarchies(final ModelConfiguration config,final String prefix,final ZipOutputStream zip) throws IOException {
  for (  Entry<String,Hierarchy> entry : config.getHierarchies().entrySet()) {
    zip.putNextEntry(new ZipEntry(prefix + "String_Node_Str" + toFileName(entry.getKey())+ "String_Node_Str"));
    final CSVDataOutput out=new CSVDataOutput(zip,model.getCSVSyntax().getDelimiter());
    if (entry.getValue().getHierarchy() != null) {
      out.write(entry.getValue().getHierarchy());
    }
  }
}

Fixed version (ground truth):
/** 
 * Writes the hierarchies to the file.
 * @param config
 * @param prefix
 * @param zip
 * @throws IOException
 */
private void writeHierarchies(final ModelConfiguration config,final String prefix,final ZipOutputStream zip) throws IOException {
  for (  Entry<String,Hierarchy> entry : config.getHierarchies().entrySet()) {
    zip.putNextEntry(new ZipEntry(prefix + "String_Node_Str" + toFileName(entry.getKey())+ "String_Node_Str"));
    final CSVDataOutput out=new CSVDataOutput(zip,model.getCSVSyntax().getDelimiter());
    out.write(entry.getValue().getHierarchy());
  }
}
Program: 107964
Project: 107964
Buggy source:
@Override public void widgetDisposed(DisposeEvent arg0){
  if (boldFont != null && !boldFont.isDisposed()) {
    boldFont.dispose();
  }
}

Fixed version (ground truth):
@Override public void widgetDisposed(DisposeEvent arg0){
  if (image != null && !image.isDisposed()) {
    image.dispose();
  }
}
Program: 107967
Project: 107967
Buggy source:
@Deprecated public void makeBackwardsCompatible(int sampleSize){
  if (populationSize == null) {
    populationSize=(long)(Math.round((double)sampleSize / this.sampleFraction));
  }
}

Fixed version (ground truth):
@Deprecated public void makeBackwardsCompatible(int sampleSize){
  if (populationSize == null) {
    if (region == null || region == Region.NONE) {
      populationSize=(long)(Math.round((double)sampleSize / this.sampleFraction));
    }
 else {
      populationSize=region.getPopulationSize();
    }
  }
}
Program: 107969
Project: 107969
Buggy source:
/** 
 * Writes the hierarchies to the file.
 * @param config
 * @param prefix
 * @param zip
 * @throws IOException
 */
private void writeHierarchies(final ModelConfiguration config,final String prefix,final ZipOutputStream zip) throws IOException {
  for (  Entry<String,Hierarchy> entry : config.getHierarchies().entrySet()) {
    zip.putNextEntry(new ZipEntry(prefix + "String_Node_Str" + toFileName(entry.getKey())+ "String_Node_Str"));
    final CSVDataOutput out=new CSVDataOutput(zip,model.getCSVSyntax().getDelimiter());
    out.write(entry.getValue().getHierarchy());
  }
}

Fixed version (ground truth):
/** 
 * Writes the hierarchies to the file.
 * @param config
 * @param prefix
 * @param zip
 * @throws IOException
 */
private void writeHierarchies(final ModelConfiguration config,final String prefix,final ZipOutputStream zip) throws IOException {
  for (  Entry<String,Hierarchy> entry : config.getHierarchies().entrySet()) {
    zip.putNextEntry(new ZipEntry(prefix + "String_Node_Str" + toFileName(entry.getKey())+ "String_Node_Str"));
    final CSVDataOutput out=new CSVDataOutput(zip,model.getCSVSyntax().getDelimiter());
    if (entry.getValue().getHierarchy() != null) {
      out.write(entry.getValue().getHierarchy());
    }
  }
}
Program: 107971
Project: 107971
Buggy source:
/** 
 * Creates a new instance which may be configured to produce deterministic output. Note: *never* use this in production. It is implemented for testing purposes, only.
 * @param epsilon
 * @param delta
 * @param generalization
 * @param deterministic
 */
public EDDifferentialPrivacy(double epsilon,double delta,DataGeneralizationScheme generalization,boolean deterministic){
  super(false,false);
  this.epsilon=epsilon;
  this.delta=delta;
  this.generalization=generalization;
  this.beta=calculateBeta(epsilon);
  this.k=calculateK(delta,epsilon,this.beta);
  if (deterministic) {
    this.random=new Random(0xDEADBEEF);
  }
}

Fixed version (ground truth):
/** 
 * Creates a new instance which may be configured to produce deterministic output. Note: *never* use this in production. It is implemented for testing purposes, only.
 * @param epsilon
 * @param delta
 * @param generalization
 * @param deterministic
 */
public EDDifferentialPrivacy(double epsilon,double delta,DataGeneralizationScheme generalization,boolean deterministic){
  super(false,false);
  this.epsilon=epsilon;
  this.delta=delta;
  this.generalization=generalization;
  this.beta=calculateBeta(epsilon);
  this.k=calculateK(delta,epsilon,this.beta);
  this.deterministic=true;
}
Program: 107972
Project: 107972
Buggy source:
/** 
 * Creates a random sample based on beta
 * @param manager
 */
public void initialize(DataManager manager){
  if (subset != null && this.manager == null) {
    this.manager=manager;
    return;
  }
  if (subset != null && this.manager == manager) {
    return;
  }
  Set<Integer> subsetIndices=new HashSet<Integer>();
  if (random == null) {
    random=new SecureRandom();
  }
  int records=manager.getDataGeneralized().getDataLength();
  for (int i=0; i < records; ++i) {
    if (random.nextDouble() < beta) {
      subsetIndices.add(i);
    }
  }
  this.subset=DataSubset.create(records,subsetIndices);
  this.manager=manager;
}

Fixed version (ground truth):
/** 
 * Creates a random sample based on beta
 * @param manager
 */
public void initialize(DataManager manager){
  if (subset != null && this.manager == null) {
    this.manager=manager;
    return;
  }
  if (subset != null && this.manager == manager) {
    return;
  }
  Random random;
  if (deterministic) {
    random=new Random(0xDEADBEEF);
  }
 else {
    random=new SecureRandom();
  }
  Set<Integer> subsetIndices=new HashSet<Integer>();
  int records=manager.getDataGeneralized().getDataLength();
  for (int i=0; i < records; ++i) {
    if (random.nextDouble() < beta) {
      subsetIndices.add(i);
    }
  }
  this.subset=DataSubset.create(records,subsetIndices);
  this.manager=manager;
}
Program: 107973
Project: 107973
Buggy source:
@Override public void onInterrupt(){
  if (!isEnabled()) {
    setStatusEmpty();
  }
 else {
    setStatusWorking();
  }
}

Fixed version (ground truth):
@Override public void onInterrupt(){
  if (!isEnabled() || getModel().getSelectedFeatures().isEmpty() || getModel().getSelectedClasses().isEmpty()) {
    setStatusEmpty();
  }
 else {
    setStatusWorking();
  }
}
Program: 107974
Project: 107974
Buggy source:
@Override public void update(ModelEvent event){
  super.update(event);
  if (event.part == ModelPart.SELECTED_FEATURES_OR_CLASSES || event.part == ModelPart.DATA_TYPE) {
    triggerUpdate();
  }
  if (event.part == ModelPart.SELECTED_ATTRIBUTE) {
    int index=0;
    for (    TableItem item : table.getItems()) {
      if (item.getText(0).equals(super.getModel().getSelectedAttribute())) {
        table.select(index);
        if (item.getData() != null && item.getData() instanceof PrecisionRecallMatrix) {
          setChartSeries((PrecisionRecallMatrix)item.getData());
        }
        return;
      }
      index++;
    }
  }
}

Fixed version (ground truth):
@Override public void update(ModelEvent event){
  super.update(event);
  if (event.part == ModelPart.SELECTED_FEATURES_OR_CLASSES || event.part == ModelPart.DATA_TYPE) {
    if (getModel() != null && (getModel().getSelectedFeatures().isEmpty() || getModel().getSelectedClasses().isEmpty())) {
      doReset();
      return;
    }
 else {
      triggerUpdate();
    }
  }
  if (event.part == ModelPart.SELECTED_ATTRIBUTE) {
    int index=0;
    for (    TableItem item : table.getItems()) {
      if (item.getText(0).equals(super.getModel().getSelectedAttribute())) {
        table.select(index);
        if (item.getData() != null && item.getData() instanceof PrecisionRecallMatrix) {
          setChartSeries((PrecisionRecallMatrix)item.getData());
        }
        return;
      }
      index++;
    }
  }
}
Program: 107975
Project: 107975
Buggy source:
@Override public void onFinish(){
  if (stopped || !isEnabled()) {
    return;
  }
  for (  final TableItem i : table.getItems()) {
    i.dispose();
  }
  for (int i=0; i < classes.length; i++) {
    TableItem item=new TableItem(table,SWT.NONE);
    item.setText(0,classes[i]);
    item.setText(1,String.valueOf(numClasses.get(i)));
    for (int j=0; j < values.get(i).size(); j++) {
      item.setData(String.valueOf(2 + j),values.get(i).get(j));
    }
    item.setData(matrixes.get(i));
  }
  table.setFocus();
  table.select(0);
  setChartSeries(matrixes.get(0));
  root.layout();
  sash.setWeights(new int[]{2,2});
  setStatusDone();
}

Fixed version (ground truth):
@Override public void onFinish(){
  if (stopped || !isEnabled() || getModel().getSelectedFeatures().isEmpty()|| getModel().getSelectedClasses().isEmpty()) {
    setStatusEmpty();
    return;
  }
  for (  final TableItem i : table.getItems()) {
    i.dispose();
  }
  for (int i=0; i < classes.length; i++) {
    TableItem item=new TableItem(table,SWT.NONE);
    item.setText(0,classes[i]);
    item.setText(1,String.valueOf(numClasses.get(i)));
    for (int j=0; j < values.get(i).size(); j++) {
      item.setData(String.valueOf(2 + j),values.get(i).get(j));
    }
    item.setData(matrixes.get(i));
  }
  table.setFocus();
  table.select(0);
  setChartSeries(matrixes.get(0));
  root.layout();
  sash.setWeights(new int[]{2,2});
  setStatusDone();
}
Program: 107977
Project: 107977
Buggy source:
@Override protected List<Double> getColumnValues(StatisticsClassification result){
  List<Double> list=new ArrayList<Double>();
  list.add(result.getZeroRAccuracy());
  list.add(result.getOriginalAccuracy());
  list.add(result.getAccuracy());
  list.add((result.getAccuracy() - result.getZeroRAccuracy()) / (result.getOriginalAccuracy() - result.getZeroRAccuracy()));
  list.add(result.getAverageError());
  list.add(result.getAverageError() - result.getOriginalAverageError());
  return list;
}

Fixed version (ground truth):
@Override protected List<Double> getColumnValues(StatisticsClassification result){
  List<Double> list=new ArrayList<Double>();
  list.add(result.getZeroRAccuracy());
  list.add(result.getOriginalAccuracy());
  list.add(result.getAccuracy());
  if (result.getOriginalAccuracy() - result.getZeroRAccuracy() == 0d) {
    list.add(result.getAccuracy() / result.getZeroRAccuracy());
  }
 else {
    list.add((result.getAccuracy() - result.getZeroRAccuracy()) / (result.getOriginalAccuracy() - result.getZeroRAccuracy()));
  }
  list.add(result.getAverageError());
  list.add(result.getAverageError() - result.getOriginalAverageError());
  return list;
}
Program: 107978
Project: 107978
Buggy source:
/** 
 * Packs the results
 */
void pack(){
  for (int i=0; i < CONFIDENCE_THRESHOLDS.length; i++) {
    precision[i]/=recall[i];
    recall[i]/=measurements;
  }
}

Fixed version (ground truth):
/** 
 * Packs the results
 */
void pack(){
  for (int i=0; i < CONFIDENCE_THRESHOLDS.length; i++) {
    if (recall[i] == 0d) {
      precision[i]=1d;
    }
 else {
      precision[i]/=recall[i];
      recall[i]/=measurements;
    }
  }
}
Program: 107979
Project: 107979
Buggy source:
/** 
 * @return
 * @see org.deidentifier.arx.ARXLogisticRegressionConfiguration#getAlpha()
 */
public double getAlpha(){
  return config.getAlpha();
}

Fixed version (ground truth):
/** 
 * @return
 * @see org.deidentifier.arx.ARXLogisticRegressionConfiguration#getAlpha()
 */
public double getAlpha(){
  return getConfig().getAlpha();
}
Program: 107980
Project: 107980
Buggy source:
/** 
 * @return
 * @see org.deidentifier.arx.ARXLogisticRegressionConfiguration#getLambda()
 */
public double getLambda(){
  return config.getLambda();
}

Fixed version (ground truth):
/** 
 * @return
 * @see org.deidentifier.arx.ARXLogisticRegressionConfiguration#getLambda()
 */
public double getLambda(){
  return getConfig().getLambda();
}
Program: 107981
Project: 107981
Buggy source:
/** 
 * @return
 * @see org.deidentifier.arx.ARXLogisticRegressionConfiguration#getStepOffset()
 */
public int getStepOffset(){
  return config.getStepOffset();
}

Fixed version (ground truth):
/** 
 * @return
 * @see org.deidentifier.arx.ARXLogisticRegressionConfiguration#getStepOffset()
 */
public int getStepOffset(){
  return getConfig().getStepOffset();
}
Program: 107982
Project: 107982
Buggy source:
/** 
 * @return
 * @see org.deidentifier.arx.ARXLogisticRegressionConfiguration#getPriorFunction()
 */
public PriorFunction getPriorFunction(){
  return config.getPriorFunction();
}

Fixed version (ground truth):
/** 
 * @return
 * @see org.deidentifier.arx.ARXLogisticRegressionConfiguration#getPriorFunction()
 */
public PriorFunction getPriorFunction(){
  return getConfig().getPriorFunction();
}
Program: 107983
Project: 107983
Buggy source:
/** 
 * @return
 * @see org.deidentifier.arx.ARXLogisticRegressionConfiguration#getDecayExponent()
 */
public double getDecayExponent(){
  return config.getDecayExponent();
}

Fixed version (ground truth):
/** 
 * @return
 * @see org.deidentifier.arx.ARXLogisticRegressionConfiguration#getDecayExponent()
 */
public double getDecayExponent(){
  return getConfig().getDecayExponent();
}
Program: 107984
Project: 107984
Buggy source:
/** 
 * @return
 * @see org.deidentifier.arx.ARXLogisticRegressionConfiguration#getSeed()
 */
public Integer getSeed(){
  return config.getSeed();
}

Fixed version (ground truth):
/** 
 * @return
 * @see org.deidentifier.arx.ARXLogisticRegressionConfiguration#getSeed()
 */
public Integer getSeed(){
  return getConfig().getSeed();
}
Program: 107985
Project: 107985
Buggy source:
/** 
 * @return
 * @see org.deidentifier.arx.ARXLogisticRegressionConfiguration#getVectorLength()
 */
public int getVectorLength(){
  return config.getVectorLength();
}

Fixed version (ground truth):
/** 
 * @return
 * @see org.deidentifier.arx.ARXLogisticRegressionConfiguration#getVectorLength()
 */
public int getVectorLength(){
  return getConfig().getVectorLength();
}
Program: 107986
Project: 107986
Buggy source:
/** 
 * @return
 * @see org.deidentifier.arx.ARXLogisticRegressionConfiguration#getMaxRecords()
 */
public int getMaxRecords(){
  return config.getMaxRecords();
}

Fixed version (ground truth):
/** 
 * @return
 * @see org.deidentifier.arx.ARXLogisticRegressionConfiguration#getMaxRecords()
 */
public int getMaxRecords(){
  return getConfig().getMaxRecords();
}
Program: 107987
Project: 107987
Buggy source:
/** 
 * @return
 * @see org.deidentifier.arx.ARXLogisticRegressionConfiguration#getNumFolds()
 */
public Integer getNumberOfFolds(){
  return config.getNumFolds();
}

Fixed version (ground truth):
/** 
 * @return
 * @see org.deidentifier.arx.ARXLogisticRegressionConfiguration#getNumFolds()
 */
public Integer getNumberOfFolds(){
  return getConfig().getNumFolds();
}
Program: 107988
Project: 107988
Buggy source:
/** 
 * @return
 * @see org.deidentifier.arx.ARXLogisticRegressionConfiguration#getLearningRate()
 */
public double getLearningRate(){
  return config.getLearningRate();
}

Fixed version (ground truth):
/** 
 * @return
 * @see org.deidentifier.arx.ARXLogisticRegressionConfiguration#getLearningRate()
 */
public double getLearningRate(){
  return getConfig().getLearningRate();
}