nus-yam/ex-repair huggingface dataset:
Program: 118819
Project: 118819
Buggy source:
public void initTraceParamters(){
  List<Map<String,Object>> values=new ArrayList<Map<String,Object>>();
  IMetadataTable metadataTable=this.getMetadataTable();
  if (metadataTable != null) {
    for (    IMetadataColumn metaColumn : metadataTable.getListColumns()) {
      Map<String,Object> line=new HashMap<String,Object>();
      line.put(IConnection.TRACE_SCHEMA_COLUMN,metaColumn.getLabel());
      line.put(IConnection.TRACE_SCHEMA_COLUMN_CHECKED,true);
      line.put(IConnection.TRACE_SCHEMA_COLUMN_CONDITION,null);
      values.add(line);
    }
  }
  if (getElementParameter(EParameterName.TRACES_CONNECTION_FILTER.getName()) != null && values != null) {
    getElementParameter(EParameterName.TRACES_CONNECTION_FILTER.getName()).setValue(values);
  }
  if (trace != null) {
    this.trace.setPropertyValue(EParameterName.TRACES_SHOW_ENABLE.getName(),checkTraceShowEnable());
  }
}

Fixed version (ground truth):
public void initTraceParamters(){
  if (trace != null) {
    this.trace.setPropertyValue(EParameterName.TRACES_SHOW_ENABLE.getName(),checkTraceShowEnable());
  }
}
Program: 118820
Project: 118820
Buggy source:
/** 
 * judge the column checked or not DOC cmeng Comment method "isColumnChecked".
 * @param columnsCheckInfo
 * @param columnLabel
 * @return 1. columnLabel exists in columnsCheckInfo <br><li>true : columnLabel is checked<br> <li>false : columnLabel is not checked<br> 2. columnLabel not exists in columnsCheckInfo <br> <li>true
 */
private boolean isColumnChecked(List<Map<String,Object>> columnsCheckInfo,String columnLabel){
  Map<String,Object> foundLine=null;
  for (  Map<String,Object> line : columnsCheckInfo) {
    Object column=line.get(IConnection.TRACE_SCHEMA_COLUMN);
    if (columnLabel.equals(column)) {
      foundLine=line;
      break;
    }
  }
  if (foundLine != null) {
    return Boolean.valueOf(foundLine.get(IConnection.TRACE_SCHEMA_COLUMN_CHECKED).toString());
  }
  return true;
}

Fixed version (ground truth):
/** 
 * judge the column checked or not DOC cmeng Comment method "isColumnChecked".
 * @param columnsCheckInfo
 * @param columnLabel
 * @return 1. columnLabel exists in columnsCheckInfo <br><li>true : columnLabel is checked<br> <li>false : columnLabel is not checked<br> 2. columnLabel not exists in columnsCheckInfo <br> <li>true
 */
private boolean isColumnChecked(List<Map<String,Object>> columnsCheckInfo,String columnLabel){
  Map<String,Object> foundLine=null;
  for (  Map<String,Object> line : columnsCheckInfo) {
    Object column=line.get(IConnection.TRACE_SCHEMA_COLUMN);
    if (columnLabel.equals(column)) {
      foundLine=line;
      break;
    }
  }
  if (foundLine != null) {
    return Boolean.valueOf(foundLine.get(IConnection.TRACE_SCHEMA_COLUMN_CHECKED).toString());
  }
  return columnsCheckInfo == null || columnsCheckInfo.isEmpty();
}
Program: 118821
Project: 118821
Buggy source:
public Date getOrder(){
  GregorianCalendar gc=new GregorianCalendar(2010,12,20,12,0,0);
  return gc.getTime();
}

Fixed version (ground truth):
@Override public Date getOrder(){
  GregorianCalendar gc=new GregorianCalendar(2010,12,20,12,0,0);
  return gc.getTime();
}
Program: 118824
Project: 118824
Buggy source:
@Override public ERepositoryObjectType createRepositoryType(String type,String label,String alias,String folder,int ordinal){
  Constructor<ERepositoryObjectType> dynamicConstructor=getConstructor(ERepositoryObjectType.class,new Class[]{String.class,String.class,String.class,String.class,int.class,boolean.class,String.class,String[].class,boolean.class,String[].class,boolean[].class});
  ERepositoryObjectType typeObject=null;
  try {
    dynamicConstructor.setAccessible(true);
    typeObject=dynamicConstructor.newInstance(type,label,folder,type,ordinal,false,alias,new String[]{ERepositoryObjectType.PROD_DI},false,new String[0],new boolean[]{true});
  }
 catch (  Exception e) {
    ExceptionHandler.process(e);
  }
  return typeObject;
}

Fixed version (ground truth):
@Override public ERepositoryObjectType createRepositoryType(String type,String label,String alias,String folder,int ordinal){
  Constructor<ERepositoryObjectType> dynamicConstructor=getConstructor(ERepositoryObjectType.class,new Class[]{String.class,String.class,String.class,String.class,int.class,boolean.class,String.class,String[].class,boolean.class,String[].class,boolean[].class});
  ERepositoryObjectType typeObject=null;
  try {
    dynamicConstructor.setAccessible(true);
    typeObject=dynamicConstructor.newInstance(type,label,folder,type,ordinal,false,alias,new String[]{ERepositoryObjectType.PROD_DI},false,new String[0],new boolean[]{true});
    typeObject.setAParent(ERepositoryObjectType.METADATA);
  }
 catch (  Exception e) {
    ExceptionHandler.process(e);
  }
  return typeObject;
}
Program: 118825
Project: 118825
Buggy source:
public ComponentWizard getTopLevelComponentWizard(ComponentProperties properties,String location){
  List<ComponentWizard> componentWizards=getComponentWizardsForProperties(properties,location);
  for (  ComponentWizard componentWizard : componentWizards) {
    if (componentWizard.getDefinition().isTopLevel()) {
      return componentWizard;
    }
  }
  return null;
}

