nus-yam/ex-repair huggingface dataset:
Program: 127029
Project: 127029
Buggy source:
/** 
 * Method "getPrimaryKeys".
 * @param table a table
 * @return a list of all primary keys of the given table
 * @deprecated use getPrimaryKey() instead
 */
public static List<PrimaryKey> getPrimaryKeys(Table table){
  List<PrimaryKey> primarykeys=new ArrayList<PrimaryKey>();
  EList<ModelElement> ownedElements=table.getOwnedElement();
  for (  ModelElement modelElement : ownedElements) {
    PrimaryKey pk=SwitchHelpers.PRIMARY_KEY_SWITCH.doSwitch(modelElement);
    if (pk != null) {
      primarykeys.add(pk);
    }
  }
  return primarykeys;
}

Fixed version (ground truth):
/** 
 * Method "getPrimaryKeys".
 * @param table a table
 * @return a list of all primary keys of the given table
 * @deprecated use getPrimaryKey() instead
 */
@Deprecated public static List<PrimaryKey> getPrimaryKeys(Table table){
  List<PrimaryKey> primarykeys=new ArrayList<PrimaryKey>();
  EList<ModelElement> ownedElements=table.getOwnedElement();
  for (  ModelElement modelElement : ownedElements) {
    PrimaryKey pk=SwitchHelpers.PRIMARY_KEY_SWITCH.doSwitch(modelElement);
    if (pk != null) {
      primarykeys.add(pk);
    }
  }
  return primarykeys;
}
Program: 127037
Project: 127037
Buggy source:
/** 
 * judge whether UiSchema is null or empty string whatever context mode or nor
 * @param dbConn
 * @return
 */
private boolean isNullUiSchema(Connection dbConn){
  if (dbConn instanceof DatabaseConnection) {
    String databaseOnConnWizard=((DatabaseConnection)dbConn).getUiSchema();
    String readableName=TalendCWMService.getReadableName(dbConn,databaseOnConnWizard);
    if (isEmptyString(databaseOnConnWizard) || isEmptyString(readableName)) {
      return true;
    }
  }
  return false;
}

Fixed version (ground truth):
/** 
 * judge whether UiSchema is null or empty string whatever context mode or nor
 * @param dbConn
 * @return
 */
protected boolean isNullUiSchema(Connection dbConn){
  if (dbConn instanceof DatabaseConnection) {
    String databaseOnConnWizard=((DatabaseConnection)dbConn).getUiSchema();
    String readableName=TalendCWMService.getReadableName(dbConn,databaseOnConnWizard);
    if (isEmptyString(databaseOnConnWizard) || isEmptyString(readableName)) {
      return true;
    }
  }
  return false;
}
Program: 127042
Project: 127042
Buggy source:
public static MetadataFillFactory getDBInstance(){
  if (instance == null) {
    instance=new MetadataFillFactory();
  }
  metadataFiller=DBmetadataFiller;
  return instance;
}

Fixed version (ground truth):
/** 
 * Get DatabaseConnection Instance
 * @param dbUrlType the type of you want to fill database
 * @return
 */
public static MetadataFillFactory getDBInstance(SupportDBUrlType dbUrlType){
  if (instance == null) {
    instance=new MetadataFillFactory();
  }
switch (dbUrlType) {
case SYBASEDEFAULTURL:
    metadataFiller=new SybaseConnectionFillerImpl();
  break;
default :
metadataFiller=DBmetadataFiller;
}
return instance;
}
Program: 127044
Project: 127044
Buggy source:
/** 
 * Method "setPropNewName". Try first the new name with "[PROPERTY_NAME]_Copy", then, if it already exists, try again with "[PROPERTY_NAME]_CopyN" where N is number between 1 and Integer.MAX.
 * @param copiedProperty
 * @throws PersistenceException
 * @throws BusinessException
 */
private void setPropNewName(Property copiedProperty) throws PersistenceException, BusinessException {
  String originalLabel=copiedProperty.getLabel();
  String copy="String_Node_Str";
  String initialTry=originalLabel + copy;
  copiedProperty.setLabel(initialTry);
  copiedProperty.setDisplayName(initialTry);
  if (isNameAvailable(getRepositoryContext().getProject(),copiedProperty.getItem(),null)) {
    return;
  }
 else {
    long index=1;
    while (!isNameAvailable(getRepositoryContext().getProject(),copiedProperty.getItem(),null)) {
      if (index < 0) {
        throw new BusinessException(Messages.getString("String_Node_Str"));
      }
      String nextTry=originalLabel + copy + (index++);
      copiedProperty.setLabel(nextTry);
      copiedProperty.setDisplayName(nextTry);
    }
  }
}

Fixed version (ground truth):
/** 
 * Method "setPropNewName". Try first the new name with "[PROPERTY_NAME]_Copy", then, if it already exists, try again with "[PROPERTY_NAME]_CopyN" where N is number between 1 and Integer.MAX.
 * @param copiedProperty
 * @throws PersistenceException
 * @throws BusinessException
 */
private void setPropNewName(Property copiedProperty) throws PersistenceException, BusinessException {
  String originalLabel=copiedProperty.getDisplayName();
  String copy="String_Node_Str";
  String initialTry=originalLabel + copy;
  copiedProperty.setLabel(initialTry);
  copiedProperty.setDisplayName(initialTry);
  if (isNameAvailable(getRepositoryContext().getProject(),copiedProperty.getItem(),null)) {
    return;
  }
 else {
    long index=1;
    while (!isNameAvailable(getRepositoryContext().getProject(),copiedProperty.getItem(),null)) {
      if (index < 0) {
        throw new BusinessException(Messages.getString("String_Node_Str"));
      }
      String nextTry=originalLabel + copy + (index++);
      copiedProperty.setLabel(nextTry);
      copiedProperty.setDisplayName(nextTry);
    }
  }
}
Program: 127045
Project: 127045
Buggy source:
@Override protected void doRun(){
  if (sourceNode == null) {
    return;
  }
  Property property=sourceNode.getObject().getProperty();
  Property updatedProperty=null;
  try {
    updatedProperty=ProxyRepositoryFactory.getInstance().getLastVersion(new Project(ProjectManager.getInstance().getProject(property.getItem())),property.getId()).getProperty();
  }
 catch (  PersistenceException e) {
    ExceptionHandler.process(e);
  }
  String initNameValue="String_Node_Str" + sourceNode.getObject().getProperty().getItem().getProperty().getLabel();
  CopyObjectAction copyObjectAction=CopyObjectAction.getInstance();
  final TreeSelection selectionInClipboard=(TreeSelection)selection;
  promptForSavingIfNecessary((RepositoryNode)selection.getFirstElement());
  String jobNameValue=null;
  try {
    jobNameValue=getDuplicateName(sourceNode,initNameValue,selectionInClipboard);
  }
 catch (  BusinessException e) {
    jobNameValue="String_Node_Str";
  }
  InputDialog jobNewNameDialog=new InputDialog(null,Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str"),jobNameValue,new IInputValidator(){
    @Override public String isValid(    String newText){
      return validJobName(sourceNode,newText,selectionInClipboard);
    }
  }
);
  if (jobNewNameDialog.open() != Dialog.OK) {
    return;
  }
  String jobNewName=jobNewNameDialog.getValue();
  createOperation(jobNewName,sourceNode,copyObjectAction,selectionInClipboard);
}

