nus-yam/ex-repair huggingface dataset:
Program: 125309
Project: 125309
Buggy source:
/** 
 * DOC sgandon Comment method "createUnavailableModuleToInstall".
 * @param unavailableModuleName
 * @param contextMap, may be null
 * @return
 */
private ModuleToInstall createUnavailableModuleToInstall(String mvnUri,Map<String,List<ModuleNeeded>> contextMap){
  ModuleToInstall m=new ModuleToInstall();
  m.setDistribution(MavenConstants.DOWNLOAD_MANUAL);
  m.setMavenUri(mvnUri);
  setContext(m,mvnUri,contextMap);
  String name=null;
  String type=null;
  if (StringUtils.isNotEmpty(mvnUri)) {
    MavenArtifact parseMvnUrl=MavenUrlHelper.parseMvnUrl(mvnUri);
    String repoUrl=parseMvnUrl.getRepositoryUrl();
    if (StringUtils.isNotEmpty(repoUrl)) {
      type=parseMvnUrl.getType();
      if (type == null) {
        type=MavenConstants.TYPE_JAR;
      }
      m.resolveDistribution(type);
    }
  }
  if (contextMap != null) {
    final List<ModuleNeeded> neededModules=contextMap.get(mvnUri);
    name=neededModules.get(0).getModuleName();
    m.setName(name);
    m.setDescription(getFirstDescription(neededModules));
  }
  ExceptionHandler.log("String_Node_Str" + name + "String_Node_Str"+ mvnUri+ "String_Node_Str");
  if (CommonsPlugin.isDebugMode()) {
    appendToLogFile(mvnUri + "String_Node_Str");
  }
  return m;
}

Fixed version (ground truth):
/** 
 * DOC sgandon Comment method "createUnavailableModuleToInstall".
 * @param unavailableModuleName
 * @param contextMap, may be null
 * @return
 */
private ModuleToInstall createUnavailableModuleToInstall(String mvnUri,Map<String,List<ModuleNeeded>> contextMap){
  ModuleToInstall m=new ModuleToInstall();
  m.setMavenUri(mvnUri);
  setContext(m,mvnUri,contextMap);
  String name=null;
  boolean downloadManual=true;
  if (StringUtils.isNotEmpty(mvnUri)) {
    MavenArtifact parseMvnUrl=MavenUrlHelper.parseMvnUrl(mvnUri);
    String repoUrl=parseMvnUrl.getRepositoryUrl();
    if (StringUtils.isNotEmpty(repoUrl)) {
      downloadManual=false;
    }
  }
  if (downloadManual) {
    m.setDistribution(MavenConstants.DOWNLOAD_MANUAL);
  }
  if (contextMap != null) {
    final List<ModuleNeeded> neededModules=contextMap.get(mvnUri);
    name=neededModules.get(0).getModuleName();
    m.setName(name);
    m.setDescription(getFirstDescription(neededModules));
  }
  ExceptionHandler.log("String_Node_Str" + name + "String_Node_Str"+ mvnUri+ "String_Node_Str");
  if (CommonsPlugin.isDebugMode()) {
    appendToLogFile(mvnUri + "String_Node_Str");
  }
  return m;
}
Program: 125310
Project: 125310
Buggy source:
private void addModulesToCache(List<MavenArtifact> searchResults,Map<String,ModuleToInstall> theCache){
  for (  MavenArtifact artifact : searchResults) {
    String artifactId=artifact.getArtifactId();
    String packageName=artifact.getType();
    if (packageName == null) {
      packageName=MavenConstants.TYPE_JAR;
    }
    String version=artifact.getVersion();
    String description=artifact.getDescription();
    String license=artifact.getLicense();
    String license_url=artifact.getLicenseUrl();
    String packaging=artifact.getType();
    String url=null;
    if (artifact.getUrl() != null && !"String_Node_Str".equals(artifact.getUrl())) {
      url=artifact.getUrl();
    }
    ModuleToInstall m=new ModuleToInstall();
    m.setName(artifactId + "String_Node_Str" + packageName);
    String mvnUri=MavenUrlHelper.generateMvnUrl(artifact.getGroupId(),artifactId,version,packaging,artifact.getClassifier());
    m.setMavenUri(mvnUri);
    m.setLicenseType(license);
    m.setLicenseUrl(license_url);
    m.setDescription(description);
    m.setUrl_description(url);
    m.setUrl_download(url);
    String artifactType=artifact.getType();
    m.resolveDistribution(artifactType);
    if (theCache == localCache) {
      m.setFromCustomNexus(true);
    }
    theCache.put(mvnUri,m);
  }
}

Fixed version (ground truth):
private void addModulesToCache(List<MavenArtifact> searchResults,Map<String,ModuleToInstall> theCache){
  for (  MavenArtifact artifact : searchResults) {
    String artifactId=artifact.getArtifactId();
    String packageName=artifact.getType();
    if (packageName == null) {
      packageName=MavenConstants.TYPE_JAR;
    }
    String version=artifact.getVersion();
    String description=artifact.getDescription();
    String license=artifact.getLicense();
    String license_url=artifact.getLicenseUrl();
    String url=null;
    if (artifact.getUrl() != null && !"String_Node_Str".equals(artifact.getUrl())) {
      url=artifact.getUrl();
    }
    ModuleToInstall m=new ModuleToInstall();
    m.setName(artifactId + "String_Node_Str" + packageName);
    String mvnUri=MavenUrlHelper.generateMvnUrl(artifact.getGroupId(),artifactId,version,packageName,artifact.getClassifier());
    m.setMavenUri(mvnUri);
    m.setLicenseType(license);
    m.setLicenseUrl(license_url);
    m.setDescription(description);
    m.setUrl_description(url);
    m.setUrl_download(url);
    if (StringUtils.isEmpty(artifact.getType()) || MavenConstants.PACKAGING_POM.equals(artifact.getType())) {
      m.setDistribution(MavenConstants.DOWNLOAD_MANUAL);
    }
    if (theCache == localCache) {
      m.setFromCustomNexus(true);
    }
    theCache.put(mvnUri,m);
  }
}
Program: 125311
Project: 125311
Buggy source:
public static String addTypeForMavenUri(String uri,String moduleName){
  MavenArtifact parseMvnUrl=MavenUrlHelper.parseMvnUrl(uri,false);
  if (parseMvnUrl != null && parseMvnUrl.getType() == null) {
    if (moduleName != null && moduleName.lastIndexOf("String_Node_Str") != -1) {
      parseMvnUrl.setType(moduleName.substring(moduleName.lastIndexOf("String_Node_Str") + 1,moduleName.length()));
    }
 else {
      parseMvnUrl.setType(MavenConstants.TYPE_JAR);
    }
    uri=MavenUrlHelper.generateMvnUrl(parseMvnUrl.getGroupId(),parseMvnUrl.getArtifactId(),parseMvnUrl.getVersion(),parseMvnUrl.getType(),parseMvnUrl.getClassifier());
  }
  return uri;
}

