nus-yam/ex-repair huggingface dataset:
Program: 126436
Project: 126436
Buggy source:
private static String getParameterOriginalValue(Connection connection,INode node,String paramName){
  if (node != null || paramName != null) {
    IElementParameter param=node.getElementParameter(paramName);
    if (param != null) {
      Object o=param.getValue();
      if (o instanceof String || o instanceof Boolean || o instanceof Integer|| o instanceof Long|| o instanceof Character) {
        String value=String.valueOf(o);
        if (isConetxtParaMode(connection,value)) {
          value=getContextOriginalValue(connection,node,value);
        }
        return value;
      }
 else       if (o instanceof List && paramName.equals("String_Node_Str")) {
        List<Map<String,Object>> list=(List<Map<String,Object>>)o;
        String userDir=System.getProperty("String_Node_Str");
        String pathSeparator=System.getProperty("String_Node_Str");
        String defaultPath=userDir + pathSeparator + "String_Node_Str"+ pathSeparator+ "String_Node_Str";
        Character comma=';';
        String symbol="String_Node_Str";
        String jarspath="String_Node_Str";
        for (int i=0; i < list.size(); i++) {
          jarspath=jarspath + defaultPath + symbol+ list.get(i).get("String_Node_Str");
          if (i < list.size() - 1) {
            jarspath=jarspath + comma.toString();
          }
        }
        return jarspath;
      }
    }
  }
  return null;
}

Fixed version (ground truth):
private static String getParameterOriginalValue(Connection connection,INode node,IElementParameter param){
  if (node != null || param != null) {
    if (param != null) {
      Object o=param.getValue();
      if (o instanceof String || o instanceof Boolean || o instanceof Integer|| o instanceof Long|| o instanceof Character) {
        String value=String.valueOf(o);
        if (isConetxtParaMode(connection,value)) {
          value=getContextOriginalValue(connection,node,value);
        }
        return value;
      }
 else       if (o instanceof List && param.getName().equals("String_Node_Str")) {
        List<Map<String,Object>> list=(List<Map<String,Object>>)o;
        String userDir=System.getProperty("String_Node_Str");
        String pathSeparator=System.getProperty("String_Node_Str");
        String defaultPath=userDir + pathSeparator + "String_Node_Str"+ pathSeparator+ "String_Node_Str";
        Character comma=';';
        String symbol="String_Node_Str";
        String jarspath="String_Node_Str";
        for (int i=0; i < list.size(); i++) {
          jarspath=jarspath + defaultPath + symbol+ list.get(i).get("String_Node_Str");
          if (i < list.size() - 1) {
            jarspath=jarspath + comma.toString();
          }
        }
        return jarspath;
      }
    }
  }
  return null;
}
Program: 126437
Project: 126437
Buggy source:
private static void setDatabaseValueForJdbc(DatabaseConnection connection,INode node,String repositoryValue){
  if ("String_Node_Str".equals(repositoryValue)) {
    String value=getParameterValue(connection,node,"String_Node_Str");
    if (value != null) {
      connection.setURL(value);
    }
  }
  if ("String_Node_Str".equals(repositoryValue)) {
    String value=getParameterValue(connection,node,"String_Node_Str");
    if (value != null) {
      connection.setDriverJarPath(value);
    }
  }
  if ("String_Node_Str".equals(repositoryValue)) {
    String value=getParameterValue(connection,node,"String_Node_Str");
    if (value != null) {
      connection.setDriverClass(value);
    }
  }
}

Fixed version (ground truth):
private static void setDatabaseValueForJdbc(DatabaseConnection connection,INode node,IElementParameter param){
  if ("String_Node_Str".equals(param.getRepositoryValue())) {
    String value=getParameterValue(connection,node,param);
    if (value != null) {
      connection.setURL(value);
    }
  }
  if ("String_Node_Str".equals(param.getRepositoryValue())) {
    String value=getParameterValue(connection,node,param);
    if (value != null) {
      connection.setDriverJarPath(value);
    }
  }
  if ("String_Node_Str".equals(param.getRepositoryValue())) {
    String value=getParameterValue(connection,node,param);
    if (value != null) {
      connection.setDriverClass(value);
    }
  }
}
Program: 126438
Project: 126438
Buggy source:
private static void setEbcdicValue(EbcdicConnection connection,INode node,String repositoryValue){
  if ("String_Node_Str".equals(repositoryValue)) {
    String value=getParameterValue(connection,node,"String_Node_Str");
    if (value != null) {
      connection.setDataFile(value);
    }
  }
  if ("String_Node_Str".equals(repositoryValue)) {
    String value=getParameterValue(connection,node,"String_Node_Str");
    if (value != null) {
      connection.setMidFile(value);
    }
  }
  if ("String_Node_Str".equals(repositoryValue)) {
    String value=getParameterValue(connection,node,"String_Node_Str");
    if (value != null) {
      connection.setEncoding(value);
    }
  }
}

Fixed version (ground truth):
private static void setEbcdicValue(EbcdicConnection connection,INode node,IElementParameter param){
  if ("String_Node_Str".equals(param.getRepositoryValue())) {
    String value=getParameterValue(connection,node,param);
    if (value != null) {
      connection.setDataFile(value);
    }
  }
  if ("String_Node_Str".equals(param.getRepositoryValue())) {
    String value=getParameterValue(connection,node,param);
    if (value != null) {
      connection.setMidFile(value);
    }
  }
  if ("String_Node_Str".equals(param.getRepositoryValue())) {
    String value=getParameterValue(connection,node,param);
    if (value != null) {
      connection.setEncoding(value);
    }
  }
}
Program: 126439
Project: 126439
Buggy source:
private static void setMDMValue(MDMConnection connection,INode node,String repositoryValue){
  if ("String_Node_Str".equals(repositoryValue)) {
    String value=getParameterValue(connection,node,"String_Node_Str");
    if (value != null) {
      connection.setUsername(value);
    }
  }
  if ("String_Node_Str".equals(repositoryValue)) {
    String value=getParameterValue(connection,node,"String_Node_Str");
    if (value != null) {
      ConnectionHelper.setPassword(connection,value);
    }
  }
  if ("String_Node_Str".equals(repositoryValue)) {
    String value=getParameterValue(connection,node,"String_Node_Str");
    if (value != null) {
      String[] values=value.split("String_Node_Str");
      String server=values[1].substring(values[1].indexOf("String_Node_Str") + 2);
      String port=values[2].substring(0,values[2].indexOf("String_Node_Str"));
      connection.setServer(server);
      connection.setPort(port);
    }
  }
  if ("String_Node_Str".equals(repositoryValue)) {
    String value=getParameterValue(connection,node,"String_Node_Str");
    if (value != null) {
      connection.setUniverse(value);
    }
  }
  if ("String_Node_Str".equals(repositoryValue)) {
    String value=getParameterValue(connection,node,"String_Node_Str");
    if (value != null) {
      connection.setDatamodel(value);
    }
  }
  if ("String_Node_Str".equals(repositoryValue)) {
    String value=getParameterValue(connection,node,"String_Node_Str");
    if (value != null) {
      connection.setDatacluster(value);
    }
  }
}