Fixed version (ground truth):
@Override protected void doRun(){
  if (sourceNode == null) {
    return;
  }
  Property property=sourceNode.getObject().getProperty();
  Property updatedProperty=null;
  try {
    updatedProperty=ProxyRepositoryFactory.getInstance().getLastVersion(new Project(ProjectManager.getInstance().getProject(property.getItem())),property.getId()).getProperty();
  }
 catch (  PersistenceException e) {
    ExceptionHandler.process(e);
  }
  String initNameValue="String_Node_Str" + sourceNode.getObject().getProperty().getItem().getProperty().getDisplayName();
  CopyObjectAction copyObjectAction=CopyObjectAction.getInstance();
  final TreeSelection selectionInClipboard=(TreeSelection)selection;
  promptForSavingIfNecessary((RepositoryNode)selection.getFirstElement());
  String jobNameValue=null;
  try {
    jobNameValue=getDuplicateName(sourceNode,initNameValue,selectionInClipboard);
  }
 catch (  BusinessException e) {
    jobNameValue="String_Node_Str";
  }
  InputDialog jobNewNameDialog=new InputDialog(null,Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str"),jobNameValue,new IInputValidator(){
    @Override public String isValid(    String newText){
      return validJobName(sourceNode,newText,selectionInClipboard);
    }
  }
);
  if (jobNewNameDialog.open() != Dialog.OK) {
    return;
  }
  String jobNewName=jobNewNameDialog.getValue();
  createOperation(jobNewName,sourceNode,copyObjectAction,selectionInClipboard);
}
Program: 127047
Project: 127047
Buggy source:
public static boolean addSchemas(Collection<Schema> schemas,Catalog catalog){
  return addPackages(schemas,catalog);
}

Fixed version (ground truth):
public static boolean addSchemas(Schema schema,Catalog catalog){
  return addPackage(schema,catalog);
}
Program: 127052
Project: 127052
Buggy source:
@Override public void run(){
  IDesignerCoreService designerCoreService=CoreRuntimePlugin.getInstance().getDesignerCoreService();
  if (designerCoreService != null) {
    designerCoreService.switchToCurContextsView();
    designerCoreService.switchToCurComponentSettingsView();
    designerCoreService.switchToCurJobSettingsView();
  }
}

Fixed version (ground truth):
@Override public void run(){
  IDesignerCoreService designerCoreService=CoreRuntimePlugin.getInstance().getDesignerCoreService();
  if (designerCoreService != null) {
    designerCoreService.switchToCurContextsView();
    designerCoreService.switchToCurJobSettingsView();
  }
}
Program: 127053
Project: 127053
Buggy source:
/** 
 * Added by Marvin Wang on Sep 14, 2012.
 */
private void updateRelatedViews(){
  Display.getDefault().syncExec(new Runnable(){
    @Override public void run(){
      IDesignerCoreService designerCoreService=CoreRuntimePlugin.getInstance().getDesignerCoreService();
      if (designerCoreService != null) {
        designerCoreService.switchToCurContextsView();
        designerCoreService.switchToCurComponentSettingsView();
        designerCoreService.switchToCurJobSettingsView();
      }
    }
  }
);
}

Fixed version (ground truth):
/** 
 * Added by Marvin Wang on Sep 14, 2012.
 */
private void updateRelatedViews(){
  Display.getDefault().syncExec(new Runnable(){
    @Override public void run(){
      IDesignerCoreService designerCoreService=CoreRuntimePlugin.getInstance().getDesignerCoreService();
      if (designerCoreService != null) {
        designerCoreService.switchToCurContextsView();
        designerCoreService.switchToCurJobSettingsView();
      }
    }
  }
);
}
Program: 127056
Project: 127056
Buggy source:
/** 
 * judge whether UiSchema is null or empty string whatever context mode or nor
 * @param dbConn
 * @return
 */
private boolean isNullUiSchema(Connection dbConn){
  if (dbConn instanceof DatabaseConnection) {
    String databaseOnConnWizard=((DatabaseConnection)dbConn).getUiSchema();
    String readableName=TalendCWMService.getReadableName(dbConn,databaseOnConnWizard);
    if (isEmptyString(databaseOnConnWizard) || isEmptyString(readableName)) {
      return true;
    }
  }
  return false;
}

Fixed version (ground truth):
/** 
 * judge whether UiSchema is null or empty string whatever context mode or nor
 * @param dbConn
 * @return
 */
protected boolean isNullUiSchema(Connection dbConn){
  if (dbConn instanceof DatabaseConnection) {
    String databaseOnConnWizard=((DatabaseConnection)dbConn).getUiSchema();
    String readableName=TalendCWMService.getReadableName(dbConn,databaseOnConnWizard);
    if (isEmptyString(databaseOnConnWizard) || isEmptyString(readableName)) {
      return true;
    }
  }
  return false;
}
Program: 127058
Project: 127058
Buggy source:
public static MetadataFillFactory getDBInstance(){
  if (instance == null) {
    instance=new MetadataFillFactory();
  }
  metadataFiller=DBmetadataFiller;
  return instance;
}

Fixed version (ground truth):
/** 
 * Get DatabaseConnection Instance
 * @param dbUrlType the type of you want to fill database
 * @return
 */
public static MetadataFillFactory getDBInstance(SupportDBUrlType dbUrlType){
  if (instance == null) {
    instance=new MetadataFillFactory();
  }
switch (dbUrlType) {
case SYBASEDEFAULTURL:
    metadataFiller=new SybaseConnectionFillerImpl();
  break;
default :
metadataFiller=DBmetadataFiller;
}
return instance;
}
Program: 127059
Project: 127059
Buggy source:
@Override public void run(){
  IDesignerCoreService designerCoreService=CoreRuntimePlugin.getInstance().getDesignerCoreService();
  if (designerCoreService != null) {
    designerCoreService.switchToCurContextsView();
    designerCoreService.switchToCurComponentSettingsView();
    designerCoreService.switchToCurJobSettingsView();
  }
}