Fixed version (ground truth):
public static String addTypeForMavenUri(String uri,String moduleName){
  MavenArtifact parseMvnUrl=MavenUrlHelper.parseMvnUrl(uri,false);
  if (parseMvnUrl != null && parseMvnUrl.getType() == null) {
    if (moduleName != null && moduleName.lastIndexOf("String_Node_Str") != -1) {
      parseMvnUrl.setType(moduleName.substring(moduleName.lastIndexOf("String_Node_Str") + 1,moduleName.length()));
    }
 else {
      parseMvnUrl.setType(MavenConstants.TYPE_JAR);
    }
    uri=MavenUrlHelper.generateMvnUrl(parseMvnUrl.getRepositoryUrl(),parseMvnUrl.getGroupId(),parseMvnUrl.getArtifactId(),parseMvnUrl.getVersion(),parseMvnUrl.getType(),parseMvnUrl.getClassifier());
  }
  return uri;
}
Program: 125312
Project: 125312
Buggy source:
public List<? extends INodeReturn> createReturns();

Fixed version (ground truth):
public List<? extends INodeReturn> createReturns(INode node);
Program: 125314
Project: 125314
Buggy source:
private ERepositoryObjectType getRepositoryType(IRepositoryNode node){
  IRepositoryNode testNode=node;
  while (testNode != null) {
    ERepositoryObjectType repObjType=testNode.getContentType();
    if (repObjType != null) {
      return repObjType;
    }
    testNode=testNode.getParent();
    if (testNode instanceof ProjectRepositoryNode) {
      break;
    }
  }
  return null;
}

Fixed version (ground truth):
public ERepositoryObjectType getRepositoryType(IRepositoryNode node){
  IRepositoryNode testNode=node;
  while (testNode != null) {
    ERepositoryObjectType repObjType=testNode.getContentType();
    if (repObjType != null) {
      return repObjType;
    }
    testNode=testNode.getParent();
    if (testNode instanceof ProjectRepositoryNode) {
      break;
    }
  }
  return null;
}
Program: 125315
Project: 125315
Buggy source:
@Override public RepositoryNode getRootRepositoryNode(ERepositoryObjectType type,boolean tryInit){
  RepositoryNode rootTypeNode=null;
  if (type != null) {
    String typeName=type.name();
    if (repositoryNodeMap.containsKey(typeName)) {
      rootTypeNode=repositoryNodeMap.get(typeName);
      if (tryInit) {
        initNode(rootTypeNode);
      }
    }
  }
  return rootTypeNode;
}

Fixed version (ground truth):
public RepositoryNode getRootRepositoryNode(IRepositoryNode repNode,boolean tryInit){
  RepositoryNode rootRepoNode=null;
  ERepositoryObjectType repObjType=getRepositoryType(repNode);
  if (repObjType != null) {
    rootRepoNode=getRootRepositoryNode(repObjType,tryInit);
  }
  return rootRepoNode;
}
Program: 125316
Project: 125316
Buggy source:
private void openMDMTableWizard(final MDMConnectionItem item,final MetadataTable metadataTable,final boolean forceReadOnly,final RepositoryNode node,final boolean creation){
  boolean skipStep=!creation;
  CreateConceptWizard conceptWizard=new CreateConceptWizard(PlatformUI.getWorkbench(),creation,getExistingNames(),node,item,metadataTable,readOnly);
  WizardDialog wizardDialog=new WizardDialog(PlatformUI.getWorkbench().getDisplay().getActiveShell(),conceptWizard);
  wizardDialog.setBlockOnOpen(true);
  wizardDialog.setPageSize(WIZARD_WIDTH,WIZARD_HEIGHT);
  wizardDialog.create();
  if (wizardDialog.open() == wizardDialog.OK) {
    IRepositoryView viewPart=getViewPart();
    if (viewPart != null) {
      viewPart.expand(node,true);
    }
    refresh(node);
  }
}

Fixed version (ground truth):
private void openMDMTableWizard(final MDMConnectionItem item,final MetadataTable metadataTable,final boolean forceReadOnly,final RepositoryNode node,final boolean creation){
  boolean skipStep=!creation;
  CreateConceptWizard conceptWizard=new CreateConceptWizard(PlatformUI.getWorkbench(),creation,getExistingNames(),node,item,metadataTable,readOnly);
  WizardDialog wizardDialog=new WizardDialog(PlatformUI.getWorkbench().getDisplay().getActiveShell(),conceptWizard);
  wizardDialog.setBlockOnOpen(true);
  wizardDialog.setPageSize(WIZARD_WIDTH,WIZARD_HEIGHT);
  wizardDialog.create();
  if (wizardDialog.open() == wizardDialog.OK) {
    IRepositoryView viewPart=getViewPart();
    if (viewPart != null) {
      viewPart.expand(node,true);
    }
    refresh(node);
  }
 else {
    IRepositoryView viewPart=getViewPart();
    if (viewPart != null) {
      RepositoryNode rootNode=ProjectRepositoryNode.getInstance().getRootRepositoryNode(node,false);
      if (rootNode != null) {
        rootNode.getChildren().clear();
        rootNode.setInitialized(false);
        viewPart.refresh(rootNode);
      }
    }
  }
}
Program: 125317
Project: 125317
Buggy source:
/** 
 * DOC mhelleboid Comment method "handleWizard".
 * @param node
 * @param wizardDialog
 */
protected void handleWizard(RepositoryNode node,WizardDialog wizardDialog,boolean notSetSize){
  if (!notSetSize) {
    wizardDialog.setPageSize(WIZARD_WIDTH,WIZARD_HEIGHT);
  }
  wizardDialog.create();
  if (wizardDialog.open() == wizardDialog.OK) {
    IRepositoryView viewPart=getViewPart();
    if (viewPart != null) {
      viewPart.expand(node,true);
    }
    refresh(node);
  }
}