Fixed version (ground truth):
private static void setMDMValue(MDMConnection connection,INode node,IElementParameter param){
  if ("String_Node_Str".equals(param.getRepositoryValue())) {
    String value=getParameterValue(connection,node,param);
    if (value != null) {
      connection.setUsername(value);
    }
  }
  if ("String_Node_Str".equals(param.getRepositoryValue())) {
    String value=getParameterValue(connection,node,param);
    if (value != null) {
      ConnectionHelper.setPassword(connection,value);
    }
  }
  if ("String_Node_Str".equals(param.getRepositoryValue())) {
    String value=getParameterValue(connection,node,param);
    if (value != null) {
      String[] values=value.split("String_Node_Str");
      String server=values[1].substring(values[1].indexOf("String_Node_Str") + 2);
      String port=values[2].substring(0,values[2].indexOf("String_Node_Str"));
      connection.setServer(server);
      connection.setPort(port);
    }
  }
  if ("String_Node_Str".equals(param.getRepositoryValue())) {
    String value=getParameterValue(connection,node,param);
    if (value != null) {
      connection.setUniverse(value);
    }
  }
  if ("String_Node_Str".equals(param.getRepositoryValue())) {
    String value=getParameterValue(connection,node,param);
    if (value != null) {
      connection.setDatamodel(value);
    }
  }
  if ("String_Node_Str".equals(param.getRepositoryValue())) {
    String value=getParameterValue(connection,node,param);
    if (value != null) {
      connection.setDatacluster(value);
    }
  }
}
Program: 126443
Project: 126443
Buggy source:
private static void setDatabaseValueForOracleSeverName(DatabaseConnection connection,INode node,String repositoryValue){
  if ("String_Node_Str".equals(repositoryValue)) {
    String value=getParameterValue(connection,node,"String_Node_Str");
    String dbVersionName=EDatabaseVersion4Drivers.getDbVersionName(EDatabaseTypeName.ORACLESN,value);
    if (value != null) {
      connection.setDbVersionString(dbVersionName);
    }
  }
  if ("String_Node_Str".equals(repositoryValue)) {
    IElementParameter param=node.getElementParameter("String_Node_Str");
    if (param != null && "String_Node_Str".equals(param.getValue())) {
      String value=getParameterValue(connection,node,"String_Node_Str");
      if (value != null) {
        connection.setSID(value);
      }
    }
 else {
      String value=getParameterValue(connection,node,"String_Node_Str");
      if (value != null) {
        connection.setSID(value);
      }
    }
  }
}

Fixed version (ground truth):
private static void setDatabaseValueForOracleSeverName(DatabaseConnection connection,INode node,IElementParameter param){
  if ("String_Node_Str".equals(param.getRepositoryValue())) {
    String value=getParameterValue(connection,node,param);
    String dbVersionName=EDatabaseVersion4Drivers.getDbVersionName(EDatabaseTypeName.ORACLESN,value);
    if (value != null) {
      connection.setDbVersionString(dbVersionName);
    }
  }
  if ("String_Node_Str".equals(param.getRepositoryValue())) {
    if (param != null && "String_Node_Str".equals(param.getValue())) {
      String value=getParameterValue(connection,node,node.getElementParameter("String_Node_Str"));
      if (value != null) {
        connection.setSID(value);
      }
    }
 else {
      String value=getParameterValue(connection,node,node.getElementParameter("String_Node_Str"));
      if (value != null) {
        connection.setSID(value);
      }
    }
  }
}
Program: 126444
Project: 126444
Buggy source:
/** 
 * ggu Comment method "updateQuery". if show is false, will work for context menu action.
 */
public static boolean updateFileConnection(ConnectionItem connectionItem,boolean show,boolean onlySimpleShow){
  List<Relation> relations=RelationshipItemBuilder.getInstance().getItemsRelatedTo(connectionItem.getProperty().getId(),RelationshipItemBuilder.LATEST_VERSION,RelationshipItemBuilder.PROPERTY_RELATION);
  RepositoryUpdateManager repositoryUpdateManager=new RepositoryUpdateManager(connectionItem.getConnection(),relations){
    @Override public Set<EUpdateItemType> getTypes(){
      Set<EUpdateItemType> types=new HashSet<EUpdateItemType>();
      types.add(EUpdateItemType.NODE_PROPERTY);
      types.add(EUpdateItemType.NODE_SCHEMA);
      types.add(EUpdateItemType.JOB_PROPERTY_HEADERFOOTER);
      types.add(EUpdateItemType.NODE_SAP_IDOC);
      return types;
    }
  }
;
  return repositoryUpdateManager.doWork(show,onlySimpleShow);
}

Fixed version (ground truth):
/** 
 * ggu Comment method "updateQuery". if show is false, will work for context menu action.
 */
public static boolean updateFileConnection(ConnectionItem connectionItem,boolean show,boolean onlySimpleShow){
  List<Relation> relations=RelationshipItemBuilder.getInstance().getItemsRelatedTo(connectionItem.getProperty().getId(),RelationshipItemBuilder.LATEST_VERSION,RelationshipItemBuilder.PROPERTY_RELATION);
  RepositoryUpdateManager repositoryUpdateManager=new RepositoryUpdateManager(connectionItem,relations){
    @Override public Set<EUpdateItemType> getTypes(){
      Set<EUpdateItemType> types=new HashSet<EUpdateItemType>();
      types.add(EUpdateItemType.NODE_PROPERTY);
      types.add(EUpdateItemType.NODE_SCHEMA);
      types.add(EUpdateItemType.JOB_PROPERTY_HEADERFOOTER);
      types.add(EUpdateItemType.NODE_SAP_IDOC);
      return types;
    }
  }
;
  return repositoryUpdateManager.doWork(show,onlySimpleShow);
}
Program: 126445
Project: 126445
Buggy source:
/** 
 * DOC ycbai Comment method "updateValidationRuleConnection".
 * @param connectionItem
 * @param show
 * @param onlySimpleShow
 * @return
 */
