nus-yam/ex-repair huggingface dataset:
Program: 117989
Project: 117989
Buggy source:
@Override protected ITableLabelProvider createLabelProvider(){
  return new ITableLabelProvider(){
    public Image getColumnImage(    Object element,    int columnIndex){
      return null;
    }
    public String getColumnText(    Object element,    int columnIndex){
      String value=((String)element);
      if (columnIndex == 0) {
        return value.replace("String_Node_Str","String_Node_Str");
      }
      throw new IllegalStateException();
    }
    public void addListener(    ILabelProviderListener listener){
    }
    public void dispose(){
    }
    public boolean isLabelProperty(    Object element,    String property){
      return false;
    }
    public void removeListener(    ILabelProviderListener listener){
    }
  }
;
}

Fixed version (ground truth):
@Override protected ITableLabelProvider createLabelProvider(){
  return new ITableLabelProvider(){
    public Image getColumnImage(    Object element,    int columnIndex){
      return null;
    }
    public String getColumnText(    Object element,    int columnIndex){
      String value=((String)element);
      if (columnIndex == 0) {
        return value;
      }
      throw new IllegalStateException();
    }
    public void addListener(    ILabelProviderListener listener){
    }
    public void dispose(){
    }
    public boolean isLabelProperty(    Object element,    String property){
      return false;
    }
    public void removeListener(    ILabelProviderListener listener){
    }
  }
;
}
Program: 117990
Project: 117990
Buggy source:
@Override protected List<String> readString(String stringList){
  if (stringList == null || "String_Node_Str".equals(stringList)) {
    return EMPTY_STRING_LIST;
  }
  ArrayList<String> result=new ArrayList<String>(50);
  for (  String tmp : stringList.split("String_Node_Str")) {
    if (tmp != null && !"String_Node_Str".equals(tmp)) {
      result.add(tmp);
    }
  }
  return result;
}

Fixed version (ground truth):
@Override protected List<String> readString(String stringList){
  return new JobVMArgumentsUtil().readString(stringList);
}
Program: 117991
Project: 117991
Buggy source:
public String getColumnText(Object element,int columnIndex){
  String value=((String)element);
  if (columnIndex == 0) {
    return value.replace("String_Node_Str","String_Node_Str");
  }
  throw new IllegalStateException();
}

Fixed version (ground truth):
public String getColumnText(Object element,int columnIndex){
  String value=((String)element);
  if (columnIndex == 0) {
    return value;
  }
  throw new IllegalStateException();
}
Program: 117992
Project: 117992
Buggy source:
@Override protected String writeString(List<String> items){
  int size=items.size();
  StringBuffer buf=new StringBuffer(size * 50);
  buf.append("String_Node_Str");
  for (int i=0; i < size; i++) {
    buf.append(items.get(i).trim().replaceAll("String_Node_Str","String_Node_Str"));
    buf.append("String_Node_Str");
  }
  return buf.toString();
}

Fixed version (ground truth):
@Override protected String writeString(List<String> items){
  return new JobVMArgumentsUtil().writeString(items);
}
Program: 117993
Project: 117993
Buggy source:
protected void generatePom(){
  initJobClasspath();
  try {
    IMavenPomCreator createTemplatePom=createMavenPomCreator();
    if (createTemplatePom != null) {
      boolean previousValue=ProcessUtils.jarNeedsToContainsContext();
      ProcessUtils.setJarWithContext(ProcessUtils.needsToHaveContextInsideJar((ProcessItem)property.getItem()));
      createTemplatePom.create(null);
      ProcessUtils.setJarWithContext(previousValue);
    }
  }
 catch (  Exception e) {
    ExceptionHandler.process(e);
  }
}

Fixed version (ground truth):
protected void generatePom(){
  initJobClasspath();
  try {
    IMavenPomCreator createTemplatePom=createMavenPomCreator();
    if (createTemplatePom != null) {
      boolean previousValue=ProcessUtils.jarNeedsToContainContext();
      ProcessUtils.setJarWithContext(ProcessUtils.needsToHaveContextInsideJar((ProcessItem)property.getItem()));
      createTemplatePom.create(null);
      ProcessUtils.setJarWithContext(previousValue);
    }
  }
 catch (  Exception e) {
    ExceptionHandler.process(e);
  }
}
Program: 117996
Project: 117996
Buggy source:
@Override public void undo(){
  connection.setName(oldName);
  IElementParameter elementParameter=connection.getElementParameter(EParameterName.UNIQUE_NAME.getName());
  if (elementParameter != null) {
    if (connection.getLineStyle().hasConnectionCategory(IConnectionCategory.TABLE)) {
      connection.setPropertyValue(EParameterName.UNIQUE_NAME.getName(),oldMetaName);
    }
 else {
      connection.setPropertyValue(EParameterName.UNIQUE_NAME.getName(),oldName);
    }
  }
  if (connection.getLineStyle().hasConnectionCategory(IConnectionCategory.UNIQUE_NAME)) {
    connection.getSource().getProcess().removeUniqueConnectionName(newName);
    connection.getSource().getProcess().addUniqueConnectionName(oldName);
  }
  ConnectionListController.renameConnectionInElement(newName,oldName,connection.getSource());
  IExternalNode externalNode=connection.getTarget().getExternalNode();
  if (externalNode != null) {
    externalNode.renameInputConnection(newName,oldName);
  }
  externalNode=connection.getSource().getExternalNode();
  if (externalNode != null) {
    externalNode.renameOutputConnection(newName,oldName);
  }
  ((Process)connection.getSource().getProcess()).checkProcess();
}

