nus-yam/ex-repair huggingface dataset:
Program: 140128
Project: 140128
Buggy source:
/** 
 * DOC scorreia Comment method "createBubbleChart".
 * @param indic
 * @param numericColumn TODO
 * @return
 */
public static JFreeChart createBubbleChart(final ColumnSetMultiValueIndicator indic,Column numericColumn){
  final Map<String,ValueAggregator> createXYZDatasets=ChartDatasetFactory.createXYZDatasets(indic,numericColumn);
  DefaultXYZDataset dataset=new DefaultXYZDataset();
  final Iterator<String> iterator=createXYZDatasets.keySet().iterator();
  while (iterator.hasNext()) {
    final String next=iterator.next();
    createXYZDatasets.get(next).addSeriesToXYZDataset(dataset,next);
  }
  String chartName="String_Node_Str" + numericColumn.getName() + "String_Node_Str";
  JFreeChart chart=TopChartFactory.createBubbleChart(chartName,"String_Node_Str","String_Node_Str",dataset,PlotOrientation.HORIZONTAL,true,false,true);
  final XYPlot plot=(XYPlot)chart.getPlot();
  final XYItemRenderer renderer=plot.getRenderer();
  renderer.setBaseToolTipGenerator(new StandardXYZToolTipGenerator(){
    @Override protected Object[] createItemArray(    XYZDataset dset,    int series,    int item){
      final Comparable<?> seriesKey=dset.getSeriesKey(series);
      final String seriesK=String.valueOf(seriesKey);
      final ValueAggregator valueAggregator=createXYZDatasets.get(seriesKey);
      String label=valueAggregator.getLabels(seriesK).get(item);
      final Object[] itemArray=super.createItemArray(dset,series,item);
      itemArray[0]=label;
      return itemArray;
    }
  }
);
  return chart;
}

Fixed version (ground truth):
/** 
 * Method "createBubbleChart".
 * @param indic the indicator
 * @param numericColumn the analyzed numeric column
 * @return the bubble chart
 */
public static JFreeChart createBubbleChart(final ColumnSetMultiValueIndicator indic,Column numericColumn){
  final Map<String,ValueAggregator> createXYZDatasets=ChartDatasetFactory.createXYZDatasets(indic,numericColumn);
  DefaultXYZDataset dataset=new DefaultXYZDataset();
  final Iterator<String> iterator=createXYZDatasets.keySet().iterator();
  while (iterator.hasNext()) {
    final String next=iterator.next();
    createXYZDatasets.get(next).addSeriesToXYZDataset(dataset,next);
  }
  String chartName="String_Node_Str" + numericColumn.getName() + "String_Node_Str";
  JFreeChart chart=TopChartFactory.createBubbleChart(chartName,"String_Node_Str","String_Node_Str",dataset,PlotOrientation.HORIZONTAL,true,false,true);
  final XYPlot plot=(XYPlot)chart.getPlot();
  final XYItemRenderer renderer=plot.getRenderer();
  renderer.setBaseToolTipGenerator(new StandardXYZToolTipGenerator(){
    @Override protected Object[] createItemArray(    XYZDataset dset,    int series,    int item){
      final Comparable<?> seriesKey=dset.getSeriesKey(series);
      final String seriesK=String.valueOf(seriesKey);
      final ValueAggregator valueAggregator=createXYZDatasets.get(seriesKey);
      String label=valueAggregator.getLabels(seriesK).get(item);
      final Object[] itemArray=super.createItemArray(dset,series,item);
      itemArray[0]=label;
      return itemArray;
    }
  }
);
  return chart;
}
Program: 140131
Project: 140131
Buggy source:
/** 
 * DOC scorreia Comment method "queryOnTable".
 * @param catalog
 * @param schema
 * @param schemaIndic
 * @param tablesSet
 * @param tableCube
 * @param ok
 * @throws SQLException
 */
private void evalAllCounts(String catalog,String schema,NamedColumnSet t,SchemaIndicator schemaIndic,boolean isTable,ReturnCode ok) throws SQLException {
  String quCatalog=catalog == null ? null : dbms().quote(catalog);
  String quSchema=schema == null ? null : dbms().quote(schema);
  String quTable=dbms().quote(t.getName());
  if (isTable) {
    long rowCount=getRowCounts(quCatalog,quSchema,quTable);
    schemaIndic.setTableRowCount(schemaIndic.getTableRowCount() + rowCount);
    int pkCount=getPKCount(quCatalog,quSchema,quTable);
    schemaIndic.setKeyCount(schemaIndic.getKeyCount() + pkCount);
    int idxCount=getIndexCount(quCatalog,quSchema,quTable);
    schemaIndic.setIndexCount(schemaIndic.getIndexCount() + idxCount);
    createTableIndicator(t,schemaIndic,rowCount,pkCount,idxCount);
  }
 else {
    long rowCount=getRowCounts(quCatalog,quSchema,quTable);
    schemaIndic.setViewRowCount(schemaIndic.getViewRowCount() + rowCount);
    createViewIndicator(t,schemaIndic,rowCount);
  }
}

Fixed version (ground truth):
/** 
 * DOC scorreia Comment method "queryOnTable".
 * @param catalog
 * @param schema
 * @param schemaIndic
 * @param tablesSet
 * @param tableCube
 * @param ok
 * @throws SQLException
 */
private void evalAllCounts(String catalog,String schema,NamedColumnSet t,SchemaIndicator schemaIndic,boolean isTable,ReturnCode ok) throws SQLException {
  String quCatalog=catalog == null ? null : dbms().quote(catalog);
  String quSchema=schema == null ? null : dbms().quote(schema);
  final String table=t.getName();
  String quTable=dbms().quote(table);
  if (isTable) {
    long rowCount=getRowCounts(quCatalog,quSchema,quTable);
    schemaIndic.setTableRowCount(schemaIndic.getTableRowCount() + rowCount);
    int pkCount=getPKCount(catalog,schema,table);
    schemaIndic.setKeyCount(schemaIndic.getKeyCount() + pkCount);
    int idxCount=getIndexCount(catalog,schema,table);
    schemaIndic.setIndexCount(schemaIndic.getIndexCount() + idxCount);
    createTableIndicator(t,schemaIndic,rowCount,pkCount,idxCount);
  }
 else {
    long rowCount=getRowCounts(quCatalog,quSchema,quTable);
    schemaIndic.setViewRowCount(schemaIndic.getViewRowCount() + rowCount);
    createViewIndicator(t,schemaIndic,rowCount);
  }
}
Program: 140132
Project: 140132
Buggy source:
/** 
 * DOC scorreia Comment method "getPKCount".
 * @param quCatalog
 * @param quSchema
 * @param quTable
 * @param pkCount
 * @return
 * @throws SQLException
 */