public static boolean updateValidationRuleConnection(ConnectionItem connectionItem,boolean show,boolean onlySimpleShow){
  IProxyRepositoryFactory factory=CoreRuntimePlugin.getInstance().getProxyRepositoryFactory();
  List<IRepositoryViewObject> updateList=new ArrayList<IRepositoryViewObject>();
  List<Relation> relations=RelationshipItemBuilder.getInstance().getItemsRelatedTo(connectionItem.getProperty().getId(),RelationshipItemBuilder.LATEST_VERSION,RelationshipItemBuilder.VALIDATION_RULE_RELATION);
  RepositoryUpdateManager repositoryUpdateManager=new RepositoryUpdateManager(connectionItem.getConnection(),relations){
    @Override public Set<EUpdateItemType> getTypes(){
      Set<EUpdateItemType> types=new HashSet<EUpdateItemType>();
      types.add(EUpdateItemType.NODE_VALIDATION_RULE);
      return types;
    }
  }
;
  return repositoryUpdateManager.doWork(show,onlySimpleShow);
}

Fixed version (ground truth):
/** 
 * DOC ycbai Comment method "updateValidationRuleConnection".
 * @param connectionItem
 * @param show
 * @param onlySimpleShow
 * @return
 */
public static boolean updateValidationRuleConnection(ConnectionItem connectionItem,boolean show,boolean onlySimpleShow){
  IProxyRepositoryFactory factory=CoreRuntimePlugin.getInstance().getProxyRepositoryFactory();
  List<IRepositoryViewObject> updateList=new ArrayList<IRepositoryViewObject>();
  List<Relation> relations=RelationshipItemBuilder.getInstance().getItemsRelatedTo(connectionItem.getProperty().getId(),RelationshipItemBuilder.LATEST_VERSION,RelationshipItemBuilder.VALIDATION_RULE_RELATION);
  RepositoryUpdateManager repositoryUpdateManager=new RepositoryUpdateManager(connectionItem,relations){
    @Override public Set<EUpdateItemType> getTypes(){
      Set<EUpdateItemType> types=new HashSet<EUpdateItemType>();
      types.add(EUpdateItemType.NODE_VALIDATION_RULE);
      return types;
    }
  }
;
  return repositoryUpdateManager.doWork(show,onlySimpleShow);
}
Program: 126446
Project: 126446
Buggy source:
/** 
 * ggu Comment method "updateQuery". if show is false, will work for context menu action.
 */
public static boolean updateDBConnection(ConnectionItem connectionItem,boolean show,final boolean onlySimpleShow){
  List<IRepositoryViewObject> updateList=new ArrayList<IRepositoryViewObject>();
  IProxyRepositoryFactory factory=CoreRuntimePlugin.getInstance().getProxyRepositoryFactory();
  List<Relation> relations=RelationshipItemBuilder.getInstance().getItemsRelatedTo(connectionItem.getProperty().getId(),RelationshipItemBuilder.LATEST_VERSION,RelationshipItemBuilder.PROPERTY_RELATION);
  RepositoryUpdateManager repositoryUpdateManager=new RepositoryUpdateManager(connectionItem.getConnection(),relations){
    @Override public Set<EUpdateItemType> getTypes(){
      Set<EUpdateItemType> types=new HashSet<EUpdateItemType>();
      types.add(EUpdateItemType.NODE_PROPERTY);
      types.add(EUpdateItemType.JOB_PROPERTY_EXTRA);
      types.add(EUpdateItemType.JOB_PROPERTY_STATS_LOGS);
      types.add(EUpdateItemType.JOB_PROPERTY_HEADERFOOTER);
      types.add(EUpdateItemType.JOB_PROPERTY_MAPREDUCE);
      types.add(EUpdateItemType.JOB_PROPERTY_STORM);
      return types;
    }
  }
;
  return repositoryUpdateManager.doWork(true,false);
}

Fixed version (ground truth):
/** 
 * ggu Comment method "updateQuery". if show is false, will work for context menu action.
 */
public static boolean updateDBConnection(ConnectionItem connectionItem,boolean show,final boolean onlySimpleShow){
  List<IRepositoryViewObject> updateList=new ArrayList<IRepositoryViewObject>();
  IProxyRepositoryFactory factory=CoreRuntimePlugin.getInstance().getProxyRepositoryFactory();
  List<Relation> relations=RelationshipItemBuilder.getInstance().getItemsRelatedTo(connectionItem.getProperty().getId(),RelationshipItemBuilder.LATEST_VERSION,RelationshipItemBuilder.PROPERTY_RELATION);
  RepositoryUpdateManager repositoryUpdateManager=new RepositoryUpdateManager(connectionItem,relations){
    @Override public Set<EUpdateItemType> getTypes(){
      Set<EUpdateItemType> types=new HashSet<EUpdateItemType>();
      types.add(EUpdateItemType.NODE_PROPERTY);
      types.add(EUpdateItemType.JOB_PROPERTY_EXTRA);
      types.add(EUpdateItemType.JOB_PROPERTY_STATS_LOGS);
      types.add(EUpdateItemType.JOB_PROPERTY_HEADERFOOTER);
      types.add(EUpdateItemType.JOB_PROPERTY_MAPREDUCE);
      types.add(EUpdateItemType.JOB_PROPERTY_STORM);
      return types;
    }
  }
;
  return repositoryUpdateManager.doWork(true,false);
}
Program: 126447
Project: 126447
Buggy source:
/** 
 * hwang Comment method "updateServices". if show is false, will work for context menu action.
 */