Fixed version (ground truth):
@Override public ComponentWizard getTopLevelComponentWizard(ComponentProperties properties,String location){
  List<ComponentWizard> componentWizards=getComponentWizardsForProperties(properties,location);
  for (  ComponentWizard componentWizard : componentWizards) {
    if (componentWizard.getDefinition().isTopLevel()) {
      return componentWizard;
    }
  }
  return null;
}
Program: 118830
Project: 118830
Buggy source:
private void updateProperty(Object newValue){
  NamedThing[] widgetProperties=widget.getProperties();
  NamedThing widgetProperty=widgetProperties[0];
  if (widgetProperty instanceof SchemaElement) {
    SchemaElement se=(SchemaElement)widgetProperty;
    SchemaElement originalElement=componentProperties.getProperty(se.getName());
    if (originalElement != null) {
      se=originalElement;
    }
    componentProperties.setValue(se,newValue);
  }
 else   if (widgetProperty instanceof PresentationItem) {
    PresentationItem pi=(PresentationItem)widgetProperty;
    Form formtoShow=pi.getFormtoShow();
    if (formtoShow != null) {
      fireShowDialogEvent(componentProperties.getForm(formtoShow.getName()));
    }
  }
}

Fixed version (ground truth):
private void updateProperty(Object newValue){
  NamedThing[] widgetProperties=widget.getProperties();
  NamedThing widgetProperty=widgetProperties[0];
  if (widgetProperty instanceof SchemaElement) {
    SchemaElement se=(SchemaElement)widgetProperty;
    if (componentProperties == null && newValue == null) {
      return;
    }
    SchemaElement originalElement=componentProperties.getProperty(se.getName());
    if (originalElement != null) {
      se=originalElement;
    }
    componentProperties.setValue(se,newValue);
  }
 else   if (widgetProperty instanceof PresentationItem) {
    PresentationItem pi=(PresentationItem)widgetProperty;
    Form formtoShow=pi.getFormtoShow();
    if (formtoShow != null) {
      fireShowDialogEvent(componentProperties.getForm(formtoShow.getName()));
    }
  }
}
Program: 118833
Project: 118833
Buggy source:
public void initTraceParamters(){
  List<Map<String,Object>> values=new ArrayList<Map<String,Object>>();
  IMetadataTable metadataTable=this.getMetadataTable();
  if (metadataTable != null) {
    for (    IMetadataColumn metaColumn : metadataTable.getListColumns()) {
      Map<String,Object> line=new HashMap<String,Object>();
      line.put(IConnection.TRACE_SCHEMA_COLUMN,metaColumn.getLabel());
      line.put(IConnection.TRACE_SCHEMA_COLUMN_CHECKED,true);
      line.put(IConnection.TRACE_SCHEMA_COLUMN_CONDITION,null);
      values.add(line);
    }
  }
  if (getElementParameter(EParameterName.TRACES_CONNECTION_FILTER.getName()) != null && values != null) {
    getElementParameter(EParameterName.TRACES_CONNECTION_FILTER.getName()).setValue(values);
  }
  if (trace != null) {
    this.trace.setPropertyValue(EParameterName.TRACES_SHOW_ENABLE.getName(),checkTraceShowEnable());
  }
}

Fixed version (ground truth):
public void initTraceParamters(){
  if (trace != null) {
    this.trace.setPropertyValue(EParameterName.TRACES_SHOW_ENABLE.getName(),checkTraceShowEnable());
  }
}
Program: 118834
Project: 118834
Buggy source:
/** 
 * judge the column checked or not DOC cmeng Comment method "isColumnChecked".
 * @param columnsCheckInfo
 * @param columnLabel
 * @return 1. columnLabel exists in columnsCheckInfo <br><li>true : columnLabel is checked<br> <li>false : columnLabel is not checked<br> 2. columnLabel not exists in columnsCheckInfo <br> <li>true
 */
private boolean isColumnChecked(List<Map<String,Object>> columnsCheckInfo,String columnLabel){
  Map<String,Object> foundLine=null;
  for (  Map<String,Object> line : columnsCheckInfo) {
    Object column=line.get(IConnection.TRACE_SCHEMA_COLUMN);
    if (columnLabel.equals(column)) {
      foundLine=line;
      break;
    }
  }
  if (foundLine != null) {
    return Boolean.valueOf(foundLine.get(IConnection.TRACE_SCHEMA_COLUMN_CHECKED).toString());
  }
  return true;
}

Fixed version (ground truth):
/** 
 * judge the column checked or not DOC cmeng Comment method "isColumnChecked".
 * @param columnsCheckInfo
 * @param columnLabel
 * @return 1. columnLabel exists in columnsCheckInfo <br><li>true : columnLabel is checked<br> <li>false : columnLabel is not checked<br> 2. columnLabel not exists in columnsCheckInfo <br> <li>true
 */
private boolean isColumnChecked(List<Map<String,Object>> columnsCheckInfo,String columnLabel){
  Map<String,Object> foundLine=null;
  for (  Map<String,Object> line : columnsCheckInfo) {
    Object column=line.get(IConnection.TRACE_SCHEMA_COLUMN);
    if (columnLabel.equals(column)) {
      foundLine=line;
      break;
    }
  }
  if (foundLine != null) {
    return Boolean.valueOf(foundLine.get(IConnection.TRACE_SCHEMA_COLUMN_CHECKED).toString());
  }
  return columnsCheckInfo == null || columnsCheckInfo.isEmpty();
}
Program: 118835
Project: 118835
Buggy source:
@Override public Object genericFromSerialized(String propertiesStr,String value){
  Deserialized fromSerialized=ComponentProperties.fromSerialized(propertiesStr);
  if (fromSerialized != null) {
    ComponentProperties componentProperties=fromSerialized.properties;
    SchemaElement ses=ComponentsUtils.getGenericSchemaElement(componentProperties,value);
    if (ses != null) {
      return componentProperties.getValue(ses);
    }
  }
  return null;
}

Fixed version (ground truth):
@Override public Object genericFromSerialized(String serialized,String name){
  Deserialized fromSerialized=ComponentProperties.fromSerialized(serialized);
  if (fromSerialized != null) {
    ComponentProperties componentProperties=fromSerialized.properties;
    return ComponentsUtils.getGenericPropertyValue(componentProperties,name);
  }
  return null;
}
Program: 118836
Project: 118836
Buggy source:
@Override public String genericToSerialized(IElementParameter param){
  if (param instanceof GenericElementParameter) {
    return ((GenericElementParameter)param).getComponentProperties().toSerialized();
  }
 else {
    ComponentProperties componentProperties=ComponentsUtils.getComponentProperties(getName());
    return componentProperties.toSerialized();
  }
}