private int getPKCount(String quCatalog,String quSchema,String quTable) throws SQLException {
  int pkCount=0;
  ResultSet pk=null;
  try {
    pk=getConnection().getMetaData().getPrimaryKeys(quCatalog,quSchema,quTable);
  }
 catch (  SQLException e1) {
    log.warn("String_Node_Str" + this.dbms().toQualifiedName(quCatalog,quSchema,quTable) + "String_Node_Str"+ e1.getLocalizedMessage(),e1);
    reloadConnectionAfterException(quCatalog);
  }
  if (pk != null) {
    while (pk.next()) {
      pkCount+=1;
    }
    pk.close();
  }
  return pkCount;
}

Fixed version (ground truth):
/** 
 * DOC scorreia Comment method "getPKCount".
 * @param catalog
 * @param schema
 * @param table
 * @param pkCount
 * @return
 * @throws SQLException
 */
private int getPKCount(String catalog,String schema,String table) throws SQLException {
  int pkCount=0;
  ResultSet pk=null;
  try {
    pk=getConnection().getMetaData().getPrimaryKeys(catalog,schema,table);
  }
 catch (  SQLException e1) {
    log.warn("String_Node_Str" + this.dbms().toQualifiedName(catalog,schema,table) + "String_Node_Str"+ e1.getLocalizedMessage(),e1);
    reloadConnectionAfterException(catalog);
  }
  if (pk != null) {
    while (pk.next()) {
      pkCount+=1;
    }
    pk.close();
  }
  return pkCount;
}
Program: 140133
Project: 140133
Buggy source:
/** 
 * DOC scorreia Comment method "getIndexCount".
 * @param quCatalog
 * @param quSchema
 * @param quTable
 * @param idxCount
 * @return
 * @throws SQLException
 */
private int getIndexCount(String quCatalog,String quSchema,String quTable) throws SQLException {
  int idxCount=0;
  ResultSet idx=null;
  try {
    idx=getConnection().getMetaData().getIndexInfo(quCatalog,quSchema,quTable,false,false);
  }
 catch (  SQLException e) {
    log.warn("String_Node_Str" + this.dbms().toQualifiedName(quCatalog,quSchema,quTable) + "String_Node_Str"+ e.getLocalizedMessage(),e);
    reloadConnectionAfterException(quCatalog);
  }
  if (idx != null) {
    while (idx.next()) {
      idxCount+=1;
    }
    idx.close();
  }
  return idxCount;
}

Fixed version (ground truth):
/** 
 * DOC scorreia Comment method "getIndexCount".
 * @param catalog
 * @param schema
 * @param table
 * @param idxCount
 * @return
 * @throws SQLException
 */
private int getIndexCount(String catalog,String schema,String table) throws SQLException {
  int idxCount=0;
  ResultSet idx=null;
  try {
    idx=getConnection().getMetaData().getIndexInfo(catalog,schema,table,false,false);
  }
 catch (  SQLException e) {
    log.warn("String_Node_Str" + this.dbms().toQualifiedName(catalog,schema,table) + "String_Node_Str"+ e.getLocalizedMessage(),e);
    reloadConnectionAfterException(catalog);
  }
  if (idx != null) {
    while (idx.next()) {
      idxCount+=1;
    }
    idx.close();
  }
  return idxCount;
}
Program: 140140
Project: 140140
Buggy source:
private void showTip(TableItem item,String msg){
  if (tip != null && !tip.isDisposed()) {
    tip.dispose();
  }
  tip=new Shell(shell,SWT.ON_TOP | SWT.TOOL);
  tip.setLayout(new FillLayout());
  label=new Label(tip,SWT.NONE);
  label.setForeground(Display.getCurrent().getSystemColor(SWT.COLOR_INFO_FOREGROUND));
  label.setData("String_Node_Str",item);
  label.setText(msg);
  label.addListener(SWT.MouseExit,labelListener);
  label.addListener(SWT.MouseDown,labelListener);
  Point size=tip.computeSize(SWT.DEFAULT,SWT.DEFAULT);
  Rectangle rect=item.getBounds(1);
  Point pt=table.toDisplay(rect.x,rect.y);
  tip.setBounds(pt.x + 10,pt.y + 10,size.x,size.y);
  tip.setVisible(true);
}

Fixed version (ground truth):
private void showTip(TableItem item,String msg){
  if (tip != null && !tip.isDisposed()) {
    tip.dispose();
  }
  tip=new Shell(shell,SWT.ON_TOP | SWT.TOOL);
  tip.setLayout(new FillLayout());
  label=new Label(tip,SWT.NONE);
  label.setForeground(Display.getCurrent().getSystemColor(SWT.COLOR_INFO_FOREGROUND));
  label.setData("String_Node_Str",item);
  label.setText(msg);
  label.addListener(SWT.MouseExit,labelListener);
  label.addListener(SWT.MouseDown,labelListener);
  Point size=tip.computeSize(SWT.DEFAULT,SWT.DEFAULT);
  Rectangle rect=item.getBounds(1);
  Point pt=table.toDisplay(rect.x,rect.y);
  tip.setBounds(pt.x + 10,pt.y + 18,size.x,size.y);
  tip.setVisible(true);
}
Program: 140142
Project: 140142
Buggy source:
/** 
 * DOC Zqin Comment method "isEmpty".
 * @param strs
 * @return
 */
public static boolean isEmpty(String... strs){
  if (strs == null) {
    return false;
  }
  for (  String str : strs) {
    if ("String_Node_Str".equals(str.trim())) {
      return true;
    }
  }
  return false;
}

Fixed version (ground truth):
/** 
 * DOC Zqin Comment method "isEmpty".
 * @param strs
 * @return
 */
public static boolean isEmpty(String... strs){
  if (strs == null) {
    return false;
  }
  for (  String str : strs) {
    if (str == null) {
      return true;
    }
 else     if ("String_Node_Str".equals(str.trim())) {
      return true;
    }
  }
  return false;
}
Program: 140143
Project: 140143
Buggy source:
@Override protected boolean checkFieldsValue(){
  String min, max;
  String pmin, pmax;
  if (canUsed) {
    min=lowerText.getText();
    max=higherText.getText();
    pmin=pLowerText.getText();
    pmax=pHigherText.getText();
    boolean flag=false;
    if (!CheckValueUtils.isEmpty(min,max)) {
      flag=checkFinished(min,max);
    }
    if (!CheckValueUtils.isEmpty(pmin,pmax)) {
      flag=flag && checkFinished(pmin,pmax);
    }
    return flag;
  }
 else {
    min=lowerText.getText();
    max=higherText.getText();
    if (!CheckValueUtils.isEmpty(min,max)) {
      return checkFinished(min,max);
    }
  }
  return false;
}

Fixed version (ground truth):
@Override protected boolean checkFieldsValue(){
  return false;
}
Program: 140145
Project: 140145
Buggy source:
public void modifyText(ModifyEvent e){
  checkInput(pHigherText.getText());
}

