nus-yam/ex-repair huggingface dataset:
Program: 126673
Project: 126673
Buggy source:
public static FileFilter getAcceptModuleFilesFilter(){
  FileFilter filter=new FileFilter(){
    @Override public boolean accept(    File pathname){
      return pathname.toString().toLowerCase().endsWith("String_Node_Str") || pathname.toString().toLowerCase().endsWith("String_Node_Str") || pathname.toString().toLowerCase().endsWith("String_Node_Str")|| pathname.toString().toLowerCase().endsWith("String_Node_Str");
    }
  }
;
  return filter;
}

Fixed version (ground truth):
public static FileFilter getAcceptModuleFilesFilter(){
  FileFilter filter=new FileFilter(){
    @Override public boolean accept(    File pathname){
      return pathname.isFile();
    }
  }
;
  return filter;
}
Program: 126674
Project: 126674
Buggy source:
public static List<File> getJarFilesFromFolder(File file,String fileName) throws MalformedURLException {
  return getFilesFromFolderByName(file,fileName,new String[]{"String_Node_Str","String_Node_Str","String_Node_Str"},null,true);
}

Fixed version (ground truth):
public static List<File> getJarFilesFromFolder(File file,String fileName) throws MalformedURLException {
  return getFilesFromFolderByName(file,fileName,new String[]{ANY_FILE_EXT},null,true);
}
Program: 126675
Project: 126675
Buggy source:
public static List<File> getFilesFromFolderByName(File file,String searchFileName,String[] extensions,String excludedFolder,boolean nested){
  List<File> results=new ArrayList<File>();
  if (file.isFile()) {
    boolean consideredExt=false;
    boolean consideredName=false;
    if (extensions == null || extensions.length == 0) {
      consideredExt=true;
    }
 else {
      for (      String ext : extensions) {
        if (file.getName().endsWith(ext)) {
          consideredExt=true;
          break;
        }
      }
    }
    if (searchFileName == null) {
      consideredName=true;
    }
 else {
      if (searchFileName.equals(file.getName())) {
        consideredName=true;
      }
    }
    if (consideredExt && consideredName) {
      results.add(file);
    }
  }
 else   if (nested && file.isDirectory() && !isSVNFolder(file)) {
    if (excludedFolder != null && excludedFolder.equals(file.getName())) {
      return results;
    }
    File[] files=file.listFiles();
    for (    File file2 : files) {
      results.addAll(getFilesFromFolderByName(file2,searchFileName,extensions,excludedFolder,nested));
    }
  }
  return results;
}

Fixed version (ground truth):
public static List<File> getFilesFromFolderByName(File file,String searchFileName,String[] extensions,String excludedFolder,boolean nested){
  List<File> results=new ArrayList<File>();
  if (file.isFile()) {
    boolean consideredExt=false;
    boolean consideredName=false;
    if (extensions == null || extensions.length == 0) {
      consideredExt=true;
    }
 else {
      for (      String ext : extensions) {
        if (file.getName().endsWith(ext) || ext.endsWith("String_Node_Str")) {
          consideredExt=true;
          break;
        }
      }
    }
    if (searchFileName == null) {
      consideredName=true;
    }
 else {
      if (searchFileName.equals(file.getName())) {
        consideredName=true;
      }
    }
    if (consideredExt && consideredName) {
      results.add(file);
    }
  }
 else   if (nested && file.isDirectory() && !isSVNFolder(file)) {
    if (excludedFolder != null && excludedFolder.equals(file.getName())) {
      return results;
    }
    File[] files=file.listFiles();
    for (    File file2 : files) {
      results.addAll(getFilesFromFolderByName(file2,searchFileName,extensions,excludedFolder,nested));
    }
  }
  return results;
}
Program: 126676
Project: 126676
Buggy source:
public static FileFilter getAcceptJARFilesFilter(){
  FileFilter filter=new FileFilter(){
    @Override public boolean accept(    File pathname){
      return pathname.toString().toLowerCase().endsWith("String_Node_Str") || pathname.toString().toLowerCase().endsWith("String_Node_Str") || pathname.toString().toLowerCase().endsWith("String_Node_Str");
    }
  }
;
  return filter;
}

Fixed version (ground truth):
public static FileFilter getAcceptJARFilesFilter(){
  FileFilter filter=new FileFilter(){
    @Override public boolean accept(    File pathname){
      return pathname.isFile();
    }
  }
;
  return filter;
}
Program: 126677
Project: 126677
Buggy source:
/** 
 * Test method for  {@link org.talend.core.model.metadata.MappingTypeRetriever#isLengthIgnored(java.lang.String,java.lang.String)}.
 */
@Test public void testIsLengthIgnored(){
  String dbmsId="String_Node_Str";
  String dbType="String_Node_Str";
  if (isExtensionLengthIgnored(dbmsId,dbType)) {
    assertTrue(true);
  }
  Dbms dbms=MetadataTalendType.getDbms(dbmsId);
  List ignoreLP=dbms.getIgnoreLengthPrecision();
  String ignore=new String("String_Node_Str");
  for (int i=0; i < ignoreLP.size(); i++) {
    DbIgnoreLengthAndPrecision dbIgnore=(DbIgnoreLengthAndPrecision)ignoreLP.get(i);
    if (dbIgnore.getDbType().equalsIgnoreCase(dbType)) {
      ignore=dbIgnore.getIgnoreLength();
      if (ignore == null) {
        assertFalse(false);
      }
 else       if (ignore.equals("String_Node_Str")) {
        assertTrue(true);
      }
 else {
        assertFalse(false);
      }
    }
  }
  assertFalse(false);
}

Fixed version (ground truth):
/** 
 * Test method for  {@link org.talend.core.model.metadata.MappingTypeRetriever#isLengthIgnored(java.lang.String,java.lang.String)}.
 */
@Test public void testIsLengthIgnored(){
  String dbmsId="String_Node_Str";
  String dbType="String_Node_Str";
  MappingTypeRetriever mappingType=MetadataTalendType.getMappingTypeRetriever(dbmsId);
  assertTrue(mappingType.isLengthIgnored(dbmsId,dbType));
}
Program: 126678
Project: 126678
Buggy source:
/** 
 * Test method for  {@link org.talend.core.model.metadata.MappingTypeRetriever#isPrecisionIgnored(java.lang.String,java.lang.String)}.
 */
@Test public void testIsPrecisionIgnored(){
  String dbmsId="String_Node_Str";
  String dbType="String_Node_Str";
  if (isExtensionPrecisionIgnored(dbmsId,dbType)) {
    assertTrue(true);
  }
  Dbms dbms=MetadataTalendType.getDbms(dbmsId);
  List ignoreLP=dbms.getIgnoreLengthPrecision();
  String ignore=new String("String_Node_Str");
  for (int i=0; i < ignoreLP.size(); i++) {
    DbIgnoreLengthAndPrecision dbIgnore=(DbIgnoreLengthAndPrecision)ignoreLP.get(i);
    if (dbIgnore.getDbType().equalsIgnoreCase(dbType)) {
      ignore=dbIgnore.getIgnorePrecision();
      if (ignore == null) {
        assertFalse(false);
      }
 else       if (ignore.equals("String_Node_Str")) {
        assertTrue(true);
      }
 else {
        assertFalse(false);
      }
    }
  }
  assertFalse(false);
}