Fixed version (ground truth):
@Override public void run(){
  IDesignerCoreService designerCoreService=CoreRuntimePlugin.getInstance().getDesignerCoreService();
  if (designerCoreService != null) {
    designerCoreService.switchToCurContextsView();
    designerCoreService.switchToCurJobSettingsView();
  }
}
Program: 127060
Project: 127060
Buggy source:
/** 
 * Added by Marvin Wang on Sep 14, 2012.
 */
private void updateRelatedViews(){
  Display.getDefault().syncExec(new Runnable(){
    @Override public void run(){
      IDesignerCoreService designerCoreService=CoreRuntimePlugin.getInstance().getDesignerCoreService();
      if (designerCoreService != null) {
        designerCoreService.switchToCurContextsView();
        designerCoreService.switchToCurComponentSettingsView();
        designerCoreService.switchToCurJobSettingsView();
      }
    }
  }
);
}

Fixed version (ground truth):
/** 
 * Added by Marvin Wang on Sep 14, 2012.
 */
private void updateRelatedViews(){
  Display.getDefault().syncExec(new Runnable(){
    @Override public void run(){
      IDesignerCoreService designerCoreService=CoreRuntimePlugin.getInstance().getDesignerCoreService();
      if (designerCoreService != null) {
        designerCoreService.switchToCurContextsView();
        designerCoreService.switchToCurJobSettingsView();
      }
    }
  }
);
}
Program: 127063
Project: 127063
Buggy source:
/** 
 * Ensures that fields are set.
 * @return
 */
@Override protected boolean checkFieldsValue(){
  String xmlXsdFilePathText=fileFieldXml.getText();
  if (xmlXsdFilePathText == "String_Node_Str") {
    updateStatus(IStatus.ERROR,Messages.getString("String_Node_Str"));
    return false;
  }
  if (!valid) {
    if (isContextMode()) {
      ContextType contextType=ConnectionContextHelper.getContextTypeForContextMode(connectionItem.getConnection());
      xmlXsdFilePathText=TalendQuoteUtils.removeQuotes(ConnectionContextHelper.getOriginalValue(contextType,xmlXsdFilePathText));
    }
    updateStatus(IStatus.ERROR,Messages.getString("String_Node_Str",xmlXsdFilePathText));
    return false;
  }
  if (xmlXsdFilePathText != null && !xmlXsdFilePathText.equals("String_Node_Str")) {
    if (treePopulator.isValidFile(xmlXsdFilePathText)) {
      if (!XmlUtil.isXMLFile(xmlXsdFilePathText) && !XmlUtil.isXSDFile(xmlXsdFilePathText)) {
        updateStatus(IStatus.ERROR,"String_Node_Str");
        return false;
      }
    }
 else {
      updateStatus(IStatus.ERROR,"String_Node_Str");
      return false;
    }
  }
  updateStatus(IStatus.OK,null);
  return true;
}

Fixed version (ground truth):
/** 
 * Ensures that fields are set.
 * @return
 */
@Override protected boolean checkFieldsValue(){
  String xmlXsdFilePathText=fileFieldXml.getText();
  if (xmlXsdFilePathText == "String_Node_Str") {
    updateStatus(IStatus.ERROR,Messages.getString("String_Node_Str"));
    return false;
  }
  if (!valid) {
    if (isContextMode()) {
      ContextType contextType=ConnectionContextHelper.getContextTypeForContextMode(connectionItem.getConnection());
      xmlXsdFilePathText=TalendQuoteUtils.removeQuotes(ConnectionContextHelper.getOriginalValue(contextType,xmlXsdFilePathText));
    }
    updateStatus(IStatus.ERROR,Messages.getString("String_Node_Str",xmlXsdFilePathText));
    return false;
  }
  if (xmlXsdFilePathText != null && !xmlXsdFilePathText.equals("String_Node_Str") && (xsdPathChanged || creation)) {
    if (treePopulator.isValidFile(xmlXsdFilePathText)) {
      if (!XmlUtil.isXMLFile(xmlXsdFilePathText) && !XmlUtil.isXSDFile(xmlXsdFilePathText)) {
        updateStatus(IStatus.ERROR,"String_Node_Str");
        return false;
      }
    }
 else {
      updateStatus(IStatus.ERROR,"String_Node_Str");
      return false;
    }
  }
  updateStatus(IStatus.OK,null);
  return true;
}
Program: 127065
Project: 127065
Buggy source:
private boolean isValidFile(String filePath){
  File file=new File(filePath);
  SAXReader saxReader=new SAXReader();
  URL url;
  try {
    url=file.toURI().toURL();
    Document doc=saxReader.read(url.getFile());
  }
 catch (  MalformedURLException e) {
    ExceptionHandler.process(e);
  }
catch (  DocumentException e) {
    return false;
  }
  return true;
}

Fixed version (ground truth):
public boolean isValidFile(String filePath){
  File file=new File(filePath);
  SAXReader saxReader=new SAXReader();
  URL url;
  try {
    url=file.toURI().toURL();
    Document doc=saxReader.read(url.getFile());
  }
 catch (  MalformedURLException e) {
    ExceptionHandler.process(e);
  }
catch (  DocumentException e) {
    return false;
  }
  return true;
}
Program: 127068
Project: 127068
Buggy source:
@Override public void fillActionBars(IActionBars actionBars){
  if (doubleClickAction != null && !doubleClickAction.getStructuredViewer().equals(getActionSite().getStructuredViewer())) {
    doubleClickAction=null;
    contextualsActions=null;
    makeActions();
  }
  super.fillActionBars(actionBars);
  actionBars.setGlobalActionHandler(ICommonActionConstants.OPEN,doubleClickAction);
}

Fixed version (ground truth):
@Override public void fillActionBars(IActionBars actionBars){
  if (doubleClickAction != null && !doubleClickAction.getStructuredViewer().equals(getActionSite().getStructuredViewer())) {
    doubleClickAction.setStructuredViewer(getActionSite().getStructuredViewer());
    ICommonViewerWorkbenchSite navWorkSite=((ICommonViewerWorkbenchSite)getActionSite().getViewSite());
    if (navWorkSite != null && navWorkSite.getSite() != null) {
      for (      ITreeContextualAction action : contextualsActions) {
        action.setWorkbenchPart(navWorkSite.getSite().getPart());
      }
    }
  }
  super.fillActionBars(actionBars);
  actionBars.setGlobalActionHandler(ICommonActionConstants.OPEN,doubleClickAction);
}
Program: 127069
Project: 127069
Buggy source:
protected void addContextualActions(IMenuManager manager,IStructuredSelection sel,MenuManager[] menuManagerGroups,Set<String> processedGroupIds){
  for (  ITreeContextualAction action : contextualsActions) {
    checkAndAddActionInMenu(action,sel,manager,menuManagerGroups,processedGroupIds);
  }
}