Fixed version (ground truth):
@Override public String genericToSerialized(IElementParameter param){
  if (param instanceof GenericElementParameter) {
    return ((Node)((GenericElementParameter)param).getElement()).getComponentProperties().toSerialized();
  }
 else {
    ComponentProperties componentProperties=ComponentsUtils.getComponentProperties(getName());
    return componentProperties.toSerialized();
  }
}
Program: 118837
Project: 118837
Buggy source:
private Object getGenericRepositoryValue(GenericConnection connection,String value,IMetadataTable table){
  if (connection == null) {
    return null;
  }
  String compPropertiesStr=connection.getCompProperties();
  if (compPropertiesStr != null) {
    Deserialized fromSerialized=ComponentProperties.fromSerialized(compPropertiesStr);
    if (fromSerialized != null) {
      ComponentProperties componentProperties=fromSerialized.properties;
      SchemaElement ses=ComponentsUtils.getGenericSchemaElement(componentProperties,value);
      if (ses != null) {
        return componentProperties.getValue(ses);
      }
    }
  }
  return null;
}

Fixed version (ground truth):
private Object getGenericRepositoryValue(GenericConnection connection,String value,IMetadataTable table){
  if (connection == null) {
    return null;
  }
  String serialized=connection.getCompProperties();
  if (serialized != null) {
    Deserialized fromSerialized=ComponentProperties.fromSerialized(serialized);
    if (fromSerialized != null) {
      ComponentProperties componentProperties=fromSerialized.properties;
      return "String_Node_Str";
    }
  }
  return null;
}
Program: 118838
Project: 118838
Buggy source:
public void genericFromSerialized(IElementParameter param,String serialized){
}

Fixed version (ground truth):
public Object genericFromSerialized(String serialized,String name){
  return null;
}
Program: 118839
Project: 118839
Buggy source:
protected String[] addVMArguments(String[] strings){
  String[] vmargs=getJVMArgs();
  RunProcessContext runProcessContext=RunProcessPlugin.getDefault().getRunProcessContextManager().getActiveContext();
  if (runProcessContext != null) {
    ITargetExecutionConfig config=runProcessContext.getSelectedTargetExecutionConfig();
    if (config != null && config.getCommandlineServerConfig() == null) {
      if (config.isRemote()) {
        if (config.isUseJMX()) {
          String[] jmxArg=new String[]{"String_Node_Str","String_Node_Str" + config.getRemotePort(),"String_Node_Str","String_Node_Str"};
          String[] _vmargs=new String[vmargs.length + jmxArg.length];
          System.arraycopy(vmargs,0,_vmargs,0,vmargs.length);
          System.arraycopy(jmxArg,0,_vmargs,vmargs.length,jmxArg.length);
          vmargs=_vmargs;
        }
      }
    }
  }
  if (vmargs != null && vmargs.length > 0) {
    String[] lines=new String[strings.length + vmargs.length];
    System.arraycopy(strings,0,lines,0,1);
    System.arraycopy(vmargs,0,lines,1,vmargs.length);
    System.arraycopy(strings,1,lines,vmargs.length + 1,strings.length - 1);
    return lines;
  }
  return strings;
}

Fixed version (ground truth):
protected String[] addVMArguments(String[] strings){
  String[] vmargs=getJVMArgs();
  if (vmargs != null && vmargs.length > 0) {
    String[] lines=new String[strings.length + vmargs.length];
    System.arraycopy(strings,0,lines,0,1);
    System.arraycopy(vmargs,0,lines,1,vmargs.length);
    System.arraycopy(strings,1,lines,vmargs.length + 1,strings.length - 1);
    return lines;
  }
  return strings;
}
Program: 118840
Project: 118840
Buggy source:
@Override public String[] getJVMArgs(){
  String[] vmargs=getSettingsJVMArguments();
  if (!isExportConfig() && !isRunAsExport()) {
    String fileEncoding=System.getProperty("String_Node_Str");
    String encodingFromIni="String_Node_Str" + fileEncoding;
    List<String> asList=convertArgsToList(vmargs);
    boolean encodingSetInjob=false;
    for (    String arg : asList) {
      if (arg.startsWith("String_Node_Str") && fileEncoding != null) {
        arg=encodingFromIni;
        encodingSetInjob=true;
      }
    }
    if (!encodingSetInjob) {
      asList.add(encodingFromIni);
      vmargs=asList.toArray(new String[0]);
    }
  }
  return vmargs;
}

Fixed version (ground truth):
@Override public String[] getJVMArgs(){
  String[] vmargs=getSettingsJVMArguments();
  List<String> asList=convertArgsToList(vmargs);
  if (!isExportConfig() && !isRunAsExport()) {
    String fileEncoding=System.getProperty("String_Node_Str");
    String encodingFromIni="String_Node_Str" + fileEncoding;
    boolean encodingSetInjob=false;
    for (    String arg : asList) {
      if (arg.startsWith("String_Node_Str") && fileEncoding != null) {
        arg=encodingFromIni;
        encodingSetInjob=true;
      }
    }
    if (!encodingSetInjob) {
      asList.add(encodingFromIni);
    }
  }
  RunProcessContext runProcessContext=RunProcessPlugin.getDefault().getRunProcessContextManager().getActiveContext();
  if (runProcessContext != null) {
    ITargetExecutionConfig config=runProcessContext.getSelectedTargetExecutionConfig();
    if (config != null && config.getCommandlineServerConfig() == null) {
      if (config.isRemote()) {
        if (config.isUseJMX()) {
          asList.add("String_Node_Str");
          asList.add("String_Node_Str" + config.getRemotePort());
          asList.add("String_Node_Str");
          asList.add("String_Node_Str");
        }
      }
    }
  }
  vmargs=asList.toArray(new String[0]);
  return vmargs;
}
Program: 118841
Project: 118841
Buggy source:
private void addPropertyParameters(final List<ElementParameter> listParam,final INode node,boolean advanced){
  EComponentCategory category=advanced ? EComponentCategory.ADVANCED : EComponentCategory.BASIC;
  ComponentProperties props=null;
  if (node.getComponentProperties() == null) {
    props=ComponentsUtils.getComponentProperties(getName());
  }
 else {
    props=node.getComponentProperties();
  }
  Form form=props.getForm(advanced ? "String_Node_Str" : "String_Node_Str");
  listParam.addAll(ComponentsUtils.getParametersFromForm(node,category,form,null,null));
}

Fixed version (ground truth):
private void addPropertyParameters(final List<ElementParameter> listParam,final INode node,boolean advanced){
  EComponentCategory category=advanced ? EComponentCategory.ADVANCED : EComponentCategory.BASIC;
  ComponentProperties props=ComponentsUtils.getComponentProperties(getName());
  Form form=props.getForm(advanced ? "String_Node_Str" : "String_Node_Str");
  listParam.addAll(ComponentsUtils.getParametersFromForm(node,category,node.getComponentProperties(),form,null,null));
}
Program: 118843
Project: 118843
Buggy source:
public Node(IComponent component,IProcess2 process,String inOutUniqueName){
  this.oldcomponent=component;
  this.inOutUniqueName=inOutUniqueName;
  this.process=process;
  init(component);
  needlibrary=false;
}