Fixed version (ground truth):
/** 
 * Test method for  {@link org.talend.core.model.metadata.MappingTypeRetriever#isPrecisionIgnored(java.lang.String,java.lang.String)}.
 */
@Test public void testIsPrecisionIgnored(){
  String dbmsId="String_Node_Str";
  String dbType="String_Node_Str";
  MappingTypeRetriever mappingType=MetadataTalendType.getMappingTypeRetriever(dbmsId);
  assertTrue(mappingType.isPrecisionIgnored(dbmsId,dbType));
}
Program: 126683
Project: 126683
Buggy source:
@Override protected void doRun(){
  if (repositoryNode == null) {
    repositoryNode=getCurrentRepositoryNode();
  }
  if (isToolbar()) {
    if (repositoryNode != null && repositoryNode.getContentType() != ERepositoryObjectType.METADATA_FILE_EXCEL) {
      repositoryNode=null;
    }
    if (repositoryNode == null) {
      repositoryNode=getRepositoryNodeForDefault(ERepositoryObjectType.METADATA_FILE_EXCEL);
    }
  }
  WizardDialog wizardDialog;
  if (isToolbar()) {
    init(repositoryNode);
    ExcelFileWizard excelFileWizard=new ExcelFileWizard(PlatformUI.getWorkbench(),creation,repositoryNode,getExistingNames());
    excelFileWizard.setToolbar(true);
    wizardDialog=new WizardDialog(Display.getCurrent().getActiveShell(),excelFileWizard);
  }
 else {
    wizardDialog=new WizardDialog(Display.getCurrent().getActiveShell(),new ExcelFileWizard(PlatformUI.getWorkbench(),creation,repositoryNode,getExistingNames()));
  }
  wizardDialog.setPageSize(WIZARD_WIDTH,WIZARD_HEIGHT);
  wizardDialog.create();
  wizardDialog.open();
}

Fixed version (ground truth):
@Override protected void doRun(){
  if (repositoryNode == null) {
    repositoryNode=getCurrentRepositoryNode();
  }
  if (isToolbar()) {
    if (repositoryNode != null && repositoryNode.getContentType() != ERepositoryObjectType.METADATA_FILE_EXCEL) {
      repositoryNode=null;
    }
    if (repositoryNode == null) {
      repositoryNode=getRepositoryNodeForDefault(ERepositoryObjectType.METADATA_FILE_EXCEL);
    }
  }
  WizardDialog wizardDialog;
  if (isToolbar()) {
    init(repositoryNode);
    ExcelFileWizard excelFileWizard=new ExcelFileWizard(PlatformUI.getWorkbench(),creation,repositoryNode,getExistingNames());
    excelFileWizard.setToolbar(true);
    wizardDialog=new WizardDialog(Display.getCurrent().getActiveShell(),excelFileWizard);
  }
 else {
    wizardDialog=new WizardDialog(Display.getCurrent().getActiveShell(),new ExcelFileWizard(PlatformUI.getWorkbench(),creation,repositoryNode,getExistingNames()));
  }
  wizardDialog.setPageSize(WIZARD_WIDTH + 140,WIZARD_HEIGHT);
  wizardDialog.create();
  wizardDialog.open();
}
Program: 126684
Project: 126684
Buggy source:
@Override protected void doRun(){
  if (repositoryNode == null) {
    RepositoryNode repositoryNode=getCurrentRepositoryNode();
  }
  if (isToolbar()) {
    if (repositoryNode != null && repositoryNode.getContentType() != ERepositoryObjectType.METADATA_FILE_REGEXP) {
      repositoryNode=null;
    }
    if (repositoryNode == null) {
      repositoryNode=getRepositoryNodeForDefault(ERepositoryObjectType.METADATA_FILE_REGEXP);
    }
  }
  WizardDialog wizardDialog;
  if (isToolbar()) {
    init(repositoryNode);
    RegexpFileWizard regexpfileWizard=new RegexpFileWizard(PlatformUI.getWorkbench(),creation,repositoryNode,getExistingNames());
    regexpfileWizard.setToolbar(true);
    wizardDialog=new WizardDialog(Display.getCurrent().getActiveShell(),regexpfileWizard);
  }
 else {
    wizardDialog=new WizardDialog(Display.getCurrent().getActiveShell(),new RegexpFileWizard(PlatformUI.getWorkbench(),creation,repositoryNode,getExistingNames()));
  }
  wizardDialog.setPageSize(WIZARD_WIDTH,WIZARD_HEIGHT);
  wizardDialog.create();
  wizardDialog.open();
}

Fixed version (ground truth):
@Override protected void doRun(){
  if (repositoryNode == null) {
    RepositoryNode repositoryNode=getCurrentRepositoryNode();
  }
  if (isToolbar()) {
    if (repositoryNode != null && repositoryNode.getContentType() != ERepositoryObjectType.METADATA_FILE_REGEXP) {
      repositoryNode=null;
    }
    if (repositoryNode == null) {
      repositoryNode=getRepositoryNodeForDefault(ERepositoryObjectType.METADATA_FILE_REGEXP);
    }
  }
  WizardDialog wizardDialog;
  if (isToolbar()) {
    init(repositoryNode);
    RegexpFileWizard regexpfileWizard=new RegexpFileWizard(PlatformUI.getWorkbench(),creation,repositoryNode,getExistingNames());
    regexpfileWizard.setToolbar(true);
    wizardDialog=new WizardDialog(Display.getCurrent().getActiveShell(),regexpfileWizard);
  }
 else {
    wizardDialog=new WizardDialog(Display.getCurrent().getActiveShell(),new RegexpFileWizard(PlatformUI.getWorkbench(),creation,repositoryNode,getExistingNames()));
  }
  wizardDialog.setPageSize(WIZARD_WIDTH,WIZARD_HEIGHT + 40);
  wizardDialog.create();
  wizardDialog.open();
}
Program: 126687
Project: 126687
Buggy source:
@Override protected void addFields(){
  Composite mainComposite=Form.startNewGridLayout(this,2);
  addGroupDelimitedFileSettings(mainComposite,400,105);
  addGroupRowsToSkip(mainComposite,300,105);
  addGroupEscapeChar(mainComposite,400,110);
  addGroupLimit(mainComposite,300,110);
  addGroupFileViewer(this,700,200);
  if (!isInWizard()) {
    Composite compositeBottomButton=Form.startNewGridLayout(this,2,false,SWT.CENTER,SWT.CENTER);
    cancelButton=new UtilsButton(compositeBottomButton,Messages.getString("String_Node_Str"),WIDTH_BUTTON_PIXEL,HEIGHT_BUTTON_PIXEL);
  }
}