Fixed version (ground truth):
protected void addContextualActions(IMenuManager manager,IStructuredSelection sel,MenuManager[] menuManagerGroups,Set<String> processedGroupIds){
  ICommonViewerWorkbenchSite navWorkSite=((ICommonViewerWorkbenchSite)getActionSite().getViewSite());
  for (  ITreeContextualAction action : contextualsActions) {
    if (navWorkSite != null && navWorkSite.getSite() != null) {
      action.setWorkbenchPart(navWorkSite.getSite().getPart());
    }
    checkAndAddActionInMenu(action,sel,manager,menuManagerGroups,processedGroupIds);
  }
}
Program: 127070
Project: 127070
Buggy source:
/** 
 * @author jyhu
 * @aim Get unique name of the graphica node from generating node.
 * @param node: Generated node
 * @return unique name of the graphica node.
 */
public static String getVirtualUniqueName(INode node){
  String uniqueName=node.getUniqueName();
  if (node.isVirtualGenerateNode()) {
    List<? extends INode> nodeList=node.getProcess().getGraphicalNodes();
    for (    INode graphicnode : nodeList) {
      if (graphicnode.isGeneratedAsVirtualComponent()) {
        String nodeUniqueName=graphicnode.getUniqueName();
        if (uniqueName.indexOf(nodeUniqueName + "String_Node_Str") == 0) {
          uniqueName=nodeUniqueName;
          break;
        }
      }
    }
  }
  return uniqueName;
}

Fixed version (ground truth):
/** 
 * @author jyhu
 * @aim Get unique name of the graphica node from generating node.
 * @param node: Generated node
 * @return unique name of the graphica node.
 */
public static String getVirtualUniqueName(INode node){
  return getVirtualNode(node).getUniqueName();
}
Program: 127071
Project: 127071
Buggy source:
private boolean isValidFile(String filePath){
  File file=new File(filePath);
  SAXReader saxReader=new SAXReader();
  URL url;
  try {
    url=file.toURI().toURL();
    Document doc=saxReader.read(url.getFile());
  }
 catch (  MalformedURLException e) {
    ExceptionHandler.process(e);
  }
catch (  DocumentException e) {
    return false;
  }
  return true;
}

Fixed version (ground truth):
public boolean isValidFile(String filePath){
  File file=new File(filePath);
  SAXReader saxReader=new SAXReader();
  URL url;
  try {
    url=file.toURI().toURL();
    Document doc=saxReader.read(url.getFile());
  }
 catch (  MalformedURLException e) {
    ExceptionHandler.process(e);
  }
catch (  DocumentException e) {
    return false;
  }
  return true;
}
Program: 127074
Project: 127074
Buggy source:
public static String addQuotesWithSpaceFieldForSQLStringForce(String fieldName,String dbType,boolean simple){
  EDatabaseTypeName name=EDatabaseTypeName.getTypeFromDbType(dbType);
  final String quote=getQuoteByDBType(name);
  boolean isCheck=false;
  String preferenceValue=CorePlugin.getDefault().getPreferenceStore().getString(ITalendCorePrefConstants.SQL_ADD_QUOTE);
  isCheck=Boolean.parseBoolean(preferenceValue);
  String temp=removeQuotes(fieldName);
  Pattern pattern=Pattern.compile("String_Node_Str");
  Matcher matcher=pattern.matcher(temp);
  boolean isSqlKeyword=KeywordsValidator.isSqlKeyword(temp,name.getProduct());
  boolean isH2=EDatabaseTypeName.H2 == name;
  if ((!matcher.matches() || isSqlKeyword) && !isH2 && EDatabaseTypeName.SAS != name) {
    isCheck=true;
  }
  if (!isCheck && isPSQLSimilar(name) && !EDatabaseTypeName.MYSQL.equals(name)) {
    return fieldName;
  }
  String newFieldName=fieldName;
  newFieldName=TalendQuoteUtils.addQuotesForSQLString(newFieldName,quote,simple);
  return newFieldName;
}

Fixed version (ground truth):
public static String addQuotesWithSpaceFieldForSQLStringForce(String fieldName,String dbType,boolean simple){
  EDatabaseTypeName name=EDatabaseTypeName.getTypeFromDbType(dbType);
  final String quote=getQuoteByDBType(name);
  boolean isCheck=false;
  String preferenceValue=CorePlugin.getDefault().getPreferenceStore().getString(ITalendCorePrefConstants.SQL_ADD_QUOTE);
  isCheck=Boolean.parseBoolean(preferenceValue);
  String temp=removeQuotes(fieldName);
  Pattern pattern=Pattern.compile("String_Node_Str");
  Matcher matcher=pattern.matcher(temp);
  boolean isSqlKeyword=KeywordsValidator.isSqlKeyword(temp,name.getProduct());
  boolean isH2=EDatabaseTypeName.H2 == name;
  if (((!matcher.matches() || isSqlKeyword) && !isH2 && EDatabaseTypeName.SAS != name) || isIBMDB2ContainLowerCase(dbType,fieldName)) {
    isCheck=true;
  }
  if (!isCheck && isPSQLSimilar(name) && !EDatabaseTypeName.MYSQL.equals(name)) {
    return fieldName;
  }
  String newFieldName=fieldName;
  newFieldName=TalendQuoteUtils.addQuotesForSQLString(newFieldName,quote,simple);
  return newFieldName;
}
Program: 127075
Project: 127075
Buggy source:
@Override public void fillActionBars(IActionBars actionBars){
  if (doubleClickAction != null && !doubleClickAction.getStructuredViewer().equals(getActionSite().getStructuredViewer())) {
    doubleClickAction=null;
    contextualsActions=null;
    makeActions();
  }
  super.fillActionBars(actionBars);
  actionBars.setGlobalActionHandler(ICommonActionConstants.OPEN,doubleClickAction);
}

Fixed version (ground truth):
@Override public void fillActionBars(IActionBars actionBars){
  if (doubleClickAction != null && !doubleClickAction.getStructuredViewer().equals(getActionSite().getStructuredViewer())) {
    doubleClickAction.setStructuredViewer(getActionSite().getStructuredViewer());
    ICommonViewerWorkbenchSite navWorkSite=((ICommonViewerWorkbenchSite)getActionSite().getViewSite());
    if (navWorkSite != null && navWorkSite.getSite() != null) {
      for (      ITreeContextualAction action : contextualsActions) {
        action.setWorkbenchPart(navWorkSite.getSite().getPart());
      }
    }
  }
  super.fillActionBars(actionBars);
  actionBars.setGlobalActionHandler(ICommonActionConstants.OPEN,doubleClickAction);
}
Program: 127076
Project: 127076
Buggy source:
protected void addContextualActions(IMenuManager manager,IStructuredSelection sel,MenuManager[] menuManagerGroups,Set<String> processedGroupIds){
  for (  ITreeContextualAction action : contextualsActions) {
    checkAndAddActionInMenu(action,sel,manager,menuManagerGroups,processedGroupIds);
  }
}