public static boolean updateServices(ConnectionItem connectionItem,boolean show,final boolean onlySimpleShow){
  List<IRepositoryViewObject> updateList=new ArrayList<IRepositoryViewObject>();
  IProxyRepositoryFactory factory=CoreRuntimePlugin.getInstance().getProxyRepositoryFactory();
  List<Relation> relations=RelationshipItemBuilder.getInstance().getItemsRelatedTo(connectionItem.getProperty().getId(),RelationshipItemBuilder.LATEST_VERSION,RelationshipItemBuilder.SERVICES_RELATION);
  RepositoryUpdateManager repositoryUpdateManager=new RepositoryUpdateManager(connectionItem.getConnection(),relations){
    @Override public Set<EUpdateItemType> getTypes(){
      Set<EUpdateItemType> types=new HashSet<EUpdateItemType>();
      types.add(EUpdateItemType.NODE_PROPERTY);
      types.add(EUpdateItemType.JOB_PROPERTY_EXTRA);
      types.add(EUpdateItemType.JOB_PROPERTY_STATS_LOGS);
      types.add(EUpdateItemType.JOB_PROPERTY_HEADERFOOTER);
      return types;
    }
  }
;
  return repositoryUpdateManager.doWork(true,false);
}

Fixed version (ground truth):
/** 
 * hwang Comment method "updateServices". if show is false, will work for context menu action.
 */
public static boolean updateServices(ConnectionItem connectionItem,boolean show,final boolean onlySimpleShow){
  List<IRepositoryViewObject> updateList=new ArrayList<IRepositoryViewObject>();
  IProxyRepositoryFactory factory=CoreRuntimePlugin.getInstance().getProxyRepositoryFactory();
  List<Relation> relations=RelationshipItemBuilder.getInstance().getItemsRelatedTo(connectionItem.getProperty().getId(),RelationshipItemBuilder.LATEST_VERSION,RelationshipItemBuilder.SERVICES_RELATION);
  RepositoryUpdateManager repositoryUpdateManager=new RepositoryUpdateManager(connectionItem,relations){
    @Override public Set<EUpdateItemType> getTypes(){
      Set<EUpdateItemType> types=new HashSet<EUpdateItemType>();
      types.add(EUpdateItemType.NODE_PROPERTY);
      types.add(EUpdateItemType.JOB_PROPERTY_EXTRA);
      types.add(EUpdateItemType.JOB_PROPERTY_STATS_LOGS);
      types.add(EUpdateItemType.JOB_PROPERTY_HEADERFOOTER);
      return types;
    }
  }
;
  return repositoryUpdateManager.doWork(true,false);
}
Program: 126448
Project: 126448
Buggy source:
public static boolean updateWSDLConnection(ConnectionItem connectionItem,boolean show,final boolean onlySimpleShow){
  List<IRepositoryViewObject> updateList=new ArrayList<IRepositoryViewObject>();
  IProxyRepositoryFactory factory=CoreRuntimePlugin.getInstance().getProxyRepositoryFactory();
  List<Relation> relations=RelationshipItemBuilder.getInstance().getItemsRelatedTo(connectionItem.getProperty().getId(),RelationshipItemBuilder.LATEST_VERSION,RelationshipItemBuilder.PROPERTY_RELATION);
  RepositoryUpdateManager repositoryUpdateManager=new RepositoryUpdateManager(connectionItem.getConnection(),relations){
    @Override public Set<EUpdateItemType> getTypes(){
      Set<EUpdateItemType> types=new HashSet<EUpdateItemType>();
      types.add(EUpdateItemType.NODE_PROPERTY);
      types.add(EUpdateItemType.NODE_SCHEMA);
      return types;
    }
  }
;
  return repositoryUpdateManager.doWork(true,false);
}

Fixed version (ground truth):
public static boolean updateWSDLConnection(ConnectionItem connectionItem,boolean show,final boolean onlySimpleShow){
  List<IRepositoryViewObject> updateList=new ArrayList<IRepositoryViewObject>();
  IProxyRepositoryFactory factory=CoreRuntimePlugin.getInstance().getProxyRepositoryFactory();
  List<Relation> relations=RelationshipItemBuilder.getInstance().getItemsRelatedTo(connectionItem.getProperty().getId(),RelationshipItemBuilder.LATEST_VERSION,RelationshipItemBuilder.PROPERTY_RELATION);
  RepositoryUpdateManager repositoryUpdateManager=new RepositoryUpdateManager(connectionItem,relations){
    @Override public Set<EUpdateItemType> getTypes(){
      Set<EUpdateItemType> types=new HashSet<EUpdateItemType>();
      types.add(EUpdateItemType.NODE_PROPERTY);
      types.add(EUpdateItemType.NODE_SCHEMA);
      return types;
    }
  }
;
  return repositoryUpdateManager.doWork(true,false);
}
Program: 126449
Project: 126449
Buggy source:
@SuppressWarnings("String_Node_Str") private boolean filterForType(UpdateResult result){
  if (result == null || parameter == null) {
    return false;
  }
  Object object=result.getParameter();
  if (object == null) {
    return false;
  }
  if (object == parameter) {
    return true;
  }
  if (object instanceof List) {
    List list=((List)object);
    if (!list.isEmpty()) {
      Object firstObj=list.get(0);
      if (parameter == firstObj) {
        return true;
      }
      if (checkResultSchema(result,firstObj,parameter)) {
        return true;
      }
    }
  }
  if (checkResultSchema(result,object,parameter)) {
    return true;
  }
  if (parameter instanceof QueriesConnection && object instanceof Query) {
    for (    Query query : ((QueriesConnection)parameter).getQuery()) {
      if (query.getId().equals(((Query)object).getId())) {
        return true;
      }
    }
  }
  if ((object instanceof Query) && (parameter instanceof Query)) {
    if (((Query)object).getId().equals(((Query)parameter).getId())) {
      return true;
    }
  }
  if (checkHadoopRelevances(object)) {
    return true;
  }
  return false;
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") private boolean filterForType(UpdateResult result){
  if (result == null || parameter == null) {
    return false;
  }
  Object object=result.getParameter();
  if (object == null) {
    return false;
  }
  if (object == parameter) {
    return true;
  }
  if (object instanceof ConnectionItem) {
    if (((ConnectionItem)object).getConnection() == parameter) {
      return true;
    }
  }
  if (object instanceof List) {
    List list=((List)object);
    if (!list.isEmpty()) {
      Object firstObj=list.get(0);
      if (parameter == firstObj) {
        return true;
      }
      if (checkResultSchema(result,firstObj,parameter)) {
        return true;
      }
    }
  }
  if (checkResultSchema(result,object,parameter)) {
    return true;
  }
  if (parameter instanceof QueriesConnection && object instanceof Query) {
    for (    Query query : ((QueriesConnection)parameter).getQuery()) {
      if (query.getId().equals(((Query)object).getId())) {
        return true;
      }
    }
  }
  if ((object instanceof Query) && (parameter instanceof Query)) {
    if (((Query)object).getId().equals(((Query)parameter).getId())) {
      return true;
    }
  }
  if (checkHadoopRelevances(object)) {
    return true;
  }
  return false;
}
Program: 126450
Project: 126450
Buggy source:
/** 
 * DOC zwzhao Comment method "setComponentValue". set parameter value of the connection
 * @param connection - connection
 * @param node - node
 * @param repositoryValue - repositoryValue
 */