Fixed version (ground truth):
public void modifyText(ModifyEvent e){
  String pmin=pLowerText.getText();
  String pmax=pHigherText.getText();
  if (!CheckValueUtils.isEmpty(pmax)) {
    if (!CheckValueUtils.isRealNumberValue(pmax)) {
      updateStatus(IStatus.ERROR,MSG_ONLY_REAL_NUMBER);
    }
 else     if (CheckValueUtils.isOutRange(MIN,MAX,pmax)) {
      updateStatus(IStatus.ERROR,UIMessages.MSG_INDICATOR_VALUE_OUT_OF_RANGE);
    }
 else     if (!CheckValueUtils.isEmpty(pmin) && CheckValueUtils.isAoverB(pmin,pmax)) {
      updateStatus(IStatus.ERROR,UIMessages.MSG_LOWER_LESS_HIGHER);
    }
 else {
      updateStatus(IStatus.OK,MSG_OK);
    }
  }
 else {
    updateStatus(IStatus.OK,UIMessages.MSG_INDICATOR_WIZARD);
  }
}
Program: 140146
Project: 140146
Buggy source:
@Override public boolean performFinish(){
  if (checkFieldsValue()) {
    String min=lowerText.getText();
    String max=higherText.getText();
    if (!CheckValueUtils.isEmpty(min,max)) {
      IndicatorHelper.setIndicatorThreshold(parameters,min,max);
    }
    if (canUsed) {
      String pmin=pLowerText.getText();
      String pmax=pHigherText.getText();
      if (!CheckValueUtils.isEmpty(pmin,pmax)) {
        IndicatorHelper.setIndicatorThresholdInPercent(parameters,pmin,pmax);
      }
    }
    return true;
  }
  return false;
}

Fixed version (ground truth):
@Override public boolean performFinish(){
  boolean isMinEmpty=CheckValueUtils.isEmpty(lowerText.getText());
  boolean isMaxEmpty=CheckValueUtils.isEmpty(higherText.getText());
  if (canUsed) {
    boolean isPerMinEmpty=CheckValueUtils.isEmpty(pLowerText.getText());
    boolean isPerMaxEmpty=CheckValueUtils.isEmpty(pHigherText.getText());
    if (isMinEmpty && isMaxEmpty && isPerMinEmpty&& isPerMaxEmpty) {
      parameters.setIndicatorValidDomain(null);
    }
 else {
      if (isMinEmpty && isMaxEmpty) {
        removeRange(VALUE_THRESHOLD);
      }
 else {
        IndicatorHelper.setIndicatorThreshold(parameters,lowerText.getText(),higherText.getText());
      }
      if (isPerMinEmpty && isPerMaxEmpty) {
        removeRange(PERCENTAGE_THRESHOLD);
      }
 else {
        IndicatorHelper.setIndicatorThresholdInPercent(parameters,pLowerText.getText(),pHigherText.getText());
      }
    }
  }
 else {
    if (isMinEmpty && isMaxEmpty) {
      parameters.setIndicatorValidDomain(null);
    }
 else {
      IndicatorHelper.setIndicatorThreshold(parameters,lowerText.getText(),higherText.getText());
    }
  }
  return true;
}
Program: 140147
Project: 140147
Buggy source:
private void createTechnicalDetail(EObject fe){
  Label idLab=new Label(tContainer,SWT.NONE);
  idLab.setText(DefaultMessagesImpl.getString("String_Node_Str"));
  newText(tContainer,ResourceHelper.getUUID(fe));
  Label pathLab=new Label(tContainer,SWT.NONE);
  pathLab.setText(DefaultMessagesImpl.getString("String_Node_Str"));
  newText(tContainer,fe.eResource().getURI().path());
}

Fixed version (ground truth):
private void createTechnicalDetail(IFile fe){
  EObject object=getEObject(fe);
  if (object != null) {
    createTechnicalDetail(object);
  }
}
Program: 140149
Project: 140149
Buggy source:
@Override public void createPartControl(Composite parent){
  Composite composite=new Composite(parent,SWT.NONE);
  composite.setLayout(new GridLayout());
  composite.setLayoutData(new GridData(GridData.FILL_BOTH));
  gContainer=new Group(composite,SWT.NONE);
  gContainer.setText(DefaultMessagesImpl.getString("String_Node_Str"));
  GridLayout layout=new GridLayout(2,false);
  GridData data=new GridData(GridData.FILL_BOTH);
  gContainer.setLayout(layout);
  gContainer.setLayoutData(data);
  if (switchFlag) {
    tContainer=new Group(composite,SWT.NONE);
    tContainer.setText(DefaultMessagesImpl.getString("String_Node_Str"));
    tContainer.setLayout(new GridLayout(2,false));
    tContainer.setLayoutData(new GridData(GridData.FILL_BOTH));
    createExtDefault();
  }
  createDefault();
  getSite().getWorkbenchWindow().getSelectionService().addSelectionListener(this);
}

Fixed version (ground truth):
@Override public void createPartControl(Composite parent){
  Composite comp=new Composite(parent,SWT.NONE);
  comp.setLayout(new FillLayout());
  ScrolledComposite scomp=new ScrolledComposite(comp,SWT.H_SCROLL | SWT.V_SCROLL);
  scomp.setLayout(new FillLayout());
  Composite composite=new Composite(scomp,SWT.NONE);
  composite.setLayout(new GridLayout());
  composite.setLayoutData(new GridData(GridData.FILL_BOTH));
  scomp.setExpandHorizontal(true);
  scomp.setExpandVertical(true);
  scomp.setMinWidth(400);
  scomp.setMinHeight(300);
  scomp.setContent(composite);
  gContainer=new Group(composite,SWT.NONE);
  gContainer.setText(DefaultMessagesImpl.getString("String_Node_Str"));
  GridLayout layout=new GridLayout(2,false);
  GridData data=new GridData(GridData.FILL_BOTH);
  gContainer.setLayout(layout);
  gContainer.setLayoutData(data);
  if (switchFlag) {
    tContainer=new Group(composite,SWT.NONE);
    tContainer.setText(DefaultMessagesImpl.getString("String_Node_Str"));
    tContainer.setLayout(new GridLayout(2,false));
    tContainer.setLayoutData(new GridData(GridData.FILL_BOTH));
    createExtDefault();
  }
  createDefault();
  getSite().getWorkbenchWindow().getSelectionService().addSelectionListener(this);
}
Program: 140150
Project: 140150
Buggy source:
private String getTextRowsStatement(){
  String lang=dbmsLanguage.getDbmsName();
  Expression instantiatedExpression=this.indicator.getInstantiatedExpressions(lang);
  String instantiatedSQL=instantiatedExpression.getBody();
  String clause="String_Node_Str" + this.columnName + "String_Node_Str"+ dbmsLanguage.equal()+ "String_Node_Str"+ instantiatedSQL+ "String_Node_Str";
  return getRowsStatement(clause);
}