Fixed version (ground truth):
protected void addContextualActions(IMenuManager manager,IStructuredSelection sel,MenuManager[] menuManagerGroups,Set<String> processedGroupIds){
  ICommonViewerWorkbenchSite navWorkSite=((ICommonViewerWorkbenchSite)getActionSite().getViewSite());
  for (  ITreeContextualAction action : contextualsActions) {
    if (navWorkSite != null && navWorkSite.getSite() != null) {
      action.setWorkbenchPart(navWorkSite.getSite().getPart());
    }
    checkAndAddActionInMenu(action,sel,manager,menuManagerGroups,processedGroupIds);
  }
}
Program: 127077
Project: 127077
Buggy source:
@Override public void syncBean(Item beanItem,boolean copyToTemp) throws SystemException {
  if (!isBeanUptodate(beanItem) || !getFile(beanItem).exists()) {
    doSyncBean(beanItem,copyToTemp);
    setBeanAsUptodate(beanItem);
  }
}

Fixed version (ground truth):
public void syncBean(Item beanItem,boolean copyToTemp,boolean forceUpdate) throws SystemException {
  if (beanItem != null && (forceUpdate || !isBeanUptodate(beanItem) || !getFile(beanItem).exists())) {
    doSyncBean(beanItem,copyToTemp);
    setBeanAsUptodate(beanItem);
  }
}
Program: 127078
Project: 127078
Buggy source:
@Override public void syncAllBeans() throws SystemException {
  if (GlobalServiceRegister.getDefault().isServiceRegistered(ICodeGeneratorService.class)) {
    ICodeGeneratorService codeGenService=(ICodeGeneratorService)GlobalServiceRegister.getDefault().getService(ICodeGeneratorService.class);
    ITalendSynchronizer talendSynchronizer=codeGenService.createCamelBeanSynchronizer();
    if (talendSynchronizer != null) {
      talendSynchronizer.syncAllBeans();
    }
  }
}

Fixed version (ground truth):
@Override public void syncAllBeans() throws SystemException {
  if (GlobalServiceRegister.getDefault().isServiceRegistered(ICodeGeneratorService.class)) {
    ICodeGeneratorService codeGenService=(ICodeGeneratorService)GlobalServiceRegister.getDefault().getService(ICodeGeneratorService.class);
    ITalendSynchronizer talendSynchronizer=codeGenService.createCamelBeanSynchronizer();
    if (talendSynchronizer != null) {
      talendSynchronizer.syncAllBeansForLogOn();
    }
  }
}
Program: 127079
Project: 127079
Buggy source:
@Override public void syncAllRoutines() throws SystemException {
  if (GlobalServiceRegister.getDefault().isServiceRegistered(ICodeGeneratorService.class)) {
    ICodeGeneratorService codeGenService=(ICodeGeneratorService)GlobalServiceRegister.getDefault().getService(ICodeGeneratorService.class);
    codeGenService.createRoutineSynchronizer().syncAllRoutinesForLogOn();
    codeGenService.createRoutineSynchronizer().syncAllPigudf();
  }
}

Fixed version (ground truth):
@Override public void syncAllRoutines() throws SystemException {
  if (GlobalServiceRegister.getDefault().isServiceRegistered(ICodeGeneratorService.class)) {
    ICodeGeneratorService codeGenService=(ICodeGeneratorService)GlobalServiceRegister.getDefault().getService(ICodeGeneratorService.class);
    codeGenService.createRoutineSynchronizer().syncAllRoutinesForLogOn();
    codeGenService.createRoutineSynchronizer().syncAllPigudfForLogOn();
  }
}
Program: 127081
Project: 127081
Buggy source:
@Override public void syncAllRoutines() throws SystemException {
  if (GlobalServiceRegister.getDefault().isServiceRegistered(ICodeGeneratorService.class)) {
    ICodeGeneratorService codeGenService=(ICodeGeneratorService)GlobalServiceRegister.getDefault().getService(ICodeGeneratorService.class);
    codeGenService.createRoutineSynchronizer().syncAllRoutines();
    codeGenService.createRoutineSynchronizer().syncAllPigudf();
  }
}

Fixed version (ground truth):
@Override public void syncAllRoutines() throws SystemException {
  if (GlobalServiceRegister.getDefault().isServiceRegistered(ICodeGeneratorService.class)) {
    ICodeGeneratorService codeGenService=(ICodeGeneratorService)GlobalServiceRegister.getDefault().getService(ICodeGeneratorService.class);
    codeGenService.createRoutineSynchronizer().syncAllRoutinesForLogOn();
    codeGenService.createRoutineSynchronizer().syncAllPigudf();
  }
}
Program: 127082
Project: 127082
Buggy source:
public void syncAllRoutines() throws SystemException {
  if (GlobalServiceRegister.getDefault().isServiceRegistered(ICodeGeneratorService.class)) {
    ICodeGeneratorService codeGenService=(ICodeGeneratorService)GlobalServiceRegister.getDefault().getService(ICodeGeneratorService.class);
    codeGenService.createRoutineSynchronizer().syncAllRoutines();
  }
}

Fixed version (ground truth):
public void syncAllRoutines() throws SystemException {
  if (GlobalServiceRegister.getDefault().isServiceRegistered(ICodeGeneratorService.class)) {
    ICodeGeneratorService codeGenService=(ICodeGeneratorService)GlobalServiceRegister.getDefault().getService(ICodeGeneratorService.class);
    codeGenService.createRoutineSynchronizer().syncAllRoutinesForLogOn();
  }
}
Program: 127084
Project: 127084
Buggy source:
/** 
 * bug 12582 by ggu.
 */
@SuppressWarnings("String_Node_Str") public Map<String,List<URI>> getUserRoutineModules(){
  Map<String,List<URI>> modules=new HashMap<String,List<URI>>();
  try {
    for (    IRepositoryViewObject ro : getRoutines()) {
      Item item=ro.getProperty().getItem();
      if (item instanceof RoutineItem) {
        EList imports=((RoutineItem)item).getImports();
        for (        Object o : imports) {
          if (o instanceof IMPORTType) {
            String urlPath=((IMPORTType)o).getUrlPath();
            if (urlPath != null && !"String_Node_Str".equals(urlPath)) {
              File file=new File(urlPath);
              if (file.exists()) {
                URI uri=file.toURI();
                List<URI> list=modules.get(ro.getLabel());
                if (list == null) {
                  list=new ArrayList<URI>();
                  modules.put(ro.getLabel(),list);
                }
                if (!list.contains(uri)) {
                  list.add(uri);
                }
              }
            }
          }
        }
      }
    }
  }
 catch (  SystemException e) {
    ExceptionHandler.process(e);
  }
  return modules;
}