public void setComponentValue(Connection connection,INode node,String repositoryValue);

Fixed version (ground truth):
/** 
 * DOC zwzhao Comment method "setComponentValue". set parameter value of the connection
 * @param connection - connection
 * @param node - node
 * @param param - param
 */
public void setComponentValue(Connection connection,INode node,IElementParameter param);
Program: 126453
Project: 126453
Buggy source:
@Override public void setComponentValue(Connection connection,INode node,String repositoryValue){
  if (node != null && canHandle(connection)) {
    ExampleDemoConnection demoConn=(ExampleDemoConnection)connection;
  }
}

Fixed version (ground truth):
@Override public void setComponentValue(Connection connection,INode node,IElementParameter param){
  if (node != null && canHandle(connection)) {
    ExampleDemoConnection demoConn=(ExampleDemoConnection)connection;
  }
}
Program: 126454
Project: 126454
Buggy source:
private File getJarFile(String jarNeeded) throws MalformedURLException {
  List<File> jarFiles=FilesUtils.getJarFilesFromFolder(getStorageDirectory(),jarNeeded);
  if (jarFiles.size() > 0) {
    File jarFile=jarFiles.get(0);
    return jarFile;
  }
  if (jarsFromExtensions.containsKey(jarNeeded)) {
    return new File(jarsFromExtensions.get(jarNeeded));
  }
  EMap<String,String> jarsToRelative=LibrariesIndexManager.getInstance().getIndex().getJarsToRelativePath();
  String uriPath=jarsToRelative.get(jarNeeded);
  if (uriPath != null && uriPath.startsWith("String_Node_Str")) {
    if (checkJarInstalledFromPlatform(uriPath)) {
      return new File(uriJarInstalled.get(uriPath));
    }
  }
  return null;
}

Fixed version (ground truth):
private File getJarFile(String jarNeeded) throws MalformedURLException {
  List<File> jarFiles=FilesUtils.getJarFilesFromFolder(getStorageDirectory(),jarNeeded);
  if (jarFiles.size() > 0) {
    File jarFile=jarFiles.get(0);
    return jarFile;
  }
  String uriPath;
  if (jarsFromExtensions.containsKey(jarNeeded)) {
    uriPath=jarsFromExtensions.get(jarNeeded);
  }
 else {
    EMap<String,String> jarsToRelative=LibrariesIndexManager.getInstance().getIndex().getJarsToRelativePath();
    uriPath=jarsToRelative.get(jarNeeded);
  }
  if (uriPath != null && uriPath.startsWith("String_Node_Str")) {
    if (checkJarInstalledFromPlatform(uriPath)) {
      return new File(uriJarInstalled.get(uriPath));
    }
  }
  return null;
}
Program: 126455
Project: 126455
Buggy source:
private List<RepositoryNode> getRepositoryNodesByTypes(IProjectRepositoryNode projectRepoNode){
  List<RepositoryNode> rootNodes=new ArrayList<RepositoryNode>();
  List<ERepositoryObjectType> prcessTypes=getTypes();
  if (prcessTypes != null) {
    for (    ERepositoryObjectType type : prcessTypes) {
      RepositoryNode rootNode=((ProjectRepositoryNode)projectRepoNode).getRootRepositoryNode(type,true);
      if (rootNode != null) {
        if (type != null && type.hasChildrenType()) {
          for (          ERepositoryObjectType childType : type.getChildrenTypesArray()) {
            RepositoryNode childRootNode=((ProjectRepositoryNode)projectRepoNode).getRootRepositoryNode(childType,true);
            if (childRootNode != null && childRootNode.hasChildren() && !rootNode.getChildren().contains(childRootNode)) {
              rootNode.getChildren().add(childRootNode);
            }
          }
        }
        rootNodes.add(rootNode);
      }
    }
  }
  return rootNodes;
}

Fixed version (ground truth):
private List<RepositoryNode> getRepositoryNodesByTypes(IProjectRepositoryNode projectRepoNode){
  List<RepositoryNode> rootNodes=new ArrayList<RepositoryNode>();
  List<ERepositoryObjectType> prcessTypes=getTypes();
  if (prcessTypes != null) {
    for (    ERepositoryObjectType type : prcessTypes) {
      RepositoryNode rootNode=((ProjectRepositoryNode)projectRepoNode).getRootRepositoryNode(type,true);
      if (rootNode != null) {
        IRepositoryView viewPart=RepositoryManagerHelper.getRepositoryView();
        if (viewPart != null) {
          RepositoryNodeUtilities.expandParentNode(viewPart,rootNode);
        }
        if (type != null && type.hasChildrenType()) {
          for (          ERepositoryObjectType childType : type.getChildrenTypesArray()) {
            RepositoryNode childRootNode=((ProjectRepositoryNode)projectRepoNode).getRootRepositoryNode(childType,true);
            if (childRootNode != null && childRootNode.hasChildren() && !rootNode.getChildren().contains(childRootNode)) {
              rootNode.getChildren().add(childRootNode);
            }
          }
        }
        rootNodes.add(rootNode);
      }
    }
  }
  return rootNodes;
}
Program: 126458
Project: 126458
Buggy source:
private File getJarFile(String jarNeeded) throws MalformedURLException {
  List<File> jarFiles=FilesUtils.getJarFilesFromFolder(getStorageDirectory(),jarNeeded);
  if (jarFiles.size() > 0) {
    File jarFile=jarFiles.get(0);
    return jarFile;
  }
  if (jarsFromExtensions.containsKey(jarNeeded)) {
    return new File(jarsFromExtensions.get(jarNeeded));
  }
  EMap<String,String> jarsToRelative=LibrariesIndexManager.getInstance().getIndex().getJarsToRelativePath();
  String uriPath=jarsToRelative.get(jarNeeded);
  if (uriPath.startsWith("String_Node_Str")) {
    if (checkJarInstalledFromPlatform(uriPath)) {
      return new File(uriJarInstalled.get(uriPath));
    }
  }
  return null;
}