Fixed version (ground truth):
private String getTextRowsStatement(){
  String lang=dbmsLanguage.getDbmsName();
  Expression instantiatedExpression=this.indicator.getInstantiatedExpressions(lang);
  String instantiatedSQL=instantiatedExpression.getBody();
  String clause=dbmsLanguage.charLength(this.columnName) + dbmsLanguage.equal() + "String_Node_Str"+ instantiatedSQL+ "String_Node_Str";
  return getRowsStatement(clause);
}
Program: 140151
Project: 140151
Buggy source:
@Override public String getPatternFinderDefaultFunction(String expression){
  return "String_Node_Str" + expression + "String_Node_Str"+ "String_Node_Str";
}

Fixed version (ground truth):
@Override public String getPatternFinderDefaultFunction(String expression){
  return "String_Node_Str" + expression + "String_Node_Str"+ NUM+ UPPER+ LOWER+ "String_Node_Str"+ "String_Node_Str"+ NUM.length()+ "String_Node_Str"+ UPPER.length()+ "String_Node_Str"+ LOWER.length()+ "String_Node_Str";
}
Program: 140152
Project: 140152
Buggy source:
@Override public String getPatternFinderDefaultFunction(String expression){
  return "String_Node_Str" + expression + "String_Node_Str"+ "String_Node_Str";
}

Fixed version (ground truth):
@Override public String getPatternFinderDefaultFunction(String expression){
  return "String_Node_Str" + expression + "String_Node_Str"+ NUM+ UPPER+ LOWER+ "String_Node_Str"+ "String_Node_Str"+ NUM.length()+ "String_Node_Str"+ UPPER.length()+ "String_Node_Str"+ LOWER.length()+ "String_Node_Str";
}
Program: 140153
Project: 140153
Buggy source:
/** 
 * DOC Zqin Comment method "getRangeAsString".
 * @return retrun the message when indicator value out the defined range.
 */
public String getRangeAsString(){
  StringBuilder msg=new StringBuilder();
  if (indicator != null) {
    IndicatorEnum indicatorEnum=IndicatorEnum.findIndicatorEnum(indicator.eClass());
    if (indicatorEnum == IndicatorEnum.ModeIndicatorEnum) {
      msg.append("String_Node_Str" + IndicatorHelper.getExpectedValue(indicator) + "String_Node_Str");
    }
 else     if (indicatorEnum == IndicatorEnum.BoxIIndicatorEnum) {
      if (isOutOfRange(getValue())) {
        Double[] dRange=getDefinedRange(getValue());
        range="String_Node_Str" + dRange[0] + "String_Node_Str"+ dRange[1]+ "String_Node_Str";
        msg.append("String_Node_Str" + range);
      }
    }
 else {
      if (isOutOfRange(getValue())) {
        Double[] dRange=getDefinedRange(getValue());
        range="String_Node_Str" + dRange[0] + "String_Node_Str"+ dRange[1]+ "String_Node_Str";
        msg.append("String_Node_Str" + range);
        msg.append("String_Node_Str");
      }
      if (isOutOfRange(getPersent())) {
        Double[] dRange=getDefinedRange(getPersent());
        range="String_Node_Str" + StringFormatUtil.formatPersent(dRange[0] / 100) + "String_Node_Str"+ StringFormatUtil.formatPersent(dRange[1] / 100)+ "String_Node_Str";
        msg.append("String_Node_Str" + range);
      }
    }
  }
  return msg.length() == 0 ? null : msg.toString();
}

Fixed version (ground truth):
/** 
 * DOC Zqin Comment method "getRangeAsString".
 * @return retrun the message when indicator value out the defined range.
 */
public String getRangeAsString(){
  StringBuilder msg=new StringBuilder();
  if (indicator != null) {
    IndicatorEnum indicatorEnum=IndicatorEnum.findIndicatorEnum(indicator.eClass());
    if (indicatorEnum == IndicatorEnum.ModeIndicatorEnum) {
      msg.append("String_Node_Str" + IndicatorHelper.getExpectedValue(indicator) + "String_Node_Str");
    }
 else     if (indicatorEnum == IndicatorEnum.BoxIIndicatorEnum) {
      if (isOutOfRange(getValue())) {
        msg.append("String_Node_Str" + range);
      }
    }
 else {
      if (isOutOfRange(getValue())) {
        msg.append("String_Node_Str" + range);
        msg.append("String_Node_Str");
      }
      if (isOutOfRange(getPersent())) {
        msg.append("String_Node_Str" + range);
      }
    }
  }
  return msg.length() == 0 ? null : msg.toString();
}
Program: 140154
Project: 140154
Buggy source:
private boolean checkRange(String inString){
  Double[] definedRange=getDefinedRange(inString);
  if (definedRange != null) {
    Double min=definedRange[0];
    Double max=definedRange[1];
    Double dValue=inString != null ? StringFormatUtil.parseDouble(inString) : Double.NaN;
    if (min == null || Double.isNaN(min)) {
      min=Double.NEGATIVE_INFINITY;
    }
    if (max == null || Double.isNaN(max)) {
      max=Double.POSITIVE_INFINITY;
    }
    if (dValue < min || dValue > max) {
      return true;
    }
  }
  return false;
}

Fixed version (ground truth):
private boolean checkRange(String inString){
  Double[] definedRange=getDefinedRange(inString);
  if (definedRange != null) {
    Double min=definedRange[0];
    Double max=definedRange[1];
    Double dValue=inString != null ? StringFormatUtil.parseDouble(inString) : Double.NaN;
    if (min == null || Double.isNaN(min)) {
      min=Double.NEGATIVE_INFINITY;
    }
    if (max == null || Double.isNaN(max)) {
      max=Double.POSITIVE_INFINITY;
    }
    if (dValue < min || dValue > max) {
      if (inString.indexOf('%') > 0) {
        range="String_Node_Str" + StringFormatUtil.formatPersent(min / 100) + "String_Node_Str"+ StringFormatUtil.formatPersent(max / 100)+ "String_Node_Str";
      }
 else {
        range="String_Node_Str" + min + "String_Node_Str"+ max+ "String_Node_Str";
      }
      return true;
    }
  }
  return false;
}
Program: 140155
Project: 140155
Buggy source:
@Override public String getRangeAsString(){
  StringBuilder msg=new StringBuilder();
  if (isOutOfRange(getNumMatch()) || isOutOfRange(getNumNoMatch())) {
    Double[] dRange=getDefinedRange(getNumMatch());
    String range="String_Node_Str" + dRange[0] + "String_Node_Str"+ dRange[1]+ "String_Node_Str";
    msg.append("String_Node_Str" + range);
    msg.append("String_Node_Str");
  }
  if (isOutOfRange(getPerMatch()) || isOutOfRange(getPerNoMatch())) {
    Double[] dRange=getDefinedRange(getPerMatch());
    String range="String_Node_Str" + StringFormatUtil.formatPersent(dRange[0] / 100) + "String_Node_Str"+ StringFormatUtil.formatPersent(dRange[1] / 100)+ "String_Node_Str";
    msg.append("String_Node_Str" + range);
  }
  return msg.length() == 0 ? null : msg.toString();
}