Fixed version (ground truth):
/** 
 * DOC mhelleboid Comment method "handleWizard".
 * @param node
 * @param wizardDialog
 */
protected void handleWizard(RepositoryNode node,WizardDialog wizardDialog,boolean notSetSize){
  if (!notSetSize) {
    wizardDialog.setPageSize(WIZARD_WIDTH,WIZARD_HEIGHT);
  }
  wizardDialog.create();
  if (wizardDialog.open() == wizardDialog.OK) {
    IRepositoryView viewPart=getViewPart();
    if (viewPart != null) {
      viewPart.expand(node,true);
    }
    refresh(node);
  }
 else {
    IRepositoryView viewPart=getViewPart();
    if (viewPart != null) {
      RepositoryNode rootNode=ProjectRepositoryNode.getInstance().getRootRepositoryNode(node,false);
      if (rootNode != null) {
        rootNode.getChildren().clear();
        rootNode.setInitialized(false);
        viewPart.refresh(rootNode);
      }
    }
  }
}
Program: 125319
Project: 125319
Buggy source:
@Override public void renameFolder(ERepositoryObjectType type,IPath path,String label) throws PersistenceException {
  if (hasLockedItems(type,path)) {
    throw new PersistenceException(Messages.getString("String_Node_Str"));
  }
  this.repositoryFactoryFromProvider.renameFolder(type,path,label);
  if (type == ERepositoryObjectType.PROCESS) {
    fireRepositoryPropertyChange(ERepositoryActionName.FOLDER_RENAME.getName(),path,label);
  }
  if (type == ERepositoryObjectType.JOBLET) {
    fireRepositoryPropertyChange(ERepositoryActionName.JOBLET_FOLDER_RENAME.getName(),path,label);
  }
  this.repositoryFactoryFromProvider.updateItemsPath(type,path.removeLastSegments(1).append(label));
}

Fixed version (ground truth):
@Override public void renameFolder(ERepositoryObjectType type,IPath path,String label) throws PersistenceException {
  if (hasLockedItems(type,path)) {
    throw new PersistenceException(Messages.getString("String_Node_Str"));
  }
  this.repositoryFactoryFromProvider.renameFolder(type,path,label);
  if (GlobalServiceRegister.getDefault().isServiceRegistered(IDocumentationService.class)) {
    IDocumentationService service=(IDocumentationService)GlobalServiceRegister.getDefault().getService(IDocumentationService.class);
    IGenerateAllDocumentation docGenerator=service.getDocGeneratorByProcessType(type);
    if (docGenerator != null) {
      fireRepositoryPropertyChange(ERepositoryActionName.FOLDER_RENAME.getName(),path,new Object[]{label,type});
    }
  }
  this.repositoryFactoryFromProvider.updateItemsPath(type,path.removeLastSegments(1).append(label));
}
Program: 125320
Project: 125320
Buggy source:
public Set<IComponent> getComponents();

Fixed version (ground truth):
/** 
 * Only use it if you want to modify(add/remove) the list! and don't forget to use synchronize block!!<br/> Use readComponents() if you only want to iterate/read the list.
 */
public Set<IComponent> getComponents();
Program: 125322
Project: 125322
Buggy source:
public static void removeComponentImage(String name){
  if (name != null && !name.equals("String_Node_Str")) {
    for (    IComponent component : ComponentsFactoryProvider.getInstance().getComponents()) {
      if (name.equals(component.getName())) {
        String md5Desc16=MD5.getMD5(component.getIcon16().getImageData().data);
        Image image=componentCachedImages.get(md5Desc16);
        if (image != null && !image.isDisposed()) {
          image.dispose();
        }
        componentCachedImages.remove(md5Desc16);
        String md5Desc24=MD5.getMD5(component.getIcon24().getImageData().data);
        image=componentCachedImages.get(md5Desc24);
        if (image != null && !image.isDisposed()) {
          image.dispose();
        }
        componentCachedImages.remove(md5Desc24);
        String md5Desc32=MD5.getMD5(component.getIcon32().getImageData().data);
        image=componentCachedImages.get(md5Desc32);
        if (image != null && !image.isDisposed()) {
          image.dispose();
        }
        componentCachedImages.remove(md5Desc32);
      }
    }
  }
}

Fixed version (ground truth):
public static void removeComponentImage(String name){
  if (name != null && !name.equals("String_Node_Str")) {
    for (    IComponent component : ComponentsFactoryProvider.getInstance().readComponents()) {
      if (name.equals(component.getName())) {
        String md5Desc16=MD5.getMD5(component.getIcon16().getImageData().data);
        Image image=componentCachedImages.get(md5Desc16);
        if (image != null && !image.isDisposed()) {
          image.dispose();
        }
        componentCachedImages.remove(md5Desc16);
        String md5Desc24=MD5.getMD5(component.getIcon24().getImageData().data);
        image=componentCachedImages.get(md5Desc24);
        if (image != null && !image.isDisposed()) {
          image.dispose();
        }
        componentCachedImages.remove(md5Desc24);
        String md5Desc32=MD5.getMD5(component.getIcon32().getImageData().data);
        image=componentCachedImages.get(md5Desc32);
        if (image != null && !image.isDisposed()) {
          image.dispose();
        }
        componentCachedImages.remove(md5Desc32);
      }
    }
  }
}
Program: 125323
Project: 125323
Buggy source:
public void init(IWorkbenchWindow window){
}

Fixed version (ground truth):
@Override public void init(IWorkbenchWindow window){
}
Program: 125324
Project: 125324
Buggy source:
public void selectionChanged(IAction action,ISelection selection){
}

Fixed version (ground truth):
@Override public void selectionChanged(IAction action,ISelection selection){
}
Program: 125325
Project: 125325
Buggy source:
public void run(IAction action){
  run();
}

Fixed version (ground truth):
@Override public void run(IAction action){
  run();
}
Program: 125326
Project: 125326
Buggy source:
public void dispose(){
}

Fixed version (ground truth):
@Override public void dispose(){
}
Program: 125329
Project: 125329
Buggy source:
@Override public List<IComponent> filterNeededComponents(Item item,RepositoryNode seletetedNode,ERepositoryObjectType type){
  List<IComponent> neededComponents=new ArrayList<IComponent>();
  if (!(item instanceof ExampleDemoConnectionItem)) {
    return neededComponents;
  }
  IComponentsService service=(IComponentsService)GlobalServiceRegister.getDefault().getService(IComponentsService.class);
  Set<IComponent> components=service.getComponentsFactory().getComponents();
  for (  IComponent component : components) {
    if ("String_Node_Str".equals(component.getName())) {
      neededComponents.add(component);
    }
  }
  return neededComponents;
}

