nus-yam/ex-repair huggingface dataset:
Program: 128656
Project: 128656
Buggy source:
@Override public void checkInstalledLibraries(){
  Set<String> existLibraries=repositoryBundleService.list();
  List<ModuleNeeded> toCheck=ModulesNeededProvider.getModulesNeeded();
  for (  ModuleNeeded current : toCheck) {
    if (existLibraries.contains(current.getModuleName())) {
      current.setStatus(ELibraryInstallStatus.INSTALLED);
    }
 else {
      current.setStatus(ELibraryInstallStatus.NOT_INSTALLED);
    }
  }
  List<String> modulesNeededNames=ModulesNeededProvider.getModulesNeededNames();
  ModulesNeededProvider.getUnUsedModules().clear();
  for (  String library : existLibraries) {
    if (!modulesNeededNames.contains(library)) {
      ModulesNeededProvider.userAddUnusedModules("String_Node_Str",library);
    }
  }
}

Fixed version (ground truth):
@Override public void checkInstalledLibraries(){
  Set<String> existLibraries=repositoryBundleService.list();
  Set<String> existDllLibraries=repositoryBundleService.listAllDllFiles();
  existLibraries.addAll(existDllLibraries);
  List<ModuleNeeded> toCheck=ModulesNeededProvider.getModulesNeeded();
  for (  ModuleNeeded current : toCheck) {
    if (existLibraries.contains(current.getModuleName())) {
      current.setStatus(ELibraryInstallStatus.INSTALLED);
    }
 else {
      current.setStatus(ELibraryInstallStatus.NOT_INSTALLED);
    }
  }
  List<String> modulesNeededNames=ModulesNeededProvider.getModulesNeededNames();
  ModulesNeededProvider.getUnUsedModules().clear();
  for (  String library : existLibraries) {
    if (!modulesNeededNames.contains(library)) {
      ModulesNeededProvider.userAddUnusedModules("String_Node_Str",library);
    }
  }
}
Program: 128657
Project: 128657
Buggy source:
/** 
 * the source should be a string wrapped in chars[ ] which stands for it is a collection
 * @param stSrc
 * @param fieldSep
 * @return
 */
public static List<String> parseTo_List(String strSrc,String fieldSep){
  if (strSrc == null) {
    return null;
  }
  List<String> list=new ArrayList<String>();
  if ((fieldSep == null || "String_Node_Str".equals(fieldSep)) || !(strSrc.startsWith("String_Node_Str") && strSrc.endsWith("String_Node_Str"))) {
    list.add(strSrc);
    return list;
  }
  return Arrays.asList(strSrc.split(fieldSep,-1));
}

Fixed version (ground truth):
/** 
 * the source should be a string wrapped in chars[ ] which stands for it is a collection
 * @param stSrc
 * @param fieldSep
 * @return
 */
public static List<String> parseTo_List(final String strSrc,String fieldSep){
  if (strSrc == null) {
    return null;
  }
  List<String> list=new ArrayList<String>();
  if ((fieldSep == null || "String_Node_Str".equals(fieldSep)) || !(strSrc.startsWith("String_Node_Str") && strSrc.endsWith("String_Node_Str"))) {
    list.add(strSrc);
    return list;
  }
  String strTemp=strSrc.substring(1,strSrc.length() - 1);
  for (  String str : strTemp.split(fieldSep,-1)) {
    list.add(str);
  }
  return list;
}
Program: 128658
Project: 128658
Buggy source:
protected void doSave(OutputStream outputStream,Map options) throws IOException {
  ByteArray byteArray=(ByteArray)getContents().get(0);
  BufferedOutputStream bufferedOutputStream=new BufferedOutputStream(outputStream);
  bufferedOutputStream.write(byteArray.getInnerContent());
  bufferedOutputStream.flush();
}

Fixed version (ground truth):
protected void doSave(OutputStream outputStream,Map options) throws IOException {
  if (getContents().size() > 0) {
    ByteArray byteArray=(ByteArray)getContents().get(0);
    BufferedOutputStream bufferedOutputStream=new BufferedOutputStream(outputStream);
    bufferedOutputStream.write(byteArray.getInnerContent());
    bufferedOutputStream.flush();
  }
}
Program: 128659
Project: 128659
Buggy source:
@Override public void checkInstalledLibraries(){
  Set<String> existLibraries=repositoryBundleService.list();
  List<ModuleNeeded> toCheck=ModulesNeededProvider.getModulesNeeded();
  for (  ModuleNeeded current : toCheck) {
    if (existLibraries.contains(current.getModuleName())) {
      current.setStatus(ELibraryInstallStatus.INSTALLED);
    }
 else {
      current.setStatus(ELibraryInstallStatus.NOT_INSTALLED);
    }
  }
  List<String> modulesNeededNames=ModulesNeededProvider.getModulesNeededNames();
  ModulesNeededProvider.getUnUsedModules().clear();
  for (  String library : existLibraries) {
    if (!modulesNeededNames.contains(library)) {
      ModulesNeededProvider.userAddUnusedModules("String_Node_Str",library);
    }
  }
}

Fixed version (ground truth):
@Override public void checkInstalledLibraries(){
  Set<String> existLibraries=repositoryBundleService.list();
  Set<String> existDllLibraries=repositoryBundleService.listAllDllFiles();
  existLibraries.addAll(existDllLibraries);
  List<ModuleNeeded> toCheck=ModulesNeededProvider.getModulesNeeded();
  for (  ModuleNeeded current : toCheck) {
    if (existLibraries.contains(current.getModuleName())) {
      current.setStatus(ELibraryInstallStatus.INSTALLED);
    }
 else {
      current.setStatus(ELibraryInstallStatus.NOT_INSTALLED);
    }
  }
  List<String> modulesNeededNames=ModulesNeededProvider.getModulesNeededNames();
  ModulesNeededProvider.getUnUsedModules().clear();
  for (  String library : existLibraries) {
    if (!modulesNeededNames.contains(library)) {
      ModulesNeededProvider.userAddUnusedModules("String_Node_Str",library);
    }
  }
}
Program: 128660
Project: 128660
Buggy source:
/** 
 * DOC wliu <p> get the original connection instance className of the pamameter:conn.\n It is used to help optimize the code to avoid 65535 bytes in a method </p> Notice: It is used in tFileOutputMSXML in TDI-21606
 * @param connection
 * @return
 */