Fixed version (ground truth):
@Override public String getRangeAsString(){
  StringBuilder msg=new StringBuilder();
  if (isOutOfRange(getNumMatch()) || isOutOfRange(getNumNoMatch())) {
    msg.append("String_Node_Str" + range);
    msg.append("String_Node_Str");
  }
  if (isOutOfRange(getPerMatch()) || isOutOfRange(getPerNoMatch())) {
    msg.append("String_Node_Str" + range);
  }
  return msg.length() == 0 ? null : msg.toString();
}
Program: 140156
Project: 140156
Buggy source:
public GenericSQLHandler replaceLimitOffset(String colName,String table,String limitRow,String offset,String limitRowPlusOffset){
  this.replaceColumnTable(colName,table);
  sqlString=this.sqlString.replaceAll(LIMIT_ROW,limitRow).replaceAll(LIMIT_OFFSET,offset).replaceAll(LIMIT_ROW_PLUS_OFFSET,limitRowPlusOffset);
  return this;
}

Fixed version (ground truth):
public GenericSQLHandler replaceLimitOffset(String colName,String table,String limitRow,String offset,String limitRowPlusOffset){
  this.replaceColumnTable(colName,table);
  sqlString=this.sqlString.replace(LIMIT_ROW,limitRow).replace(LIMIT_OFFSET,offset).replace(LIMIT_ROW_PLUS_OFFSET,limitRowPlusOffset);
  return this;
}
Program: 140157
Project: 140157
Buggy source:
public GenericSQLHandler replacePattern(String regexp){
  sqlString=sqlString.replaceAll(PATTERN_EXPRESSION,regexp);
  return this;
}

Fixed version (ground truth):
public GenericSQLHandler replacePattern(String regexp){
  sqlString=sqlString.replace(PATTERN_EXPRESSION,regexp);
  return this;
}
Program: 140158
Project: 140158
Buggy source:
public GenericSQLHandler replaceTable(String table){
  sqlString=sqlString.replaceAll(TABLE_NAME,table);
  return this;
}

Fixed version (ground truth):
public GenericSQLHandler replaceTable(String table){
  sqlString=sqlString.replace(TABLE_NAME,table);
  return this;
}
Program: 140159
Project: 140159
Buggy source:
public GenericSQLHandler replaceAndClause(String whereClause){
  sqlString=sqlString.replaceAll(AND_WHERE_CLAUSE,whereClause);
  return this;
}

Fixed version (ground truth):
public GenericSQLHandler replaceAndClause(String whereClause){
  sqlString=sqlString.replace(AND_WHERE_CLAUSE,whereClause);
  return this;
}
Program: 140160
Project: 140160
Buggy source:
public GenericSQLHandler replaceWithJoin(String tableNameA,String tableNameB,String joinClause,String whereClause){
  sqlString=sqlString.replaceAll(TABLE_NAME,tableNameA).replaceAll(TABLE_NAME2,tableNameB).replaceAll(JOIN_CLAUSE,joinClause).replaceAll(WHERE_CLAUSE,whereClause);
  return this;
}

Fixed version (ground truth):
public GenericSQLHandler replaceWithJoin(String tableNameA,String tableNameB,String joinClause,String whereClause){
  sqlString=sqlString.replace(TABLE_NAME,tableNameA).replace(TABLE_NAME2,tableNameB).replace(JOIN_CLAUSE,joinClause).replace(WHERE_CLAUSE,whereClause);
  return this;
}
Program: 140161
Project: 140161
Buggy source:
public GenericSQLHandler replaceGroupByAlias(String groupByAliases){
  sqlString=sqlString.replaceAll(GROUP_BY_ALIAS,groupByAliases);
  return this;
}

Fixed version (ground truth):
public GenericSQLHandler replaceGroupByAlias(String groupByAliases){
  sqlString=sqlString.replace(GROUP_BY_ALIAS,groupByAliases);
  return this;
}
Program: 140162
Project: 140162
Buggy source:
public GenericSQLHandler replaceWhere(String whereClause){
  sqlString=sqlString.replaceAll(WHERE_CLAUSE,whereClause);
  return this;
}

Fixed version (ground truth):
public GenericSQLHandler replaceWhere(String whereClause){
  sqlString=sqlString.replace(WHERE_CLAUSE,whereClause);
  return this;
}
Program: 140163
Project: 140163
Buggy source:
public GenericSQLHandler replaceColumn(String columns){
  sqlString=sqlString.replaceAll(COLUMN_NAMES,columns);
  return this;
}

Fixed version (ground truth):
public GenericSQLHandler replaceColumn(String columns){
  sqlString=sqlString.replace(COLUMN_NAMES,columns);
  return this;
}
Program: 140165
Project: 140165
Buggy source:
private void openAddDialog(){
  NewUDFFunctionDialog dialog=new NewUDFFunctionDialog(getShell());
  if (Window.OK == dialog.open()) {
    entityList.add(dialog.getFunctionEntity());
    listViewer.setInput(entityList);
  }
}

Fixed version (ground truth):
private void openAddDialog(){
  NewUDFFunctionDialog dialog=new NewUDFFunctionDialog(getShell(),entityList);
  if (Window.OK == dialog.open()) {
    entityList.add(dialog.getFunctionEntity());
    tableViewer.setInput(entityList);
  }
}
Program: 140166
Project: 140166
Buggy source:
@SuppressWarnings("String_Node_Str") @Override public boolean performOk(){
  super.performOk();
  for (  FunctionEntity entity : entityList) {
    final String language=entity.getLanguage();
    final String function=entity.getFunction();
    ResourcesPlugin.getPlugin().getPluginPreferences().setValue(language,function);
    DefinitionHandler.getInstance().updateRegex(language,function);
  }
  DefinitionHandler.getInstance().saveResource();
  return true;
}

Fixed version (ground truth):
@Override public boolean performOk(){
  super.performOk();
  for (  FunctionEntity entity : entityList) {
    ResourcesPlugin.getPlugin().getPluginPreferences().setValue(entity.getLanguage(),entity.getFunction());
    DefinitionHandler.getInstance().updateRegex(entity.getLanguage(),entity.getFunction());
  }
  DefinitionHandler.getInstance().saveResource();
  return true;
}
Program: 140167
Project: 140167
Buggy source:
private void openEditDialog(){
  StructuredSelection selection=(StructuredSelection)listViewer.getSelection();
  if (selection == null) {
    return;
  }
  FunctionEntity entity=(FunctionEntity)selection.getFirstElement();
  NewUDFFunctionDialog dialog=new NewUDFFunctionDialog(getShell(),entity);
  dialog.open();
  listViewer.refresh();
}