Fixed version (ground truth):
private File getJarFile(String jarNeeded) throws MalformedURLException {
  List<File> jarFiles=FilesUtils.getJarFilesFromFolder(getStorageDirectory(),jarNeeded);
  if (jarFiles.size() > 0) {
    File jarFile=jarFiles.get(0);
    return jarFile;
  }
  if (jarsFromExtensions.containsKey(jarNeeded)) {
    return new File(jarsFromExtensions.get(jarNeeded));
  }
  EMap<String,String> jarsToRelative=LibrariesIndexManager.getInstance().getIndex().getJarsToRelativePath();
  String uriPath=jarsToRelative.get(jarNeeded);
  if (uriPath != null && uriPath.startsWith("String_Node_Str")) {
    if (checkJarInstalledFromPlatform(uriPath)) {
      return new File(uriJarInstalled.get(uriPath));
    }
  }
  return null;
}
Program: 126459
Project: 126459
Buggy source:
public static String encryptPasswordHex(String input) throws Exception {
  if (input == null || input.length() == 0) {
    return input;
  }
  SecretKey key=getSecretKeyUTF8();
  Cipher c=Cipher.getInstance("String_Node_Str");
  c.init(Cipher.ENCRYPT_MODE,key,secureRandom);
  byte[] cipherByte=c.doFinal(input.getBytes(CHARSET));
  String dec=Hex.encodeHexString(cipherByte);
  return dec;
}

Fixed version (ground truth):
public static String encryptPasswordHex(String input) throws Exception {
  if (input == null) {
    return input;
  }
  SecretKey key=getSecretKeyUTF8();
  Cipher c=Cipher.getInstance("String_Node_Str");
  c.init(Cipher.ENCRYPT_MODE,key,secureRandom);
  byte[] cipherByte=c.doFinal(input.getBytes(CHARSET));
  String dec=Hex.encodeHexString(cipherByte);
  return dec;
}
Program: 126460
Project: 126460
Buggy source:
public static String encryptPassword(String input) throws Exception {
  if (input == null || input.length() == 0) {
    return input;
  }
  SecretKey key=getSecretKey();
  Cipher c=Cipher.getInstance("String_Node_Str");
  c.init(Cipher.ENCRYPT_MODE,key,secureRandom);
  byte[] cipherByte=c.doFinal(input.getBytes(CHARSET));
  String dec=Hex.encodeHexString(cipherByte);
  return dec;
}

Fixed version (ground truth):
public static String encryptPassword(String input) throws Exception {
  if (input == null) {
    return input;
  }
  SecretKey key=getSecretKey();
  Cipher c=Cipher.getInstance("String_Node_Str");
  c.init(Cipher.ENCRYPT_MODE,key,secureRandom);
  byte[] cipherByte=c.doFinal(input.getBytes(CHARSET));
  String dec=Hex.encodeHexString(cipherByte);
  return dec;
}
Program: 126461
Project: 126461
Buggy source:
private File getJarFile(String jarNeeded) throws MalformedURLException {
  List<File> jarFiles=FilesUtils.getJarFilesFromFolder(getStorageDirectory(),jarNeeded);
  if (jarFiles.size() > 0) {
    File jarFile=jarFiles.get(0);
    return jarFile;
  }
  if (jarsFromExtensions.containsKey(jarNeeded)) {
    return new File(jarsFromExtensions.get(jarNeeded));
  }
  EMap<String,String> jarsToRelative=LibrariesIndexManager.getInstance().getIndex().getJarsToRelativePath();
  String uriPath=jarsToRelative.get(jarNeeded);
  if (uriPath.startsWith("String_Node_Str")) {
    if (checkJarInstalledFromPlatform(uriPath)) {
      return new File(uriJarInstalled.get(uriPath));
    }
  }
  return null;
}

Fixed version (ground truth):
private File getJarFile(String jarNeeded) throws MalformedURLException {
  List<File> jarFiles=FilesUtils.getJarFilesFromFolder(getStorageDirectory(),jarNeeded);
  if (jarFiles.size() > 0) {
    File jarFile=jarFiles.get(0);
    return jarFile;
  }
  if (jarsFromExtensions.containsKey(jarNeeded)) {
    return new File(jarsFromExtensions.get(jarNeeded));
  }
  EMap<String,String> jarsToRelative=LibrariesIndexManager.getInstance().getIndex().getJarsToRelativePath();
  String uriPath=jarsToRelative.get(jarNeeded);
  if (uriPath != null && uriPath.startsWith("String_Node_Str")) {
    if (checkJarInstalledFromPlatform(uriPath)) {
      return new File(uriJarInstalled.get(uriPath));
    }
  }
  return null;
}
Program: 126462
Project: 126462
Buggy source:
public static List<ModuleNeeded> getNotInstalledModules(List<ModuleNeeded> modules){
  List<ModuleNeeded> updatedModules=new ArrayList<ModuleNeeded>();
  List<ModuleNeeded> modulesNeeded=ModulesNeededProvider.getModulesNeeded();
  if (modules != null) {
    for (    ModuleNeeded module : modules) {
      for (      ModuleNeeded fromProvider : modulesNeeded) {
        if (fromProvider.getModuleName().equals(module.getModuleName()) && fromProvider.getContext().equals(module.getContext()) && ELibraryInstallStatus.NOT_INSTALLED == fromProvider.getStatus()) {
          updatedModules.add(fromProvider);
          break;
        }
      }
    }
  }
  return updatedModules;
}

Fixed version (ground truth):
public static List<ModuleNeeded> getNotInstalledModules(List<ModuleNeeded> modules){
  List<ModuleNeeded> updatedModules=new ArrayList<ModuleNeeded>();
  List<ModuleNeeded> modulesNeeded=ModulesNeededProvider.getModulesNeeded();
  if (modules != null) {
    for (    ModuleNeeded module : modules) {
      for (      ModuleNeeded fromProvider : modulesNeeded) {
        if (fromProvider.getModuleName().equals(module.getModuleName()) && fromProvider.getContext().equals(module.getContext()) && ELibraryInstallStatus.NOT_INSTALLED == fromProvider.getStatus() && fromProvider.getRequiredIf().equals(module.getRequiredIf())) {
          updatedModules.add(fromProvider);
          break;
        }
      }
    }
  }
  return updatedModules;
}
Program: 126463
Project: 126463
Buggy source:
@Override public void handleTableRelevantParameters(IElement ele,IMetadataTable metadataTable){
}