public static String getPrivateConnClassName(final IConnection conn){
  INode node=conn.getSource();
  if (node.isSubProcessStart() || !(NodeUtil.isDataAutoPropagated(node))) {
    return conn.getUniqueName();
  }
  List<? extends IConnection> listInConns=node.getIncomingConnections();
  IConnection inConnTemp=null;
  if (listInConns != null && listInConns.size() > 0) {
    inConnTemp=listInConns.get(0);
    if (inConnTemp.getLineStyle().hasConnectionCategory(IConnectionCategory.DATA)) {
      return getPrivateConnClassName(inConnTemp);
    }
  }
  return "String_Node_Str";
}

Fixed version (ground truth):
/** 
 * DOC wliu <p> get the original connection instance className of the pamameter:conn.\n It is used to help optimize the code to avoid 65535 bytes in a method </p> Notice: It is used in tFileOutputMSXML in TDI-21606
 * @param connection
 * @return
 */
public static String getPrivateConnClassName(final IConnection conn){
  INode node=conn.getSource();
  if (node.isSubProcessStart() || !(NodeUtil.isDataAutoPropagated(node))) {
    return conn.getUniqueName();
  }
  List<? extends IConnection> listInConns=node.getIncomingConnections();
  IConnection inConnTemp=null;
  if (listInConns != null && listInConns.size() > 0) {
    inConnTemp=listInConns.get(0);
    if (inConnTemp.getLineStyle().hasConnectionCategory(IConnectionCategory.DATA)) {
      return getPrivateConnClassName(inConnTemp);
    }
    if (inConnTemp.getLineStyle().hasConnectionCategory(IConnectionCategory.USE_ITERATE)) {
      return conn.getUniqueName();
    }
  }
  return "String_Node_Str";
}
Program: 128661
Project: 128661
Buggy source:
/** 
 * DOC wliu <p> get the original connection instance className of the pamameter:conn.\n It is used to help optimize the code to avoid 65535 bytes in a method </p> Notice: It is used in tFileOutputMSXML in TDI-21606
 * @param connection
 * @return
 */
public static String getPrivateConnClassName(final IConnection conn){
  INode node=conn.getSource();
  if (node.isSubProcessStart() || !(NodeUtil.isDataAutoPropagated(node))) {
    return conn.getUniqueName();
  }
  List<? extends IConnection> listInConns=node.getIncomingConnections();
  IConnection inConnTemp=null;
  if (listInConns != null && listInConns.size() > 0) {
    inConnTemp=listInConns.get(0);
    if (inConnTemp.getLineStyle().hasConnectionCategory(IConnectionCategory.DATA)) {
      return getPrivateConnClassName(inConnTemp);
    }
    if (inConnTemp.getLineStyle().hasConnectionCategory(IConnectionCategory.USE_ITERATE)) {
      return conn.getUniqueName();
    }
  }
  return "String_Node_Str";
}

Fixed version (ground truth):
/** 
 * DOC wliu <p> get the original connection instance className of the pamameter:conn.\n It is used to help optimize the code to avoid 65535 bytes in a method </p> Notice: It is used in tFileOutputMSXML in TDI-21606
 * @param connection
 * @return
 */
public static String getPrivateConnClassName(final IConnection conn){
  if (conn.getLineStyle().hasConnectionCategory(IConnectionCategory.DATA)) {
    INode node=conn.getSource();
    if (node.isSubProcessStart() || !(NodeUtil.isDataAutoPropagated(node))) {
      return conn.getUniqueName();
    }
    List<? extends IConnection> listInConns=node.getIncomingConnections();
    if (listInConns != null && listInConns.size() > 0) {
      String retResult=getPrivateConnClassName(listInConns.get(0));
      if (retResult == null) {
        return conn.getUniqueName();
      }
 else {
        return retResult;
      }
    }
  }
  return null;
}
Program: 128662
Project: 128662
Buggy source:
/** 
 * DOC Administrator Comment method "formatUnwithE". In java when double more than six decimal that use toString will rentru contains E scientific natation.
 * @param arg like: double falot String .... e.g:1.0E-8
 * @return 0.00000001 as String
 */
public static String formatUnwithE(Object arg){
  String doubleString=String.valueOf(arg);
  int index=doubleString.indexOf("String_Node_Str");
  if (index != -1) {
    if (doubleString.charAt(index + 1) != '-') {
      return df.format(arg);
    }
 else {
      String position=doubleString.substring(index + 2);
      return String.format("String_Node_Str" + position + "String_Node_Str",arg);
    }
  }
  return doubleString;
}

Fixed version (ground truth):
/** 
 * DOC Administrator Comment method "formatUnwithE". In java when double more than six decimal that use toString will rentru contains E scientific natation.
 * @param arg like: double falot String .... e.g:1.0E-8
 * @return 0.00000001 as String
 */
public static String formatUnwithE(Object arg){
  String doubleString=String.valueOf(arg);
  int index=doubleString.indexOf("String_Node_Str");
  if (index != -1) {
    return (new BigDecimal(doubleString)).toPlainString();
  }
  return doubleString;
}
Program: 128663
Project: 128663
Buggy source:
/** 
 * DOC wliu <p> get the original connection instance className of the pamameter:conn.\n It is used to help optimize the code to avoid 65535 bytes in a method </p> Notice: It is used in tFileOutputMSXML in TDI-21606
 * @param connection
 * @return
 */
public static String getPrivateConnClassName(final IConnection conn){
  INode node=conn.getSource();
  if (node.isSubProcessStart() || !(NodeUtil.isDataAutoPropagated(node))) {
    return conn.getUniqueName();
  }
  List<? extends IConnection> listInConns=node.getIncomingConnections();
  IConnection inConnTemp=null;
  if (listInConns != null && listInConns.size() > 0) {
    inConnTemp=listInConns.get(0);
    if (inConnTemp.getLineStyle().hasConnectionCategory(IConnectionCategory.DATA)) {
      return getPrivateConnClassName(inConnTemp);
    }
    if (inConnTemp.getLineStyle().hasConnectionCategory(IConnectionCategory.USE_ITERATE)) {
      return conn.getUniqueName();
    }
  }
  return "String_Node_Str";
}

Fixed version (ground truth):
/** 
 * DOC wliu <p> get the original connection instance className of the pamameter:conn.\n It is used to help optimize the code to avoid 65535 bytes in a method </p> Notice: It is used in tFileOutputMSXML in TDI-21606
 * @param connection
 * @return
 */