Fixed version (ground truth):
@Override public void undo(){
  connection.setName(oldName);
  IElementParameter elementParameter=connection.getElementParameter(EParameterName.UNIQUE_NAME.getName());
  if (elementParameter != null) {
    if (connection.getLineStyle().hasConnectionCategory(IConnectionCategory.TABLE)) {
      connection.setPropertyValue(EParameterName.UNIQUE_NAME.getName(),oldMetaName);
    }
 else {
      connection.setPropertyValue(EParameterName.UNIQUE_NAME.getName(),oldName);
    }
  }
  if (connection.getLineStyle().hasConnectionCategory(IConnectionCategory.UNIQUE_NAME)) {
    connection.getSource().getProcess().removeUniqueConnectionName(newName);
    connection.getSource().getProcess().addUniqueConnectionName(oldName);
  }
  ConnectionListController.renameConnectionInElement(newName,oldName,connection.getSource());
  IExternalNode externalNode=connection.getTarget().getExternalNode();
  if (externalNode != null) {
    externalNode.renameInputConnection(newName,oldName);
  }
  externalNode=connection.getSource().getExternalNode();
  if (externalNode != null) {
    externalNode.renameOutputConnection(newName,oldName);
  }
  UpgradeElementHelper.renameData(connection.getTarget(),newName,oldName);
  ((Process)connection.getSource().getProcess()).checkProcess();
}
Program: 117997
Project: 117997
Buggy source:
@Override public void execute(){
  oldName=connection.getName();
  connection.setName(newName);
  IElementParameter elementParameter=connection.getElementParameter(EParameterName.UNIQUE_NAME.getName());
  if (elementParameter != null) {
    if (connection.getLineStyle().hasConnectionCategory(IConnectionCategory.TABLE)) {
      oldMetaName=connection.getMetaName();
      connection.setPropertyValue(EParameterName.UNIQUE_NAME.getName(),connection.getMetaName());
    }
 else {
      connection.setPropertyValue(EParameterName.UNIQUE_NAME.getName(),newName);
    }
  }
  if (connection.getLineStyle().hasConnectionCategory(IConnectionCategory.UNIQUE_NAME)) {
    connection.getSource().getProcess().removeUniqueConnectionName(oldName);
    connection.getSource().getProcess().addUniqueConnectionName(newName);
  }
  ConnectionListController.renameConnectionInElement(oldName,newName,connection.getSource());
  ConnectionListController.renameConnectionInElement(oldName,newName,connection.getTarget());
  IExternalNode externalNode=connection.getTarget().getExternalNode();
  if (externalNode != null) {
    externalNode.renameInputConnection(oldName,newName);
  }
  externalNode=connection.getSource().getExternalNode();
  if (externalNode != null) {
    externalNode.renameOutputConnection(oldName,newName);
  }
  ((Process)connection.getSource().getProcess()).checkProcess();
}

Fixed version (ground truth):
@Override public void execute(){
  oldName=connection.getName();
  connection.setName(newName);
  IElementParameter elementParameter=connection.getElementParameter(EParameterName.UNIQUE_NAME.getName());
  if (elementParameter != null) {
    if (connection.getLineStyle().hasConnectionCategory(IConnectionCategory.TABLE)) {
      oldMetaName=connection.getMetaName();
      connection.setPropertyValue(EParameterName.UNIQUE_NAME.getName(),connection.getMetaName());
    }
 else {
      connection.setPropertyValue(EParameterName.UNIQUE_NAME.getName(),newName);
    }
  }
  if (connection.getLineStyle().hasConnectionCategory(IConnectionCategory.UNIQUE_NAME)) {
    connection.getSource().getProcess().removeUniqueConnectionName(oldName);
    connection.getSource().getProcess().addUniqueConnectionName(newName);
  }
  ConnectionListController.renameConnectionInElement(oldName,newName,connection.getSource());
  ConnectionListController.renameConnectionInElement(oldName,newName,connection.getTarget());
  IExternalNode externalNode=connection.getTarget().getExternalNode();
  if (externalNode != null) {
    externalNode.renameInputConnection(oldName,newName);
  }
  externalNode=connection.getSource().getExternalNode();
  if (externalNode != null) {
    externalNode.renameOutputConnection(oldName,newName);
  }
  UpgradeElementHelper.renameData(connection.getTarget(),oldName,newName);
  ((Process)connection.getSource().getProcess()).checkProcess();
}
Program: 117998
Project: 117998
Buggy source:
@Override protected boolean filterRepositoryNode(RepositoryNode node){
  if (node == null) {
    return false;
  }
  if (node.isBin()) {
    return false;
  }
  if (node.getObject() != null) {
    ERepositoryStatus status=FACTORY.getStatus(node.getObject());
    if (status == ERepositoryStatus.LOCK_BY_OTHER || (status == ERepositoryStatus.LOCK_BY_USER && RepositoryManager.isOpenedItemInEditor(node.getObject()))) {
      return false;
    }
  }
  ERepositoryObjectType type=node.getObjectType();
  if (type == null) {
    if (node.getProperties(EProperties.LABEL) instanceof ERepositoryObjectType) {
      type=(ERepositoryObjectType)node.getProperties(EProperties.LABEL);
    }
    if (type == null) {
      return false;
    }
  }
  if (type == ERepositoryObjectType.PROCESS || type == ERepositoryObjectType.PROCESS_MR || type == ERepositoryObjectType.PROCESS_ROUTE || type == ERepositoryObjectType.PROCESS_SPARK || type == ERepositoryObjectType.PROCESS_SPARKSTREAMING || type == ERepositoryObjectType.PROCESS_STORM) {
    return true;
  }
  return false;
}

Fixed version (ground truth):
@Override protected boolean filterRepositoryNode(RepositoryNode node){
  if (node == null) {
    return false;
  }
  if (node.isBin()) {
    return false;
  }
  if (node.getObject() != null) {
    ERepositoryStatus status=FACTORY.getStatus(node.getObject());
    if (status == ERepositoryStatus.LOCK_BY_OTHER || (status == ERepositoryStatus.LOCK_BY_USER && RepositoryManager.isOpenedItemInEditor(node.getObject()))) {
      return false;
    }
  }
  ERepositoryObjectType type=node.getObjectType();
  if (type == null) {
    if (node.getProperties(EProperties.LABEL) instanceof ERepositoryObjectType) {
      type=(ERepositoryObjectType)node.getProperties(EProperties.LABEL);
    }
    if (type == null) {
      return false;
    }
  }
  if (type == ERepositoryObjectType.FOLDER) {
    if (node.getObject() instanceof Folder) {
      type=((Folder)node.getObject()).getContentType();
    }
  }
  if (type == ERepositoryObjectType.PROCESS || type == ERepositoryObjectType.PROCESS_MR || type == ERepositoryObjectType.valueOf(NODENAME_ROUTE_DESIGNS) || type == ERepositoryObjectType.PROCESS_ROUTE || type == ERepositoryObjectType.PROCESS_SPARK || type == ERepositoryObjectType.PROCESS_SPARKSTREAMING || type == ERepositoryObjectType.PROCESS_STORM) {
    return true;
  }
  return false;
}
Program: 117999
Project: 117999
Buggy source:
@Test public void testLoadComponents(){
  ComponentService componentService=ComponentsUtils.getComponentService();
  Set<ComponentDefinition> componentDefinitions=componentService.getAllComponents();
  Set<IComponent> coms=ComponentsFactoryProvider.getInstance().getComponents();
  List<IComponent> comList=new ArrayList<IComponent>();
  for (  ComponentDefinition componentDefinition : componentDefinitions) {
    for (    IComponent com : coms) {
      if (com.getName().equals(componentDefinition.getName())) {
        comList.add(com);
        break;
      }
    }
  }
  coms.removeAll(comList);
  ComponentsUtils.loadComponents(componentService);
  coms=ComponentsFactoryProvider.getInstance().getComponents();
  for (  ComponentDefinition componentDefinition : componentDefinitions) {
    boolean foundCom=false;
    if (componentDefinition.getName().equals("String_Node_Str")) {
      continue;
    }
    for (    IComponent com : coms) {
      if (com.getName().equals(componentDefinition.getName())) {
        foundCom=true;
        break;
      }
    }
    assertFalse(foundCom);
  }
}