Fixed version (ground truth):
/** 
 * bug 12582 by ggu.
 */
@Override @SuppressWarnings("String_Node_Str") public Map<String,List<URI>> getUserRoutineModules(){
  Map<String,List<URI>> modules=new HashMap<String,List<URI>>();
  try {
    for (    IRepositoryViewObject ro : getRoutines()) {
      Item item=ro.getProperty().getItem();
      if (item instanceof RoutineItem) {
        EList imports=((RoutineItem)item).getImports();
        for (        Object o : imports) {
          if (o instanceof IMPORTType) {
            String urlPath=((IMPORTType)o).getUrlPath();
            if (urlPath != null && !"String_Node_Str".equals(urlPath)) {
              File file=new File(urlPath);
              if (file.exists()) {
                URI uri=file.toURI();
                List<URI> list=modules.get(ro.getLabel());
                if (list == null) {
                  list=new ArrayList<URI>();
                  modules.put(ro.getLabel(),list);
                }
                if (!list.contains(uri)) {
                  list.add(uri);
                }
              }
            }
          }
        }
      }
    }
  }
 catch (  SystemException e) {
    ExceptionHandler.process(e);
  }
  return modules;
}
Program: 127085
Project: 127085
Buggy source:
public abstract void renameRoutineClass(RoutineItem routineItem);

Fixed version (ground truth):
@Override public abstract void renameRoutineClass(RoutineItem routineItem);
Program: 127086
Project: 127086
Buggy source:
public void syncBean(Item beanItem,boolean copyToTemp) throws SystemException {
  if (!isBeanUptodate(beanItem) || !getFile(beanItem).exists()) {
    doSyncBean(beanItem,copyToTemp);
    setBeanAsUptodate(beanItem);
  }
}

Fixed version (ground truth):
@Override public void syncBean(Item beanItem,boolean copyToTemp) throws SystemException {
  if (!isBeanUptodate(beanItem) || !getFile(beanItem).exists()) {
    doSyncBean(beanItem,copyToTemp);
    setBeanAsUptodate(beanItem);
  }
}
Program: 127087
Project: 127087
Buggy source:
public abstract void deleteRoutinefile(IRepositoryViewObject objToDelete);

Fixed version (ground truth):
@Override public abstract void deleteRoutinefile(IRepositoryViewObject objToDelete);
Program: 127088
Project: 127088
Buggy source:
public void forceSyncRoutine(RoutineItem routineItem){
  id2date.remove(routineItem.getProperty().getId());
  try {
    getFile(routineItem).delete(true,new NullProgressMonitor());
  }
 catch (  Exception e) {
  }
}

Fixed version (ground truth):
@Override public void forceSyncRoutine(RoutineItem routineItem){
  id2date.remove(routineItem.getProperty().getId());
  try {
    getFile(routineItem).delete(true,new NullProgressMonitor());
  }
 catch (  Exception e) {
  }
}
Program: 127089
Project: 127089
Buggy source:
/** 
 * DOC Administrator Comment method "renameBeanClass".
 * @param beanItem
 */
public abstract void renameBeanClass(Item beanItem);

Fixed version (ground truth):
/** 
 * DOC Administrator Comment method "renameBeanClass".
 * @param beanItem
 */
@Override public abstract void renameBeanClass(Item beanItem);
Program: 127090
Project: 127090
Buggy source:
public void syncAllRoutines() throws SystemException {
  if (GlobalServiceRegister.getDefault().isServiceRegistered(ICodeGeneratorService.class)) {
    ICodeGeneratorService codeGenService=(ICodeGeneratorService)GlobalServiceRegister.getDefault().getService(ICodeGeneratorService.class);
    codeGenService.createRoutineSynchronizer().syncAllRoutines();
  }
}

Fixed version (ground truth):
public void syncAllRoutines() throws SystemException {
  if (GlobalServiceRegister.getDefault().isServiceRegistered(ICodeGeneratorService.class)) {
    ICodeGeneratorService codeGenService=(ICodeGeneratorService)GlobalServiceRegister.getDefault().getService(ICodeGeneratorService.class);
    codeGenService.createRoutineSynchronizer().syncAllRoutinesForLogOn();
  }
}
Program: 127091
Project: 127091
Buggy source:
/** 
 * DOC ocarbone Comment method "performCancel". Unlock the IRepositoryObject before the close of the wizard.
 * @param IRepositoryObject
 */
public boolean performCancel(){
  if (repositoryObject != null)   repositoryObject.getProperty().eResource().unload();
  closeLockStrategy();
  return true;
}

Fixed version (ground truth):
/** 
 * DOC ocarbone Comment method "performCancel". Unlock the IRepositoryObject before the close of the wizard.
 * @param IRepositoryObject
 */
public boolean performCancel(){
  if (repositoryObject != null && repositoryObject.getProperty().eResource() != null)   repositoryObject.getProperty().eResource().unload();
  closeLockStrategy();
  return true;
}
Program: 127094
Project: 127094
Buggy source:
/** 
 * DOC ocarbone Comment method "performCancel". Unlock the IRepositoryObject before the close of the wizard.
 * @param IRepositoryObject
 */
public boolean performCancel(){
  if (repositoryObject != null)   repositoryObject.getProperty().eResource().unload();
  closeLockStrategy();
  return true;
}

Fixed version (ground truth):
/** 
 * DOC ocarbone Comment method "performCancel". Unlock the IRepositoryObject before the close of the wizard.
 * @param IRepositoryObject
 */
@Override public boolean performCancel(){
  if (repositoryObject != null && repositoryObject.getProperty().eResource() != null) {
    repositoryObject.getProperty().eResource().unload();
  }
  closeLockStrategy();
  return true;
}
Program: 127095
Project: 127095
Buggy source:
@Override public void syncBean(Item beanItem,boolean copyToTemp) throws SystemException {
  if (!isBeanUptodate(beanItem) || !getFile(beanItem).exists()) {
    doSyncBean(beanItem,copyToTemp);
    setBeanAsUptodate(beanItem);
  }
}