public static String getPrivateConnClassName(final IConnection conn){
  if (conn.getLineStyle().hasConnectionCategory(IConnectionCategory.DATA)) {
    INode node=conn.getSource();
    if (node.isSubProcessStart() || !(NodeUtil.isDataAutoPropagated(node))) {
      return conn.getUniqueName();
    }
    List<? extends IConnection> listInConns=node.getIncomingConnections();
    if (listInConns != null && listInConns.size() > 0) {
      String retResult=getPrivateConnClassName(listInConns.get(0));
      if (retResult == null) {
        return conn.getUniqueName();
      }
 else {
        return retResult;
      }
    }
  }
  return null;
}
Program: 128665
Project: 128665
Buggy source:
protected void makeActions(){
  if (contextualsActions == null) {
    ICommonViewerWorkbenchSite navWorkSite=((ICommonViewerWorkbenchSite)getActionSite().getViewSite());
    IHandlerService handlerService=(IHandlerService)navWorkSite.getSite().getService(IHandlerService.class);
    IHandler handler=null;
    if (GlobalServiceRegister.getDefault().isServiceRegistered(ICoreService.class)) {
      final ICoreService coreService=(ICoreService)GlobalServiceRegister.getDefault().getService(ICoreService.class);
      if (coreService != null) {
        contextualsActions=coreService.getRepositoryContextualsActions();
        for (        ITreeContextualAction action : contextualsActions) {
          action.setWorkbenchPart(navWorkSite.getSite().getPart());
          if (action.getActionDefinitionId() != null) {
            handler=new ActionHandler(action);
            handlerService.activateHandler(action.getActionDefinitionId(),handler);
          }
        }
      }
    }
    doubleClickAction=new RepoDoubleClickAction(getActionSite().getStructuredViewer(),contextualsActions);
  }
}

Fixed version (ground truth):
protected void makeActions(){
  boolean isNewDoubleClickAction=false;
  if (doubleClickAction != null) {
    StructuredViewer structuredViewer=doubleClickAction.getStructuredViewer();
    ISelection selection=structuredViewer.getSelection();
    if (selection.isEmpty()) {
      isNewDoubleClickAction=true;
    }
  }
  if (contextualsActions == null || isNewDoubleClickAction) {
    ICommonViewerWorkbenchSite navWorkSite=((ICommonViewerWorkbenchSite)getActionSite().getViewSite());
    IHandlerService handlerService=(IHandlerService)navWorkSite.getSite().getService(IHandlerService.class);
    IHandler handler=null;
    if (GlobalServiceRegister.getDefault().isServiceRegistered(ICoreService.class)) {
      final ICoreService coreService=(ICoreService)GlobalServiceRegister.getDefault().getService(ICoreService.class);
      if (coreService != null) {
        contextualsActions=coreService.getRepositoryContextualsActions();
        for (        ITreeContextualAction action : contextualsActions) {
          action.setWorkbenchPart(navWorkSite.getSite().getPart());
          if (action.getActionDefinitionId() != null) {
            handler=new ActionHandler(action);
            handlerService.activateHandler(action.getActionDefinitionId(),handler);
          }
        }
      }
    }
    doubleClickAction=new RepoDoubleClickAction(getActionSite().getStructuredViewer(),contextualsActions);
  }
}
Program: 128666
Project: 128666
Buggy source:
protected SelectRepositoryContextGroupDialog(Shell parentShell,IContextManager manager,ContextManagerHelper helper,List<ContextItem> selectedContextItems){
  super(parentShell);
  setBlockOnOpen(true);
  setDefaultImage(ImageProvider.getImage(ECoreImage.CONTEXT_ICON));
  setTitle(TITILE);
  setHelpAvailable(false);
  setMessage(DEFAULTMESAGE);
  setShellStyle(getShellStyle() | SWT.RESIZE);
  this.manager=manager;
  this.helper=helper;
  this.selectedContextItems=selectedContextItems;
  if (helper != null) {
    contextItemList.addAll(helper.getContextItems());
  }
}

Fixed version (ground truth):
public SelectRepositoryContextGroupDialog(Shell parentShell,IContextManager manager,ContextManagerHelper helper,List<ContextItem> selectedContextItems){
  super(parentShell);
  setBlockOnOpen(true);
  setDefaultImage(ImageProvider.getImage(ECoreImage.CONTEXT_ICON));
  setTitle(TITILE);
  setHelpAvailable(false);
  setMessage(DEFAULTMESAGE);
  setShellStyle(getShellStyle() | SWT.RESIZE);
  this.manager=manager;
  this.helper=helper;
  this.selectedContextItems=selectedContextItems;
  if (helper != null) {
    contextItemList.addAll(helper.getContextItems());
  }
}
Program: 128667
Project: 128667
Buggy source:
@SuppressWarnings("String_Node_Str") public static void addContextVarForJob(IProcess2 process,final ContextItem contextItem,final Set<String> addedVars){
  if (process == null || contextItem == null || addedVars == null || addedVars.isEmpty()) {
    return;
  }
  final IContextManager contextManager=process.getContextManager();
  if (contextManager != null) {
    CommandStack commandStack=process.getCommandStack();
    Command cmd=new Command(){
      @Override public void execute(){
        checkAndAddContextVariables(contextItem,addedVars,contextManager,true);
      }
    }
;
    if (commandStack == null) {
      cmd.execute();
    }
 else {
      commandStack.execute(cmd);
    }
  }
}

Fixed version (ground truth):
public static void addContextVarForJob(IProcess2 process,final ContextItem contextItem,final IContextManager contextManager,final Set<String> addedVars,final Set<String> contextGoupNameSet){
  if (process == null || contextItem == null || contextManager == null || addedVars == null || addedVars.isEmpty()) {
    return;
  }
  CommandStack commandStack=process.getCommandStack();
  Command cmd=new Command(){
    @Override public void execute(){
      checkAndAddContextVariables(contextItem,contextManager,addedVars,contextGoupNameSet);
    }
  }
;
  if (commandStack == null) {
    cmd.execute();
  }
 else {
    commandStack.execute(cmd);
  }
}
Program: 128669
Project: 128669
Buggy source:
@Override public void execute(){
  checkAndAddContextVariables(contextItem,addedVars,contextManager,true);
}

Fixed version (ground truth):
@Override public void execute(){
  checkAndAddContextVariables(contextItem,contextManager,addedVars,contextGoupNameSet);
}
Program: 128670
Project: 128670
Buggy source:
/** 
 * DOC wliu <p> get the original connection instance className of the pamameter:conn.\n It is used to help optimize the code to avoid 65535 bytes in a method </p> Notice: It is used in tFileOutputMSXML in TDI-21606
 * @param connection
 * @return
 */