Fixed version (ground truth):
@Override public void handleTableRelevantParameters(Connection connection,IElement ele,IMetadataTable metadataTable){
}
Program: 126464
Project: 126464
Buggy source:
@Override public String getLabel(){
  return this.label;
}

Fixed version (ground truth):
@Override public String getLabel(){
  return this.displayName;
}
Program: 126466
Project: 126466
Buggy source:
/** 
 * item with same name.
 */
protected boolean isSameName(ImportItem importItem,IRepositoryViewObject repObject){
  final Property property=importItem.getProperty();
  if ((property.getLabel() != null && property.getLabel().equalsIgnoreCase(repObject.getLabel()))) {
    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();
  }
  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;
}
Program: 126467
Project: 126467
Buggy source:
private List<RepositoryNode> getRepositoryNodesByTypes(IProjectRepositoryNode projectRepoNode){
  List<RepositoryNode> rootNodes=new ArrayList<RepositoryNode>();
  List<ERepositoryObjectType> prcessTypes=getTypes();
  if (prcessTypes != null) {
    for (    ERepositoryObjectType type : prcessTypes) {
      RepositoryNode rootNode=((ProjectRepositoryNode)projectRepoNode).getRootRepositoryNode(type,true);
      if (rootNode != null) {
        rootNodes.add(rootNode);
      }
    }
  }
  return rootNodes;
}

Fixed version (ground truth):
private List<RepositoryNode> getRepositoryNodesByTypes(IProjectRepositoryNode projectRepoNode){
  List<RepositoryNode> rootNodes=new ArrayList<RepositoryNode>();
  List<ERepositoryObjectType> prcessTypes=getTypes();
  if (prcessTypes != null) {
    for (    ERepositoryObjectType type : prcessTypes) {
      RepositoryNode rootNode=((ProjectRepositoryNode)projectRepoNode).getRootRepositoryNode(type,true);
      if (rootNode != null) {
        if (type != null && type.hasChildrenType()) {
          for (          ERepositoryObjectType childType : type.getChildrenTypesArray()) {
            RepositoryNode childRootNode=((ProjectRepositoryNode)projectRepoNode).getRootRepositoryNode(childType,true);
            if (childRootNode != null && childRootNode.hasChildren() && !rootNode.getChildren().contains(childRootNode)) {
              rootNode.getChildren().add(childRootNode);
            }
          }
        }
        rootNodes.add(rootNode);
      }
    }
  }
  return rootNodes;
}
Program: 126468
Project: 126468
Buggy source:
public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
  monitor.beginTask(Messages.getString("String_Node_Str"),IProgressMonitor.UNKNOWN);
  if (salesforceAPI == null) {
    try {
      salesforceAPI=new SalesforceModuleParseAPI();
    }
 catch (    Throwable e) {
      ExceptionHandler.process(e);
    }
  }
  boolean socksProxy=false;
  boolean httpProxy=false;
  boolean httpsProxy=false;
  if (SalesforceModuleParseAPI.USE_SOCKS_PROXY.equals(proxy)) {
    socksProxy=true;
  }
  if (SalesforceModuleParseAPI.USE_HTTP_PROXY.equals(proxy)) {
    if (endPoint.startsWith("String_Node_Str")) {
      httpsProxy=true;
    }
 else {
      httpProxy=true;
    }
  }
  salesforceAPI.resetAllProxy();
  salesforceAPI.setProxy(proxyHost,proxyPort,proxyUsername,proxyPassword,httpProxy,socksProxy,httpsProxy);
  try {
    ArrayList loginList=salesforceAPI.login(endPoint,username,password,timeOut);
    if (loginList != null) {
      for (int i=0; i < loginList.size(); i++) {
        if (loginList.get(i) instanceof SoapBindingStub) {
          binding=(SoapBindingStub)loginList.get(i);
        }
        if (loginList.get(i) instanceof SforceServiceStub) {
          bindingPartner=(SforceServiceStub)loginList.get(i);
        }
      }
    }
    salesforceAPI.setLogin(true);
  }
 catch (  Throwable e) {
    errors.add(e.getMessage());
    ExceptionHandler.process(e);
  }
 finally {
    salesforceAPI.resetAllProxy();
  }
  monitor.done();
}

Fixed version (ground truth):
@Override public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
  monitor.beginTask(Messages.getString("String_Node_Str"),IProgressMonitor.UNKNOWN);
  if (salesforceAPI == null) {
    try {
      salesforceAPI=new SalesforceModuleParseAPI();
    }
 catch (    Throwable e) {
      ExceptionHandler.process(e);
    }
  }
  boolean socksProxy=false;
  boolean httpProxy=false;
  boolean httpsProxy=false;
  if (SalesforceModuleParseAPI.USE_SOCKS_PROXY.equals(proxy)) {
    socksProxy=true;
  }
  if (SalesforceModuleParseAPI.USE_HTTP_PROXY.equals(proxy)) {
    if (endPoint.startsWith("String_Node_Str")) {
      httpsProxy=true;
    }
 else {
      httpProxy=true;
    }
  }
  salesforceAPI.resetAllProxy();
  salesforceAPI.setProxy(proxyHost,proxyPort,proxyUsername,proxyPassword,httpProxy,socksProxy,httpsProxy);
  try {
    ArrayList loginList=salesforceAPI.login(endPoint,username,password,timeOut);
    if (loginList != null) {
      for (int i=0; i < loginList.size(); i++) {
        if (loginList.get(i) instanceof SoapBindingStub) {
          binding=(SoapBindingStub)loginList.get(i);
        }
        if (loginList.get(i) instanceof SforceManagement) {
          sforceMgr=(SforceManagement)loginList.get(i);
        }
      }
    }
    salesforceAPI.setLogin(true);
  }
 catch (  Throwable e) {
    errors.add(e.getMessage());
    ExceptionHandler.process(e);
  }
 finally {
    salesforceAPI.resetAllProxy();
  }
  monitor.done();
}
Program: 126470
Project: 126470
Buggy source:
protected com.salesforce.soap.partner.DescribeGlobalResult describeGlobalPartner() throws RemoteException {
  if (salesforceAPI.isLogin()) {
    ISalesforceModuleParser currentAPI=salesforceAPI.getCurrentAPI();
    if (currentAPI instanceof SalesforceModuleParserPartner) {
      SalesforceModuleParserPartner partner=(SalesforceModuleParserPartner)currentAPI;
      try {
        DescribeSObjectsResponse describeSObjects=bindingPartner.describeSObjects(null,null,null,null,null);
      }
 catch (      InvalidSObjectFault e) {
        e.printStackTrace();
      }
catch (      com.salesforce.soap.partner.UnexpectedErrorFault e) {
        e.printStackTrace();
      }
    }
  }
  return null;
}