Fixed version (ground truth):
public Node(INode oldNode,IProcess2 process){
  this.oldcomponent=oldNode.getComponent();
  this.componentProperties=oldNode.getComponentProperties();
  this.process=process;
  init(oldNode.getComponent());
  needlibrary=false;
}
Program: 118844
Project: 118844
Buggy source:
public void setComponentProperties(ComponentProperties props){
  componentProperties=props;
}

Fixed version (ground truth):
@Override public void setComponentProperties(ComponentProperties props){
  componentProperties=props;
}
Program: 118845
Project: 118845
Buggy source:
public ComponentProperties getComponentProperties(){
  return componentProperties;
}

Fixed version (ground truth):
@Override public ComponentProperties getComponentProperties(){
  return componentProperties;
}
Program: 118847
Project: 118847
Buggy source:
private void doImport(final String pluginId,final String zipPath,final String jobName){
  boolean alreadyImportDemoJob=OnBoardingResourceUtil.getPreferenceStore().getBoolean(OnBoardingResourceConstants.PREFERENCE_ALREADY_IMPORT_DEMO_JOB);
  if (alreadyImportDemoJob) {
    return;
  }
  if (pluginId == null || pluginId.isEmpty() || zipPath == null || zipPath.isEmpty() || jobName == null || jobName.isEmpty()) {
    return;
  }
  OnBoardingResourceUtil.getPreferenceStore().setValue(OnBoardingResourceConstants.PREFERENCE_ALREADY_IMPORT_DEMO_JOB,true);
  OnBoardingResourceUtil.savePreferenceStore();
  new Thread(new Runnable(){
    @Override public void run(){
      try {
        Bundle bundle=Platform.getBundle(pluginId);
        URL resourceURL=bundle.getEntry(zipPath);
        try {
          String demoZipPath=FileLocator.toFileURL(resourceURL).getPath();
          TalendImportUtil.importItems(demoZipPath,new NullProgressMonitor(),false,true,false);
          TalendImportUtil.openJob(jobName);
        }
 catch (        Throwable e) {
          CommonExceptionHandler.process(e);
        }
      }
 catch (      Throwable e) {
        CommonExceptionHandler.process(e);
      }
    }
  }
).start();
}

Fixed version (ground truth):
private void doImport(final String pluginId,final String zipPath,final String jobName){
synchronized (isAlreadyExecuteOpenJob) {
    if (isAlreadyExecuteOpenJob) {
      return;
    }
    isAlreadyExecuteOpenJob=true;
  }
  if (pluginId == null || pluginId.isEmpty() || zipPath == null || zipPath.isEmpty() || jobName == null || jobName.isEmpty()) {
    return;
  }
  new Thread(new Runnable(){
    @Override public synchronized void run(){
      try {
        boolean alreadyImportDemoJob=OnBoardingResourceUtil.getPreferenceStore().getBoolean(OnBoardingResourceConstants.PREFERENCE_ALREADY_IMPORT_DEMO_JOB);
        if (!alreadyImportDemoJob) {
          OnBoardingResourceUtil.getPreferenceStore().setValue(OnBoardingResourceConstants.PREFERENCE_ALREADY_IMPORT_DEMO_JOB,true);
          OnBoardingResourceUtil.savePreferenceStore();
          Bundle bundle=Platform.getBundle(pluginId);
          URL resourceURL=bundle.getEntry(zipPath);
          try {
            String demoZipPath=FileLocator.toFileURL(resourceURL).getPath();
            TalendImportUtil.importItems(demoZipPath,new NullProgressMonitor(),false,true,false);
          }
 catch (          Throwable e) {
            CommonExceptionHandler.process(e);
          }
        }
        TalendImportUtil.openJob(jobName);
      }
 catch (      Throwable e) {
        CommonExceptionHandler.process(e);
      }
    }
  }
).start();
}
Program: 118848
Project: 118848
Buggy source:
public static void openJob(String jobName){
  if (jobName == null) {
    return;
  }
  RepositoryObjectCache repObjectcache=ImportCacheHelper.getInstance().getRepObjectcache();
  try {
    repObjectcache.initialize(ERepositoryObjectType.PROCESS);
    List<IRepositoryViewObject> repViewObjectList=repObjectcache.getItemsFromRepository().get(ERepositoryObjectType.PROCESS);
    Iterator<IRepositoryViewObject> repoViewObjectIter=repViewObjectList.iterator();
    while (repoViewObjectIter.hasNext()) {
      final IRepositoryViewObject current=repoViewObjectIter.next();
      current.getPath();
      if (jobName.equals(current.getLabel())) {
        Display.getDefault().syncExec(new Runnable(){
          @Override public void run(){
            final List<IRepositoryNode> jobs=new ArrayList<IRepositoryNode>(1);
            IRepositoryNode repositoryNode=RepositorySeekerManager.getInstance().searchRepoViewNode(current.getId());
            jobs.add(repositoryNode);
            IRepositoryView repositoryView=RepositoryManagerHelper.findRepositoryView();
            repositoryView.getViewer().setSelection(new StructuredSelection(jobs));
            openJobs(jobs);
          }
        }
);
        break;
      }
    }
  }
 catch (  Throwable e) {
    CommonExceptionHandler.process(e);
  }
}