Fixed version (ground truth):
@Override public List<IComponent> filterNeededComponents(Item item,RepositoryNode seletetedNode,ERepositoryObjectType type){
  List<IComponent> neededComponents=new ArrayList<IComponent>();
  if (!(item instanceof ExampleDemoConnectionItem)) {
    return neededComponents;
  }
  IComponentsService service=(IComponentsService)GlobalServiceRegister.getDefault().getService(IComponentsService.class);
  Collection<IComponent> components=service.getComponentsFactory().readComponents();
  for (  IComponent component : components) {
    if ("String_Node_Str".equals(component.getName())) {
      neededComponents.add(component);
    }
  }
  return neededComponents;
}
Program: 125332
Project: 125332
Buggy source:
/** 
 * Iterates over a folder files (not recursive) and delete those for which the filename matches the condition given in the   {@link Function}
 * @param folder the folder in which to delete the files
 * @param func a {@link Function} that will be used to filter on the files to delete, according to their name
 */
public static void deleteFiles(File folder,Function<String,Boolean> func){
  if (folder != null && func != null) {
    if (folder.exists()) {
      FilenameFilter filter=new FilenameFilter(){
        @Override public boolean accept(        File _dir,        String name){
          return func.apply(name);
        }
      }
;
      List<File> filesToRemove=getAllFilesFromFolder(folder,filter);
      for (      File fileToRemove : filesToRemove) {
        fileToRemove.delete();
      }
    }
  }
}

Fixed version (ground truth):
/** 
 * Iterates over a folder files (not recursive) and delete those for which the filename matches the condition given in the   {@link Function}
 * @param folder the folder in which to delete the files
 * @param func a {@link Function} that will be used to filter on the files to delete, according to their name
 */
public static void deleteFiles(final File folder,final Function<String,Boolean> func){
  if (folder != null && func != null) {
    if (folder.exists()) {
      FilenameFilter filter=new FilenameFilter(){
        @Override public boolean accept(        File _dir,        String name){
          return func.apply(name);
        }
      }
;
      List<File> filesToRemove=getAllFilesFromFolder(folder,filter);
      for (      File fileToRemove : filesToRemove) {
        fileToRemove.delete();
      }
    }
  }
}
Program: 125333
Project: 125333
Buggy source:
@Override public boolean isRelation(IEditorInput editorInput,String repoNodeId){
  RepositoryNode relationNode=getRelationNode(editorInput);
  if (relationNode != null && repoNodeId != null && repoNodeId.equals(relationNode.getId())) {
    return true;
  }
  return false;
}

Fixed version (ground truth):
@Override public boolean isRelation(IEditorInput editorInput,String repoNodeId,String version){
  RepositoryNode relationNode=getRelationNode(editorInput);
  boolean isRelation=false;
  if (relationNode != null && repoNodeId != null && repoNodeId.equals(relationNode.getId())) {
    isRelation=true;
    if (version != null && relationNode.getObject() != null) {
      isRelation=isRelation && version.equals(relationNode.getObject().getVersion());
    }
  }
  return isRelation;
}
Program: 125334
Project: 125334
Buggy source:
@Override public boolean isRelation(IEditorInput editorInput,String repoNodeId){
  if (repoNodeId != null && isValidEditorInput(editorInput)) {
    Item item=((IRepositoryEditorInput)editorInput).getItem();
    if (item != null) {
      return repoNodeId.equals(item.getProperty().getId());
    }
  }
  return false;
}

Fixed version (ground truth):
@Override public boolean isRelation(IEditorInput editorInput,String repoNodeId,String version){
  boolean isRelation=false;
  if (repoNodeId != null && isValidEditorInput(editorInput)) {
    Item item=((IRepositoryEditorInput)editorInput).getItem();
    if (item != null) {
      isRelation=repoNodeId.equals(item.getProperty().getId());
      if (version != null) {
        isRelation=isRelation && version.equals(item.getProperty().getVersion());
      }
    }
  }
  return isRelation;
}
Program: 125335
Project: 125335
Buggy source:
boolean isRelation(IEditorInput editorInput,String repoNodeId);

Fixed version (ground truth):
boolean isRelation(IEditorInput editorInput,String repoNodeId,String version);
Program: 125336
Project: 125336
Buggy source:
public void reloadJobletProcess(INode node);

Fixed version (ground truth):
public void reloadJobletProcess(INode node,boolean forceReload);
Program: 125341
Project: 125341
Buggy source:
@Override public void activateEditor(IWorkbenchPage aPage,IStructuredSelection aSelection){
  Object firstElement=aSelection.getFirstElement();
  if (firstElement == null || !(firstElement instanceof RepositoryNode)) {
    return;
  }
  RepositoryNode repNode=(RepositoryNode)firstElement;
  IRepositoryViewObject object=repNode.getObject();
  if (object == null) {
    return;
  }
  final String repId=object.getId();
  if (repId == null) {
    return;
  }
  IEditorReference[] editorReferences=aPage.getEditorReferences();
  if (editorReferences == null) {
    return;
  }
  for (  IEditorReference er : editorReferences) {
    try {
      IEditorInput editorInput=er.getEditorInput();
      if (isRelation(editorInput,repId)) {
        IEditorPart editor=null;
        if ((editor=aPage.findEditor(editorInput)) != null) {
          aPage.bringToTop(editor);
        }
        break;
      }
    }
 catch (    PartInitException e) {
      ExceptionHandler.process(e);
    }
  }
}