public static String getPrivateConnClassName(final IConnection conn){
  INode node=conn.getSource();
  if (node.isSubProcessStart() || !(NodeUtil.isDataAutoPropagated(node))) {
    return conn.getUniqueName();
  }
  List<? extends IConnection> listInConns=node.getIncomingConnections();
  IConnection inConnTemp=null;
  if (listInConns != null && listInConns.size() > 0) {
    inConnTemp=listInConns.get(0);
    if (inConnTemp.getLineStyle().hasConnectionCategory(IConnectionCategory.DATA)) {
      return getPrivateConnClassName(inConnTemp);
    }
  }
  return "String_Node_Str";
}

Fixed version (ground truth):
/** 
 * DOC wliu <p> get the original connection instance className of the pamameter:conn.\n It is used to help optimize the code to avoid 65535 bytes in a method </p> Notice: It is used in tFileOutputMSXML in TDI-21606
 * @param connection
 * @return
 */
public static String getPrivateConnClassName(final IConnection conn){
  INode node=conn.getSource();
  if (node.isSubProcessStart() || !(NodeUtil.isDataAutoPropagated(node))) {
    return conn.getUniqueName();
  }
  List<? extends IConnection> listInConns=node.getIncomingConnections();
  IConnection inConnTemp=null;
  if (listInConns != null && listInConns.size() > 0) {
    inConnTemp=listInConns.get(0);
    if (inConnTemp.getLineStyle().hasConnectionCategory(IConnectionCategory.DATA)) {
      return getPrivateConnClassName(inConnTemp);
    }
    if (inConnTemp.getLineStyle().hasConnectionCategory(IConnectionCategory.USE_ITERATE)) {
      return conn.getUniqueName();
    }
  }
  return "String_Node_Str";
}
Program: 128671
Project: 128671
Buggy source:
/** 
 * DOC Administrator Comment method "formatUnwithE". In java when double more than six decimal that use toString will rentru contains E scientific natation.
 * @param arg like: double falot String .... e.g:1.0E-8
 * @return 0.00000001 as String
 */
public static String formatUnwithE(Object arg){
  String doubleString=String.valueOf(arg);
  int index=doubleString.indexOf("String_Node_Str");
  if (index != -1) {
    if (doubleString.charAt(index + 1) != '-') {
      return df.format(arg);
    }
 else {
      String position=doubleString.substring(index + 2);
      return String.format("String_Node_Str" + position + "String_Node_Str",arg);
    }
  }
  return doubleString;
}

Fixed version (ground truth):
/** 
 * DOC Administrator Comment method "formatUnwithE". In java when double more than six decimal that use toString will rentru contains E scientific natation.
 * @param arg like: double falot String .... e.g:1.0E-8
 * @return 0.00000001 as String
 */
public static String formatUnwithE(Object arg){
  String doubleString=String.valueOf(arg);
  int index=doubleString.indexOf("String_Node_Str");
  if (index != -1) {
    return (new BigDecimal(doubleString)).toPlainString();
  }
  return doubleString;
}
Program: 128673
Project: 128673
Buggy source:
/** 
 * DOC wliu <p> get the original connection instance className of the pamameter:conn.\n It is used to help optimize the code to avoid 65535 bytes in a method </p> Notice: It is used in tFileOutputMSXML in TDI-21606
 * @param connection
 * @return
 */
public static String getPrivateConnClassName(final IConnection conn){
  INode node=conn.getSource();
  if (node.isSubProcessStart() || !(NodeUtil.isDataAutoPropagated(node))) {
    return conn.getUniqueName();
  }
  List<? extends IConnection> listInConns=node.getIncomingConnections();
  IConnection inConnTemp=null;
  if (listInConns != null && listInConns.size() > 0) {
    inConnTemp=listInConns.get(0);
    if (inConnTemp.getLineStyle().hasConnectionCategory(IConnectionCategory.DATA)) {
      return getPrivateConnClassName(inConnTemp);
    }
    if (inConnTemp.getLineStyle().hasConnectionCategory(IConnectionCategory.USE_ITERATE)) {
      return conn.getUniqueName();
    }
  }
  return "String_Node_Str";
}

Fixed version (ground truth):
/** 
 * DOC wliu <p> get the original connection instance className of the pamameter:conn.\n It is used to help optimize the code to avoid 65535 bytes in a method </p> Notice: It is used in tFileOutputMSXML in TDI-21606
 * @param connection
 * @return
 */
public static String getPrivateConnClassName(final IConnection conn){
  if (conn.getLineStyle().hasConnectionCategory(IConnectionCategory.DATA)) {
    INode node=conn.getSource();
    if (node.isSubProcessStart() || !(NodeUtil.isDataAutoPropagated(node))) {
      return conn.getUniqueName();
    }
    List<? extends IConnection> listInConns=node.getIncomingConnections();
    if (listInConns != null && listInConns.size() > 0) {
      String retResult=getPrivateConnClassName(listInConns.get(0));
      if (retResult == null) {
        return conn.getUniqueName();
      }
 else {
        return retResult;
      }
    }
  }
  return null;
}
Program: 128674
Project: 128674
Buggy source:
public boolean retrieve(Collection<String> jarsNeeded,String pathToStore,IProgressMonitor... monitorWrap);

Fixed version (ground truth):
public boolean retrieve(Collection<String> jarsNeeded,String pathToStore,boolean showDialog,IProgressMonitor... monitorWrap);
Program: 128675
Project: 128675
Buggy source:
@Override public boolean retrieve(Collection<String> jarsNeeded,String pathToStore,IProgressMonitor... monitorWrap){
  if (jarsNeeded == null || jarsNeeded.size() == 0) {
    return false;
  }
  List<String> jarNotFound=new ArrayList<String>();
  boolean allIsOK=true;
  for (  String jar : jarsNeeded) {
    if (!retrieve(jar,pathToStore,false,monitorWrap)) {
      jarNotFound.add(jar);
      allIsOK=false;
    }
  }
  if (!jarNotFound.isEmpty() && !CommonsPlugin.isHeadless()) {
    Shell shell=Display.getCurrent().getActiveShell();
    ModulesInstaller.installModules(new Shell(shell),jarNotFound.toArray(new String[jarNotFound.size()]));
  }
  return allIsOK;
}