Fixed version (ground truth):
public static void openJob(String jobName){
  if (jobName == null) {
    return;
  }
  if (isJobAlreadyOpened(jobName)) {
    return;
  }
  try {
    List<IRepositoryViewObject> repViewObjectList=ProxyRepositoryFactory.getInstance().getAll(ERepositoryObjectType.PROCESS,false,false);
    Iterator<IRepositoryViewObject> repoViewObjectIter=repViewObjectList.iterator();
    while (repoViewObjectIter.hasNext()) {
      final IRepositoryViewObject current=repoViewObjectIter.next();
      if (jobName.equals(current.getLabel())) {
        Display.getDefault().syncExec(new Runnable(){
          @Override public void run(){
            final List<IRepositoryNode> jobs=new ArrayList<IRepositoryNode>(1);
            IRepositoryNode repositoryNode=RepositorySeekerManager.getInstance().searchRepoViewNode(current.getId());
            jobs.add(repositoryNode);
            IRepositoryView repositoryView=RepositoryManagerHelper.findRepositoryView();
            repositoryView.getViewer().setSelection(new StructuredSelection(jobs));
            openJobs(jobs);
          }
        }
);
        break;
      }
    }
  }
 catch (  Throwable e) {
    CommonExceptionHandler.process(e);
  }
}
Program: 118849
Project: 118849
Buggy source:
private void doImport(final String pluginId,final String zipPath,final String jobName){
synchronized (isAlreadyExecuteOpenJob) {
    if (isAlreadyExecuteOpenJob) {
      return;
    }
    isAlreadyExecuteOpenJob=true;
  }
  if (pluginId == null || pluginId.isEmpty() || zipPath == null || zipPath.isEmpty() || jobName == null || jobName.isEmpty()) {
    return;
  }
  new Thread(new Runnable(){
    @Override public synchronized void run(){
      try {
        boolean alreadyImportDemoJob=OnBoardingResourceUtil.getPreferenceStore().getBoolean(OnBoardingResourceConstants.PREFERENCE_ALREADY_IMPORT_DEMO_JOB);
        if (!alreadyImportDemoJob) {
          OnBoardingResourceUtil.getPreferenceStore().setValue(OnBoardingResourceConstants.PREFERENCE_ALREADY_IMPORT_DEMO_JOB,true);
          OnBoardingResourceUtil.savePreferenceStore();
          Bundle bundle=Platform.getBundle(pluginId);
          URL resourceURL=bundle.getEntry(zipPath);
          try {
            String demoZipPath=FileLocator.toFileURL(resourceURL).getPath();
            TalendImportUtil.importItems(demoZipPath,new NullProgressMonitor(),false,true,false);
          }
 catch (          Throwable e) {
            CommonExceptionHandler.process(e);
          }
        }
        TalendImportUtil.openJob(jobName);
      }
 catch (      Throwable e) {
        CommonExceptionHandler.process(e);
      }
    }
  }
).start();
}

Fixed version (ground truth):
private void doImport(final String pluginId,final String zipPath,final String jobName){
synchronized (isAlreadyExecuteOpenJob) {
    if (isAlreadyExecuteOpenJob) {
      return;
    }
    isAlreadyExecuteOpenJob=true;
  }
  if (pluginId == null || pluginId.isEmpty() || zipPath == null || zipPath.isEmpty() || jobName == null || jobName.isEmpty()) {
    return;
  }
  new Thread(new Runnable(){
    @Override public void run(){
      try {
        boolean alreadyImportDemoJob=OnBoardingResourceUtil.getPreferenceStore().getBoolean(OnBoardingResourceConstants.PREFERENCE_ALREADY_IMPORT_DEMO_JOB);
        if (!alreadyImportDemoJob) {
          OnBoardingResourceUtil.getPreferenceStore().setValue(OnBoardingResourceConstants.PREFERENCE_ALREADY_IMPORT_DEMO_JOB,true);
          OnBoardingResourceUtil.savePreferenceStore();
          Bundle bundle=Platform.getBundle(pluginId);
          URL resourceURL=bundle.getEntry(zipPath);
          try {
            String demoZipPath=FileLocator.toFileURL(resourceURL).getPath();
            TalendImportUtil.importItems(demoZipPath,new NullProgressMonitor(),false,true,false);
          }
 catch (          Throwable e) {
            CommonExceptionHandler.process(e);
          }
        }
        TalendImportUtil.openJob(jobName);
      }
 catch (      Throwable e) {
        CommonExceptionHandler.process(e);
      }
    }
  }
).start();
}
Program: 118850
Project: 118850
Buggy source:
private Object getGenericRepositoryValue(GenericConnection connection,String value,IMetadataTable table){
  if (connection == null) {
    return null;
  }
  String serialized=connection.getCompProperties();
  if (serialized != null) {
    Deserialized fromSerialized=ComponentProperties.fromSerialized(serialized);
    if (fromSerialized != null) {
      ComponentProperties componentProperties=fromSerialized.properties;
      String tableName=null;
      if (IComponentConstants.SCHEMA.equals(value)) {
        if (table != null) {
          tableName=table.getTableName();
          if (tableName != null) {
            return table.getId() + "String_Node_Str" + tableName;
          }
        }
      }
 else       if (IComponentConstants.MODULENAME.equals(value)) {
        if (ComponentsUtils.getGenericPropertyValue(componentProperties,value) != null) {
          return ComponentsUtils.getGenericPropertyValue(componentProperties,value);
        }
 else {
          return "String_Node_Str";
        }
      }
 else {
        return ComponentsUtils.getGenericPropertyValue(componentProperties,value);
      }
    }
  }
  return null;
}

Fixed version (ground truth):
private Object getGenericRepositoryValue(GenericConnection connection,String value,IMetadataTable table){
  if (connection == null) {
    return null;
  }
  String serialized=connection.getCompProperties();
  if (serialized != null) {
    Deserialized fromSerialized=ComponentProperties.fromSerialized(serialized);
    if (fromSerialized != null) {
      ComponentProperties componentProperties=fromSerialized.properties;
      String tableName=null;
      if (IComponentConstants.SCHEMA.equals(value)) {
        if (table != null) {
          tableName=table.getTableName();
          if (tableName != null) {
            return table.getId() + "String_Node_Str" + tableName;
          }
        }
      }
 else       if (IComponentConstants.MODULENAME.equals(value)) {
        if (ComponentsUtils.getGenericPropertyValue(componentProperties,value) != null) {
          return ComponentsUtils.getGenericPropertyValue(componentProperties,value);
        }
 else {
          return "String_Node_Str";
        }
      }
 else       if (IComponentConstants.QUERYMODE.equals(value)) {
        if (ComponentsUtils.getGenericPropertyValue(componentProperties,value) != null) {
          return ComponentsUtils.getGenericPropertyValue(componentProperties,value);
        }
 else {
          return IComponentConstants.QUERY_QUERY;
        }
      }
 else {
        return ComponentsUtils.getGenericPropertyValue(componentProperties,value);
      }
    }
  }
  return null;
}
Program: 118851
Project: 118851
Buggy source:
private Object getGenericRepositoryValue(GenericConnection connection,String value,IMetadataTable table){
  if (connection == null) {
    return null;
  }
  String serialized=connection.getCompProperties();
  if (serialized != null) {
    Deserialized fromSerialized=ComponentProperties.fromSerialized(serialized);
    if (fromSerialized != null) {
      ComponentProperties componentProperties=fromSerialized.properties;
      String tableName=null;
      if (IComponentConstants.SCHEMA.equals(value)) {
        if (table != null) {
          tableName=table.getTableName();
          if (tableName != null) {
            return table.getId() + "String_Node_Str" + tableName;
          }
        }
      }
 else       if (IComponentConstants.MODULENAME.equals(value)) {
        return tableName;
      }
 else {
        return ComponentsUtils.getGenericPropertyValue(componentProperties,value);
      }
    }
  }
  return null;
}