Fixed version (ground truth):
public void syncBean(Item beanItem,boolean copyToTemp,boolean forceUpdate) throws SystemException {
  if (beanItem != null && (forceUpdate || !isBeanUptodate(beanItem) || !getFile(beanItem).exists())) {
    doSyncBean(beanItem,copyToTemp);
    setBeanAsUptodate(beanItem);
  }
}
Program: 127096
Project: 127096
Buggy source:
@Override public void syncAllBeans() throws SystemException {
  if (GlobalServiceRegister.getDefault().isServiceRegistered(ICodeGeneratorService.class)) {
    ICodeGeneratorService codeGenService=(ICodeGeneratorService)GlobalServiceRegister.getDefault().getService(ICodeGeneratorService.class);
    ITalendSynchronizer talendSynchronizer=codeGenService.createCamelBeanSynchronizer();
    if (talendSynchronizer != null) {
      talendSynchronizer.syncAllBeans();
    }
  }
}

Fixed version (ground truth):
@Override public void syncAllBeans() throws SystemException {
  if (GlobalServiceRegister.getDefault().isServiceRegistered(ICodeGeneratorService.class)) {
    ICodeGeneratorService codeGenService=(ICodeGeneratorService)GlobalServiceRegister.getDefault().getService(ICodeGeneratorService.class);
    ITalendSynchronizer talendSynchronizer=codeGenService.createCamelBeanSynchronizer();
    if (talendSynchronizer != null) {
      talendSynchronizer.syncAllBeansForLogOn();
    }
  }
}
Program: 127097
Project: 127097
Buggy source:
@Override public void syncAllRoutines() throws SystemException {
  if (GlobalServiceRegister.getDefault().isServiceRegistered(ICodeGeneratorService.class)) {
    ICodeGeneratorService codeGenService=(ICodeGeneratorService)GlobalServiceRegister.getDefault().getService(ICodeGeneratorService.class);
    codeGenService.createRoutineSynchronizer().syncAllRoutinesForLogOn();
    codeGenService.createRoutineSynchronizer().syncAllPigudf();
  }
}

Fixed version (ground truth):
@Override public void syncAllRoutines() throws SystemException {
  if (GlobalServiceRegister.getDefault().isServiceRegistered(ICodeGeneratorService.class)) {
    ICodeGeneratorService codeGenService=(ICodeGeneratorService)GlobalServiceRegister.getDefault().getService(ICodeGeneratorService.class);
    codeGenService.createRoutineSynchronizer().syncAllRoutinesForLogOn();
    codeGenService.createRoutineSynchronizer().syncAllPigudfForLogOn();
  }
}
Program: 127099
Project: 127099
Buggy source:
/** 
 * DOC ocarbone Comment method "performCancel". Unlock the IRepositoryObject before the close of the wizard.
 * @param IRepositoryObject
 */
public boolean performCancel(){
  if (repositoryObject != null)   repositoryObject.getProperty().eResource().unload();
  closeLockStrategy();
  return true;
}

Fixed version (ground truth):
/** 
 * DOC ocarbone Comment method "performCancel". Unlock the IRepositoryObject before the close of the wizard.
 * @param IRepositoryObject
 */
@Override public boolean performCancel(){
  if (repositoryObject != null && repositoryObject.getProperty().eResource() != null) {
    repositoryObject.getProperty().eResource().unload();
  }
  closeLockStrategy();
  return true;
}
Program: 127103
Project: 127103
Buggy source:
@Override public void syncAllRoutines() throws SystemException {
  if (GlobalServiceRegister.getDefault().isServiceRegistered(ICodeGeneratorService.class)) {
    ICodeGeneratorService codeGenService=(ICodeGeneratorService)GlobalServiceRegister.getDefault().getService(ICodeGeneratorService.class);
    codeGenService.createRoutineSynchronizer().syncAllRoutines();
    codeGenService.createRoutineSynchronizer().syncAllPigudf();
  }
}

Fixed version (ground truth):
@Override public void syncAllRoutines() throws SystemException {
  if (GlobalServiceRegister.getDefault().isServiceRegistered(ICodeGeneratorService.class)) {
    ICodeGeneratorService codeGenService=(ICodeGeneratorService)GlobalServiceRegister.getDefault().getService(ICodeGeneratorService.class);
    codeGenService.createRoutineSynchronizer().syncAllRoutinesForLogOn();
    codeGenService.createRoutineSynchronizer().syncAllPigudf();
  }
}
Program: 127104
Project: 127104
Buggy source:
@Override public void syncAllRoutines() throws SystemException {
  if (GlobalServiceRegister.getDefault().isServiceRegistered(ICodeGeneratorService.class)) {
    ICodeGeneratorService codeGenService=(ICodeGeneratorService)GlobalServiceRegister.getDefault().getService(ICodeGeneratorService.class);
    codeGenService.createRoutineSynchronizer().syncAllRoutines();
    codeGenService.createRoutineSynchronizer().syncAllPigudf();
  }
}

Fixed version (ground truth):
@Override public void syncAllRoutines() throws SystemException {
  if (GlobalServiceRegister.getDefault().isServiceRegistered(ICodeGeneratorService.class)) {
    ICodeGeneratorService codeGenService=(ICodeGeneratorService)GlobalServiceRegister.getDefault().getService(ICodeGeneratorService.class);
    codeGenService.createRoutineSynchronizer().syncAllRoutinesForLogOn();
    codeGenService.createRoutineSynchronizer().syncAllPigudf();
  }
}
Program: 127106
Project: 127106
Buggy source:
public static String getBundlePath(String bundleName){
  Bundle refBundle=Platform.getBundle(bundleName);
  if (refBundle != null) {
    String bundlePath=refBundle.getLocation();
    String prefix="String_Node_Str";
    int prefixPos=bundlePath.lastIndexOf(prefix);
    if (prefixPos >= 0) {
      bundlePath=bundlePath.substring(prefixPos + prefix.length(),bundlePath.length() - 1);
      return bundlePath;
    }
  }
  return "String_Node_Str";
}

Fixed version (ground truth):
public static String getBundlePath(String bundleName){
  String bundlePath="String_Node_Str";
  Bundle refBundle=Platform.getBundle(bundleName);
  if (refBundle != null) {
    try {
      URL resource=refBundle.getEntry("String_Node_Str");
      bundlePath=FileLocator.toFileURL(resource).getPath();
      bundlePath=bundlePath.substring(0,bundlePath.length() - 1);
    }
 catch (    IOException e) {
      log.error(e);
    }
  }
  return bundlePath;
}
Program: 127107
Project: 127107
Buggy source:
@Override public void syncBean(Item beanItem,boolean copyToTemp) throws SystemException {
  if (!isBeanUptodate(beanItem) || !getFile(beanItem).exists()) {
    doSyncBean(beanItem,copyToTemp);
    setBeanAsUptodate(beanItem);
  }
}