Fixed version (ground truth):
@Override public void activateEditor(IWorkbenchPage aPage,IStructuredSelection aSelection){
  Object firstElement=aSelection.getFirstElement();
  if (firstElement == null || !(firstElement instanceof RepositoryNode)) {
    return;
  }
  RepositoryNode repNode=(RepositoryNode)firstElement;
  IRepositoryViewObject object=repNode.getObject();
  if (object == null) {
    return;
  }
  final String repId=object.getId();
  final String version=object.getVersion();
  if (repId == null || version == null) {
    return;
  }
  IEditorReference[] editorReferences=aPage.getEditorReferences();
  if (editorReferences == null) {
    return;
  }
  for (  IEditorReference er : editorReferences) {
    try {
      IEditorInput editorInput=er.getEditorInput();
      if (isRelation(editorInput,repId,version)) {
        IEditorPart editor=null;
        if ((editor=aPage.findEditor(editorInput)) != null) {
          aPage.bringToTop(editor);
        }
        break;
      }
    }
 catch (    PartInitException e) {
      ExceptionHandler.process(e);
    }
  }
}
Program: 125342
Project: 125342
Buggy source:
protected boolean isRelation(IEditorInput editorInput,String repoNodeId){
  IRepoViewLinker[] allRepoViewLinkers=getRepoViewLinkerReader().getAllRepoViewLinkers();
  for (  IRepoViewLinker linker : allRepoViewLinkers) {
    if (linker.isRelation(editorInput,repoNodeId)) {
      return true;
    }
  }
  return false;
}

Fixed version (ground truth):
protected boolean isRelation(IEditorInput editorInput,String repoNodeId,String version){
  IRepoViewLinker[] allRepoViewLinkers=getRepoViewLinkerReader().getAllRepoViewLinkers();
  for (  IRepoViewLinker linker : allRepoViewLinkers) {
    if (linker.isRelation(editorInput,repoNodeId,version)) {
      return true;
    }
  }
  return false;
}
Program: 125343
Project: 125343
Buggy source:
protected TdTable mockTable4ReturnColumns4reCreateConnection() throws Exception {
  TdTable tdTable=mock(TdTable.class);
  when(tdTable.getName()).thenReturn("String_Node_Str");
  ResourceSet resourceSet=new ResourceSetImpl();
  Resource resource=resourceSet.createResource(URI.createFileURI("String_Node_Str"));
  if (resource != null) {
    resource.getContents().add(tdTable);
  }
  return tdTable;
}

Fixed version (ground truth):
protected TdTable mockTable4ReturnColumns4reCreateConnection() throws Exception {
  TdTable tdTable=mock(TdTable.class);
  when(tdTable.getName()).thenReturn("String_Node_Str");
  ResourceSet resourceSet=new ResourceSetImpl();
  Resource resource=resourceSet.createResource(URI.createFileURI("String_Node_Str"));
  if (resource != null) {
    resource.getContents().add(tdTable);
  }
  when(tdTable.getFeature()).thenReturn(new BasicEList<Feature>());
  return tdTable;
}
Program: 125344
Project: 125344
Buggy source:
@Test(expected=FileNotFoundException.class) public void test_downloadFile_siteFile_notExisted() throws Exception {
  try {
    RemoteComponentsTransportTestClass transport=new RemoteComponentsTransportTestClass(tmpFolder);
    final URI uri=URI.create("String_Node_Str");
    transport.downloadFile(null,uri,"String_Node_Str");
  }
 catch (  UnknownHostException e) {
  }
}

Fixed version (ground truth):
@Test public void test_downloadFile_siteFile_notExisted() throws Exception {
  try {
    RemoteComponentsTransportTestClass transport=new RemoteComponentsTransportTestClass(tmpFolder);
    final URI uri=URI.create("String_Node_Str");
    transport.downloadFile(null,uri,"String_Node_Str");
    Assert.assertTrue("String_Node_Str",false);
  }
 catch (  UnknownHostException e) {
  }
catch (  FileNotFoundException e) {
    Assert.assertTrue("String_Node_Str",true);
  }
}
Program: 125351
Project: 125351
Buggy source:
public static String getProjectJavaVersion(){
  String javaVersion=CoreRuntimePlugin.getInstance().getProjectPreferenceManager().getValue(PROJECT_JAVA_VERSION_KEY);
  if (javaVersion != null && javaVersion.trim().equals("String_Node_Str")) {
    javaVersion=null;
  }
  return javaVersion;
}

Fixed version (ground truth):
public static String getProjectJavaVersion(boolean reload){
  String javaVersion=CoreRuntimePlugin.getInstance().getProjectPreferenceManager(reload).getValue(PROJECT_JAVA_VERSION_KEY);
  if (javaVersion != null && javaVersion.trim().equals("String_Node_Str")) {
    javaVersion=null;
  }
  return javaVersion;
}
Program: 125352
Project: 125352
Buggy source:
public ProjectPreferenceManager getProjectPreferenceManager(){
  if (projectPreferenceManager == null) {
    projectPreferenceManager=new ProjectPreferenceManager(PLUGIN_ID);
  }
  return projectPreferenceManager;
}

Fixed version (ground truth):
public ProjectPreferenceManager getProjectPreferenceManager(boolean reload){
  if (projectPreferenceManager == null || reload) {
    projectPreferenceManager=new ProjectPreferenceManager(PLUGIN_ID);
  }
  return projectPreferenceManager;
}
Program: 125354
Project: 125354
Buggy source:
public boolean isAvailable(){
  if (nexusURL == null || nexusURL.isEmpty()) {
    return false;
  }
  return NexusServerUtils.checkConnectionStatus(nexusURL,nexusUser,new String(nexusPass));
}

Fixed version (ground truth):
public boolean isAvailable(){
  if (getNexusURL() == null || getNexusURL().isEmpty()) {
    return false;
  }
  return NexusServerUtils.checkConnectionStatus(getNexusURL(),getNexusUser(),getNexusPassStr());
}
Program: 125355
Project: 125355
Buggy source:
@Override protected PasswordAuthentication getPasswordAuthentication(){
  return new PasswordAuthentication(nexusUser,nexusPass);
}