Fixed version (ground truth):
@Override protected void addFields(){
  Composite mainComposite=Form.startNewGridLayout(this,2);
  addGroupDelimitedFileSettings(mainComposite,400,105);
  addGroupRowsToSkip(mainComposite,300,105);
  addGroupEscapeChar(mainComposite,400,110);
  addGroupLimit(mainComposite,300,110);
  addGroupFileViewer(this,700,170);
  GridLayout mainCompositeLayout=(GridLayout)mainComposite.getLayout();
  mainCompositeLayout.marginBottom=10;
  if (!isInWizard()) {
    Composite compositeBottomButton=Form.startNewGridLayout(this,2,false,SWT.CENTER,SWT.CENTER);
    cancelButton=new UtilsButton(compositeBottomButton,Messages.getString("String_Node_Str"),WIDTH_BUTTON_PIXEL,HEIGHT_BUTTON_PIXEL);
  }
}
Program: 126688
Project: 126688
Buggy source:
public void run(){
  handleErrorOutput(outputComposite,tabFolder,outputTabItem);
}

Fixed version (ground truth):
@Override public void run(){
  handleErrorOutput(outputComposite,tabFolder,outputTabItem);
}
Program: 126689
Project: 126689
Buggy source:
public void widgetDefaultSelected(SelectionEvent e){
}

Fixed version (ground truth):
@Override public void widgetDefaultSelected(SelectionEvent e){
}
Program: 126692
Project: 126692
Buggy source:
public void refresh(){
  refreshPreview();
}

Fixed version (ground truth):
@Override public void refresh(){
  refreshPreview();
}
Program: 126693
Project: 126693
Buggy source:
/** 
 * add Controls of Group Delimited File Settings.
 */
private void addFieldsListenersGroupDelimitedFileSettings(){
  encodingCombo.addModifyListener(new ModifyListener(){
    public void modifyText(    final ModifyEvent e){
      getConnection().setEncoding(encodingCombo.getText());
      checkFieldsValue();
    }
  }
);
  fieldSeparatorCombo.addModifyListener(new ModifyListener(){
    public void modifyText(    final ModifyEvent e){
      fieldSeparatorManager();
    }
  }
);
  rowSeparatorCombo.addModifyListener(new ModifyListener(){
    public void modifyText(    final ModifyEvent e){
      rowSeparatorManager();
    }
  }
);
  fieldSeparatorText.addModifyListener(new ModifyListener(){
    public void modifyText(    final ModifyEvent e){
      getConnection().setFieldSeparatorValue(fieldSeparatorText.getText());
      checkFieldsValue();
    }
  }
);
  fieldSeparatorText.addKeyListener(new KeyAdapter(){
    @Override public void keyPressed(    KeyEvent e){
    }
  }
);
  rowSeparatorText.addModifyListener(new ModifyListener(){
    public void modifyText(    final ModifyEvent e){
      getConnection().setRowSeparatorValue(rowSeparatorText.getText());
      checkFieldsValue();
    }
  }
);
  rowSeparatorText.addKeyListener(new KeyAdapter(){
    @Override public void keyPressed(    KeyEvent e){
    }
  }
);
}

Fixed version (ground truth):
/** 
 * add Controls of Group Delimited File Settings.
 */
private void addFieldsListenersGroupDelimitedFileSettings(){
  encodingCombo.addModifyListener(new ModifyListener(){
    @Override public void modifyText(    final ModifyEvent e){
      getConnection().setEncoding(encodingCombo.getText());
      checkFieldsValue();
    }
  }
);
  fieldSeparatorCombo.addModifyListener(new ModifyListener(){
    @Override public void modifyText(    final ModifyEvent e){
      fieldSeparatorManager();
    }
  }
);
  rowSeparatorCombo.addModifyListener(new ModifyListener(){
    @Override public void modifyText(    final ModifyEvent e){
      rowSeparatorManager();
    }
  }
);
  fieldSeparatorText.addModifyListener(new ModifyListener(){
    @Override public void modifyText(    final ModifyEvent e){
      getConnection().setFieldSeparatorValue(fieldSeparatorText.getText());
      checkFieldsValue();
    }
  }
);
  fieldSeparatorText.addKeyListener(new KeyAdapter(){
    @Override public void keyPressed(    KeyEvent e){
    }
  }
);
  rowSeparatorText.addModifyListener(new ModifyListener(){
    @Override public void modifyText(    final ModifyEvent e){
      getConnection().setRowSeparatorValue(rowSeparatorText.getText());
      checkFieldsValue();
    }
  }
);
  rowSeparatorText.addKeyListener(new KeyAdapter(){
    @Override public void keyPressed(    KeyEvent e){
    }
  }
);
}
Program: 126694
Project: 126694
Buggy source:
/** 
 * add field to Group Limit.
 * @param mainComposite
 * @param form
 * @param width
 * @param height
 */