Fixed version (ground truth):
public void syncBean(Item beanItem,boolean copyToTemp,boolean forceUpdate) throws SystemException {
  if (beanItem != null && (forceUpdate || !isBeanUptodate(beanItem) || !getFile(beanItem).exists())) {
    doSyncBean(beanItem,copyToTemp);
    setBeanAsUptodate(beanItem);
  }
}
Program: 127108
Project: 127108
Buggy source:
@Override public void syncAllBeans() throws SystemException {
  if (GlobalServiceRegister.getDefault().isServiceRegistered(ICodeGeneratorService.class)) {
    ICodeGeneratorService codeGenService=(ICodeGeneratorService)GlobalServiceRegister.getDefault().getService(ICodeGeneratorService.class);
    ITalendSynchronizer talendSynchronizer=codeGenService.createCamelBeanSynchronizer();
    if (talendSynchronizer != null) {
      talendSynchronizer.syncAllBeans();
    }
  }
}

Fixed version (ground truth):
@Override public void syncAllBeans() throws SystemException {
  if (GlobalServiceRegister.getDefault().isServiceRegistered(ICodeGeneratorService.class)) {
    ICodeGeneratorService codeGenService=(ICodeGeneratorService)GlobalServiceRegister.getDefault().getService(ICodeGeneratorService.class);
    ITalendSynchronizer talendSynchronizer=codeGenService.createCamelBeanSynchronizer();
    if (talendSynchronizer != null) {
      talendSynchronizer.syncAllBeansForLogOn();
    }
  }
}
Program: 127109
Project: 127109
Buggy source:
@Override public void syncAllRoutines() throws SystemException {
  if (GlobalServiceRegister.getDefault().isServiceRegistered(ICodeGeneratorService.class)) {
    ICodeGeneratorService codeGenService=(ICodeGeneratorService)GlobalServiceRegister.getDefault().getService(ICodeGeneratorService.class);
    codeGenService.createRoutineSynchronizer().syncAllRoutinesForLogOn();
    codeGenService.createRoutineSynchronizer().syncAllPigudf();
  }
}

Fixed version (ground truth):
@Override public void syncAllRoutines() throws SystemException {
  if (GlobalServiceRegister.getDefault().isServiceRegistered(ICodeGeneratorService.class)) {
    ICodeGeneratorService codeGenService=(ICodeGeneratorService)GlobalServiceRegister.getDefault().getService(ICodeGeneratorService.class);
    codeGenService.createRoutineSynchronizer().syncAllRoutinesForLogOn();
    codeGenService.createRoutineSynchronizer().syncAllPigudfForLogOn();
  }
}
Program: 127112
Project: 127112
Buggy source:
@Override public boolean equals(Object obj){
  if (this == obj) {
    return true;
  }
  if (obj == null) {
    return false;
  }
  if (getClass() != obj.getClass()) {
    return false;
  }
  final RepositoryNode other=(RepositoryNode)obj;
  if (this.type != ENodeType.SIMPLE_FOLDER) {
    if (null != this.id && null != other.id && !this.id.equals(other.id)) {
      return false;
    }
  }
  if (this.properties == null) {
    if (other.properties != null) {
      return false;
    }
  }
 else   if (!this.properties.equals(other.properties)) {
    return false;
  }
  if (this.type == null) {
    if (other.type != null) {
      return false;
    }
  }
 else   if (!this.type.equals(other.type)) {
    return false;
  }
  if (this.parent == null) {
    if (other.parent != null) {
      return false;
    }
  }
 else   if (!this.parent.equals(other.parent)) {
    return false;
  }
  if (this.getLabel() == null) {
    if (other.getLabel() != null) {
      return false;
    }
  }
 else   if (!this.getLabel().equals(other.getLabel())) {
    return false;
  }
  return true;
}

Fixed version (ground truth):
@Override public boolean equals(Object obj){
  if (this == obj) {
    return true;
  }
  if (obj == null) {
    return false;
  }
  if (getClass() != obj.getClass()) {
    return false;
  }
  final RepositoryNode other=(RepositoryNode)obj;
  if (this.type != ENodeType.SIMPLE_FOLDER) {
    if (null != this.id && null != other.id && !this.id.equals(other.id)) {
      return false;
    }
  }
  if (this.properties == null) {
    if (other.properties != null) {
      return false;
    }
  }
 else   if (!this.properties.equals(other.properties)) {
    return false;
  }
  if (this.type == null) {
    if (other.type != null) {
      return false;
    }
  }
 else   if (!this.type.equals(other.type)) {
    return false;
  }
  if (this.parent == null) {
    if (other.parent != null) {
      return false;
    }
  }
 else   if (!this.parent.equals(other.parent)) {
    return false;
  }
  if (this.object == null) {
    if (other.object != null) {
      return false;
    }
  }
 else {
    if (object.getVersion() == null) {
      if (other.object.getVersion() != null) {
        return false;
      }
    }
 else     if (!object.getVersion().equals(other.object.getVersion())) {
      return false;
    }
  }
  if (this.getLabel() == null) {
    if (other.getLabel() != null) {
      return false;
    }
  }
 else   if (!this.getLabel().equals(other.getLabel())) {
    return false;
  }
  return true;
}
Program: 127113
Project: 127113
Buggy source:
@Override public int hashCode(){
  int result=1;
  result=PRIME * result + ((this.id == null) ? 0 : this.id.hashCode());
  result=PRIME * result + ((this.properties == null) ? 0 : this.properties.hashCode());
  result=PRIME * result + ((this.type == null) ? 0 : this.type.hashCode());
  result=PRIME * result + ((this.parent == null) ? 0 : this.parent.hashCode());
  result=PRIME * result + ((this.object == null) ? 0 : this.object.hashCode());
  return result;
}

Fixed version (ground truth):
@Override public int hashCode(){
  int result=1;
  result=PRIME * result + ((this.id == null) ? 0 : this.id.hashCode());
  result=PRIME * result + ((this.properties == null) ? 0 : this.properties.hashCode());
  result=PRIME * result + ((this.type == null) ? 0 : this.type.hashCode());
  return result;
}
Program: 127115
Project: 127115
Buggy source:
public RepoViewLinkerRegistryReader(){
  super(FrameworkUtil.getBundle(RepoViewLinkerRegistryReader.class).getSymbolicName(),VIEW_LINKER_EXTENSION_POINT);
}

Fixed version (ground truth):
private RepoViewLinkerRegistryReader(){
  super(FrameworkUtil.getBundle(RepoViewLinkerRegistryReader.class).getSymbolicName(),VIEW_LINKER_EXTENSION_POINT);
}