Fixed version (ground truth):
private void openEditDialog(){
  StructuredSelection selection=(StructuredSelection)tableViewer.getSelection();
  if (selection.isEmpty()) {
    return;
  }
  FunctionEntity entity=(FunctionEntity)selection.getFirstElement();
  NewUDFFunctionDialog dialog=new NewUDFFunctionDialog(getShell(),entity,entityList);
  dialog.open();
  tableViewer.refresh();
}
Program: 140168
Project: 140168
Buggy source:
private void doRemove(){
  StructuredSelection selection=(StructuredSelection)listViewer.getSelection();
  if (selection.isEmpty()) {
    return;
  }
  FunctionEntity entity=(FunctionEntity)selection.getFirstElement();
  entityList.remove(entity);
  listViewer.setInput(entityList);
  ResourcesPlugin.getPlugin().getPluginPreferences().setValue(entity.getLanguage(),"String_Node_Str");
}

Fixed version (ground truth):
private void doRemove(){
  StructuredSelection selection=(StructuredSelection)tableViewer.getSelection();
  if (selection.isEmpty()) {
    return;
  }
  FunctionEntity entity=(FunctionEntity)selection.getFirstElement();
  entityList.remove(entity);
  tableViewer.refresh();
  ResourcesPlugin.getPlugin().getPluginPreferences().setValue(entity.getLanguage(),"String_Node_Str");
}
Program: 140169
Project: 140169
Buggy source:
@Override protected Control createContents(Composite parent){
  Composite mainComposite=new Composite(parent,SWT.NONE);
  mainComposite.setLayout(new GridLayout());
  mainComposite.setLayoutData(new GridData(GridData.FILL_BOTH));
  Label header=new Label(mainComposite,SWT.WRAP);
  header.setText(DefaultMessagesImpl.getString("String_Node_Str"));
  GridData gd=new GridData(GridData.HORIZONTAL_ALIGN_FILL);
  gd.widthHint=500;
  header.setLayoutData(gd);
  Composite composite=new Composite(mainComposite,SWT.NONE);
  composite.setLayout(new GridLayout(2,false));
  composite.setLayoutData(new GridData(GridData.FILL_BOTH));
  listViewer=new ListViewer(composite,SWT.BORDER);
  GridDataFactory.fillDefaults().grab(true,true).applyTo(listViewer.getList());
  listViewer.setLabelProvider(new MyLabelProvider());
  listViewer.setContentProvider(new MyContentProvider());
  listViewer.setInput(entityList);
  Composite btnBox=new Composite(composite,SWT.NONE);
  btnBox.setLayout(new GridLayout());
  GridDataFactory.fillDefaults().align(SWT.BEGINNING,SWT.BEGINNING).applyTo(btnBox);
  addBTN=createPushButton(btnBox,"String_Node_Str");
  editBTN=createPushButton(btnBox,"String_Node_Str");
  removeBTN=createPushButton(btnBox,"String_Node_Str");
  return mainComposite;
}

Fixed version (ground truth):
@Override protected Control createContents(Composite parent){
  Composite mainComposite=new Composite(parent,SWT.NONE);
  mainComposite.setLayout(new GridLayout());
  mainComposite.setLayoutData(new GridData(GridData.FILL_BOTH));
  Label header=new Label(mainComposite,SWT.WRAP);
  header.setText(DefaultMessagesImpl.getString("String_Node_Str"));
  GridData gd=new GridData(GridData.HORIZONTAL_ALIGN_FILL);
  gd.widthHint=500;
  header.setLayoutData(gd);
  Composite composite=new Composite(mainComposite,SWT.NONE);
  composite.setLayout(new GridLayout(2,false));
  composite.setLayoutData(new GridData(GridData.FILL_BOTH));
  tableViewer=new TableViewer(composite,SWT.BORDER | SWT.FULL_SELECTION);
  Table table=tableViewer.getTable();
  table.setHeaderVisible(true);
  table.setLinesVisible(true);
  GridDataFactory.fillDefaults().grab(true,true).applyTo(table);
  TableColumn column1=new TableColumn(table,SWT.NONE);
  column1.setText("String_Node_Str");
  column1.setWidth(450);
  TableColumn column2=new TableColumn(table,SWT.NONE);
  column2.setText("String_Node_Str");
  column2.setWidth(150);
  tableViewer.setLabelProvider(new MyLabelProvider());
  tableViewer.setContentProvider(new MyContentProvider());
  tableViewer.setInput(entityList);
  Composite btnBox=new Composite(composite,SWT.NONE);
  btnBox.setLayout(new GridLayout());
  GridDataFactory.fillDefaults().align(SWT.BEGINNING,SWT.BEGINNING).applyTo(btnBox);
  addBTN=createPushButton(btnBox,"String_Node_Str");
  editBTN=createPushButton(btnBox,"String_Node_Str");
  removeBTN=createPushButton(btnBox,"String_Node_Str");
  return mainComposite;
}
Program: 140170
Project: 140170
Buggy source:
public void modifyText(ModifyEvent e){
  entity.setFunction(functionName.getText());
}

Fixed version (ground truth):
public void modifyText(ModifyEvent e){
  setErrorMessage(null);
  entity.setFunction(functionName.getText());
  setCanFinished(true);
}
Program: 140171
Project: 140171
Buggy source:
@Override public void widgetSelected(SelectionEvent e){
  entity.setLanguage(((Combo)e.getSource()).getText());
}

Fixed version (ground truth):
@Override public void widgetSelected(SelectionEvent e){
  entity.setLanguage(languageType.getText());
  setCanFinished(true);
}
Program: 140172
Project: 140172
Buggy source:
public NewUDFFunctionDialog(Shell parentShell,FunctionEntity entity){
  super(parentShell);
  this.entity=entity;
}

Fixed version (ground truth):
public NewUDFFunctionDialog(Shell parentShell,FunctionEntity entity,List<FunctionEntity> entityList){
  super(parentShell);
  this.entity=entity != null ? entity : new FunctionEntity();
  String[] temp=new String[entityList.size()];
  for (int i=0; i < entityList.size(); i++) {
    temp[i]=entityList.get(i).getLanguage();
  }
  this.existedLanguage=temp;
}
Program: 140174
Project: 140174
Buggy source:
@Override public void doSave(IProgressMonitor monitor){
  super.doSave(monitor);
  if (!canSave()) {
    return;
  }
  try {
    saveAnalysis();
    this.isDirty=false;
  }
 catch (  DataprofilerCoreException e) {
    ExceptionHandler.process(e,Level.ERROR);
    e.printStackTrace();
  }
}