Fixed version (ground truth):
@Override protected PasswordAuthentication getPasswordAuthentication(){
  final String nexusPassStr=getNexusPassStr();
  return new PasswordAuthentication(getNexusUser(),nexusPassStr != null ? nexusPassStr.toCharArray() : new char[0]);
}
Program: 125356
Project: 125356
Buggy source:
public Document downloadXMLDocument(IProgressMonitor monitor,MavenArtifact artifact) throws Exception {
  if (monitor == null) {
    monitor=new NullProgressMonitor();
  }
  if (artifact == null) {
    return null;
  }
  final String reletivePath=PomUtil.getArtifactPath(artifact);
  if (reletivePath == null) {
    return null;
  }
  final Authenticator defaultAuthenticator=NetworkUtil.getDefaultAuthenticator();
  BufferedInputStream bis=null;
  HttpURLConnection httpURLConnection=null;
  try {
    if (StringUtils.isNotEmpty(nexusUser)) {
      Authenticator.setDefault(new Authenticator(){
        @Override protected PasswordAuthentication getPasswordAuthentication(){
          return new PasswordAuthentication(nexusUser,nexusPass);
        }
      }
);
    }
    httpURLConnection=NexusServerUtils.getHttpURLConnection(nexusURL,reletivePath,nexusUser,new String(nexusPass));
    if (monitor.isCanceled()) {
      throw new OperationCanceledException();
    }
    InputStream inputStream=httpURLConnection.getInputStream();
    bis=new BufferedInputStream(inputStream);
    SAXReader saxReader=new SAXReader();
    Document document=saxReader.read(bis);
    return document;
  }
  finally {
    if (bis != null) {
      try {
        bis.close();
      }
 catch (      IOException e) {
        ExceptionHandler.process(e);
      }
    }
    if (httpURLConnection != null) {
      httpURLConnection.disconnect();
    }
    Authenticator.setDefault(defaultAuthenticator);
  }
}

Fixed version (ground truth):
public Document downloadXMLDocument(IProgressMonitor monitor,MavenArtifact artifact) throws Exception {
  if (monitor == null) {
    monitor=new NullProgressMonitor();
  }
  if (artifact == null) {
    return null;
  }
  final String reletivePath=PomUtil.getArtifactPath(artifact);
  if (reletivePath == null) {
    return null;
  }
  final Authenticator defaultAuthenticator=NetworkUtil.getDefaultAuthenticator();
  BufferedInputStream bis=null;
  HttpURLConnection httpURLConnection=null;
  try {
    setAuthenticator();
    httpURLConnection=NexusServerUtils.getHttpURLConnection(getNexusURL(),reletivePath,getNexusUser(),getNexusPassStr());
    if (monitor.isCanceled()) {
      throw new OperationCanceledException();
    }
    InputStream inputStream=httpURLConnection.getInputStream();
    bis=new BufferedInputStream(inputStream);
    SAXReader saxReader=new SAXReader();
    Document document=saxReader.read(bis);
    return document;
  }
  finally {
    if (bis != null) {
      try {
        bis.close();
      }
 catch (      IOException e) {
        ExceptionHandler.process(e);
      }
    }
    if (httpURLConnection != null) {
      httpURLConnection.disconnect();
    }
    Authenticator.setDefault(defaultAuthenticator);
  }
}
Program: 125357
Project: 125357
Buggy source:
@Override public void logOnProject(Project project) throws PersistenceException, LoginException {
  if (getRepositoryContext().getUser().getLogin() == null) {
    throw new LoginException(Messages.getString("String_Node_Str"));
  }
  if (project.getEmfProject().eResource() == null) {
    IProject iProject=ResourceUtils.getProject(getRepositoryContext().getProject());
    project.setEmfProject(xmiResourceManager.loadProject(iProject));
  }
  super.logOnProject(project);
  if (!doesLoggedUserExist()) {
    createUser(project);
  }
  IProject project2=ResourceUtils.getProject(project);
  createFolders(project2,project.getEmfProject());
  synchronizeRoutines(project2);
  synchronizeSqlpatterns(project2);
  synchronizeFolders(project2,project.getEmfProject());
  changeRoutinesPackage(project);
  saveProject(project);
}

Fixed version (ground truth):
@Override public void logOnProject(Project project) throws PersistenceException, LoginException {
  if (getRepositoryContext().getUser().getLogin() == null) {
    throw new LoginException(Messages.getString("String_Node_Str"));
  }
  if (project.getEmfProject().eResource() == null) {
    IProject iProject=ResourceUtils.getProject(getRepositoryContext().getProject());
    project.setEmfProject(xmiResourceManager.loadProject(iProject));
  }
  super.logOnProject(project);
  if (!doesLoggedUserExist() && project.isMainProject()) {
    createUser(project);
  }
  IProject project2=ResourceUtils.getProject(project);
  createFolders(project2,project.getEmfProject());
  synchronizeRoutines(project2);
  synchronizeSqlpatterns(project2);
  synchronizeFolders(project2,project.getEmfProject());
  changeRoutinesPackage(project);
  saveProject(project);
}
Program: 125358
Project: 125358
Buggy source:
/** 
 * @param string : Passes the strings you want to search.
 * @param start : Must be an integer. The position in the string where you want to start counting.
 * @param length : Must be an integer greater than 0. The number of characters you want SUBSTR to return
 * @return {example} SUBSTR("This is a test.",1,5) #his i
 */
public static String SUBSTR(String string,int start,Integer length){
  if (string == null) {
    return null;
  }
  if (start > string.length()) {
    return "String_Node_Str";
  }
  if (start > 0) {
    start--;
  }
 else   if (start < 0) {
    start=string.length() + start;
    if (start < 0) {
      start=0;
    }
  }
  String result;
  if (length == null || (length + start) > string.length()) {
    result=string.substring(start);
  }
 else   if (length <= 0) {
    return "String_Node_Str";
  }
 else {
    result=string.substring(start,length + start);
  }
  return result;
}

Fixed version (ground truth):
/** 
 * @param string : Passes the strings you want to search.
 * @param start : Must be an integer. The position in the string where you want to start counting.
 * @param length : Must be an integer greater than 0. The number of characters you want SUBSTR to return
 * @return {example} SUBSTR("This is a test.",1,5) #his i
 */
public static String SUBSTR(String string,int start,Integer length){
  if (isVacant(string)) {
    return null;
  }
  if (start > string.length()) {
    return "String_Node_Str";
  }
  if (start > 0) {
    start--;
  }
 else   if (start < 0) {
    start=string.length() + start;
    if (start < 0) {
      start=0;
    }
  }
  String result;
  if (length == null || (length + start) > string.length()) {
    result=string.substring(start);
  }
 else   if (length <= 0) {
    return "String_Node_Str";
  }
 else {
    result=string.substring(start,length + start);
  }
  return result;
}
Program: 125359
Project: 125359
Buggy source:
private static String dateFormatConvert(String format){
  format=format.replaceAll("String_Node_Str","String_Node_Str");
  format=format.replaceAll("String_Node_Str","String_Node_Str");
  format=format.replaceAll("String_Node_Str","String_Node_Str");
  format=format.replaceAll("String_Node_Str","String_Node_Str");
  format=format.replaceAll("String_Node_Str","String_Node_Str");
  format=format.replaceAll("String_Node_Str","String_Node_Str");
  format=format.replaceAll("String_Node_Str","String_Node_Str");
  format=format.replaceAll("String_Node_Str","String_Node_Str");
  format=format.replaceAll("String_Node_Str","String_Node_Str");
  format=format.replaceAll("String_Node_Str","String_Node_Str");
  format=format.replaceAll("String_Node_Str","String_Node_Str");
  format=format.replaceAll("String_Node_Str","String_Node_Str");
  format=format.replaceAll("String_Node_Str","String_Node_Str");
  format=format.replaceAll("String_Node_Str","String_Node_Str");
  format=format.replaceAll("String_Node_Str","String_Node_Str");
  return format;
}