Fixed version (ground truth):
@Override public boolean retrieve(Collection<String> jarsNeeded,String pathToStore,IProgressMonitor... monitorWrap){
  return retrieve(jarsNeeded,pathToStore,true,monitorWrap);
}
Program: 128676
Project: 128676
Buggy source:
protected void makeActions(){
  if (contextualsActions == null) {
    ICommonViewerWorkbenchSite navWorkSite=((ICommonViewerWorkbenchSite)getActionSite().getViewSite());
    IHandlerService handlerService=(IHandlerService)navWorkSite.getSite().getService(IHandlerService.class);
    IHandler handler=null;
    if (GlobalServiceRegister.getDefault().isServiceRegistered(ICoreService.class)) {
      final ICoreService coreService=(ICoreService)GlobalServiceRegister.getDefault().getService(ICoreService.class);
      if (coreService != null) {
        contextualsActions=coreService.getRepositoryContextualsActions();
        for (        ITreeContextualAction action : contextualsActions) {
          action.setWorkbenchPart(navWorkSite.getSite().getPart());
          if (action.getActionDefinitionId() != null) {
            handler=new ActionHandler(action);
            handlerService.activateHandler(action.getActionDefinitionId(),handler);
          }
        }
      }
    }
    doubleClickAction=new RepoDoubleClickAction(getActionSite().getStructuredViewer(),contextualsActions);
  }
}

Fixed version (ground truth):
protected void makeActions(){
  boolean isNewDoubleClickAction=false;
  if (doubleClickAction != null) {
    StructuredViewer structuredViewer=doubleClickAction.getStructuredViewer();
    ISelection selection=structuredViewer.getSelection();
    if (selection.isEmpty()) {
      isNewDoubleClickAction=true;
    }
  }
  if (contextualsActions == null || isNewDoubleClickAction) {
    ICommonViewerWorkbenchSite navWorkSite=((ICommonViewerWorkbenchSite)getActionSite().getViewSite());
    IHandlerService handlerService=(IHandlerService)navWorkSite.getSite().getService(IHandlerService.class);
    IHandler handler=null;
    if (GlobalServiceRegister.getDefault().isServiceRegistered(ICoreService.class)) {
      final ICoreService coreService=(ICoreService)GlobalServiceRegister.getDefault().getService(ICoreService.class);
      if (coreService != null) {
        contextualsActions=coreService.getRepositoryContextualsActions();
        for (        ITreeContextualAction action : contextualsActions) {
          action.setWorkbenchPart(navWorkSite.getSite().getPart());
          if (action.getActionDefinitionId() != null) {
            handler=new ActionHandler(action);
            handlerService.activateHandler(action.getActionDefinitionId(),handler);
          }
        }
      }
    }
    doubleClickAction=new RepoDoubleClickAction(getActionSite().getStructuredViewer(),contextualsActions);
  }
}
Program: 128677
Project: 128677
Buggy source:
protected SelectRepositoryContextGroupDialog(Shell parentShell,IContextManager manager,ContextManagerHelper helper,List<ContextItem> selectedContextItems){
  super(parentShell);
  setBlockOnOpen(true);
  setDefaultImage(ImageProvider.getImage(ECoreImage.CONTEXT_ICON));
  setTitle(TITILE);
  setHelpAvailable(false);
  setMessage(DEFAULTMESAGE);
  setShellStyle(getShellStyle() | SWT.RESIZE);
  this.manager=manager;
  this.helper=helper;
  this.selectedContextItems=selectedContextItems;
  if (helper != null) {
    contextItemList.addAll(helper.getContextItems());
  }
}

Fixed version (ground truth):
public SelectRepositoryContextGroupDialog(Shell parentShell,IContextManager manager,ContextManagerHelper helper,List<ContextItem> selectedContextItems){
  super(parentShell);
  setBlockOnOpen(true);
  setDefaultImage(ImageProvider.getImage(ECoreImage.CONTEXT_ICON));
  setTitle(TITILE);
  setHelpAvailable(false);
  setMessage(DEFAULTMESAGE);
  setShellStyle(getShellStyle() | SWT.RESIZE);
  this.manager=manager;
  this.helper=helper;
  this.selectedContextItems=selectedContextItems;
  if (helper != null) {
    contextItemList.addAll(helper.getContextItems());
  }
}
Program: 128678
Project: 128678
Buggy source:
@SuppressWarnings("String_Node_Str") public static void addContextVarForJob(IProcess2 process,final ContextItem contextItem,final Set<String> addedVars){
  if (process == null || contextItem == null || addedVars == null || addedVars.isEmpty()) {
    return;
  }
  final IContextManager contextManager=process.getContextManager();
  if (contextManager != null) {
    CommandStack commandStack=process.getCommandStack();
    Command cmd=new Command(){
      @Override public void execute(){
        checkAndAddContextVariables(contextItem,addedVars,contextManager,true);
      }
    }
;
    if (commandStack == null) {
      cmd.execute();
    }
 else {
      commandStack.execute(cmd);
    }
  }
}

Fixed version (ground truth):
public static void addContextVarForJob(IProcess2 process,final ContextItem contextItem,final IContextManager contextManager,final Set<String> addedVars,final Set<String> contextGoupNameSet){
  if (process == null || contextItem == null || contextManager == null || addedVars == null || addedVars.isEmpty()) {
    return;
  }
  CommandStack commandStack=process.getCommandStack();
  Command cmd=new Command(){
    @Override public void execute(){
      checkAndAddContextVariables(contextItem,contextManager,addedVars,contextGoupNameSet);
    }
  }
;
  if (commandStack == null) {
    cmd.execute();
  }
 else {
    commandStack.execute(cmd);
  }
}
Program: 128680
Project: 128680
Buggy source:
@Override public void execute(){
  checkAndAddContextVariables(contextItem,addedVars,contextManager,true);
}

Fixed version (ground truth):
@Override public void execute(){
  checkAndAddContextVariables(contextItem,contextManager,addedVars,contextGoupNameSet);
}
Program: 128681
Project: 128681
Buggy source:
/** 
 * DOC Administrator Comment method "formatUnwithE". In java when double more than six decimal that use toString will rentru contains E scientific natation.
 * @param arg like: double falot String .... e.g:1.0E-8
 * @return 0.00000001 as String
 */
public static String formatUnwithE(Object arg){
  String doubleString=String.valueOf(arg);
  int index=doubleString.indexOf("String_Node_Str");
  if (index != -1) {
    if (doubleString.charAt(index + 1) != '-') {
      return df.format(arg);
    }
 else {
      String position=doubleString.substring(index + 2);
      return String.format("String_Node_Str" + position + "String_Node_Str",arg);
    }
  }
  return doubleString;
}