Fixed version (ground truth):
@Override public void doSave(IProgressMonitor monitor){
  super.doSave(monitor);
  if (!canSave()) {
    return;
  }
  try {
    saveAnalysis();
    this.isDirty=false;
    this.runBtn.setEnabled(this.canRun());
  }
 catch (  DataprofilerCoreException e) {
    ExceptionHandler.process(e,Level.ERROR);
    e.printStackTrace();
  }
}
Program: 140175
Project: 140175
Buggy source:
protected void firePropertyChange(final int propertyId){
  super.firePropertyChange(propertyId);
  isRefreshResultPage=true;
}

Fixed version (ground truth):
protected void firePropertyChange(final int propertyId){
  super.firePropertyChange(propertyId);
  if (propertyId == IEditorPart.PROP_DIRTY) {
    if (isDirty() && this.getMasterPage() != null) {
      Button runButton=((AbstractAnalysisMetadataPage)this.getMasterPage()).getRunButton();
      if (runButton != null) {
        runButton.setEnabled(false);
      }
    }
  }
  isRefreshResultPage=true;
}
Program: 140176
Project: 140176
Buggy source:
@Override protected void createFormContent(IManagedForm managedForm){
  this.form=managedForm.getForm();
  Composite body=form.getBody();
  body.setLayout(new GridLayout());
  SashForm sForm=new SashForm(body,SWT.NULL);
  sForm.setLayoutData(new GridData(GridData.FILL_BOTH));
  topComp=toolkit.createComposite(sForm);
  topComp.setLayoutData(new GridData(GridData.FILL_BOTH));
  topComp.setLayout(new GridLayout());
  metadataSection=creatMetadataSection(form,topComp);
  form.setText(DefaultMessagesImpl.getString("String_Node_Str"));
  metadataSection.setText(DefaultMessagesImpl.getString("String_Node_Str"));
  metadataSection.setDescription(DefaultMessagesImpl.getString("String_Node_Str"));
  createAnalysisColumnsSection(form,topComp);
  createDataFilterSection(form,topComp);
  Composite previewComp=toolkit.createComposite(sForm);
  previewComp.setLayoutData(new GridData(GridData.FILL_BOTH));
  previewComp.setLayout(new GridLayout());
  createPreviewSection(form,previewComp);
  GridData gdBtn=new GridData();
  gdBtn.horizontalAlignment=SWT.CENTER;
  gdBtn.horizontalSpan=2;
  gdBtn.widthHint=120;
  runBtn=toolkit.createButton(form.getBody(),DefaultMessagesImpl.getString("String_Node_Str"),SWT.NONE);
  runBtn.setLayoutData(gdBtn);
  runBtn.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      new RunAnalysisAction(ColumnMasterDetailsPage.this).run();
    }
  }
);
}

Fixed version (ground truth):
@Override protected void createFormContent(IManagedForm managedForm){
  this.form=managedForm.getForm();
  Composite body=form.getBody();
  body.setLayout(new GridLayout());
  SashForm sForm=new SashForm(body,SWT.NULL);
  sForm.setLayoutData(new GridData(GridData.FILL_BOTH));
  topComp=toolkit.createComposite(sForm);
  topComp.setLayoutData(new GridData(GridData.FILL_BOTH));
  topComp.setLayout(new GridLayout());
  metadataSection=creatMetadataSection(form,topComp);
  form.setText(DefaultMessagesImpl.getString("String_Node_Str"));
  metadataSection.setText(DefaultMessagesImpl.getString("String_Node_Str"));
  metadataSection.setDescription(DefaultMessagesImpl.getString("String_Node_Str"));
  createAnalysisColumnsSection(form,topComp);
  createDataFilterSection(form,topComp);
  Composite previewComp=toolkit.createComposite(sForm);
  previewComp.setLayoutData(new GridData(GridData.FILL_BOTH));
  previewComp.setLayout(new GridLayout());
  createPreviewSection(form,previewComp);
  runButton=createRunButton(form);
}
Program: 140177
Project: 140177
Buggy source:
public void fireRuningItemChanged(boolean status){
  this.runBtn.setEnabled(status);
  if (status) {
    ((AnalysisEditor)getEditor()).setRefreshResultPage(true);
    refreshChart();
  }
}

Fixed version (ground truth):
public void fireRuningItemChanged(boolean status){
  this.runButton.setEnabled(status);
  if (status) {
    ((AnalysisEditor)getEditor()).setRefreshResultPage(true);
    refreshChart();
  }
}
Program: 140178
Project: 140178
Buggy source:
@Override protected void createFormContent(IManagedForm managedForm){
  super.createFormContent(managedForm);
  form=managedForm.getForm();
  form.setText(DefaultMessagesImpl.getString("String_Node_Str"));
  this.metadataSection.setText(DefaultMessagesImpl.getString("String_Node_Str"));
  this.metadataSection.setDescription(DefaultMessagesImpl.getString("String_Node_Str"));
  createAnalyzedColumnSetsSection(topComp);
}

Fixed version (ground truth):
@Override protected void createFormContent(IManagedForm managedForm){
  super.createFormContent(managedForm);
  form=managedForm.getForm();
  form.setText(DefaultMessagesImpl.getString("String_Node_Str"));
  this.metadataSection.setText(DefaultMessagesImpl.getString("String_Node_Str"));
  this.metadataSection.setDescription(DefaultMessagesImpl.getString("String_Node_Str"));
  createAnalyzedColumnSetsSection(topComp);
  createRunButton(form);
  this.setDirty(false);
}
Program: 140180
Project: 140180
Buggy source:
@Override protected void createFormContent(IManagedForm managedForm){
  super.createFormContent(managedForm);
  final ScrolledForm form=managedForm.getForm();
  form.setText(DefaultMessagesImpl.getString("String_Node_Str"));
  this.metadataSection.setText(DefaultMessagesImpl.getString("String_Node_Str"));
  this.metadataSection.setDescription(DefaultMessagesImpl.getString("String_Node_Str"));
  createAnalysisParamSection(form,topComp);
  createAnalysisSummarySection(form,topComp);
  createStatisticalSection(form,topComp);
  GridData gdBtn=new GridData();
  gdBtn.horizontalAlignment=SWT.CENTER;
  gdBtn.horizontalSpan=2;
  gdBtn.widthHint=120;
  Button runBtn=toolkit.createButton(form.getBody(),DefaultMessagesImpl.getString("String_Node_Str"),SWT.NONE);
  runBtn.setLayoutData(gdBtn);
  runBtn.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      new RunAnalysisAction(ConnectionMasterDetailsPage.this).run();
    }
  }
);
}