Fixed version (ground truth):
private Object getGenericRepositoryValue(GenericConnection connection,String value,IMetadataTable table){
  if (connection == null) {
    return null;
  }
  String serialized=connection.getCompProperties();
  if (serialized != null) {
    Deserialized fromSerialized=ComponentProperties.fromSerialized(serialized);
    if (fromSerialized != null) {
      ComponentProperties componentProperties=fromSerialized.properties;
      String tableName=null;
      if (IComponentConstants.SCHEMA.equals(value)) {
        if (table != null) {
          tableName=table.getTableName();
          if (tableName != null) {
            return table.getId() + "String_Node_Str" + tableName;
          }
        }
      }
 else       if (IComponentConstants.MODULENAME.equals(value)) {
        if (ComponentsUtils.getGenericPropertyValue(componentProperties,value) != null) {
          return ComponentsUtils.getGenericPropertyValue(componentProperties,value);
        }
 else {
          return "String_Node_Str";
        }
      }
 else {
        return ComponentsUtils.getGenericPropertyValue(componentProperties,value);
      }
    }
  }
  return null;
}
Program: 118852
Project: 118852
Buggy source:
public boolean isGenericType(ERepositoryObjectType repObjType){
  if (repObjType == null) {
    return false;
  }
  List<String> genericTypeNames=getGenericTypeNames();
  if (genericTypeNames != null && genericTypeNames.contains(repObjType.getType())) {
    return true;
  }
  return false;
}

Fixed version (ground truth):
@Override public boolean isGenericType(ERepositoryObjectType repObjType){
  if (repObjType == null) {
    return false;
  }
  List<String> genericTypeNames=getGenericTypeNames();
  if (genericTypeNames != null && genericTypeNames.contains(repObjType.getType())) {
    return true;
  }
  return false;
}
Program: 118853
Project: 118853
Buggy source:
private Object getGenericRepositoryValue(GenericConnection connection,String value,IMetadataTable table){
  if (connection == null) {
    return null;
  }
  String serialized=connection.getCompProperties();
  if (serialized != null) {
    Deserialized fromSerialized=ComponentProperties.fromSerialized(serialized);
    if (fromSerialized != null) {
      ComponentProperties componentProperties=fromSerialized.properties;
      return "String_Node_Str";
    }
  }
  return null;
}

Fixed version (ground truth):
private Object getGenericRepositoryValue(GenericConnection connection,String value,IMetadataTable table){
  if (connection == null) {
    return null;
  }
  String serialized=connection.getCompProperties();
  if (serialized != null) {
    Deserialized fromSerialized=ComponentProperties.fromSerialized(serialized);
    if (fromSerialized != null) {
      ComponentProperties componentProperties=fromSerialized.properties;
      String tableName=null;
      if (IComponentConstants.SCHEMA.equals(value)) {
        if (table != null) {
          tableName=table.getTableName();
          if (tableName != null) {
            return table.getId() + "String_Node_Str" + tableName;
          }
        }
      }
 else       if (IComponentConstants.MODULENAME.equals(value)) {
        return tableName;
      }
 else {
        return ComponentsUtils.getGenericPropertyValue(componentProperties,value);
      }
    }
  }
  return null;
}
Program: 118854
Project: 118854
Buggy source:
private void updateProperty(Object newValue){
  NamedThing[] widgetProperties=widget.getProperties();
  NamedThing widgetProperty=widgetProperties[0];
  if (widgetProperty instanceof SchemaElement) {
    SchemaElement se=(SchemaElement)widgetProperty;
    componentProperties.setValue(se,newValue);
  }
 else   if (widgetProperty instanceof PresentationItem) {
    PresentationItem pi=(PresentationItem)widgetProperty;
    Form formtoShow=pi.getFormtoShow();
    if (formtoShow != null) {
      fireShowDialogEvent(formtoShow);
    }
  }
}

Fixed version (ground truth):
private void updateProperty(Object newValue){
  NamedThing[] widgetProperties=widget.getProperties();
  NamedThing widgetProperty=widgetProperties[0];
  if (widgetProperty instanceof SchemaElement) {
    SchemaElement se=(SchemaElement)widgetProperty;
    SchemaElement originalElement=componentProperties.getProperty(se.getName());
    if (originalElement != null) {
      se=originalElement;
    }
    componentProperties.setValue(se,newValue);
  }
 else   if (widgetProperty instanceof PresentationItem) {
    PresentationItem pi=(PresentationItem)widgetProperty;
    Form formtoShow=pi.getFormtoShow();
    if (formtoShow != null) {
      fireShowDialogEvent(componentProperties.getForm(formtoShow.getName()));
    }
  }
}
Program: 118857
Project: 118857
Buggy source:
protected String[] addVMArguments(String[] strings){
  String[] vmargs=getJVMArgs();
  RunProcessContext runProcessContext=RunProcessPlugin.getDefault().getRunProcessContextManager().getActiveContext();
  if (runProcessContext != null) {
    ITargetExecutionConfig config=runProcessContext.getSelectedTargetExecutionConfig();
    if (config != null && config.getCommandlineServerConfig() == null) {
      if (config.isRemote()) {
        if (config.isUseJMX()) {
          String[] jmxArg=new String[]{"String_Node_Str","String_Node_Str" + config.getRemotePort(),"String_Node_Str","String_Node_Str"};
          String[] _vmargs=new String[vmargs.length + jmxArg.length];
          System.arraycopy(vmargs,0,_vmargs,0,vmargs.length);
          System.arraycopy(jmxArg,0,_vmargs,vmargs.length,jmxArg.length);
          vmargs=_vmargs;
        }
      }
    }
  }
  if (vmargs != null && vmargs.length > 0) {
    String[] lines=new String[strings.length + vmargs.length];
    System.arraycopy(strings,0,lines,0,1);
    System.arraycopy(vmargs,0,lines,1,vmargs.length);
    System.arraycopy(strings,1,lines,vmargs.length + 1,strings.length - 1);
    return lines;
  }
  return strings;
}