Fixed version (ground truth):
protected com.salesforce.soap.partner.DescribeGlobalResult describeGlobalPartner() throws RemoteException {
  if (salesforceAPI.isLogin()) {
    ISalesforceModuleParser currentAPI=salesforceAPI.getCurrentAPI();
    if (currentAPI instanceof SalesforceModuleParserPartner) {
      SalesforceModuleParserPartner partner=(SalesforceModuleParserPartner)currentAPI;
      try {
        sforceMgr.describeSObjects(null);
      }
 catch (      Exception e) {
        e.printStackTrace();
      }
    }
  }
  return null;
}
Program: 126472
Project: 126472
Buggy source:
private Field[] fetchSFDescriptionField(String module,org.talend.salesforce.SforceManagement sforceManagement){
  DescribeSObject d=new DescribeSObject();
  d.setSObjectType(module);
  SessionHeader sh=sforceManagement.getSessionHeader();
  DescribeSObjectResult r;
  try {
    r=sforceManagement.getStub().describeSObject(d,sh,null,null,null).getResult();
    Field[] fields=r.getFields();
    return fields;
  }
 catch (  RemoteException e) {
    e.printStackTrace();
  }
catch (  InvalidSObjectFault e) {
    e.printStackTrace();
  }
catch (  com.salesforce.soap.partner.UnexpectedErrorFault e) {
    e.printStackTrace();
  }
  return null;
}

Fixed version (ground truth):
private Field[] fetchSFDescriptionField(String module,org.talend.salesforce.SforceManagement sforceManagement){
  DescribeSObjectResult r;
  try {
    r=sforceManagement.describeSObject(module);
    Field[] fields=r.getFields();
    return fields;
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
  return null;
}
Program: 126474
Project: 126474
Buggy source:
@Override public ArrayList login(String endPoint,String username,String password,String timeOut) throws Exception {
  if (endPoint == null) {
    throw new RemoteException(Messages.getString("String_Node_Str"));
  }
  if (username == null || password == null) {
    throw new Exception(Messages.getString("String_Node_Str"));
  }
  int time=Integer.valueOf(timeOut);
  ArrayList doLoginList=null;
  sforceManagement=new SforceManagementImpl();
  boolean login=false;
  if (name != null && pwd != null && url != null) {
    if (!url.equals(endPoint) || !name.equals(username) || !pwd.equals(password)) {
      login=sforceManagement.login(endPoint,username,password,time,false);
    }
 else {
      if (isLogin()) {
        return doLoginList;
      }
    }
  }
 else {
    login=sforceManagement.login(endPoint,username,password,time,false);
    doLoginList=new ArrayList();
    doLoginList.add(sforceManagement.getStub());
  }
  setLogin(login);
  setSforceManagement(sforceManagement);
  this.name=username;
  this.pwd=password;
  this.url=endPoint;
  return doLoginList;
}

Fixed version (ground truth):
@Override public ArrayList login(String endPoint,String username,String password,String timeOut) throws Exception {
  if (endPoint == null) {
    throw new RemoteException(Messages.getString("String_Node_Str"));
  }
  if (username == null || password == null) {
    throw new Exception(Messages.getString("String_Node_Str"));
  }
  int time=Integer.valueOf(timeOut);
  ArrayList doLoginList=null;
  sforceManagement=null;
  boolean login=false;
  if (name != null && pwd != null && url != null) {
    if (!url.equals(endPoint) || !name.equals(username) || !pwd.equals(password)) {
      try {
        SforceConnection sforceConn=new SforceBasicConnection.Builder(endPoint,username,password).setTimeout(time).needCompression(false).build();
        login=true;
        sforceManagement=new SforceManagementImpl(sforceConn);
      }
 catch (      Exception ex) {
      }
    }
 else {
      if (isLogin()) {
        return doLoginList;
      }
    }
  }
 else {
    try {
      SforceConnection sforceConn=new SforceBasicConnection.Builder(endPoint,username,password).setTimeout(time).needCompression(false).build();
      login=true;
      sforceManagement=new SforceManagementImpl(sforceConn);
    }
 catch (    Exception ex) {
    }
    doLoginList=new ArrayList();
    doLoginList.add(sforceManagement);
  }
  setLogin(login);
  setSforceManagement(sforceManagement);
  this.name=username;
  this.pwd=password;
  this.url=endPoint;
  return doLoginList;
}
Program: 126475
Project: 126475
Buggy source:
/** 
 * Fetch module fields from SF service. Make sure login sucess before do this. <p> DOC YeXiaowei Comment method "fetchSFDescriptionField".
 * @param module
 * @return
 */
private Field[] fetchSFDescriptionField(String module){
  DescribeSObject d=new DescribeSObject();
  d.setSObjectType(module);
  SessionHeader sh=sforceManagement.getSessionHeader();
  DescribeSObjectResult r;
  try {
    r=sforceManagement.getStub().describeSObject(d,sh,null,null,null).getResult();
    Field[] fields=r.getFields();
    setCurrentModuleName(module);
    return fields;
  }
 catch (  RemoteException e) {
    e.printStackTrace();
  }
catch (  InvalidSObjectFault e) {
    e.printStackTrace();
  }
catch (  UnexpectedErrorFault e) {
    e.printStackTrace();
  }
  return null;
}

Fixed version (ground truth):
/** 
 * Fetch module fields from SF service. Make sure login sucess before do this. <p> DOC YeXiaowei Comment method "fetchSFDescriptionField".
 * @param module
 * @return
 */
private Field[] fetchSFDescriptionField(String module){
  DescribeSObjectResult r;
  try {
    r=sforceManagement.describeSObject(module);
    Field[] fields=r.getFields();
    setCurrentModuleName(module);
    return fields;
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
  return null;
}
Program: 126477
Project: 126477
Buggy source:
/** 
 * Something like PROPERTY:REPOSITORY_PROPERTY_TYPE
 */
protected abstract String getRepositoryTypeValueName();

Fixed version (ground truth):
/** 
 * Something like REPOSITORY_PROPERTY_TYPE
 */
protected abstract String getRepositoryTypeValueName();