Fixed version (ground truth):
/** 
 * DOC Administrator Comment method "formatUnwithE". In java when double more than six decimal that use toString will rentru contains E scientific natation.
 * @param arg like: double falot String .... e.g:1.0E-8
 * @return 0.00000001 as String
 */
public static String formatUnwithE(Object arg){
  String doubleString=String.valueOf(arg);
  int index=doubleString.indexOf("String_Node_Str");
  if (index != -1) {
    return (new BigDecimal(doubleString)).toPlainString();
  }
  return doubleString;
}
Program: 128682
Project: 128682
Buggy source:
/** 
 * DOC wliu <p> get the original connection instance className of the pamameter:conn.\n It is used to help optimize the code to avoid 65535 bytes in a method </p> Notice: It is used in tFileOutputMSXML in TDI-21606
 * @param connection
 * @return
 */
public static String getPrivateConnClassName(final IConnection conn){
  INode node=conn.getSource();
  if (node.isSubProcessStart() || !(NodeUtil.isDataAutoPropagated(node))) {
    return conn.getUniqueName();
  }
  List<? extends IConnection> listInConns=node.getIncomingConnections();
  IConnection inConnTemp=null;
  if (listInConns != null && listInConns.size() > 0) {
    inConnTemp=listInConns.get(0);
    if (inConnTemp.getLineStyle().hasConnectionCategory(IConnectionCategory.DATA)) {
      return getPrivateConnClassName(inConnTemp);
    }
  }
  return "String_Node_Str";
}

Fixed version (ground truth):
/** 
 * DOC wliu <p> get the original connection instance className of the pamameter:conn.\n It is used to help optimize the code to avoid 65535 bytes in a method </p> Notice: It is used in tFileOutputMSXML in TDI-21606
 * @param connection
 * @return
 */
public static String getPrivateConnClassName(final IConnection conn){
  INode node=conn.getSource();
  if (node.isSubProcessStart() || !(NodeUtil.isDataAutoPropagated(node))) {
    return conn.getUniqueName();
  }
  List<? extends IConnection> listInConns=node.getIncomingConnections();
  IConnection inConnTemp=null;
  if (listInConns != null && listInConns.size() > 0) {
    inConnTemp=listInConns.get(0);
    if (inConnTemp.getLineStyle().hasConnectionCategory(IConnectionCategory.DATA)) {
      return getPrivateConnClassName(inConnTemp);
    }
    if (inConnTemp.getLineStyle().hasConnectionCategory(IConnectionCategory.USE_ITERATE)) {
      return conn.getUniqueName();
    }
  }
  return "String_Node_Str";
}
Program: 128685
Project: 128685
Buggy source:
@Override public void deleteObjectPhysical(Project project,IRepositoryViewObject objToDelete,String version,boolean fromEmptyRecycleBin) throws PersistenceException {
  if ("String_Node_Str".equals(version)) {
    version=null;
  }
  if (objToDelete.getRepositoryObjectType() == ERepositoryObjectType.PROCESS || objToDelete.getRepositoryObjectType() == ERepositoryObjectType.JOBLET) {
    if (coreSerivce.isAlreadyBuilt(project)) {
      coreSerivce.removeItemRelations(objToDelete.getProperty().getItem());
    }
  }
  List<IRepositoryViewObject> allVersionToDelete=getAllVersion(project,objToDelete.getId(),false);
  for (  IRepositoryViewObject currentVersion : allVersionToDelete) {
    if (version == null || currentVersion.getVersion().equals(version)) {
      Item currentItem=currentVersion.getProperty().getItem();
      if (currentItem.getParent() instanceof FolderItem) {
        ((FolderItem)currentItem.getParent()).getChildren().remove(currentItem);
      }
      currentItem.setParent(null);
      List<Resource> affectedResources=xmiResourceManager.getAffectedResources(currentVersion.getProperty());
      for (      Resource resource : affectedResources) {
        xmiResourceManager.deleteResource(resource);
      }
    }
  }
  if (!fromEmptyRecycleBin) {
    saveProject(project);
  }
}

Fixed version (ground truth):
@Override public void deleteObjectPhysical(Project project,IRepositoryViewObject objToDelete,String version,boolean fromEmptyRecycleBin) throws PersistenceException {
  if ("String_Node_Str".equals(version)) {
    version=null;
  }
  if (objToDelete.getRepositoryObjectType() == ERepositoryObjectType.PROCESS || objToDelete.getRepositoryObjectType() == ERepositoryObjectType.JOBLET) {
    if (coreSerivce.isAlreadyBuilt(project)) {
      coreSerivce.removeItemRelations(objToDelete.getProperty().getItem());
    }
  }
  List<IRepositoryViewObject> allVersionToDelete=getAllVersion(project,objToDelete.getId(),false);
  for (  IRepositoryViewObject currentVersion : allVersionToDelete) {
    if (version == null || currentVersion.getVersion().equals(version)) {
      Item currentItem=currentVersion.getProperty().getItem();
      if (currentItem.getParent() instanceof FolderItem) {
        ((FolderItem)currentItem.getParent()).getChildren().remove(currentItem);
      }
      currentItem.setParent(null);
      List<Resource> affectedResources=xmiResourceManager.getAffectedResources(currentVersion.getProperty());
      for (      Resource resource : affectedResources) {
        deleteResource(resource);
      }
    }
  }
  if (!fromEmptyRecycleBin) {
    saveProject(project);
  }
}
Program: 128686
Project: 128686
Buggy source:
@Override public void deleteFolder(Project project,ERepositoryObjectType type,IPath path,boolean fromEmptyRecycleBin) throws PersistenceException {
  if (RepositoryConstants.isSystemFolder(path.toString()) || RepositoryConstants.isGeneratedFolder(path.toString()) || RepositoryConstants.isJobsFolder(path.toString())|| RepositoryConstants.isJobletsFolder(path.toString())) {
    return;
  }
  IProject fsProject=ResourceModelUtils.getProject(project);
  String completePath=new Path(ERepositoryObjectType.getFolderName(type)).append(path).toString();
  IFolder folder=ResourceUtils.getFolder(fsProject,completePath,true);
  ResourceUtils.deleteResource(folder);
  getFolderHelper(project.getEmfProject()).deleteFolder(completePath);
  if (!fromEmptyRecycleBin) {
    saveProject(project);
  }
}