Fixed version (ground truth):
protected String[] addVMArguments(String[] strings){
  String[] vmargs=getJVMArgs();
  if (vmargs != null && vmargs.length > 0) {
    String[] lines=new String[strings.length + vmargs.length];
    System.arraycopy(strings,0,lines,0,1);
    System.arraycopy(vmargs,0,lines,1,vmargs.length);
    System.arraycopy(strings,1,lines,vmargs.length + 1,strings.length - 1);
    return lines;
  }
  return strings;
}
Program: 118858
Project: 118858
Buggy source:
@Override public String[] getJVMArgs(){
  String[] vmargs=getSettingsJVMArguments();
  if (!isExportConfig() && !isRunAsExport()) {
    String fileEncoding=System.getProperty("String_Node_Str");
    String encodingFromIni="String_Node_Str" + fileEncoding;
    List<String> asList=convertArgsToList(vmargs);
    boolean encodingSetInjob=false;
    for (    String arg : asList) {
      if (arg.startsWith("String_Node_Str") && fileEncoding != null) {
        arg=encodingFromIni;
        encodingSetInjob=true;
      }
    }
    if (!encodingSetInjob) {
      asList.add(encodingFromIni);
      vmargs=asList.toArray(new String[0]);
    }
  }
  return vmargs;
}

Fixed version (ground truth):
@Override public String[] getJVMArgs(){
  String[] vmargs=getSettingsJVMArguments();
  List<String> asList=convertArgsToList(vmargs);
  if (!isExportConfig() && !isRunAsExport()) {
    String fileEncoding=System.getProperty("String_Node_Str");
    String encodingFromIni="String_Node_Str" + fileEncoding;
    boolean encodingSetInjob=false;
    for (    String arg : asList) {
      if (arg.startsWith("String_Node_Str") && fileEncoding != null) {
        arg=encodingFromIni;
        encodingSetInjob=true;
      }
    }
    if (!encodingSetInjob) {
      asList.add(encodingFromIni);
    }
  }
  RunProcessContext runProcessContext=RunProcessPlugin.getDefault().getRunProcessContextManager().getActiveContext();
  if (runProcessContext != null) {
    ITargetExecutionConfig config=runProcessContext.getSelectedTargetExecutionConfig();
    if (config != null && config.getCommandlineServerConfig() == null) {
      if (config.isRemote()) {
        if (config.isUseJMX()) {
          asList.add("String_Node_Str");
          asList.add("String_Node_Str" + config.getRemotePort());
          asList.add("String_Node_Str");
          asList.add("String_Node_Str");
        }
      }
    }
  }
  vmargs=asList.toArray(new String[0]);
  return vmargs;
}
Program: 118859
Project: 118859
Buggy source:
private boolean isRequiredJREVersion(String version){
  if (version.equals(JavaCore.VERSION_1_5) || version.equals(JavaCore.VERSION_1_6)) {
    return true;
  }
  return false;
}

Fixed version (ground truth):
private boolean isRequiredJREVersion(String version){
  if (version.equals(JavaCore.VERSION_1_5) || version.equals(JavaCore.VERSION_1_6) || version.equals(JavaCore.VERSION_1_7)|| version.equals(JavaCore.VERSION_1_8)) {
    return true;
  }
  return false;
}
Program: 118860
Project: 118860
Buggy source:
protected Object createComponent(IComponent component,org.eclipse.swt.graphics.Point location){
  if (component == null) {
    return null;
  }
  Object newNode;
  Event e=new Event();
  e.x=location.x;
  e.y=location.y;
  e.button=1;
  e.count=1;
  e.stateMask=0;
  e.widget=graphicControl;
  MouseEvent mouseEvent=new MouseEvent(e);
  if (component.getName().toLowerCase().equals("String_Node_Str")) {
    newNode=new Note();
    CreateNoteCommand command=new CreateNoteCommand((Process)process,(Note)newNode,new Point(e.x,e.y));
    command.execute();
    return newNode;
  }
  TalendAssistantCreationTool creationTool=new TalendAssistantCreationTool(new PaletteComponentFactory(component));
  newNode=creationTool.getCreateRequest().getNewObject();
  if (!canCreateAt(newNode,new Point(e.x,e.y))) {
    return null;
  }
  creationTool.mouseMove(mouseEvent,graphicViewer);
  graphicViewer.getEditDomain().setActiveTool(creationTool);
  graphicViewer.getEditDomain().mouseMove(mouseEvent,graphicViewer);
  graphicViewer.getEditDomain().mouseDown(mouseEvent,graphicViewer);
  graphicViewer.getEditDomain().mouseUp(mouseEvent,graphicViewer);
  return newNode;
}

Fixed version (ground truth):
protected Object createComponent(IComponent component,org.eclipse.swt.graphics.Point location){
  if (component == null) {
    return null;
  }
  Object newNode;
  Event e=new Event();
  e.x=location.x;
  e.y=location.y;
  e.button=1;
  e.count=1;
  e.stateMask=0;
  e.widget=graphicControl;
  MouseEvent mouseEvent=new MouseEvent(e);
  TalendAssistantCreationTool creationTool=new TalendAssistantCreationTool(new PaletteComponentFactory(component));
  newNode=creationTool.getCreateRequest().getNewObject();
  if (!canCreateAt(newNode,new Point(e.x,e.y))) {
    return null;
  }
  creationTool.mouseMove(mouseEvent,graphicViewer);
  graphicViewer.getEditDomain().setActiveTool(creationTool);
  graphicViewer.getEditDomain().mouseMove(mouseEvent,graphicViewer);
  graphicViewer.getEditDomain().mouseDown(mouseEvent,graphicViewer);
  graphicViewer.getEditDomain().mouseUp(mouseEvent,graphicViewer);
  return newNode;
}
Program: 118862
Project: 118862
Buggy source:
@Override public Object getNewObject(){
  return new Node(component);
}

Fixed version (ground truth):
@Override public Object getNewObject(){
  String componentName=null;
  if (component != null) {
    componentName=component.getName();
  }
  if (componentName != null && componentName.toLowerCase().equals("String_Node_Str")) {
    return new Note();
  }
 else {
    return new Node(component);
  }
}
Program: 118864
Project: 118864
Buggy source:
@Override public String genericToSerialized(){
  ComponentProperties componentProperties=ComponentsUtils.getComponentProperties(getName());
  return componentProperties.toSerialized();
}