Fixed version (ground truth):
@Test public void testLoadComponents(){
  ComponentService componentService=ComponentsUtils.getComponentService();
  Set<ComponentDefinition> componentDefinitions=componentService.getAllComponents();
  Set<IComponent> coms=ComponentsFactoryProvider.getInstance().getComponents();
  List<IComponent> comList=new ArrayList<IComponent>();
  for (  ComponentDefinition componentDefinition : componentDefinitions) {
    for (    IComponent com : coms) {
      if (com.getName().equals(componentDefinition.getName())) {
        comList.add(com);
        break;
      }
    }
  }
  coms.removeAll(comList);
  ComponentsUtils.loadComponents(componentService);
  coms=ComponentsFactoryProvider.getInstance().getComponents();
  for (  ComponentDefinition componentDefinition : componentDefinitions) {
    if (componentDefinition.getName().equals("String_Node_Str")) {
      continue;
    }
    for (    IComponent com : coms) {
      if (com.getName().equals(componentDefinition.getName())) {
        assertFalse("String_Node_Str" + componentDefinition.getName(),true);
      }
    }
  }
}
Program: 118000
Project: 118000
Buggy source:
public boolean matchExpression(String expression){
  if (expression == null) {
    return false;
  }
  Perl5Matcher matcher=new Perl5Matcher();
  Perl5Compiler compiler=new Perl5Compiler();
  Pattern pattern=null;
  try {
    pattern=compiler.compile("String_Node_Str");
  }
 catch (  MalformedPatternException e) {
    CommonExceptionHandler.process(e);
  }
  if (matcher.matches(expression,pattern)) {
    return true;
  }
  return false;
}

Fixed version (ground truth):
public boolean matchExpression(String expression){
  if (expression == null) {
    return false;
  }
  if (expression.contains("String_Node_Str")) {
    return true;
  }
  return false;
}
Program: 118001
Project: 118001
Buggy source:
public String generateUniqueNodeName(INode node){
  String baseName=node.getComponent().getName();
  return UniqueNodeNameGenerator.generateUniqueNodeName(baseName,uniqueNodeNameList);
}

Fixed version (ground truth):
public String generateUniqueNodeName(INode node){
  String baseName=node.getComponent().getOriginalName();
  return UniqueNodeNameGenerator.generateUniqueNodeName(baseName,uniqueNodeNameList);
}
Program: 118006
Project: 118006
Buggy source:
private IUIMatchingMode[] getMatchModel(){
  IUIMatchingMode[] allMatchingModel=TMAP_MATCHING_MODE.values();
  List<IUIMatchingMode> avilable=new ArrayList<IUIMatchingMode>();
  for (  IUIMatchingMode matchingMode : allMatchingModel) {
    final String text=matchingMode.getLabel();
    if (matchingMode == TMAP_MATCHING_MODE.LAST_MATCH) {
      continue;
    }
    if (getMapperManager().isBigDataProcess() && matchingMode == TMAP_MATCHING_MODE.FIRST_MATCH) {
      continue;
    }
    if (text.length() != 0) {
      if (matchingMode == TMAP_MATCHING_MODE.ALL_ROWS && getInputTable().getMatchingMode() != TMAP_MATCHING_MODE.ALL_ROWS || matchingMode != TMAP_MATCHING_MODE.ALL_ROWS && getInputTable().getMatchingMode() == TMAP_MATCHING_MODE.ALL_ROWS) {
      }
 else {
        if (getMapperManager().isMRProcess() && matchingMode == TMAP_MATCHING_MODE.ALL_MATCHES) {
          avilable.add(0,matchingMode);
        }
 else {
          avilable.add(matchingMode);
        }
      }
    }
  }
  return avilable.toArray(new IUIMatchingMode[avilable.size()]);
}

Fixed version (ground truth):
private IUIMatchingMode[] getMatchModel(){
  IUIMatchingMode[] allMatchingModel=TMAP_MATCHING_MODE.values();
  List<IUIMatchingMode> avilable=new ArrayList<IUIMatchingMode>();
  for (  IUIMatchingMode matchingMode : allMatchingModel) {
    final String text=matchingMode.getLabel();
    if (matchingMode == TMAP_MATCHING_MODE.LAST_MATCH) {
      continue;
    }
    if (getMapperManager().isBigDataProcess() && matchingMode == TMAP_MATCHING_MODE.FIRST_MATCH) {
      continue;
    }
    if (text.length() != 0) {
      if (getMapperManager().isMRProcess() && matchingMode == TMAP_MATCHING_MODE.ALL_MATCHES) {
        avilable.add(0,matchingMode);
      }
 else {
        avilable.add(matchingMode);
      }
    }
  }
  return avilable.toArray(new IUIMatchingMode[avilable.size()]);
}
Program: 118009
Project: 118009
Buggy source:
public UnnotifiableColorStyledText getColumnNameFilterText(){
  return this.columnNameTextFilter;
}

Fixed version (ground truth):
public Text getColumnNameFilterText(){
  return this.columnNameTextFilter;
}
Program: 118012
Project: 118012
Buggy source:
public void start(BundleContext context) throws Exception {
  super.start(context);
  IExtensionPointLimiter extensionPointLimiter=new ExtensionPointLimiterImpl("String_Node_Str","String_Node_Str");
  runProcessContextManagerList=ExtensionImplementationProvider.getInstance(extensionPointLimiter);
  runProcessContextManager=runProcessContextManagerList.size() > 0 ? runProcessContextManagerList.get(0) : null;
  if (runProcessContextManager == null) {
    runProcessContextManager=new RunProcessContextManager();
  }
}