Fixed version (ground truth):
@Override public void deleteFolder(Project project,ERepositoryObjectType type,IPath path,boolean fromEmptyRecycleBin) throws PersistenceException {
  if (RepositoryConstants.isSystemFolder(path.toString()) || RepositoryConstants.isGeneratedFolder(path.toString()) || RepositoryConstants.isJobsFolder(path.toString())|| RepositoryConstants.isJobletsFolder(path.toString())) {
    return;
  }
  IProject fsProject=ResourceModelUtils.getProject(project);
  String completePath=new Path(ERepositoryObjectType.getFolderName(type)).append(path).toString();
  IFolder folder=ResourceUtils.getFolder(fsProject,completePath,true);
  deleteResource(folder);
  getFolderHelper(project.getEmfProject()).deleteFolder(completePath);
  if (!fromEmptyRecycleBin) {
    saveProject(project);
  }
}
Program: 128688
Project: 128688
Buggy source:
protected void createFolder(IFolder folder) throws PersistenceException {
  ResourceUtils.createFolder(folder);
}

Fixed version (ground truth):
protected void createFolder(IFolder folder) throws PersistenceException {
  if (!folder.getParent().exists()) {
    if (folder.getParent() instanceof IFolder) {
      createFolder((IFolder)folder.getParent());
    }
  }
  ResourceUtils.createFolder(folder);
}
Program: 128689
Project: 128689
Buggy source:
/** 
 * DOC amaumont Comment method "forceTableFocus".
 */
private void forceTableFocus(){
  new AsynchronousThreading(10,false,getTable().getDisplay(),new Runnable(){
    @Override public void run(){
      getTable().forceFocus();
    }
  }
).start();
}

Fixed version (ground truth):
/** 
 * DOC amaumont Comment method "forceTableFocus".
 */
private void forceTableFocus(){
  new AsynchronousThreading(10,false,getTable().getDisplay(),new Runnable(){
    @Override public void run(){
      if (!getTable().isDisposed()) {
        getTable().forceFocus();
      }
    }
  }
).start();
}
Program: 128691
Project: 128691
Buggy source:
/** 
 * DOC amaumont Comment method "forceTableFocus".
 */
private void forceTableFocus(){
  new AsynchronousThreading(10,false,getTable().getDisplay(),new Runnable(){
    @Override public void run(){
      getTable().forceFocus();
    }
  }
).start();
}

Fixed version (ground truth):
/** 
 * DOC amaumont Comment method "forceTableFocus".
 */
private void forceTableFocus(){
  new AsynchronousThreading(10,false,getTable().getDisplay(),new Runnable(){
    @Override public void run(){
      if (!getTable().isDisposed()) {
        getTable().forceFocus();
      }
    }
  }
).start();
}
Program: 128696
Project: 128696
Buggy source:
public static boolean hasSchema(Connection dataProvider){
  List<Schema> schemas=SchemaHelper.getSchemas(dataProvider.getDataPackage());
  if (schemas.size() == 0) {
    List<Catalog> catalogs=CatalogHelper.getCatalogs(dataProvider.getDataPackage());
    for (    Catalog catalog : catalogs) {
      return CatalogHelper.getSchemas(catalog).size() > 0;
    }
  }
 else {
    return true;
  }
  return false;
}

Fixed version (ground truth):
/** 
 * Two case has been contain one is only schema another one is schema contain in some catalog
 * @param dataProvider
 * @return
 */
public static boolean hasSchema(Connection dataProvider){
  List<Schema> schemas=SchemaHelper.getSchemas(dataProvider.getDataPackage());
  if (schemas.size() == 0) {
    List<Catalog> catalogs=CatalogHelper.getCatalogs(dataProvider.getDataPackage());
    for (    Catalog catalog : catalogs) {
      return CatalogHelper.getSchemas(catalog).size() > 0;
    }
  }
 else {
    return true;
  }
  return false;
}
Program: 128697
Project: 128697
Buggy source:
@Override public void listModulesDone(){
  Display.getDefault().syncExec(new Runnable(){
    @Override public void run(){
      if (inputList.size() > 0) {
        open();
      }
    }
  }
);
}

Fixed version (ground truth):
@Override public void listModulesDone(){
  Display.getDefault().asyncExec(new Runnable(){
    @Override public void run(){
      if (inputList.size() > 0) {
        open();
      }
    }
  }
);
}
Program: 128700
Project: 128700
Buggy source:
@Override public void listModulesDone(){
  Display.getDefault().syncExec(new Runnable(){
    @Override public void run(){
      if (inputList.size() > 0) {
        open();
      }
 else       if (showMessage) {
        MessageDialog.openInformation(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(),"String_Node_Str",Messages.getString("String_Node_Str"));
      }
    }
  }
);
}

Fixed version (ground truth):
@Override public void listModulesDone(){
  Display.getDefault().asyncExec(new Runnable(){
    @Override public void run(){
      if (inputList.size() > 0) {
        open();
      }
 else       if (showMessage) {
        MessageDialog.openInformation(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(),"String_Node_Str",Messages.getString("String_Node_Str"));
      }
    }
  }
);
}
Program: 128703
Project: 128703
Buggy source:
@Override protected void initializeBounds(){
  super.initializeBounds();
  getShell().setSize(900,400);
  Point location=getInitialLocation(getShell().getSize());
  getShell().setLocation(location.x,location.y);
}

Fixed version (ground truth):
@Override protected void initializeBounds(){
  super.initializeBounds();
  getShell().setSize(1050,400);
  Point location=getInitialLocation(getShell().getSize());
  getShell().setLocation(location.x,location.y);
}
Program: 128704
Project: 128704
Buggy source:
@Override protected Control createDialogArea(Composite parent){
  ((GridData)parent.getLayoutData()).widthHint=580;
  ((GridData)parent.getLayoutData()).heightHint=400;
  GridData data=new GridData(GridData.FILL_BOTH);
  Composite container=new Composite(parent,SWT.NONE);
  GridLayout layout=new GridLayout();
  layout.marginTop=10;
  layout.marginLeft=5;
  layout.marginRight=5;
  container.setLayout(layout);
  container.setLayoutData(data);
  data=new GridData(GridData.FILL_HORIZONTAL);
  Label subTitleLabel=new Label(container,SWT.NONE);
  String desc="String_Node_Str" + description + "String_Node_Str";
  subTitleLabel.setText(desc);
  subTitleLabel.setLayoutData(data);
  clufText=new Browser(container,SWT.MULTI | SWT.WRAP | SWT.LEFT| SWT.BORDER);
  clufText.setBackground(new Color(null,255,255,255));
  if (licenseUrl != null) {
    clufText.setUrl(licenseUrl);
  }
 else {
    clufText.setText(desc);
  }
  data=new GridData(GridData.FILL_BOTH);
  clufText.setLayoutData(data);
  return parent;
}