Fixed version (ground truth):
private static String dateFormatConvert(String format){
  format=format.replaceAll("String_Node_Str","String_Node_Str");
  format=format.replaceAll("String_Node_Str","String_Node_Str");
  format=format.replaceAll("String_Node_Str","String_Node_Str");
  format=format.replaceAll("String_Node_Str","String_Node_Str");
  format=format.replaceAll("String_Node_Str","String_Node_Str");
  format=format.replaceAll("String_Node_Str","String_Node_Str");
  format=format.replaceAll("String_Node_Str","String_Node_Str");
  format=format.replaceAll("String_Node_Str","String_Node_Str");
  format=format.replaceAll("String_Node_Str","String_Node_Str");
  format=format.replaceAll("String_Node_Str","String_Node_Str");
  format=format.replaceAll("String_Node_Str","String_Node_Str");
  format=format.replaceAll("String_Node_Str","String_Node_Str");
  format=format.replaceAll("String_Node_Str","String_Node_Str");
  format=format.replaceAll("String_Node_Str","String_Node_Str");
  format=format.replaceAll("String_Node_Str","String_Node_Str");
  format=format.replaceAll("String_Node_Str","String_Node_Str");
  return format;
}
Program: 125360
Project: 125360
Buggy source:
/** 
 * @param date  Passes the values you want to change
 * @param format A format string specifying the portion of the date value you want to change.For example, 'mm'.
 * @param amount An integer value specifying the amount of years, months, days, hours, and so on by which you want to change the date value.
 * @return Date  NULL if a null value is passed as an argument to the function.
 * @throws ParseException {example} ADD_TO_DATE(new Date(1464576463231l), "HH",2) #Mon May 30 12:47:43 CST 2016
 */
public static Date ADD_TO_DATE(Date date,String format,int amount) throws ParseException {
  if (date == null || format == null) {
    return null;
  }
  if (format != null) {
    format=dateFormatADD_TO_DATE(format);
  }
  Long time=date.getTime();
  Calendar calender=Calendar.getInstance();
  calender.setTime(date);
switch (format) {
case "String_Node_Str":
    calender.add(Calendar.YEAR,amount);
  time=calender.getTimeInMillis();
break;
case "String_Node_Str":
calender.add(Calendar.MONTH,amount);
time=calender.getTimeInMillis();
break;
case "String_Node_Str":
time+=(long)amount * (long)86400000;
break;
case "String_Node_Str":
time+=(long)amount * (long)3600000;
break;
case "String_Node_Str":
time+=(long)amount * (long)60000;
break;
case "String_Node_Str":
time+=(long)amount * (long)1000;
break;
case "String_Node_Str":
time+=amount;
break;
case "String_Node_Str":
time+=amount / 1000;
break;
case "String_Node_Str":
time+=amount / 1000000;
break;
default :
throw new ParseException("String_Node_Str",0);
}
return new Date(time);
}

Fixed version (ground truth):
/** 
 * @param date  Passes the values you want to change
 * @param format A format string specifying the portion of the date value you want to change.For example, 'mm'.
 * @param amount An integer value specifying the amount of years, months, days, hours, and so on by which you want to change the date value.
 * @return Date  NULL if a null value is passed as an argument to the function.
 * @throws ParseException {example} ADD_TO_DATE(new Date(1464576463231l), "HH",2) #Mon May 30 12:47:43 CST 2016
 */
public static Date ADD_TO_DATE(Date date,String format,int amount) throws ParseException {
  if (date == null || StringHandling.isVacant(format)) {
    return null;
  }
  if (format != null) {
    format=dateFormatADD_TO_DATE(format);
  }
  Long time=date.getTime();
  Calendar calender=Calendar.getInstance();
  calender.setTime(date);
switch (format) {
case "String_Node_Str":
    calender.add(Calendar.YEAR,amount);
  time=calender.getTimeInMillis();
break;
case "String_Node_Str":
calender.add(Calendar.MONTH,amount);
time=calender.getTimeInMillis();
break;
case "String_Node_Str":
time+=(long)amount * (long)86400000;
break;
case "String_Node_Str":
time+=(long)amount * (long)3600000;
break;
case "String_Node_Str":
time+=(long)amount * (long)60000;
break;
case "String_Node_Str":
time+=(long)amount * (long)1000;
break;
case "String_Node_Str":
time+=amount;
break;
case "String_Node_Str":
time+=amount / 1000;
break;
case "String_Node_Str":
time+=amount / 1000000;
break;
default :
throw new ParseException("String_Node_Str",0);
}
return new Date(time);
}
Program: 125363
Project: 125363
Buggy source:
/** 
 * item with same name.
 */
protected boolean isSameName(ImportItem importItem,IRepositoryViewObject repObject){
  final Property property=importItem.getProperty();
  String currentLabel=null;
  if (repObject instanceof RepositoryViewObject) {
    RepositoryViewObject object=(RepositoryViewObject)repObject;
    currentLabel=object.getTechnicalLabel();
  }
 else {
    currentLabel=repObject.getLabel();
  }
  if ((property.getLabel() != null && property.getLabel().equalsIgnoreCase(currentLabel))) {
    ERepositoryObjectType importType=importItem.getRepositoryType();
    ERepositoryObjectType repType=repObject.getRepositoryObjectType();
    if (importType != null && importType.equals(repType) && importType.isAllowMultiName()) {
      String importPath=importItem.getProperty().getItem().getState().getPath();
      String repPath=repObject.getPath();
      if (importPath == null && repPath == null || importPath != null && importPath.equals(repPath)) {
        return true;
      }
      return false;
    }
    return true;
  }
  return false;
}

Fixed version (ground truth):
/** 
 * item with same name.
 */