Fixed version (ground truth):
@Override protected void createFormContent(IManagedForm managedForm){
  super.createFormContent(managedForm);
  final ScrolledForm form=managedForm.getForm();
  form.setText(DefaultMessagesImpl.getString("String_Node_Str"));
  this.metadataSection.setText(DefaultMessagesImpl.getString("String_Node_Str"));
  this.metadataSection.setDescription(DefaultMessagesImpl.getString("String_Node_Str"));
  createAnalysisParamSection(form,topComp);
  createAnalysisSummarySection(form,topComp);
  createStatisticalSection(form,topComp);
  createRunButton(form);
}
Program: 140181
Project: 140181
Buggy source:
@Override public String replaceNullsWithString(String colName,String replacement){
  return "String_Node_Str" + colName + "String_Node_Str"+ replacement+ "String_Node_Str";
}

Fixed version (ground truth):
@Override public String replaceNullsWithString(String colName,String replacement){
  if ("String_Node_Str".equals(replacement)) {
    return colName;
  }
  return "String_Node_Str" + colName + "String_Node_Str"+ replacement+ "String_Node_Str";
}
Program: 140182
Project: 140182
Buggy source:
/** 
 * DOC rli Comment method "ceatePatternDefinitionComp".
 * @param form
 * @param section
 */
private Composite createPatternDefinitionComp(){
  Composite newComp=toolkit.createComposite(patternDefinitionSection);
  newComp.setLayout(new GridLayout());
  Label label=new Label(newComp,SWT.WRAP);
  label.setText("String_Node_Str" + "String_Node_Str" + "String_Node_Str");
  componentsComp=new Composite(newComp,SWT.NONE);
  componentsComp.setLayout(new GridLayout());
  GridDataFactory.fillDefaults().align(SWT.FILL,SWT.FILL).grab(true,false).applyTo(componentsComp);
  EList<PatternComponent> components=this.pattern.getComponents();
  for (int i=0; i < components.size(); i++) {
    RegularExpressionImpl regularExpress=(RegularExpressionImpl)components.get(i);
    creatNewExpressLine(regularExpress);
  }
  createAddButton(newComp);
  patternDefinitionSection.setClient(newComp);
  return newComp;
}

Fixed version (ground truth):
/** 
 * DOC rli Comment method "ceatePatternDefinitionComp".
 * @param form
 * @param section
 */
private Composite createPatternDefinitionComp(){
  Composite newComp=toolkit.createComposite(patternDefinitionSection);
  newComp.setLayout(new GridLayout());
  componentsComp=new Composite(newComp,SWT.NONE);
  componentsComp.setLayout(new GridLayout());
  GridDataFactory.fillDefaults().align(SWT.FILL,SWT.FILL).grab(true,false).applyTo(componentsComp);
  EList<PatternComponent> components=this.pattern.getComponents();
  for (int i=0; i < components.size(); i++) {
    RegularExpressionImpl regularExpress=(RegularExpressionImpl)components.get(i);
    creatNewExpressLine(regularExpress);
  }
  createAddButton(newComp);
  patternDefinitionSection.setClient(newComp);
  return newComp;
}
Program: 140184
Project: 140184
Buggy source:
private void creatPatternDefinitionSection(Composite topCmp){
  patternDefinitionSection=createSection(form,topCmp,"String_Node_Str",false,null);
  patternDefinitionSectionComp=createPatternDefinitionComp();
}

Fixed version (ground truth):
private void creatPatternDefinitionSection(Composite topCmp){
  patternDefinitionSection=createSection(form,topCmp,"String_Node_Str",false,null);
  Label label=new Label(patternDefinitionSection,SWT.WRAP);
  label.setText("String_Node_Str" + "String_Node_Str" + "String_Node_Str");
  patternDefinitionSection.setDescriptionControl(label);
  patternDefinitionSectionComp=createPatternDefinitionComp();
}
Program: 140186
Project: 140186
Buggy source:
/** 
 * TODO zqin use this method in a menu ". View invalid rows" Method "getInvalidRowsStatement".
 * @return the query to get the invalid rows (or null when all rows are valid)
 */
private String getInvalidRowsStatement(){
  double value=Double.valueOf(entity.getValue());
  String whereClause=null;
  TdColumn column=(TdColumn)indicator.getAnalyzedElement();
  IndicatorParameters parameters=indicator.getParameters();
  if (parameters != null) {
    String where1=null;
    Domain domain=parameters.getIndicatorValidDomain();
    if (domain != null) {
      where1=getWhereInvalidClause(value,domain);
    }
    String where2=null;
    domain=parameters.getDataValidDomain();
    if (domain != null) {
      where2=getWhereInvalidClause(value,domain);
    }
    if (where1 != null) {
      whereClause=where1;
      if (where2 != null) {
        whereClause+=dbmsLanguage.or() + where2;
      }
    }
 else     if (where2 != null) {
      whereClause=where2;
    }
  }
  return whereClause != null ? "String_Node_Str" + getFullyQualifiedTableName(column) + dbmsLanguage.where()+ inBrackets(whereClause)+ dbmsLanguage.and()+ inBrackets(getDataFilterClause()) : null;
}

Fixed version (ground truth):
/** 
 * TODO zqin use this method in a menu ". View invalid rows" Method "getInvalidRowsStatement".
 * @return the query to get the invalid rows (or null when all rows are valid)
 */
private String getInvalidRowsStatement(){
  double value=Double.valueOf(entity.getValue());
  String whereClause=null;
  TdColumn column=(TdColumn)indicator.getAnalyzedElement();
  IndicatorParameters parameters=indicator.getParameters();
  if (parameters != null) {
    String where1=null;
    Domain domain=parameters.getIndicatorValidDomain();
    if (domain != null) {
      where1=getWhereInvalidClause(value,domain);
    }
    String where2=null;
    domain=parameters.getDataValidDomain();
    if (domain != null) {
      where2=getWhereInvalidClause(value,domain);
    }
    if (where1 != null) {
      whereClause=where1;
      if (where2 != null) {
        whereClause+=dbmsLanguage.or() + where2;
      }
    }
 else     if (where2 != null) {
      whereClause=where2;
    }
  }
  return whereClause != null ? "String_Node_Str" + getFullyQualifiedTableName(column) + dbmsLanguage.where()+ inBrackets(whereClause)+ andDataFilterClause() : null;
}
Program: 140187
Project: 140187
Buggy source:
protected String getFullyQualifiedTableName(Column column){
  final ColumnSet columnSetOwner=ColumnHelper.getColumnSetOwner(column);
  return dbmsLanguage.toQualifiedName(null,dbmsLanguage.quote(ColumnSetHelper.getParentCatalogOrSchema(columnSetOwner).getName()),dbmsLanguage.quote(columnSetOwner.getName()));
}

Fixed version (ground truth):
protected String getFullyQualifiedTableName(Column column){
  final ColumnSet columnSetOwner=ColumnHelper.getColumnSetOwner(column);
  return dbmsLanguage.toQualifiedName(null,ColumnSetHelper.getParentCatalogOrSchema(columnSetOwner).getName(),columnSetOwner.getName());
}