private void addGroupLimit(final Composite mainComposite,final int width,final int height){
  Group group=Form.createGroup(mainComposite,2,Messages.getString("String_Node_Str"),height);
  Composite compositeLimit=Form.startNewDimensionnedGridLayout(group,3,width,height);
  Label info=new Label(compositeLimit,SWT.NONE);
  GridData gridData=new GridData();
  gridData.horizontalSpan=3;
  info.setLayoutData(gridData);
  info.setText(Messages.getString("String_Node_Str"));
  rowsToSkipLimitCheckboxCombo=new LabelledCheckboxCombo(compositeLimit,Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str"),STRING_NUMBERS_DATA,1,true,SWT.NONE);
}

Fixed version (ground truth):
/** 
 * add field to Group Limit.
 * @param mainComposite
 * @param form
 * @param width
 * @param height
 */
private void addGroupLimit(final Composite mainComposite,final int width,final int height){
  Group group=Form.createGroup(mainComposite,2,Messages.getString("String_Node_Str"),height);
  group.setLayout(new FillLayout());
  GridData groupLayoutData=(GridData)group.getLayoutData();
  groupLayoutData.heightHint=-1;
  groupLayoutData.minimumHeight=-1;
  groupLayoutData.minimumWidth=-1;
  groupLayoutData.widthHint=-1;
  groupLayoutData.grabExcessVerticalSpace=false;
  Composite compositeLimit=Form.startNewDimensionnedGridLayout(group,3,width,height);
  compositeLimit.setLayoutData(null);
  Label info=new Label(compositeLimit,SWT.NONE);
  GridData gridData=new GridData();
  gridData.horizontalSpan=3;
  info.setLayoutData(gridData);
  info.setText(Messages.getString("String_Node_Str"));
  rowsToSkipLimitCheckboxCombo=new LabelledCheckboxCombo(compositeLimit,Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str"),STRING_NUMBERS_DATA,1,true,SWT.NONE);
  group.pack();
}
Program: 126695
Project: 126695
Buggy source:
public void modifyText(final ModifyEvent e){
  getConnection().setRowSeparatorValue(rowSeparatorText.getText());
  checkFieldsValue();
}

Fixed version (ground truth):
@Override public void modifyText(final ModifyEvent e){
  getConnection().setRowSeparatorValue(rowSeparatorText.getText());
  checkFieldsValue();
}
Program: 126696
Project: 126696
Buggy source:
@Override public void updateUIInThreadIfThreadIsNotCanceled(){
  if (previewInformationLabel.isDisposed()) {
    return;
  }
  previewInformationLabel.setText(previewInformationLabelMsg);
  if (getException() != null) {
    previewInformationLabel.setText("String_Node_Str" + Messages.getString("String_Node_Str"));
    Display.getDefault().syncExec(new Runnable(){
      public void run(){
        handleErrorOutput(outputComposite,tabFolder,outputTabItem);
      }
    }
);
    return;
  }
  if (csvArray != null) {
    delimitedFilePreview.refreshTablePreview(csvArray,firstRowIsCatption);
  }
}

Fixed version (ground truth):
@Override public void updateUIInThreadIfThreadIsNotCanceled(){
  if (previewInformationLabel.isDisposed()) {
    return;
  }
  previewInformationLabel.setText(previewInformationLabelMsg);
  if (getException() != null) {
    previewInformationLabel.setText("String_Node_Str" + Messages.getString("String_Node_Str"));
    Display.getDefault().syncExec(new Runnable(){
      @Override public void run(){
        handleErrorOutput(outputComposite,tabFolder,outputTabItem);
      }
    }
);
    return;
  }
  if (csvArray != null) {
    delimitedFilePreview.refreshTablePreview(csvArray,firstRowIsCatption);
  }
}
Program: 126698
Project: 126698
Buggy source:
private void addGroupRowsToSkip(final Composite mainComposite,final int width,final int height){
  Group group=Form.createGroup(mainComposite,1,Messages.getString("String_Node_Str"),height);
  Composite compositeRowsToSkip=Form.startNewDimensionnedGridLayout(group,3,width - 100,height);
  Label info=new Label(compositeRowsToSkip,SWT.NONE);
  GridData gridData=new GridData();
  gridData.horizontalSpan=3;
  info.setLayoutData(gridData);
  info.setText(Messages.getString("String_Node_Str"));
  rowsToSkipHeaderCheckboxCombo=new LabelledCheckboxCombo(compositeRowsToSkip,Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str"),STRING_NUMBERS_DATA,1,true,SWT.NONE);
  rowsToSkipFooterCheckboxCombo=new LabelledCheckboxCombo(compositeRowsToSkip,Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str"),STRING_NUMBERS_DATA,1,true,SWT.NONE);
  emptyRowsToSkipCheckbox=new Button(compositeRowsToSkip,SWT.CHECK);
  emptyRowsToSkipCheckbox.setText(Messages.getString("String_Node_Str"));
  emptyRowsToSkipCheckbox.setAlignment(SWT.LEFT);
  gridData=new GridData(SWT.FILL,SWT.BOTTOM,true,false);
  gridData.horizontalSpan=3;
  emptyRowsToSkipCheckbox.setLayoutData(gridData);
}

Fixed version (ground truth):
private void addGroupRowsToSkip(final Composite mainComposite,final int width,final int height){
  Group group=Form.createGroup(mainComposite,1,Messages.getString("String_Node_Str"),height);
  group.setLayout(new FillLayout());
  GridData groupLayoutData=(GridData)group.getLayoutData();
  groupLayoutData.heightHint=-1;
  groupLayoutData.minimumHeight=-1;
  groupLayoutData.minimumWidth=-1;
  groupLayoutData.widthHint=-1;
  groupLayoutData.grabExcessVerticalSpace=false;
  Composite compositeRowsToSkip=Form.startNewDimensionnedGridLayout(group,3,width - 100,height);
  compositeRowsToSkip.setLayoutData(null);
  Label info=new Label(compositeRowsToSkip,SWT.NONE);
  GridData gridData=new GridData();
  gridData.horizontalSpan=3;
  info.setLayoutData(gridData);
  info.setText(Messages.getString("String_Node_Str"));
  rowsToSkipHeaderCheckboxCombo=new LabelledCheckboxCombo(compositeRowsToSkip,Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str"),STRING_NUMBERS_DATA,1,true,SWT.NONE);
  rowsToSkipFooterCheckboxCombo=new LabelledCheckboxCombo(compositeRowsToSkip,Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str"),STRING_NUMBERS_DATA,1,true,SWT.NONE);
  emptyRowsToSkipCheckbox=new Button(compositeRowsToSkip,SWT.CHECK);
  emptyRowsToSkipCheckbox.setText(Messages.getString("String_Node_Str"));
  emptyRowsToSkipCheckbox.setAlignment(SWT.LEFT);
  gridData=new GridData(SWT.FILL,SWT.BOTTOM,true,false);
  gridData.horizontalSpan=3;
  emptyRowsToSkipCheckbox.setLayoutData(gridData);
  group.pack();
}
Program: 126699
Project: 126699
Buggy source:
/** 
 * Test method for  {@link org.talend.core.model.metadata.MappingTypeRetriever#isLengthIgnored(java.lang.String,java.lang.String)}.
 */
@Test public void testIsLengthIgnored(){
  String dbmsId="String_Node_Str";
  String dbType="String_Node_Str";
  if (isExtensionLengthIgnored(dbmsId,dbType)) {
    assertTrue(true);
  }
  Dbms dbms=MetadataTalendType.getDbms(dbmsId);
  List ignoreLP=dbms.getIgnoreLengthPrecision();
  String ignore=new String("String_Node_Str");
  for (int i=0; i < ignoreLP.size(); i++) {
    DbIgnoreLengthAndPrecision dbIgnore=(DbIgnoreLengthAndPrecision)ignoreLP.get(i);
    if (dbIgnore.getDbType().equalsIgnoreCase(dbType)) {
      ignore=dbIgnore.getIgnoreLength();
      if (ignore == null) {
        assertFalse(false);
      }
 else       if (ignore.equals("String_Node_Str")) {
        assertTrue(true);
      }
 else {
        assertFalse(false);
      }
    }
  }
  assertFalse(false);
}

Fixed version (ground truth):
/** 
 * Test method for  {@link org.talend.core.model.metadata.MappingTypeRetriever#isLengthIgnored(java.lang.String,java.lang.String)}.
 */
@Test public void testIsLengthIgnored(){
  String dbmsId="String_Node_Str";
  String dbType="String_Node_Str";
  MappingTypeRetriever mappingType=MetadataTalendType.getMappingTypeRetriever(dbmsId);
  assertTrue(mappingType.isLengthIgnored(dbmsId,dbType));
}
Program: 126700
Project: 126700
Buggy source:
/** 
 * Test method for  {@link org.talend.core.model.metadata.MappingTypeRetriever#isPrecisionIgnored(java.lang.String,java.lang.String)}.
 */
@Test public void testIsPrecisionIgnored(){
  String dbmsId="String_Node_Str";
  String dbType="String_Node_Str";
  if (isExtensionPrecisionIgnored(dbmsId,dbType)) {
    assertTrue(true);
  }
  Dbms dbms=MetadataTalendType.getDbms(dbmsId);
  List ignoreLP=dbms.getIgnoreLengthPrecision();
  String ignore=new String("String_Node_Str");
  for (int i=0; i < ignoreLP.size(); i++) {
    DbIgnoreLengthAndPrecision dbIgnore=(DbIgnoreLengthAndPrecision)ignoreLP.get(i);
    if (dbIgnore.getDbType().equalsIgnoreCase(dbType)) {
      ignore=dbIgnore.getIgnorePrecision();
      if (ignore == null) {
        assertFalse(false);
      }
 else       if (ignore.equals("String_Node_Str")) {
        assertTrue(true);
      }
 else {
        assertFalse(false);
      }
    }
  }
  assertFalse(false);
}

Fixed version (ground truth):
/** 
 * Test method for  {@link org.talend.core.model.metadata.MappingTypeRetriever#isPrecisionIgnored(java.lang.String,java.lang.String)}.
 */
@Test public void testIsPrecisionIgnored(){
  String dbmsId="String_Node_Str";
  String dbType="String_Node_Str";
  MappingTypeRetriever mappingType=MetadataTalendType.getMappingTypeRetriever(dbmsId);
  assertTrue(mappingType.isPrecisionIgnored(dbmsId,dbType));
}
Program: 126704
Project: 126704
Buggy source:
public static FileFilter getAcceptModuleFilesFilter(){
  FileFilter filter=new FileFilter(){
    @Override public boolean accept(    File pathname){
      return pathname.toString().toLowerCase().endsWith("String_Node_Str") || pathname.toString().toLowerCase().endsWith("String_Node_Str") || pathname.toString().toLowerCase().endsWith("String_Node_Str")|| pathname.toString().toLowerCase().endsWith("String_Node_Str");
    }
  }
;
  return filter;
}

Fixed version (ground truth):
public static FileFilter getAcceptModuleFilesFilter(){
  FileFilter filter=new FileFilter(){
    @Override public boolean accept(    File pathname){
      return pathname.isFile();
    }
  }
;
  return filter;
}
Program: 126705
Project: 126705
Buggy source:
public static List<File> getJarFilesFromFolder(File file,String fileName) throws MalformedURLException {
  return getFilesFromFolderByName(file,fileName,new String[]{"String_Node_Str","String_Node_Str","String_Node_Str"},null,true);
}

Fixed version (ground truth):
public static List<File> getJarFilesFromFolder(File file,String fileName) throws MalformedURLException {
  return getFilesFromFolderByName(file,fileName,new String[]{ANY_FILE_EXT},null,true);
}
Program: 126706
Project: 126706
Buggy source:
public static List<File> getFilesFromFolderByName(File file,String searchFileName,String[] extensions,String excludedFolder,boolean nested){
  List<File> results=new ArrayList<File>();
  if (file.isFile()) {
    boolean consideredExt=false;
    boolean consideredName=false;
    if (extensions == null || extensions.length == 0) {
      consideredExt=true;
    }
 else {
      for (      String ext : extensions) {
        if (file.getName().endsWith(ext)) {
          consideredExt=true;
          break;
        }
      }
    }
    if (searchFileName == null) {
      consideredName=true;
    }
 else {
      if (searchFileName.equals(file.getName())) {
        consideredName=true;
      }
    }
    if (consideredExt && consideredName) {
      results.add(file);
    }
  }
 else   if (nested && file.isDirectory() && !isSVNFolder(file)) {
    if (excludedFolder != null && excludedFolder.equals(file.getName())) {
      return results;
    }
    File[] files=file.listFiles();
    for (    File file2 : files) {
      results.addAll(getFilesFromFolderByName(file2,searchFileName,extensions,excludedFolder,nested));
    }
  }
  return results;
}

Fixed version (ground truth):
public static List<File> getFilesFromFolderByName(File file,String searchFileName,String[] extensions,String excludedFolder,boolean nested){
  List<File> results=new ArrayList<File>();
  if (file.isFile()) {
    boolean consideredExt=false;
    boolean consideredName=false;
    if (extensions == null || extensions.length == 0) {
      consideredExt=true;
    }
 else {
      for (      String ext : extensions) {
        if (file.getName().endsWith(ext) || ext.endsWith("String_Node_Str")) {
          consideredExt=true;
          break;
        }
      }
    }
    if (searchFileName == null) {
      consideredName=true;
    }
 else {
      if (searchFileName.equals(file.getName())) {
        consideredName=true;
      }
    }
    if (consideredExt && consideredName) {
      results.add(file);
    }
  }
 else   if (nested && file.isDirectory() && !isSVNFolder(file)) {
    if (excludedFolder != null && excludedFolder.equals(file.getName())) {
      return results;
    }
    File[] files=file.listFiles();
    for (    File file2 : files) {
      results.addAll(getFilesFromFolderByName(file2,searchFileName,extensions,excludedFolder,nested));
    }
  }
  return results;
}
Program: 126707
Project: 126707
Buggy source:
public static FileFilter getAcceptJARFilesFilter(){
  FileFilter filter=new FileFilter(){
    @Override public boolean accept(    File pathname){
      return pathname.toString().toLowerCase().endsWith("String_Node_Str") || pathname.toString().toLowerCase().endsWith("String_Node_Str") || pathname.toString().toLowerCase().endsWith("String_Node_Str");
    }
  }
;
  return filter;
}

Fixed version (ground truth):
public static FileFilter getAcceptJARFilesFilter(){
  FileFilter filter=new FileFilter(){
    @Override public boolean accept(    File pathname){
      return pathname.isFile();
    }
  }
;
  return filter;
}
Program: 126711
Project: 126711
Buggy source:
@Override public boolean canModify(Object element,String property){
  if (element instanceof IMetadataColumn) {
    IMetadataColumn column=(IMetadataColumn)element;
    if (column.isReadOnly() || (column.isCustom() && property.equals(AbstractMetadataTableEditorView.ID_COLUMN_NAME))) {
      return false;
    }
  }
  return super.canModify(element,property);
}

Fixed version (ground truth):
@Override public boolean canModify(Object element,String property){
  if (element instanceof IMetadataColumn) {
    IMetadataColumn column=(IMetadataColumn)element;
    if (column.isReadOnly()) {
      return false;
    }
    if (column.isCustom()) {
      if (property.equals(AbstractMetadataTableEditorView.ID_COLUMN_NAME)) {
        return false;
      }
 else {
        return true;
      }
    }
  }
  return super.canModify(element,property);
}
Program: 126712
Project: 126712
Buggy source:
@Override public Color getBackground(Object element,int columnIndex){
  if (!(element instanceof IMetadataColumn)) {
    return null;
  }
  IMetadataColumn column=(IMetadataColumn)element;
  TableViewerCreatorColumnNotModifiable tableColumn=(TableViewerCreatorColumnNotModifiable)tableViewerCreator.getColumns().get(columnIndex);
  if (column.isCustom()) {
    if (column.isReadOnly() || readOnly || tableColumn.getId().equals(AbstractMetadataTableEditorView.ID_COLUMN_NAME)) {
      return CELL_READ_ONLY_COLOR;
    }
 else {
      return CUSTOM_CELL_BG_COLOR;
    }
  }
  if (column.isReadOnly()) {
    return TABLE_READ_ONLY_COLOR;
  }
  if (tableEditorView.isShowTalendTypeColumn() && tableEditorView.getCurrentDbms() != null) {
    if (tableColumn.getId().equals(AbstractMetadataTableEditorView.ID_COLUMN_DBTYPE) && !"String_Node_Str".equals(column.getType()) && !TypesManager.checkDBType(tableEditorView.getCurrentDbms(),column.getTalendType(),column.getType())) {
      return CELL_WRONG_DB_TYPE_COLOR;
    }
  }
  return super.getBackground(element,columnIndex);
}

Fixed version (ground truth):
@Override public Color getBackground(Object element,int columnIndex){
  if (!(element instanceof IMetadataColumn)) {
    return null;
  }
  IMetadataColumn column=(IMetadataColumn)element;
  TableViewerCreatorColumnNotModifiable tableColumn=(TableViewerCreatorColumnNotModifiable)tableViewerCreator.getColumns().get(columnIndex);
  if (column.isCustom()) {
    if (column.isReadOnly() || tableColumn.getId().equals(AbstractMetadataTableEditorView.ID_COLUMN_NAME)) {
      return CELL_READ_ONLY_COLOR;
    }
 else {
      return CUSTOM_CELL_BG_COLOR;
    }
  }
  if (column.isReadOnly()) {
    return TABLE_READ_ONLY_COLOR;
  }
  if (tableEditorView.isShowTalendTypeColumn() && tableEditorView.getCurrentDbms() != null) {
    if (tableColumn.getId().equals(AbstractMetadataTableEditorView.ID_COLUMN_DBTYPE) && !"String_Node_Str".equals(column.getType()) && !TypesManager.checkDBType(tableEditorView.getCurrentDbms(),column.getTalendType(),column.getType())) {
      return CELL_WRONG_DB_TYPE_COLOR;
    }
  }
  return super.getBackground(element,columnIndex);
}
Program: 126714
Project: 126714
Buggy source:
@Override protected void doRun(){
  if (repositoryNode == null) {
    repositoryNode=getCurrentRepositoryNode();
  }
  if (isToolbar()) {
    if (repositoryNode != null && repositoryNode.getContentType() != ERepositoryObjectType.METADATA_FILE_EXCEL) {
      repositoryNode=null;
    }
    if (repositoryNode == null) {
      repositoryNode=getRepositoryNodeForDefault(ERepositoryObjectType.METADATA_FILE_EXCEL);
    }
  }
  WizardDialog wizardDialog;
  if (isToolbar()) {
    init(repositoryNode);
    ExcelFileWizard excelFileWizard=new ExcelFileWizard(PlatformUI.getWorkbench(),creation,repositoryNode,getExistingNames());
    excelFileWizard.setToolbar(true);
    wizardDialog=new WizardDialog(Display.getCurrent().getActiveShell(),excelFileWizard);
  }
 else {
    wizardDialog=new WizardDialog(Display.getCurrent().getActiveShell(),new ExcelFileWizard(PlatformUI.getWorkbench(),creation,repositoryNode,getExistingNames()));
  }
  wizardDialog.setPageSize(WIZARD_WIDTH,WIZARD_HEIGHT);
  wizardDialog.create();
  wizardDialog.open();
}

Fixed version (ground truth):
@Override protected void doRun(){
  if (repositoryNode == null) {
    repositoryNode=getCurrentRepositoryNode();
  }
  if (isToolbar()) {
    if (repositoryNode != null && repositoryNode.getContentType() != ERepositoryObjectType.METADATA_FILE_EXCEL) {
      repositoryNode=null;
    }
    if (repositoryNode == null) {
      repositoryNode=getRepositoryNodeForDefault(ERepositoryObjectType.METADATA_FILE_EXCEL);
    }
  }
  WizardDialog wizardDialog;
  if (isToolbar()) {
    init(repositoryNode);
    ExcelFileWizard excelFileWizard=new ExcelFileWizard(PlatformUI.getWorkbench(),creation,repositoryNode,getExistingNames());
    excelFileWizard.setToolbar(true);
    wizardDialog=new WizardDialog(Display.getCurrent().getActiveShell(),excelFileWizard);
  }
 else {
    wizardDialog=new WizardDialog(Display.getCurrent().getActiveShell(),new ExcelFileWizard(PlatformUI.getWorkbench(),creation,repositoryNode,getExistingNames()));
  }
  wizardDialog.setPageSize(WIZARD_WIDTH + 140,WIZARD_HEIGHT);
  wizardDialog.create();
  wizardDialog.open();
}
Program: 126715
Project: 126715
Buggy source:
@Override protected void doRun(){
  if (repositoryNode == null) {
    RepositoryNode repositoryNode=getCurrentRepositoryNode();
  }
  if (isToolbar()) {
    if (repositoryNode != null && repositoryNode.getContentType() != ERepositoryObjectType.METADATA_FILE_REGEXP) {
      repositoryNode=null;
    }
    if (repositoryNode == null) {
      repositoryNode=getRepositoryNodeForDefault(ERepositoryObjectType.METADATA_FILE_REGEXP);
    }
  }
  WizardDialog wizardDialog;
  if (isToolbar()) {
    init(repositoryNode);
    RegexpFileWizard regexpfileWizard=new RegexpFileWizard(PlatformUI.getWorkbench(),creation,repositoryNode,getExistingNames());
    regexpfileWizard.setToolbar(true);
    wizardDialog=new WizardDialog(Display.getCurrent().getActiveShell(),regexpfileWizard);
  }
 else {
    wizardDialog=new WizardDialog(Display.getCurrent().getActiveShell(),new RegexpFileWizard(PlatformUI.getWorkbench(),creation,repositoryNode,getExistingNames()));
  }
  wizardDialog.setPageSize(WIZARD_WIDTH,WIZARD_HEIGHT);
  wizardDialog.create();
  wizardDialog.open();
}

Fixed version (ground truth):
@Override protected void doRun(){
  if (repositoryNode == null) {
    RepositoryNode repositoryNode=getCurrentRepositoryNode();
  }
  if (isToolbar()) {
    if (repositoryNode != null && repositoryNode.getContentType() != ERepositoryObjectType.METADATA_FILE_REGEXP) {
      repositoryNode=null;
    }
    if (repositoryNode == null) {
      repositoryNode=getRepositoryNodeForDefault(ERepositoryObjectType.METADATA_FILE_REGEXP);
    }
  }
  WizardDialog wizardDialog;
  if (isToolbar()) {
    init(repositoryNode);
    RegexpFileWizard regexpfileWizard=new RegexpFileWizard(PlatformUI.getWorkbench(),creation,repositoryNode,getExistingNames());
    regexpfileWizard.setToolbar(true);
    wizardDialog=new WizardDialog(Display.getCurrent().getActiveShell(),regexpfileWizard);
  }
 else {
    wizardDialog=new WizardDialog(Display.getCurrent().getActiveShell(),new RegexpFileWizard(PlatformUI.getWorkbench(),creation,repositoryNode,getExistingNames()));
  }
  wizardDialog.setPageSize(WIZARD_WIDTH,WIZARD_HEIGHT + 40);
  wizardDialog.create();
  wizardDialog.open();
}
Program: 126717
Project: 126717
Buggy source:
@Override protected void addFields(){
  Composite mainComposite=Form.startNewGridLayout(this,2);
  addGroupDelimitedFileSettings(mainComposite,400,105);
  addGroupRowsToSkip(mainComposite,300,105);
  addGroupEscapeChar(mainComposite,400,110);
  addGroupLimit(mainComposite,300,110);
  addGroupFileViewer(this,700,200);
  if (!isInWizard()) {
    Composite compositeBottomButton=Form.startNewGridLayout(this,2,false,SWT.CENTER,SWT.CENTER);
    cancelButton=new UtilsButton(compositeBottomButton,Messages.getString("String_Node_Str"),WIDTH_BUTTON_PIXEL,HEIGHT_BUTTON_PIXEL);
  }
}

Fixed version (ground truth):
@Override protected void addFields(){
  Composite mainComposite=Form.startNewGridLayout(this,2);
  addGroupDelimitedFileSettings(mainComposite,400,105);
  addGroupRowsToSkip(mainComposite,300,105);
  addGroupEscapeChar(mainComposite,400,110);
  addGroupLimit(mainComposite,300,110);
  addGroupFileViewer(this,700,170);
  GridLayout mainCompositeLayout=(GridLayout)mainComposite.getLayout();
  mainCompositeLayout.marginBottom=10;
  if (!isInWizard()) {
    Composite compositeBottomButton=Form.startNewGridLayout(this,2,false,SWT.CENTER,SWT.CENTER);
    cancelButton=new UtilsButton(compositeBottomButton,Messages.getString("String_Node_Str"),WIDTH_BUTTON_PIXEL,HEIGHT_BUTTON_PIXEL);
  }
}
Program: 126719
Project: 126719
Buggy source:
/** 
 * add field to Group Limit.
 * @param mainComposite
 * @param form
 * @param width
 * @param height
 */
private void addGroupLimit(final Composite mainComposite,final int width,final int height){
  Group group=Form.createGroup(mainComposite,2,Messages.getString("String_Node_Str"),height);
  Composite compositeLimit=Form.startNewDimensionnedGridLayout(group,3,width,height);
  Label info=new Label(compositeLimit,SWT.NONE);
  GridData gridData=new GridData();
  gridData.horizontalSpan=3;
  info.setLayoutData(gridData);
  info.setText(Messages.getString("String_Node_Str"));
  rowsToSkipLimitCheckboxCombo=new LabelledCheckboxCombo(compositeLimit,Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str"),STRING_NUMBERS_DATA,1,true,SWT.NONE);
}

Fixed version (ground truth):
/** 
 * add field to Group Limit.
 * @param mainComposite
 * @param form
 * @param width
 * @param height
 */
private void addGroupLimit(final Composite mainComposite,final int width,final int height){
  Group group=Form.createGroup(mainComposite,2,Messages.getString("String_Node_Str"),height);
  group.setLayout(new FillLayout());
  GridData groupLayoutData=(GridData)group.getLayoutData();
  groupLayoutData.heightHint=-1;
  groupLayoutData.minimumHeight=-1;
  groupLayoutData.minimumWidth=-1;
  groupLayoutData.widthHint=-1;
  groupLayoutData.grabExcessVerticalSpace=false;
  Composite compositeLimit=Form.startNewDimensionnedGridLayout(group,3,width,height);
  compositeLimit.setLayoutData(null);
  Label info=new Label(compositeLimit,SWT.NONE);
  GridData gridData=new GridData();
  gridData.horizontalSpan=3;
  info.setLayoutData(gridData);
  info.setText(Messages.getString("String_Node_Str"));
  rowsToSkipLimitCheckboxCombo=new LabelledCheckboxCombo(compositeLimit,Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str"),STRING_NUMBERS_DATA,1,true,SWT.NONE);
}
Program: 126721
Project: 126721
Buggy source:
private void addGroupRowsToSkip(final Composite mainComposite,final int width,final int height){
  Group group=Form.createGroup(mainComposite,1,Messages.getString("String_Node_Str"),height);
  Composite compositeRowsToSkip=Form.startNewDimensionnedGridLayout(group,3,width - 100,height);
  Label info=new Label(compositeRowsToSkip,SWT.NONE);
  GridData gridData=new GridData();
  gridData.horizontalSpan=3;
  info.setLayoutData(gridData);
  info.setText(Messages.getString("String_Node_Str"));
  rowsToSkipHeaderCheckboxCombo=new LabelledCheckboxCombo(compositeRowsToSkip,Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str"),STRING_NUMBERS_DATA,1,true,SWT.NONE);
  rowsToSkipFooterCheckboxCombo=new LabelledCheckboxCombo(compositeRowsToSkip,Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str"),STRING_NUMBERS_DATA,1,true,SWT.NONE);
  emptyRowsToSkipCheckbox=new Button(compositeRowsToSkip,SWT.CHECK);
  emptyRowsToSkipCheckbox.setText(Messages.getString("String_Node_Str"));
  emptyRowsToSkipCheckbox.setAlignment(SWT.LEFT);
  gridData=new GridData(SWT.FILL,SWT.BOTTOM,true,false);
  gridData.horizontalSpan=3;
  emptyRowsToSkipCheckbox.setLayoutData(gridData);
}

Fixed version (ground truth):
private void addGroupRowsToSkip(final Composite mainComposite,final int width,final int height){
  Group group=Form.createGroup(mainComposite,1,Messages.getString("String_Node_Str"),height);
  group.setLayout(new FillLayout());
  GridData groupLayoutData=(GridData)group.getLayoutData();
  groupLayoutData.heightHint=-1;
  groupLayoutData.minimumHeight=-1;
  groupLayoutData.minimumWidth=-1;
  groupLayoutData.widthHint=-1;
  groupLayoutData.grabExcessVerticalSpace=false;
  Composite compositeRowsToSkip=Form.startNewDimensionnedGridLayout(group,3,width - 100,height);
  compositeRowsToSkip.setLayoutData(null);
  Label info=new Label(compositeRowsToSkip,SWT.NONE);
  GridData gridData=new GridData();
  gridData.horizontalSpan=3;
  info.setLayoutData(gridData);
  info.setText(Messages.getString("String_Node_Str"));
  rowsToSkipHeaderCheckboxCombo=new LabelledCheckboxCombo(compositeRowsToSkip,Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str"),STRING_NUMBERS_DATA,1,true,SWT.NONE);
  rowsToSkipFooterCheckboxCombo=new LabelledCheckboxCombo(compositeRowsToSkip,Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str"),STRING_NUMBERS_DATA,1,true,SWT.NONE);
  emptyRowsToSkipCheckbox=new Button(compositeRowsToSkip,SWT.CHECK);
  emptyRowsToSkipCheckbox.setText(Messages.getString("String_Node_Str"));
  emptyRowsToSkipCheckbox.setAlignment(SWT.LEFT);
  gridData=new GridData(SWT.FILL,SWT.BOTTOM,true,false);
  gridData.horizontalSpan=3;
  emptyRowsToSkipCheckbox.setLayoutData(gridData);
}
Program: 126722
Project: 126722
Buggy source:
@Override protected void addFields(){
  Composite mainComposite=Form.startNewGridLayout(this,2);
  addGroupDelimitedFileSettings(mainComposite,280,120);
  addGroupRowsToSkip(mainComposite,300,120);
  addGroupDieOnErrorSettings(mainComposite,280,67);
  addGroupLimit(mainComposite,300,67);
  Composite mainComposite2=Form.startNewGridLayout(this,1);
  addGroupFileViewer(mainComposite2,600,200);
  if (!isInWizard()) {
    Composite compositeBottomButton=Form.startNewGridLayout(this,2,false,SWT.CENTER,SWT.CENTER);
    cancelButton=new UtilsButton(compositeBottomButton,Messages.getString("String_Node_Str"),WIDTH_BUTTON_PIXEL,HEIGHT_BUTTON_PIXEL);
  }
}

Fixed version (ground truth):
@Override protected void addFields(){
  Composite mainComposite=Form.startNewGridLayout(this,2);
  addGroupDelimitedFileSettings(mainComposite,280,120);
  addGroupRowsToSkip(mainComposite,300,120);
  addGroupDieOnErrorSettings(mainComposite,280,67);
  addGroupLimit(mainComposite,300,67);
  GridLayout mainCompositeLayout=(GridLayout)mainComposite.getLayout();
  mainCompositeLayout.marginBottom=5;
  Composite mainComposite2=Form.startNewGridLayout(this,1);
  addGroupFileViewer(mainComposite2,600,200);
  if (!isInWizard()) {
    Composite compositeBottomButton=Form.startNewGridLayout(this,2,false,SWT.CENTER,SWT.CENTER);
    cancelButton=new UtilsButton(compositeBottomButton,Messages.getString("String_Node_Str"),WIDTH_BUTTON_PIXEL,HEIGHT_BUTTON_PIXEL);
  }
}
Program: 126724
Project: 126724
Buggy source:
private void addGroupDieOnErrorSettings(final Composite mainComposite,final int width,final int height){
  Group group=Form.createGroup(mainComposite,2,Messages.getString("String_Node_Str"));
  Composite compositeExt=Form.startNewDimensionnedGridLayout(group,4,width,height);
  firstColumnText=new LabelledText(compositeExt,Messages.getString("String_Node_Str"),3);
  firstColumnText.setText("String_Node_Str");
  lastColumnText=new LabelledText(compositeExt,Messages.getString("String_Node_Str"),3);
}

Fixed version (ground truth):
private void addGroupDieOnErrorSettings(final Composite mainComposite,final int width,final int height){
  Group group=Form.createGroup(mainComposite,2,Messages.getString("String_Node_Str"));
  group.setLayout(new FillLayout());
  GridData groupLayoutData=(GridData)group.getLayoutData();
  groupLayoutData.heightHint=-1;
  groupLayoutData.minimumHeight=-1;
  groupLayoutData.minimumWidth=-1;
  groupLayoutData.widthHint=-1;
  groupLayoutData.grabExcessVerticalSpace=false;
  Composite compositeExt=Form.startNewDimensionnedGridLayout(group,4,width,height);
  compositeExt.setLayoutData(null);
  firstColumnText=new LabelledText(compositeExt,Messages.getString("String_Node_Str"),3);
  firstColumnText.setText("String_Node_Str");
  lastColumnText=new LabelledText(compositeExt,Messages.getString("String_Node_Str"),3);
  group.pack();
}
Program: 126725
Project: 126725
Buggy source:
/** 
 * add field to Group Limit.
 * @param mainComposite
 * @param form
 * @param width
 * @param height
 */
private void addGroupLimit(final Composite mainComposite,final int width,final int height){
  Group group=Form.createGroup(mainComposite,2,Messages.getString("String_Node_Str"),height);
  Composite compositeLimit=Form.startNewDimensionnedGridLayout(group,3,width,height);
  Label info=new Label(compositeLimit,SWT.NONE);
  GridData gridData=new GridData();
  gridData.horizontalSpan=3;
  info.setLayoutData(gridData);
  info.setText(Messages.getString("String_Node_Str"));
  rowsToSkipLimitCheckboxCombo=new LabelledCheckboxCombo(compositeLimit,Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str"),STRING_NUMBERS_DATA,1,true,SWT.NONE);
}

Fixed version (ground truth):
/** 
 * add field to Group Limit.
 * @param mainComposite
 * @param form
 * @param width
 * @param height
 */
private void addGroupLimit(final Composite mainComposite,final int width,final int height){
  Group group=Form.createGroup(mainComposite,2,Messages.getString("String_Node_Str"),height);
  group.setLayout(new FillLayout());
  GridData groupLayoutData=(GridData)group.getLayoutData();
  groupLayoutData.heightHint=-1;
  groupLayoutData.minimumHeight=-1;
  groupLayoutData.minimumWidth=-1;
  groupLayoutData.widthHint=-1;
  groupLayoutData.grabExcessVerticalSpace=false;
  Composite compositeLimit=Form.startNewDimensionnedGridLayout(group,3,width,height);
  compositeLimit.setLayoutData(null);
  Label info=new Label(compositeLimit,SWT.NONE);
  GridData gridData=new GridData();
  gridData.horizontalSpan=3;
  info.setLayoutData(gridData);
  info.setText(Messages.getString("String_Node_Str"));
  rowsToSkipLimitCheckboxCombo=new LabelledCheckboxCombo(compositeLimit,Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str"),STRING_NUMBERS_DATA,1,true,SWT.NONE);
  group.pack();
}