Fixed version (ground truth):
@Override public String genericToSerialized(IElementParameter param){
  if (param instanceof GenericElementParameter) {
    return ((GenericElementParameter)param).getComponentProperties().toSerialized();
  }
 else {
    ComponentProperties componentProperties=ComponentsUtils.getComponentProperties(getName());
    return componentProperties.toSerialized();
  }
}
Program: 118865
Project: 118865
Buggy source:
private void setGenericRepositoryValue(GenericConnection connection,INode node,IElementParameter param){
  if (connection != null) {
    IComponent component=node.getComponent();
    if (component != null && component instanceof AbstractComponent) {
      AbstractComponent comp=(AbstractComponent)component;
      String compProperties=comp.genericToSerialized(param);
      connection.setCompProperties(compProperties);
    }
  }
}

Fixed version (ground truth):
private void setGenericRepositoryValue(GenericConnection connection,INode node,IElementParameter param){
  if (connection != null) {
    IComponent component=node.getComponent();
    if (component != null && component instanceof AbstractComponent) {
      ((GenericElementParameter)param).getComponentProperties().fromSerialized(connection.getCompProperties());
    }
  }
}
Program: 118866
Project: 118866
Buggy source:
public Object genericFromSerialized(String propertiesStr,String value){
  return null;
}

Fixed version (ground truth):
public void genericFromSerialized(IElementParameter param,String serialized){
}
Program: 118867
Project: 118867
Buggy source:
public String genericToSerialized(){
  return null;
}

Fixed version (ground truth):
public String genericToSerialized(IElementParameter param){
  return null;
}
Program: 118868
Project: 118868
Buggy source:
@Override public void start(BundleContext context) throws Exception {
  super.start(context);
  Preferences preferences=JavaCore.getPlugin().getPluginPreferences();
  if (!isRequiredJREVersion(preferences.getString(JavaCore.COMPILER_COMPLIANCE))) {
    preferences.setValue(JavaCore.COMPILER_COMPLIANCE,JavaCore.VERSION_1_5);
  }
  if (!isRequiredJREVersion(preferences.getString(JavaCore.COMPILER_CODEGEN_TARGET_PLATFORM))) {
    preferences.setValue(JavaCore.COMPILER_CODEGEN_TARGET_PLATFORM,JavaCore.VERSION_1_5);
  }
  if (!isRequiredJREVersion(preferences.getString(JavaCore.COMPILER_SOURCE))) {
    preferences.setValue(JavaCore.COMPILER_SOURCE,JavaCore.VERSION_1_5);
  }
}

Fixed version (ground truth):
@Override public void start(BundleContext context) throws Exception {
  super.start(context);
}
Program: 118871
Project: 118871
Buggy source:
private Object getGenericRepositoryValue(GenericConnection connection,String value,IMetadataTable table){
  if (connection == null) {
    return null;
  }
  String compPropertiesStr=connection.getCompProperties();
  if (compPropertiesStr != null) {
    Deserialized fromSerialized=ComponentProperties.fromSerialized(compPropertiesStr);
    if (fromSerialized != null) {
      ComponentProperties componentProperties=fromSerialized.properties;
      SchemaElement ses=componentProperties.getProperty(value);
      if (ses != null) {
        return componentProperties.getValue(ses);
      }
    }
  }
  return null;
}

Fixed version (ground truth):
private Object getGenericRepositoryValue(GenericConnection connection,String value,IMetadataTable table){
  if (connection == null) {
    return null;
  }
  String compPropertiesStr=connection.getCompProperties();
  if (compPropertiesStr != null) {
    Deserialized fromSerialized=ComponentProperties.fromSerialized(compPropertiesStr);
    if (fromSerialized != null) {
      ComponentProperties componentProperties=fromSerialized.properties;
      return ComponentsUtils.getGenericRepositoryValue(componentProperties,value);
    }
  }
  return null;
}
Program: 118874
Project: 118874
Buggy source:
private void doImport(final String pluginId,final String zipPath,final String jobName){
  boolean alreadyImportDemoJob=OnBoardingResourceUtil.getPreferenceStore().getBoolean(OnBoardingResourceConstants.PREFERENCE_ALREADY_IMPORT_DEMO_JOB);
  if (alreadyImportDemoJob) {
    return;
  }
  if (pluginId == null || pluginId.isEmpty() || zipPath == null || zipPath.isEmpty() || jobName == null || jobName.isEmpty()) {
    return;
  }
  OnBoardingResourceUtil.getPreferenceStore().setValue(OnBoardingResourceConstants.PREFERENCE_ALREADY_IMPORT_DEMO_JOB,true);
  new Thread(new Runnable(){
    @Override public void run(){
      try {
        Bundle bundle=Platform.getBundle(pluginId);
        URL resourceURL=bundle.getEntry(zipPath);
        try {
          String demoZipPath=FileLocator.toFileURL(resourceURL).getPath();
          TalendImportUtil.importItems(demoZipPath,new NullProgressMonitor(),false,true,false);
          TalendImportUtil.openJob(jobName);
        }
 catch (        Throwable e) {
          CommonExceptionHandler.process(e);
        }
      }
 catch (      Throwable e) {
        CommonExceptionHandler.process(e);
      }
    }
  }
).start();
}

Fixed version (ground truth):
private void doImport(final String pluginId,final String zipPath,final String jobName){
  boolean alreadyImportDemoJob=OnBoardingResourceUtil.getPreferenceStore().getBoolean(OnBoardingResourceConstants.PREFERENCE_ALREADY_IMPORT_DEMO_JOB);
  if (alreadyImportDemoJob) {
    return;
  }
  if (pluginId == null || pluginId.isEmpty() || zipPath == null || zipPath.isEmpty() || jobName == null || jobName.isEmpty()) {
    return;
  }
  OnBoardingResourceUtil.getPreferenceStore().setValue(OnBoardingResourceConstants.PREFERENCE_ALREADY_IMPORT_DEMO_JOB,true);
  OnBoardingResourceUtil.savePreferenceStore();
  new Thread(new Runnable(){
    @Override public void run(){
      try {
        Bundle bundle=Platform.getBundle(pluginId);
        URL resourceURL=bundle.getEntry(zipPath);
        try {
          String demoZipPath=FileLocator.toFileURL(resourceURL).getPath();
          TalendImportUtil.importItems(demoZipPath,new NullProgressMonitor(),false,true,false);
          TalendImportUtil.openJob(jobName);
        }
 catch (        Throwable e) {
          CommonExceptionHandler.process(e);
        }
      }
 catch (      Throwable e) {
        CommonExceptionHandler.process(e);
      }
    }
  }
).start();
}