Fixed version (ground truth):
public void start(BundleContext context) throws Exception {
  super.start(context);
  IExtensionPointLimiter extensionPointLimiter=new ExtensionPointLimiterImpl("String_Node_Str","String_Node_Str");
  runProcessContextManager=new RunProcessContextManager();
  runProcessContextManagerList=ExtensionImplementationProvider.getInstance(extensionPointLimiter);
  runProcessContextManagerList.add(runProcessContextManager);
}
Program: 118013
Project: 118013
Buggy source:
public void setProcessContext(RunProcessContext processContext){
  this.processContext=processContext;
}

Fixed version (ground truth):
public void setProcessContext(RunProcessContext processContext){
  this.processContext=processContext;
  for (  Control control : execComposite.getChildren()) {
    control.setEnabled(processContext != null);
  }
}
Program: 118014
Project: 118014
Buggy source:
protected Composite createTargetExecutionComposite(Composite parent){
  Composite composite=new Composite(parent,SWT.NONE);
  GridLayout layout=new GridLayout();
  layout.marginHeight=0;
  layout.marginWidth=0;
  composite.setLayout(layout);
  StyledText text=new StyledText(composite,SWT.NONE);
  text.setText(Messages.getString("String_Node_Str"));
  text.setWordWrap(true);
  text.setEditable(false);
  text.setLayoutData(new GridData(GridData.FILL_BOTH));
  return composite;
}

Fixed version (ground truth):
protected Composite createTargetExecutionComposite(Composite parent){
  execComposite=new Composite(parent,SWT.NONE);
  GridLayout layout=new GridLayout();
  layout.marginHeight=0;
  layout.marginWidth=0;
  execComposite.setLayout(layout);
  StyledText text=new StyledText(execComposite,SWT.NONE);
  text.setText(Messages.getString("String_Node_Str"));
  text.setWordWrap(true);
  text.setEditable(false);
  text.setLayoutData(new GridData(GridData.FILL_BOTH));
  return execComposite;
}
Program: 118016
Project: 118016
Buggy source:
@Override public Object getValue(Object bean,String idColumn){
  if (!AbstractXmlTreeSchemaTableView.ID_COLUMN_XPATH.equals(idColumn)) {
    return super.getValue(bean,idColumn);
  }
 else {
    TableViewerCreatorColumn column=tableViewerCreator.getColumn(idColumn);
    ModifiedObjectInfo modifiedObjectInfo=this.tableViewerCreator.getModifiedObjectInfo();
    modifiedObjectInfo.setCurrentModifiedBean(bean);
    modifiedObjectInfo.setCurrentModifiedColumn(column);
    modifiedObjectInfo.setCurrentModifiedIndex(this.tableViewerCreator.getInputList().indexOf(bean));
    Object returnValue=null;
    if (column.getColumnCellModifier() != null) {
      returnValue=column.getColumnCellModifier().getValue(bean);
    }
    if (returnValue == null) {
      Object value=AccessorUtils.get(bean,column);
      if (column.getCellEditorValueAdapter() != null) {
        returnValue=column.getCellEditorValueAdapter().getCellEditorTypedValue(column.getCellEditor(),value);
      }
 else {
        returnValue=value;
      }
      if (returnValue == null && column.getDefaultInternalValue() != null) {
        returnValue=column.getDefaultInternalValue();
      }
    }
    modifiedObjectInfo.setOriginalPropertyBeanValue(returnValue);
    modifiedObjectInfo.setPreviousPropertyBeanValue(returnValue);
    return returnValue;
  }
}

Fixed version (ground truth):
@Override public Object getValue(Object bean,String idColumn){
  if (!AbstractXmlTreeSchemaTableView.ID_COLUMN_XPATH.equals(idColumn)) {
    return super.getValue(bean,idColumn);
  }
 else {
    TableViewerCreatorColumnNotModifiable column=tableViewerCreator.getColumn(idColumn);
    ModifiedObjectInfo modifiedObjectInfo=this.tableViewerCreator.getModifiedObjectInfo();
    modifiedObjectInfo.setCurrentModifiedBean(bean);
    modifiedObjectInfo.setCurrentModifiedColumn(column);
    modifiedObjectInfo.setCurrentModifiedIndex(this.tableViewerCreator.getInputList().indexOf(bean));
    Object returnValue=null;
    if (column.getColumnCellModifier() != null) {
      returnValue=column.getColumnCellModifier().getValue(bean);
    }
    if (returnValue == null) {
      Object value=AccessorUtils.get(bean,column);
      if (column.getCellEditorValueAdapter() != null) {
        returnValue=column.getCellEditorValueAdapter().getCellEditorTypedValue(column.getCellEditor(),value);
      }
 else {
        returnValue=value;
      }
      if (returnValue == null && column.getDefaultInternalValue() != null) {
        returnValue=column.getDefaultInternalValue();
      }
    }
    modifiedObjectInfo.setOriginalPropertyBeanValue(returnValue);
    modifiedObjectInfo.setPreviousPropertyBeanValue(returnValue);
    return returnValue;
  }
}
Program: 118020
Project: 118020
Buggy source:
/** 
 * DOC ggu Comment method "checkQueryOK".
 * @param node
 * @param sql
 * @return
 */
public static boolean checkQueryOK(Node node,String sql){
  if (sql == null) {
    return false;
  }
  sql=sql.replaceAll("String_Node_Str","String_Node_Str");
  sql=sql.replaceAll("String_Node_Str","String_Node_Str");
  sql=sql.trim();
  if ("String_Node_Str".equals(sql)) {
    return false;
  }
  java.util.regex.Pattern sqlRegex=java.util.regex.Pattern.compile(SQL_REGX,REGX_FLAG);
  Matcher matcher=sqlRegex.matcher(sql);
  if (!matcher.find()) {
    return true;
  }
  matcher.lookingAt();
  String columns=matcher.group(4).trim();
  if ("String_Node_Str".equals(columns)) {
    return false;
  }
  if ("String_Node_Str".equals(columns)) {
    return true;
  }
  boolean match=apacheRegexMatch(SQL_FUNC_REGX,REGX_FLAG,columns);
  if (!match) {
    return compareNodeTableColumnsNoFunc(node,columns);
  }
 else {
    return compareNodeTableColumnsWithFunc(node,columns);
  }
}

Fixed version (ground truth):
/** 
 * DOC ggu Comment method "checkQueryOK".
 * @param node
 * @param sql
 * @return
 */