protected boolean isSameName(ImportItem importItem,IRepositoryViewObject repObject){
  final Property property=importItem.getProperty();
  String currentLabel=null;
  if (repObject instanceof RepositoryViewObject) {
    RepositoryViewObject object=(RepositoryViewObject)repObject;
    currentLabel=object.getTechnicalLabel();
  }
 else {
    currentLabel=repObject.getLabel();
  }
  boolean isSameLabel=property.getLabel().equalsIgnoreCase(currentLabel);
  boolean nameIsOK=WorkspaceUtils.checkNameIsOK(property.getLabel());
  if (!nameIsOK && !isSameLabel) {
    isSameLabel=getPropertyLabel(property.getLabel()).equalsIgnoreCase(currentLabel);
  }
  if ((property.getLabel() != null && isSameLabel)) {
    ERepositoryObjectType importType=importItem.getRepositoryType();
    ERepositoryObjectType repType=repObject.getRepositoryObjectType();
    if (importType != null && importType.equals(repType) && importType.isAllowMultiName()) {
      String importPath=importItem.getProperty().getItem().getState().getPath();
      String repPath=repObject.getPath();
      if (importPath == null && repPath == null || importPath != null && importPath.equals(repPath)) {
        return true;
      }
      return false;
    }
    return true;
  }
  return false;
}
Program: 125364
Project: 125364
Buggy source:
private void setPomForHDLight(IProgressMonitor monitor){
  if (ProcessUtils.jarNeedToContainsContext()) {
    try {
      Model model=MODEL_MANAGER.readMavenModel(getPomFile());
      List<Plugin> plugins=new ArrayList<Plugin>(model.getBuild().getPlugins());
      out:       for (      Plugin plugin : plugins) {
        if (plugin.getArtifactId().equals("String_Node_Str")) {
          List<PluginExecution> pluginExecutions=plugin.getExecutions();
          for (          PluginExecution pluginExecution : pluginExecutions) {
            if (pluginExecution.getId().equals("String_Node_Str")) {
              Object object=pluginExecution.getConfiguration();
              if (object instanceof Xpp3Dom) {
                Xpp3Dom configNode=(Xpp3Dom)object;
                Xpp3Dom includesNode=configNode.getChild("String_Node_Str");
                Xpp3Dom includeNode=new Xpp3Dom("String_Node_Str");
                includeNode.setValue("String_Node_Str");
                includesNode.addChild(includeNode);
                model.getBuild().setPlugins(plugins);
                PomUtil.savePom(monitor,model,getPomFile());
                break out;
              }
            }
          }
        }
      }
    }
 catch (    Exception e) {
      ExceptionHandler.process(e);
    }
  }
}

Fixed version (ground truth):
private void setPomForHDLight(IProgressMonitor monitor){
  if (ProcessUtils.jarNeedsToContainContext()) {
    try {
      Model model=MODEL_MANAGER.readMavenModel(getPomFile());
      List<Plugin> plugins=new ArrayList<Plugin>(model.getBuild().getPlugins());
      out:       for (      Plugin plugin : plugins) {
        if (plugin.getArtifactId().equals("String_Node_Str")) {
          List<PluginExecution> pluginExecutions=plugin.getExecutions();
          for (          PluginExecution pluginExecution : pluginExecutions) {
            if (pluginExecution.getId().equals("String_Node_Str")) {
              Object object=pluginExecution.getConfiguration();
              if (object instanceof Xpp3Dom) {
                Xpp3Dom configNode=(Xpp3Dom)object;
                Xpp3Dom includesNode=configNode.getChild("String_Node_Str");
                Xpp3Dom includeNode=new Xpp3Dom("String_Node_Str");
                includeNode.setValue("String_Node_Str");
                includesNode.addChild(includeNode);
                model.getBuild().setPlugins(plugins);
                PomUtil.savePom(monitor,model,getPomFile());
                break out;
              }
            }
          }
        }
      }
    }
 catch (    Exception e) {
      ExceptionHandler.process(e);
    }
  }
}
Program: 125365
Project: 125365
Buggy source:
protected boolean checkCompilationError(IFile codeFile,MigrateItemInfo itemInfo) throws Exception {
  boolean hasCompilationError=false;
  if (codeFile != null && codeFile.exists()) {
    IMarker[] markers=codeFile.findMarkers(IMarker.PROBLEM,true,IResource.DEPTH_ONE);
    for (    IMarker marker : markers) {
      Integer lineNr=(Integer)marker.getAttribute(IMarker.LINE_NUMBER);
      String message=(String)marker.getAttribute(IMarker.MESSAGE);
      Integer severity=(Integer)marker.getAttribute(IMarker.SEVERITY);
      if (severity == IMarker.SEVERITY_ERROR) {
        String errorMessage=message + "String_Node_Str" + lineNr;
        Problem problem=new Problem();
        problem.setCategory(ProblemCategory.COMPILATION_ERROR);
        problem.setProblem(errorMessage);
        itemInfo.getProblems().add(problem);
        hasCompilationError=true;
      }
    }
  }
 else {
    throw new Exception("String_Node_Str" + codeFile);
  }
  return hasCompilationError;
}

Fixed version (ground truth):
protected boolean checkCompilationError(IFile codeFile,MigrateItemInfo itemInfo) throws Exception {
  boolean hasCompilationError=false;
  if (codeFile != null && codeFile.exists()) {
    IMarker[] markers=codeFile.findMarkers(IMarker.PROBLEM,true,IResource.DEPTH_ONE);
    for (    IMarker marker : markers) {
      Integer lineNr=(Integer)marker.getAttribute(IMarker.LINE_NUMBER);
      String message=(String)marker.getAttribute(IMarker.MESSAGE);
      Integer severity=(Integer)marker.getAttribute(IMarker.SEVERITY);
      if (severity == IMarker.SEVERITY_ERROR) {
        String errorMessage=message + "String_Node_Str" + lineNr;
        Problem problem=new Problem();
        problem.setCategory(ProblemCategory.COMPILATION_ERROR);
        problem.setProblem(errorMessage);
        itemInfo.getProblems().add(problem);
        hasCompilationError=true;
      }
    }
  }
 else {
    Problem problem=new Problem();
    problem.setCategory(ProblemCategory.COMPILATION_ERROR);
    problem.setProblem("String_Node_Str" + codeFile);
    itemInfo.getProblems().add(problem);
    hasCompilationError=true;
  }
  return hasCompilationError;
}