Fixed version (ground truth):
@Override protected Control createDialogArea(Composite parent){
  ((GridData)parent.getLayoutData()).minimumWidth=600;
  ((GridData)parent.getLayoutData()).heightHint=500;
  GridData data=new GridData(GridData.FILL_BOTH);
  Composite container=new Composite(parent,SWT.NONE);
  GridLayout layout=new GridLayout();
  layout.marginTop=10;
  layout.marginLeft=5;
  layout.marginRight=5;
  container.setLayout(layout);
  container.setLayoutData(data);
  data=new GridData(GridData.FILL_HORIZONTAL);
  Label subTitleLabel=new Label(container,SWT.NONE);
  String desc="String_Node_Str" + description + "String_Node_Str";
  subTitleLabel.setText(desc);
  subTitleLabel.setLayoutData(data);
  clufText=new Browser(container,SWT.MULTI | SWT.WRAP | SWT.LEFT| SWT.BORDER);
  clufText.setBackground(new Color(null,255,255,255));
  if (licenseUrl != null) {
    clufText.setUrl(licenseUrl);
  }
 else {
    clufText.setText(desc);
  }
  data=new GridData(GridData.FILL_BOTH);
  clufText.setLayoutData(data);
  return parent;
}
Program: 128705
Project: 128705
Buggy source:
private static List<ModuleNeeded> getModulesNeededForComponents(){
  List<ModuleNeeded> importNeedsList=new ArrayList<ModuleNeeded>();
  IComponentsFactory compFac=ComponentsFactoryProvider.getInstance();
  Set<IComponent> componentList=compFac.getComponents();
  for (  IComponent comp : componentList) {
    importNeedsList.addAll(comp.getModulesNeeded());
  }
  return importNeedsList;
}

Fixed version (ground truth):
private static List<ModuleNeeded> getModulesNeededForComponents(){
  List<ModuleNeeded> importNeedsList=new ArrayList<ModuleNeeded>();
  IComponentsFactory compFac=ComponentsFactoryProvider.getInstance();
  Set<IComponent> componentList=compFac.getComponents();
  for (  IComponent comp : componentList.toArray(new IComponent[0])) {
    importNeedsList.addAll(comp.getModulesNeeded());
  }
  return importNeedsList;
}
Program: 128706
Project: 128706
Buggy source:
private void postFillCatalog(List<Catalog> catalogList,List<String> filterList,String catalogName,Connection dbConn){
  Catalog catalog=CatalogHelper.createCatalog(catalogName);
  catalogList.add(catalog);
  DatabaseConnection dbConnection=(DatabaseConnection)dbConn;
  filterList=new ArrayList<String>();
  if (dbConnection.getDatabaseType() != null && dbConnection.getDatabaseType().equals(EDatabaseTypeName.AS400.getDisplayName())) {
    IMetadataConnection iMetadataCon=ConvertionHelper.convert(dbConnection);
    if (iMetadataCon != null) {
      if (!StringUtils.isEmpty(iMetadataCon.getDatabase()) && !filterList.contains(iMetadataCon.getDatabase())) {
        filterList.add(iMetadataCon.getDatabase());
      }
      String pattern=ExtractMetaDataUtils.retrieveSchemaPatternForAS400(iMetadataCon.getAdditionalParams());
      if (pattern != null && !"String_Node_Str".equals(pattern)) {
        String[] multiSchems=ExtractMetaDataUtils.getMultiSchems(pattern);
        if (multiSchems != null) {
          for (          String s : multiSchems) {
            if (!StringUtils.isEmpty(s) && !filterList.contains(s)) {
              filterList.add(s);
            }
          }
        }
      }
    }
  }
 else {
    String uiSchema=dbConnection.getUiSchema();
    if (!StringUtils.isBlank(uiSchema) && !filterList.contains(uiSchema)) {
      filterList.add(uiSchema);
    }
  }
}

Fixed version (ground truth):
private List<String> postFillCatalog(List<Catalog> catalogList,List<String> filterList,String catalogName,Connection dbConn){
  Catalog catalog=CatalogHelper.createCatalog(catalogName);
  catalogList.add(catalog);
  DatabaseConnection dbConnection=(DatabaseConnection)dbConn;
  if (dbConnection.getDatabaseType() != null && dbConnection.getDatabaseType().equals(EDatabaseTypeName.AS400.getDisplayName())) {
    IMetadataConnection iMetadataCon=ConvertionHelper.convert(dbConnection);
    if (iMetadataCon != null) {
      if (!StringUtils.isEmpty(iMetadataCon.getDatabase()) && !filterList.contains(iMetadataCon.getDatabase())) {
        filterList.add(iMetadataCon.getDatabase());
      }
      String pattern=ExtractMetaDataUtils.retrieveSchemaPatternForAS400(iMetadataCon.getAdditionalParams());
      if (pattern != null && !"String_Node_Str".equals(pattern)) {
        String[] multiSchems=ExtractMetaDataUtils.getMultiSchems(pattern);
        if (multiSchems != null) {
          for (          String s : multiSchems) {
            if (!StringUtils.isEmpty(s) && !filterList.contains(s)) {
              filterList.add(s);
            }
          }
        }
      }
    }
  }
 else {
    String uiSchema=dbConnection.getUiSchema();
    if (!StringUtils.isBlank(uiSchema) && !filterList.contains(uiSchema)) {
      filterList.add(uiSchema);
    }
  }
  return filterList;
}
Program: 128707
Project: 128707
Buggy source:
protected boolean isReadOnly(){
  if (GlobalServiceRegister.getDefault().isServiceRegistered(IProxyRepositoryService.class)) {
    IProxyRepositoryService service=(IProxyRepositoryService)GlobalServiceRegister.getDefault().getService(IProxyRepositoryService.class);
    IProxyRepositoryFactory repositoryFactory=service.getProxyRepositoryFactory();
    return !repositoryFactory.getStatus(object).isEditable() || alreadyEditedByUser || isLock;
  }
  return true;
}

Fixed version (ground truth):
protected boolean isReadOnly(){
  if (GlobalServiceRegister.getDefault().isServiceRegistered(IProxyRepositoryService.class)) {
    IProxyRepositoryService service=(IProxyRepositoryService)GlobalServiceRegister.getDefault().getService(IProxyRepositoryService.class);
    IProxyRepositoryFactory repositoryFactory=service.getProxyRepositoryFactory();
    return !repositoryFactory.getStatus(object).isEditable() || alreadyEditedByUser;
  }
  return true;
}