public static boolean checkQueryOK(Node node,String sql){
  if (sql == null) {
    return false;
  }
  Pattern commentRegex=Pattern.compile(COMMENT_REGX_PATTERN);
  Matcher commentMatcher=commentRegex.matcher(sql);
  sql=commentMatcher.replaceAll("String_Node_Str");
  sql=sql.replaceAll("String_Node_Str","String_Node_Str");
  sql=sql.replaceAll("String_Node_Str","String_Node_Str");
  sql=sql.trim();
  if ("String_Node_Str".equals(sql)) {
    return false;
  }
  java.util.regex.Pattern sqlRegex=java.util.regex.Pattern.compile(SQL_REGX,REGX_FLAG);
  Matcher matcher=sqlRegex.matcher(sql);
  if (!matcher.find()) {
    return true;
  }
  matcher.lookingAt();
  String columns=matcher.group(4).trim();
  if ("String_Node_Str".equals(columns)) {
    return false;
  }
  if ("String_Node_Str".equals(columns)) {
    return true;
  }
  boolean match=apacheRegexMatch(SQL_FUNC_REGX,REGX_FLAG,columns);
  if (!match) {
    return compareNodeTableColumnsNoFunc(node,columns);
  }
 else {
    return compareNodeTableColumnsWithFunc(node,columns);
  }
}
Program: 118023
Project: 118023
Buggy source:
protected void okPressed(){
  if (fixedVersionText == null) {
    return;
  }
  boolean modified=false;
  String newVersion=null;
  for (  ItemVersionObject object : checkedObjects) {
    newVersion=getNewVersionWithOption(object);
    IRepositoryViewObject repositoryObject=object.getRepositoryNode().getObject();
    if (repositoryObject != null && repositoryObject.getProperty() != null) {
      if (!newVersion.equals(repositoryObject.getVersion())) {
        isApplied=false;
        modified=true;
        break;
      }
    }
  }
  if (modified) {
    boolean confirm=false;
    if (fixedVersionButton.getSelection()) {
      confirm=MessageDialog.openConfirm(getShell(),Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str",newVersion));
      if (confirm && newVersion != null) {
        for (        ItemVersionObject object : checkedObjects) {
          object.setNewVersion(newVersion);
        }
      }
    }
 else {
      ItemsVersionConfirmDialog chanedDialog=new ItemsVersionConfirmDialog(getShell(),checkedObjects);
      confirm=(chanedDialog.open() == Window.OK);
    }
    if (confirm) {
      updateItemsVersion();
    }
  }
 else {
    if (!checkedObjects.isEmpty() && !isApplied) {
      MessageDialog.openWarning(getShell(),Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str"));
    }
  }
}

Fixed version (ground truth):
protected void okPressed(){
  if (fixedVersionText == null) {
    return;
  }
  boolean modified=false;
  String newVersion=null;
  for (  ItemVersionObject object : checkedObjects) {
    newVersion=getNewVersionWithOption(object);
    if (!newVersion.equals(object.getOldVersion())) {
      isApplied=false;
      modified=true;
      break;
    }
  }
  if (modified) {
    boolean confirm=false;
    if (fixedVersionButton.getSelection()) {
      confirm=MessageDialog.openConfirm(getShell(),Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str",newVersion));
      if (confirm && newVersion != null) {
        for (        ItemVersionObject object : checkedObjects) {
          object.setNewVersion(newVersion);
        }
      }
    }
 else {
      ItemsVersionConfirmDialog chanedDialog=new ItemsVersionConfirmDialog(getShell(),checkedObjects);
      confirm=(chanedDialog.open() == Window.OK);
    }
    if (confirm) {
      updateItemsVersion();
    }
  }
 else {
    if (!checkedObjects.isEmpty() && !isApplied) {
      MessageDialog.openWarning(getShell(),Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str"));
    }
  }
}
Program: 118025
Project: 118025
Buggy source:
@Override protected boolean filterRepositoryNode(RepositoryNode node){
  if (node == null) {
    return false;
  }
  if (node.isBin()) {
    return false;
  }
  ERepositoryObjectType type=node.getObjectType();
  if (type == ERepositoryObjectType.PROCESS || type == ERepositoryObjectType.PROCESS_MR || type == ERepositoryObjectType.PROCESS_ROUTE || type == ERepositoryObjectType.PROCESS_SPARK || type == ERepositoryObjectType.PROCESS_SPARKSTREAMING || type == ERepositoryObjectType.PROCESS_STORM || type == ERepositoryObjectType.TEST_CONTAINER) {
    return true;
  }
  return false;
}

Fixed version (ground truth):
@Override protected boolean filterRepositoryNode(RepositoryNode node){
  if (node == null) {
    return false;
  }
  if (node.isBin()) {
    return false;
  }
  if (node.getObject() != null) {
    ERepositoryStatus status=FACTORY.getStatus(node.getObject());
    if (status == ERepositoryStatus.LOCK_BY_OTHER || (status == ERepositoryStatus.LOCK_BY_USER && RepositoryManager.isOpenedItemInEditor(node.getObject()))) {
      return false;
    }
  }
  ERepositoryObjectType type=node.getObjectType();
  if (type == ERepositoryObjectType.PROCESS || type == ERepositoryObjectType.PROCESS_MR || type == ERepositoryObjectType.PROCESS_ROUTE || type == ERepositoryObjectType.PROCESS_SPARK || type == ERepositoryObjectType.PROCESS_SPARKSTREAMING || type == ERepositoryObjectType.PROCESS_STORM || type == ERepositoryObjectType.TEST_CONTAINER) {
    return true;
  }
  return false;
}
Program: 118026
Project: 118026
Buggy source:
@Override public void modifyText(ModifyEvent e){
  String version=text.getText();
  checkVersionPattern(tableItem,version);
  object.setNewVersion(version);
}

Fixed version (ground truth):
@Override public void modifyText(ModifyEvent e){
  String version=text.getText();
  checkVersionPattern(tableItem,version);
  object.setNewVersion(version);
  checkValid();
}
Program: 118027
Project: 118027
Buggy source:
private void checkVersionPattern(TableItem tableItem,String version){
  if (MavenVersionUtils.isValidMavenVersion(version)) {
    tableItem.setText(4,"String_Node_Str");
  }
 else {
    tableItem.setText(4,Messages.getString("String_Node_Str"));
    tableItem.setForeground(4,COLOR_YELLOW);
  }
}

Fixed version (ground truth):
private void checkVersionPattern(TableItem tableItem,String version){
  if (MavenVersionUtils.isValidMavenVersion(version)) {
    tableItem.setText(4,"String_Node_Str");
  }
 else {
    tableItem.setText(4,Messages.getString("String_Node_Str"));
    tableItem.setForeground(4,COLOR_RED);
  }
}
Program: 118029
Project: 118029
Buggy source:
public V next(){
  if (objectResult != null) {
    hasResult=true;
    V object=objectResult;
    objectResult=null;
    return object;
  }
 else   if (listResult != null) {
    hasResult=true;
    return listResult.get(currentIndex++);
  }
  throw new NoSuchElementException();
}

Fixed version (ground truth):
@Override public V next(){
  if (objectResult != null) {
    hasResult=true;
    V object=objectResult;
    objectResult=null;
    return object;
  }
 else   if (listResult != null) {
    hasResult=true;
    return listResult.get(currentIndex++);
  }
  throw new NoSuchElementException();
}
Program: 118030
Project: 118030
Buggy source:
public void initGet(){
}

Fixed version (ground truth):
@Override public void initGet(){
}
Program: 118031
Project: 118031
Buggy source:
public V put(V value){
  if (value != null) {
    if (matchingMode == MATCHING_MODE.UNIQUE_MATCH && !keepAllValues) {
      V previousValue=uniqueHash.put(value,value);
      incrementCountValues(value,previousValue);
      return previousValue;
    }
 else {
      if (matchingMode == MATCHING_MODE.ALL_ROWS) {
        list.add(value);
        return null;
      }
 else {
        arrayIsDirty=true;
        V previousValue=(V)mapOfCol.put(value,value);
        incrementCountValues(value,previousValue);
        return previousValue;
      }
    }
  }
  return null;
}

Fixed version (ground truth):
@Override public V put(V value){
  if (value != null) {
    if (matchingMode == MATCHING_MODE.UNIQUE_MATCH && !keepAllValues) {
      V previousValue=uniqueHash.put(value,value);
      incrementCountValues(value,previousValue);
      return previousValue;
    }
 else {
      if (matchingMode == MATCHING_MODE.ALL_ROWS) {
        list.add(value);
        return null;
      }
 else {
        arrayIsDirty=true;
        V previousValue=(V)mapOfCol.put(value,value);
        incrementCountValues(value,previousValue);
        return previousValue;
      }
    }
  }
  return null;
}
Program: 118032
Project: 118032
Buggy source:
public void endPut(){
}

Fixed version (ground truth):
@Override public void endPut(){
}
Program: 118033
Project: 118033
Buggy source:
public boolean hasNext(){
  if (objectResult != null) {
    return true;
  }
 else   if (listResult != null && currentIndex != sizeResultList) {
    return true;
  }
  return false;
}

Fixed version (ground truth):
@Override public boolean hasNext(){
  if (objectResult != null) {
    return true;
  }
 else   if (listResult != null && currentIndex != sizeResultList) {
    return true;
  }
  return false;
}
Program: 118034
Project: 118034
Buggy source:
public void endGet(){
  clear();
}

Fixed version (ground truth):
@Override public void endGet(){
  clear();
}
Program: 118035
Project: 118035
Buggy source:
public void initPut(){
}

Fixed version (ground truth):
@Override public void initPut(){
}
Program: 118036
Project: 118036
Buggy source:
public V put(V master,V value){
  if (value != null) {
    arrayIsDirty=true;
    V previousValue=(V)mapOfCol.put(master,value);
    incrementCountValues(value,previousValue);
    return previousValue;
  }
  return null;
}

Fixed version (ground truth):
public V put(V master,V value){
  if (value != null) {
    arrayIsDirty=true;
    V previousValue=(V)mapOfCol.put(master,value);
    incrementCountValues(value,previousValue);
    if (getMatchingMode() == MATCHING_MODE.ALL_ROWS) {
      getList().add(value);
    }
    return previousValue;
  }
  return null;
}
Program: 118038
Project: 118038
Buggy source:
private void mavenBuildCodeProjectPom(String goals,String module,Map<String,Object> argumentsMap,IProgressMonitor monitor) throws Exception {
  IFile childModulePomFile;
  if (TalendMavenConstants.CURRENT_PATH.equals(module)) {
    childModulePomFile=this.getProject().getFile(TalendMavenConstants.POM_FILE_NAME);
  }
 else {
    IFolder moduleFolder=this.getProject().getFolder(module);
    childModulePomFile=moduleFolder.getFile(TalendMavenConstants.POM_FILE_NAME);
  }
  if (childModulePomFile.getLocation().toFile().exists()) {
    MavenPomCommandLauncher mavenLauncher=null;
    if (goals == null || goals.trim().length() == 0 || goals.equals(TalendMavenConstants.GOAL_COMPILE)) {
      buildWholeCodeProject();
    }
 else {
      mavenLauncher=new MavenPomCommandLauncher(childModulePomFile,goals);
      mavenLauncher.setArgumentsMap(argumentsMap);
      mavenLauncher.execute(monitor);
    }
  }
 else {
    throw new RuntimeException("String_Node_Str" + module);
  }
}

Fixed version (ground truth):
private void mavenBuildCodeProjectPom(String goals,String module,Map<String,Object> argumentsMap,IProgressMonitor monitor) throws Exception {
  IFile childModulePomFile;
  if (TalendMavenConstants.CURRENT_PATH.equals(module)) {
    childModulePomFile=this.getProject().getFile(TalendMavenConstants.POM_FILE_NAME);
  }
 else {
    IFolder moduleFolder=this.getProject().getFolder(module);
    childModulePomFile=moduleFolder.getFile(TalendMavenConstants.POM_FILE_NAME);
  }
  if (childModulePomFile.getLocation().toFile().exists()) {
    MavenPomCommandLauncher mavenLauncher=null;
    if (goals == null || goals.trim().length() == 0 || goals.equals(TalendMavenConstants.GOAL_COMPILE) || goals.equals(TalendMavenConstants.GOAL_TEST_COMPILE)) {
      buildWholeCodeProject();
    }
 else {
      mavenLauncher=new MavenPomCommandLauncher(childModulePomFile,goals);
      mavenLauncher.setArgumentsMap(argumentsMap);
      mavenLauncher.execute(monitor);
    }
  }
 else {
    throw new RuntimeException("String_Node_Str" + module);
  }
}
Program: 118040
Project: 118040
Buggy source:
@Override public void undo(){
  List<IMetadataTable> metadataList=new ArrayList<IMetadataTable>();
  for (  IConnection connection : connectionInOldOrder) {
    if (connection.getLineStyle().hasConnectionCategory(IConnectionCategory.DATA)) {
      if (!metadataList.contains(connection.getMetadataTable())) {
        metadataList.add(connection.getMetadataTable());
      }
    }
  }
  multipleOutputNode.setMetadataList(metadataList);
  multipleOutputNode.setOutgoingConnections(connectionInOldOrder);
  connectionInOldOrder.get(0).updateAllId();
  ((Process)multipleOutputNode.getProcess()).checkStartNodes();
}

Fixed version (ground truth):
@Override public void undo(){
  List<IMetadataTable> connectionMetadatas=new ArrayList<IMetadataTable>();
  for (  IConnection connection : connectionInOldOrder) {
    if (connection.getLineStyle().hasConnectionCategory(IConnectionCategory.DATA)) {
      if (!connectionMetadatas.contains(connection.getMetadataTable())) {
        connectionMetadatas.add(connection.getMetadataTable());
      }
    }
  }
  List<IMetadataTable> metadataList=multipleOutputNode.getMetadataList();
  Collections.sort(metadataList,new Comparator<IMetadataTable>(){
    @Override public int compare(    IMetadataTable o1,    IMetadataTable o2){
      int index1=connectionMetadatas.indexOf(o1);
      if (index1 == -1) {
        index1=0;
      }
      int index2=connectionMetadatas.indexOf(o2);
      if (index2 == -1) {
        index2=0;
      }
      return index1 - index2;
    }
  }
);
  multipleOutputNode.setOutgoingConnections(connectionInOldOrder);
  connectionInOldOrder.get(0).updateAllId();
  ((Process)multipleOutputNode.getProcess()).checkStartNodes();
}
Program: 118041
Project: 118041
Buggy source:
@Override public void execute(){
  List<IMetadataTable> metadataList=new ArrayList<IMetadataTable>();
  for (  IConnection connection : connectionInNewOrder) {
    if (connection.getLineStyle().hasConnectionCategory(IConnectionCategory.DATA)) {
      if (!metadataList.contains(connection.getMetadataTable())) {
        metadataList.add(connection.getMetadataTable());
      }
    }
  }
  if (!metadataList.isEmpty()) {
    multipleOutputNode.setMetadataList(metadataList);
  }
  multipleOutputNode.setOutgoingConnections(connectionInNewOrder);
  connectionInNewOrder.get(0).updateAllId();
  ((Process)multipleOutputNode.getProcess()).checkStartNodes();
}

Fixed version (ground truth):
@Override public void execute(){
  List<IMetadataTable> connectionMetadatas=new ArrayList<IMetadataTable>();
  for (  IConnection connection : connectionInNewOrder) {
    if (connection.getLineStyle().hasConnectionCategory(IConnectionCategory.DATA)) {
      if (!connectionMetadatas.contains(connection.getMetadataTable())) {
        connectionMetadatas.add(connection.getMetadataTable());
      }
    }
  }
  List<IMetadataTable> metadataList=multipleOutputNode.getMetadataList();
  Collections.sort(metadataList,new Comparator<IMetadataTable>(){
    @Override public int compare(    IMetadataTable o1,    IMetadataTable o2){
      int index1=connectionMetadatas.indexOf(o1);
      if (index1 == -1) {
        index1=0;
      }
      int index2=connectionMetadatas.indexOf(o2);
      if (index2 == -1) {
        index2=0;
      }
      return index1 - index2;
    }
  }
);
  multipleOutputNode.setOutgoingConnections(connectionInNewOrder);
  connectionInNewOrder.get(0).updateAllId();
  ((Process)multipleOutputNode.getProcess()).checkStartNodes();
}
Program: 118042
Project: 118042
Buggy source:
protected void turnToCodePage(int newPageIndex){
  IComponentSettingsView viewer=(IComponentSettingsView)PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().findView(IComponentSettingsView.ID);
  if (viewer != null) {
    viewer.cleanDisplay();
  }
  if (codeEditor instanceof ISyntaxCheckableEditor) {
    moveCursorToSelectedComponent();
  }
  codeSync();
  updateCodeEditorContent();
  changeContextsViewStatus(true);
}

Fixed version (ground truth):
protected void turnToCodePage(int newPageIndex){
  IComponentSettingsView viewer=(IComponentSettingsView)PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().findView(IComponentSettingsView.ID);
  if (viewer != null) {
    viewer.cleanDisplay();
  }
  if (codeEditor instanceof ISyntaxCheckableEditor) {
    moveCursorToSelectedComponent();
  }
  codeSync();
  changeContextsViewStatus(true);
}
Program: 118044
Project: 118044
Buggy source:
protected void updateColumnNameFilterTextAndLayout(boolean buttonPressed){
  final AbstractInOutTable table=(AbstractInOutTable)getDataMapTable();
  GridData gridData=(GridData)columnNameTextFilter.getLayoutData();
  GridData gridData1=(GridData)filterImageLabel.getLayoutData();
  if (columnNameFilter.getSelection()) {
    columnNameTextFilter.setVisible(true);
    gridData.exclude=false;
    table.setActiveColumnNameFilter(true);
    gridData1.exclude=false;
    filterImageLabel.setVisible(true);
  }
 else {
    columnNameTextFilter.setVisible(false);
    gridData.exclude=true;
    table.setActiveColumnNameFilter(false);
    gridData1.exclude=true;
    filterImageLabel.setVisible(false);
  }
  if (buttonPressed) {
    DataMapTableView.this.changeSize(DataMapTableView.this.getPreferredSize(false,true,false),true,true);
  }
  DataMapTableView.this.layout();
  mapperManager.getUiManager().refreshBackground(true,false);
  if (columnNameTextFilter.isVisible() && buttonPressed) {
    columnNameTextFilter.setFocus();
  }
}

Fixed version (ground truth):
protected void updateColumnNameFilterTextAndLayout(boolean buttonPressed){
  final AbstractInOutTable table=(AbstractInOutTable)getDataMapTable();
  GridData gridData=(GridData)columnNameTextFilter.getLayoutData();
  GridData gridData1=(GridData)filterImageLabel.getLayoutData();
  if (columnNameFilter.getSelection()) {
    columnNameTextFilter.setVisible(true);
    gridData.exclude=false;
    table.setActiveColumnNameFilter(true);
    gridData1.exclude=false;
    filterImageLabel.setVisible(true);
  }
 else {
    columnNameTextFilter.setVisible(false);
    gridData.exclude=true;
    table.setActiveColumnNameFilter(false);
    gridData1.exclude=true;
    filterImageLabel.setVisible(false);
  }
  parseColumnNameFilterRefresh();
  if (buttonPressed) {
    DataMapTableView.this.changeSize(DataMapTableView.this.getPreferredSize(false,true,false),true,true);
  }
  DataMapTableView.this.layout();
  mapperManager.getUiManager().refreshBackground(true,false);
  if (columnNameTextFilter.isVisible() && buttonPressed) {
    columnNameTextFilter.setFocus();
  }
}
Program: 118045
Project: 118045
Buggy source:
@Override public boolean select(Viewer viewer,Object parentElement,Object element){
  String pattern=getNameFilter();
  SearchPattern matcher=new SearchPattern();
  matcher.setPattern("String_Node_Str" + pattern.trim() + "String_Node_Str");
  if (element instanceof OutputColumnTableEntry) {
    OutputColumnTableEntry outputColumn=(OutputColumnTableEntry)element;
    if (outputColumn.getParent() instanceof OutputTable) {
      IMetadataColumn metadataColumn=outputColumn.getMetadataColumn();
      if (metadataColumn != null && (!matcher.matches(metadataColumn.getLabel()))) {
        return false;
      }
    }
  }
  if (element instanceof InputColumnTableEntry) {
    InputColumnTableEntry inputColumn=(InputColumnTableEntry)element;
    if (inputColumn.getParent() instanceof InputTable) {
      IMetadataColumn metadataColumn=inputColumn.getMetadataColumn();
      if (metadataColumn != null && (!matcher.matches(metadataColumn.getLabel()))) {
        return false;
      }
    }
  }
  return true;
}

Fixed version (ground truth):
@Override public boolean select(Viewer viewer,Object parentElement,Object element){
  String pattern=getNameFilter();
  if (!columnNameFilter.getSelection()) {
    pattern="String_Node_Str";
  }
  SearchPattern matcher=new SearchPattern();
  matcher.setPattern("String_Node_Str" + pattern.trim() + "String_Node_Str");
  if (element instanceof OutputColumnTableEntry) {
    OutputColumnTableEntry outputColumn=(OutputColumnTableEntry)element;
    if (outputColumn.getParent() instanceof OutputTable) {
      IMetadataColumn metadataColumn=outputColumn.getMetadataColumn();
      if (metadataColumn != null && (!matcher.matches(metadataColumn.getLabel()))) {
        return false;
      }
    }
  }
  if (element instanceof InputColumnTableEntry) {
    InputColumnTableEntry inputColumn=(InputColumnTableEntry)element;
    if (inputColumn.getParent() instanceof InputTable) {
      IMetadataColumn metadataColumn=inputColumn.getMetadataColumn();
      if (metadataColumn != null && (!matcher.matches(metadataColumn.getLabel()))) {
        return false;
      }
    }
  }
  return true;
}
Program: 118046
Project: 118046
Buggy source:
public void modifyText(ExtendedModifyEvent event){
}

Fixed version (ground truth):
public void modifyText(ExtendedModifyEvent event){
  if (isFilterEqualsToDefault(ControlUtils.getText(textWidget))) {
    textTarget.setTextWithoutNotifyListeners("String_Node_Str");
  }
 else {
    textTarget.setTextWithoutNotifyListeners(ControlUtils.getText(textWidget));
  }
  highlightLineAndSetSelectionOfStyledTextFromTextControl(textWidget);
}
Program: 118048
Project: 118048
Buggy source:
protected void editItem(ISelection sel){
  IStructuredSelection selection=(IStructuredSelection)sel;
  String existing=(String)selection.getFirstElement();
  String value=getExistingInputObject(existing.replace("String_Node_Str","String_Node_Str"));
  if (value != null) {
    int indexOf=list.indexOf(existing);
    list.remove(existing);
    list.add(indexOf,value);
    viewer.refresh();
    doSave();
  }
}

Fixed version (ground truth):
protected void editItem(ISelection sel){
  IStructuredSelection selection=(IStructuredSelection)sel;
  String existing=(String)selection.getFirstElement();
  String value=getExistingInputObject(existing.trim());
  if (value != null) {
    int indexOf=list.indexOf(existing);
    list.remove(existing);
    list.add(indexOf,value);
    viewer.refresh();
    doSave();
  }
}
Program: 118052
Project: 118052
Buggy source:
@Test public void testGetParametersFromForm(){
  ComponentProperties props=(ComponentProperties)new TestProperties("String_Node_Str").init();
  Form form=props.getForm(Form.MAIN);
  Element element=new FakeElement(form.getName());
  List<ElementParameter> parameters=ComponentsUtils.getParametersFromForm(element,false,null,props,form);
  for (  ElementParameter parameter : parameters) {
    assertFalse(parameter.isReadOnly());
  }
  element.setReadOnly(true);
  parameters=ComponentsUtils.getParametersFromForm(element,false,null,props,form);
  for (  ElementParameter parameter : parameters) {
    assertTrue(parameter.isReadOnly());
  }
  IComponent component=ComponentsFactoryProvider.getInstance().get("String_Node_Str","String_Node_Str");
  INode node=new Node(component,new Process(new FakePropertyImpl()));
  checkParameterInitializationStatus(node,true);
  checkParameterInitializationStatus(node,false);
}

Fixed version (ground truth):
@Test public void testGetParametersFromForm(){
  ComponentProperties props=(ComponentProperties)new TestProperties("String_Node_Str").init();
  Form form=props.getForm(Form.MAIN);
  Element element=new FakeElement(form.getName());
  List<ElementParameter> parameters=ComponentsUtils.getParametersFromForm(element,false,null,props,form);
  for (  ElementParameter parameter : parameters) {
    assertFalse(parameter.isReadOnly());
  }
  element.setReadOnly(true);
  parameters=ComponentsUtils.getParametersFromForm(element,false,null,props,form);
  for (  ElementParameter parameter : parameters) {
    assertTrue(parameter.isReadOnly());
  }
  checkParameterInitializationStatus(true);
  checkParameterInitializationStatus(false);
}
Program: 118053
Project: 118053
Buggy source:
@Override protected boolean isPasswordParam(IElementParameter parameter){
  String value=String.valueOf(parameter.getValue());
  if (ContextParameterUtils.containContextVariables(value)) {
    return false;
  }
  return TalendQuoteUtils.isCommonString(value);
}

Fixed version (ground truth):
@Override protected boolean isPasswordParam(IElementParameter parameter){
  String value=String.valueOf(parameter.getValue());
  if (ContextParameterUtils.containContextVariables(value)) {
    return false;
  }
  return TalendQuoteUtils.isCommonString(value) || isInWizard();
}