nus-yam/ex-repair huggingface dataset:
Program: 177934
Project: 177934
Buggy source:
/** 
 * Full constructor
 * @param list1 First List
 * @param list2 Second List
 */
public GenericCollectionsConstructorPojo(List<Long> list1,List<String> list2){
  this.list1=new ArrayList<Long>(list1);
  this.list2=new ArrayList<String>(list2);
}

Fixed version (ground truth):
/** 
 * Full constructor
 * @param list1 First List
 * @param list2 Second List
 */
public GenericCollectionsConstructorPojo(List<Long> list1,List<String> list2,List<?> list3){
  this.list1=new Vector<Long>(list1);
  this.list2=new Vector<String>(list2);
  this.list3=new Vector<Object>(list3);
}
Program: 177935
Project: 177935
Buggy source:
@Override public String toString(){
  final StringBuilder sb=new StringBuilder("String_Node_Str");
  sb.append("String_Node_Str").append(list1);
  sb.append("String_Node_Str").append(list2);
  sb.append('}');
  return sb.toString();
}

Fixed version (ground truth):
@Override public String toString(){
  final StringBuilder sb=new StringBuilder("String_Node_Str");
  sb.append("String_Node_Str").append(list1);
  sb.append("String_Node_Str").append(list2);
  sb.append("String_Node_Str").append(list3);
  sb.append('}');
  return sb.toString();
}
Program: 177936
Project: 177936
Buggy source:
@Test @Title("String_Node_Str") public void podamShouldHandleGenericCollectionsInConstructorWithMemoizationDisabled() throws Exception {
  PodamFactory podamFactory=podamFactorySteps.givenAStandardPodamFactory();
  GenericCollectionsConstructorPojo pojo=podamInvocationSteps.whenIInvokeTheFactoryForClass(GenericCollectionsConstructorPojo.class,podamFactory);
  podamValidationSteps.theObjectShouldNotBeNull(pojo);
  podamValidationSteps.theCollectionShouldNotBeNullOrEmptyAndContainElementsOfType(pojo.getList1(),Long.class);
  podamValidationSteps.theCollectionShouldNotBeNullOrEmptyAndContainElementsOfType(pojo.getList2(),String.class);
}

Fixed version (ground truth):
@Test @Title("String_Node_Str") public void podamShouldHandleGenericCollectionsInConstructorWithMemoizationDisabled() throws Exception {
  PodamFactory podamFactory=podamFactorySteps.givenAStandardPodamFactory();
  GenericCollectionsConstructorPojo pojo=podamInvocationSteps.whenIInvokeTheFactoryForClass(GenericCollectionsConstructorPojo.class,podamFactory);
  podamValidationSteps.theObjectShouldNotBeNull(pojo);
  podamValidationSteps.theCollectionShouldNotBeNullOrEmptyAndContainElementsOfType(pojo.getList1(),Long.class);
  podamValidationSteps.theCollectionShouldNotBeNullOrEmptyAndContainElementsOfType(pojo.getList2(),String.class);
  podamValidationSteps.theCollectionShouldNotBeNullOrEmptyAndContainElementsOfType(pojo.getList3(),Object.class);
}
Program: 177937
Project: 177937
Buggy source:
@Test @Title("String_Node_Str") public void podamShouldHandleGenericCollectionsInConstructorWithMemoizationEnabled() throws Exception {
  PodamFactory podamFactory=podamFactorySteps.givenAStandardPodamFactoryWithMemoizationEnabled();
  GenericCollectionsConstructorPojo pojo=podamInvocationSteps.whenIInvokeTheFactoryForClass(GenericCollectionsConstructorPojo.class,podamFactory);
  podamValidationSteps.theObjectShouldNotBeNull(pojo);
  podamValidationSteps.theCollectionShouldNotBeNullOrEmptyAndContainElementsOfType(pojo.getList1(),Long.class);
  podamValidationSteps.theCollectionShouldNotBeNullOrEmptyAndContainElementsOfType(pojo.getList2(),String.class);
}

Fixed version (ground truth):
@Test @Title("String_Node_Str") public void podamShouldHandleGenericCollectionsInConstructorWithMemoizationEnabled() throws Exception {
  PodamFactory podamFactory=podamFactorySteps.givenAStandardPodamFactoryWithMemoizationEnabled();
  GenericCollectionsConstructorPojo pojo=podamInvocationSteps.whenIInvokeTheFactoryForClass(GenericCollectionsConstructorPojo.class,podamFactory);
  podamValidationSteps.theObjectShouldNotBeNull(pojo);
  podamValidationSteps.theCollectionShouldNotBeNullOrEmptyAndContainElementsOfType(pojo.getList1(),Long.class);
  podamValidationSteps.theCollectionShouldNotBeNullOrEmptyAndContainElementsOfType(pojo.getList2(),String.class);
  podamValidationSteps.theCollectionShouldNotBeNullOrEmptyAndContainElementsOfType(pojo.getList3(),Object.class);
}
Program: 177938
Project: 177938
Buggy source:
@Step("String_Node_Str") public boolean theObjectShouldNotBeNull(Object pojo){
  return pojo == null;
}

Fixed version (ground truth):
@Step("String_Node_Str") public void theObjectShouldNotBeNull(Object pojo){
  assertThat(pojo,is(notNullValue()));
}
Program: 177939
Project: 177939
Buggy source:
/** 
 * Full constructor.
 * @param dataProviderStrategy The DataProviderStrategy
 * @param attributeMetadata    The AttributeMetadata
 * @param typeArgumentsMap The map of type arguments
 */
public TypeManufacturerParamsWrapperForGenericTypes(DataProviderStrategy dataProviderStrategy,AttributeMetadata attributeMetadata,Map<String,Type> typeArgumentsMap,Type attributeGenericType){
  super(dataProviderStrategy,attributeMetadata);
  this.typeArgumentsMap=new HashMap<String,Type>(typeArgumentsMap);
  this.attributeGenericType=attributeGenericType;
}

Fixed version (ground truth):
/** 
 * Full constructor.
 * @param dataProviderStrategy The DataProviderStrategy
 * @param attributeMetadata    The AttributeMetadata
 * @param typeArgumentsMap The map of type arguments
 * @param attributeGenericType The attribute generic type
 */
public TypeManufacturerParamsWrapperForGenericTypes(DataProviderStrategy dataProviderStrategy,AttributeMetadata attributeMetadata,Map<String,Type> typeArgumentsMap,Type attributeGenericType){
  super(dataProviderStrategy,attributeMetadata);
  this.typeArgumentsMap=new HashMap<String,Type>(typeArgumentsMap);
  this.attributeGenericType=attributeGenericType;
}
Program: 177942
Project: 177942
Buggy source:
/** 
 * Bind an interface/abstract class to a specific implementation. If the strategy previously contained a binding for the interface/abstract class, the old value is replaced by the new value. If you want to implement more sophisticated binding strategy, override this class.
 * @param < T > return type
 * @param abstractClass the interface/abstract class to bind
 * @param specificClass the specific class implementing or extending {@code abstractClass}.
 * @return itself
 */
public <T>AbstractRandomDataProviderStrategy addSpecific(final Class<T> abstractClass,final Class<? extends T> specificClass){
  Class<?> aClass=specificTypes.putIfAbsent(abstractClass,specificClass);
  if (aClass == null) {
    aClass=specificClass;
  }
  return this;
}

Fixed version (ground truth):
/** 
 * Bind an interface/abstract class to a specific implementation. If the strategy previously contained a binding for the interface/abstract class, the old value is replaced by the new value. If you want to implement more sophisticated binding strategy, override this class.
 * @param < T > return type
 * @param abstractClass the interface/abstract class to bind
 * @param specificClass the specific class implementing or extending {@code abstractClass}.
 * @return itself
 */
public <T>AbstractRandomDataProviderStrategy addSpecific(final Class<T> abstractClass,final Class<? extends T> specificClass){
  Class<? extends T> aClass=(Class<? extends T>)specificTypes.putIfAbsent(abstractClass,specificClass);
  if (aClass == null) {
    aClass=specificClass;
  }
  return this;
}
Program: 177943
Project: 177943
Buggy source:
/** 
 * Given the attribute and setter it combines annotations from them or an empty collection if no custom annotations were found
 * @param attribute The class attribute
 * @param attributeName The class attribute's setter
 * @return all annotations for the attribute
 */
public static List<Annotation> getAttributeAnnotations(final Field attribute,final Method setter){
  Annotation[] annotations=(attribute != null ? attribute.getAnnotations() : null);
  List<Annotation> retValue;
  if (annotations != null && annotations.length != 0) {
    retValue=Arrays.asList(annotations);
  }
 else {
    retValue=new ArrayList<Annotation>();
  }
  for (  Annotation annotation : setter.getParameterAnnotations()[0]) {
    retValue.add(annotation);
  }
  return retValue;
}

Fixed version (ground truth):
/** 
 * Given the attribute and setter it combines annotations from them or an empty collection if no custom annotations were found
 * @param attribute The class attribute
 * @param setter The class attribute's setter
 * @return all annotations for the attribute
 */
public static List<Annotation> getAttributeAnnotations(final Field attribute,final Method setter){
  Annotation[] annotations=(attribute != null ? attribute.getAnnotations() : null);
  List<Annotation> retValue;
  if (annotations != null && annotations.length != 0) {
    retValue=Arrays.asList(annotations);
  }
 else {
    retValue=new ArrayList<Annotation>();
  }
  for (  Annotation annotation : setter.getParameterAnnotations()[0]) {
    retValue.add(annotation);
  }
  return retValue;
}
Program: 177952
Project: 177952
Buggy source:
public JenkinsWindowManager(Project project){
  this.project=project;
  final BrowserPanel browserPanel=BrowserPanel.getInstance(project);
  Content content=ContentFactory.SERVICE.getInstance().createContent(browserPanel,null,false);
  ToolWindowManager toolWindowManager=ToolWindowManager.getInstance(project);
  ToolWindow toolWindow=toolWindowManager.registerToolWindow(JENKINS_BROWSER,false,ToolWindowAnchor.RIGHT);
  toolWindow.setIcon(JENKINS_ICON);
  ContentManager contentManager=toolWindow.getContentManager();
  contentManager.addContent(content);
  final StatusBar statusBar=WindowManager.getInstance().getStatusBar(project);
  JenkinsWidget jenkinsWidget=JenkinsWidget.getInstance(project);
  statusBar.addWidget(jenkinsWidget);
  jenkinsWidget.install(statusBar);
  final RssLogic rssLogic=RssLogic.getInstance(project);
  StartupManager.getInstance(project).registerPostStartupActivity(new DumbAwareRunnable(){
    @Override public void run(){
      browserPanel.init();
      rssLogic.init();
    }
  }
);
}

Fixed version (ground truth):
public JenkinsWindowManager(Project project){
  this.project=project;
  final BrowserPanel browserPanel=BrowserPanel.getInstance(project);
  Content content=ContentFactory.SERVICE.getInstance().createContent(browserPanel,null,false);
  ToolWindowManager toolWindowManager=ToolWindowManager.getInstance(project);
  ToolWindow toolWindow=toolWindowManager.registerToolWindow(JENKINS_BROWSER,false,ToolWindowAnchor.RIGHT);
  toolWindow.setIcon(JENKINS_ICON);
  ContentManager contentManager=toolWindow.getContentManager();
  contentManager.addContent(content);
  final StatusBar statusBar=WindowManager.getInstance().getStatusBar(project);
  final JenkinsWidget jenkinsWidget=JenkinsWidget.getInstance(project);
  statusBar.addWidget(jenkinsWidget);
  jenkinsWidget.install(statusBar);
  final RssLogic rssLogic=RssLogic.getInstance(project);
  StartupManager.getInstance(project).registerPostStartupActivity(new DumbAwareRunnable(){
    @Override public void run(){
      browserPanel.init();
      rssLogic.init();
    }
  }
);
}
Program: 177953
Project: 177953
Buggy source:
public void reloadConfiguration(){
  BrowserPanel browserPanel=BrowserPanel.getInstance(project);
  browserPanel.reloadConfiguration();
  browserPanel.initScheduledJobs(scheduledThreadPoolExecutor);
  RssLogic.getInstance(project).initScheduledJobs(scheduledThreadPoolExecutor);
}

Fixed version (ground truth):
public void reloadConfiguration(){
  BrowserPanel browserPanel=BrowserPanel.getInstance(project);
  browserPanel.reloadConfiguration();
}
Program: 177954
Project: 177954
Buggy source:
public JenkinsWindowManager(Project project){
  this.project=project;
  final BrowserPanel browserPanel=BrowserPanel.getInstance(project);
  Content content=ContentFactory.SERVICE.getInstance().createContent(browserPanel,null,false);
  ToolWindowManager toolWindowManager=ToolWindowManager.getInstance(project);
  ToolWindow toolWindow=toolWindowManager.registerToolWindow(JENKINS_BROWSER,false,ToolWindowAnchor.RIGHT);
  toolWindow.setIcon(JENKINS_ICON);
  ContentManager contentManager=toolWindow.getContentManager();
  contentManager.addContent(content);
  final StatusBar statusBar=WindowManager.getInstance().getStatusBar(project);
  JenkinsWidget jenkinsWidget=JenkinsWidget.getInstance(project);
  statusBar.addWidget(jenkinsWidget);
  jenkinsWidget.install(statusBar);
  final RssLogic rssLogic=RssLogic.getInstance(project);
  StartupManager.getInstance(project).registerPostStartupActivity(new DumbAwareRunnable(){
    @Override public void run(){
      browserPanel.init();
      browserPanel.initScheduledJobs(scheduledThreadPoolExecutor);
      rssLogic.init();
      rssLogic.initScheduledJobs(scheduledThreadPoolExecutor);
    }
  }
);
}

Fixed version (ground truth):
public JenkinsWindowManager(Project project){
  this.project=project;
  final BrowserPanel browserPanel=BrowserPanel.getInstance(project);
  Content content=ContentFactory.SERVICE.getInstance().createContent(browserPanel,null,false);
  ToolWindowManager toolWindowManager=ToolWindowManager.getInstance(project);
  ToolWindow toolWindow=toolWindowManager.registerToolWindow(JENKINS_BROWSER,false,ToolWindowAnchor.RIGHT);
  toolWindow.setIcon(JENKINS_ICON);
  ContentManager contentManager=toolWindow.getContentManager();
  contentManager.addContent(content);
  final StatusBar statusBar=WindowManager.getInstance().getStatusBar(project);
  JenkinsWidget jenkinsWidget=JenkinsWidget.getInstance(project);
  statusBar.addWidget(jenkinsWidget);
  jenkinsWidget.install(statusBar);
  final RssLogic rssLogic=RssLogic.getInstance(project);
  StartupManager.getInstance(project).registerPostStartupActivity(new DumbAwareRunnable(){
    @Override public void run(){
      browserPanel.init();
      rssLogic.init();
    }
  }
);
}
Program: 177955
Project: 177955
Buggy source:
@Override public void run(){
  browserPanel.init();
  browserPanel.initScheduledJobs(scheduledThreadPoolExecutor);
  rssLogic.init();
  rssLogic.initScheduledJobs(scheduledThreadPoolExecutor);
}

Fixed version (ground truth):
@Override public void run(){
  browserPanel.init();
  rssLogic.init();
}
Program: 177956
Project: 177956
Buggy source:
@Override public void afterLogin(Project project){
  RssLogic rssLogic=RssLogic.getInstance(project);
  rssLogic.loadLatestBuilds(false);
}

Fixed version (ground truth):
@Override public void afterLogin(Project project){
  RssLogic rssLogic=RssLogic.getInstance(project);
  rssLogic.loadLatestBuilds(false);
  rssLogic.initScheduledJobs(JenkinsWindowManager.getInstance(project).getScheduledThreadPoolExecutor());
}
Program: 177957
Project: 177957
Buggy source:
public RSSLoaderActionHandler(){
  MessageBus myBus=ApplicationManager.getApplication().getMessageBus();
  myBus.connect().subscribe(RefreshActionNotifier.USER_LOGGED_IN,new RefreshActionNotifier(){
    @Override public void afterLogin(    Project project){
      RssLogic rssLogic=RssLogic.getInstance(project);
      rssLogic.loadLatestBuilds(false);
    }
  }
);
}

Fixed version (ground truth):
public RSSLoaderActionHandler(){
  MessageBus myBus=ApplicationManager.getApplication().getMessageBus();
  myBus.connect().subscribe(RefreshActionNotifier.USER_LOGGED_IN,new RefreshActionNotifier(){
    @Override public void afterLogin(    Project project){
      RssLogic rssLogic=RssLogic.getInstance(project);
      rssLogic.loadLatestBuilds(false);
      rssLogic.initScheduledJobs(JenkinsWindowManager.getInstance(project).getScheduledThreadPoolExecutor());
    }
  }
);
}
Program: 177958
Project: 177958
Buggy source:
public RefreshNodeActionHandler(){
  MessageBus myBus=ApplicationManager.getApplication().getMessageBus();
  myBus.connect().subscribe(RefreshActionNotifier.USER_LOGGED_IN,new RefreshActionNotifier(){
    @Override public void afterLogin(    Project project){
      BrowserPanel browser=BrowserPanel.getInstance(project);
      browser.postAuthenticationInitialization();
    }
  }
);
}

Fixed version (ground truth):
public RefreshNodeActionHandler(){
  MessageBus myBus=ApplicationManager.getApplication().getMessageBus();
  myBus.connect().subscribe(RefreshActionNotifier.USER_LOGGED_IN,new RefreshActionNotifier(){
    @Override public void afterLogin(    Project project){
      BrowserPanel browser=BrowserPanel.getInstance(project);
      browser.postAuthenticationInitialization();
      browser.initScheduledJobs(JenkinsWindowManager.getInstance(project).getScheduledThreadPoolExecutor());
    }
  }
);
}
Program: 177959
Project: 177959
Buggy source:
@Override public void afterLogin(Project project){
  BrowserPanel browser=BrowserPanel.getInstance(project);
  browser.postAuthenticationInitialization();
}

Fixed version (ground truth):
@Override public void afterLogin(Project project){
  BrowserPanel browser=BrowserPanel.getInstance(project);
  browser.postAuthenticationInitialization();
  browser.initScheduledJobs(JenkinsWindowManager.getInstance(project).getScheduledThreadPoolExecutor());
}
Program: 177960
Project: 177960
Buggy source:
public static void runInSwingThread(Runnable runnable){
  if (SwingUtilities.isEventDispatchThread()) {
    runnable.run();
  }
 else {
    SwingUtilities.invokeLater(runnable);
  }
}

Fixed version (ground truth):
@Deprecated public static void runInSwingThread(Runnable runnable){
  if (SwingUtilities.isEventDispatchThread()) {
    runnable.run();
  }
 else {
    SwingUtilities.invokeLater(runnable);
  }
}
Program: 177962
Project: 177962
Buggy source:
@Override public void actionPerformed(AnActionEvent event){
  try {
    Project project=browserPanel.getProject();
    Job job=browserPanel.getSelectedJob();
    RequestManager requestManager=browserPanel.getJenkinsManager();
    if (job.hasParameters()) {
      BuildParamDialog.showDialog(job,JenkinsAppSettings.getSafeInstance(project),requestManager,new BuildParamDialog.RunBuildCallback(){
        public void notifyOnOk(        Job job){
          notifyOnGoingMessage(job);
        }
        public void notifyOnError(        Job job,        Exception ex){
          browserPanel.notifyErrorJenkinsToolWindow("String_Node_Str" + job.getName() + "String_Node_Str"+ ex.getMessage());
        }
      }
);
    }
 else {
      requestManager.runBuild(job,JenkinsAppSettings.getSafeInstance(project));
      notifyOnGoingMessage(job);
      browserPanel.loadSelectedJob();
    }
  }
 catch (  Exception ex) {
    LOG.error(ex.getMessage(),ex);
    browserPanel.notifyErrorJenkinsToolWindow("String_Node_Str" + ex.getMessage());
  }
}

Fixed version (ground truth):
@Override public void actionPerformed(AnActionEvent event){
  Project project=ActionUtil.getProject(event);
  try {
    Job job=browserPanel.getSelectedJob();
    RequestManager requestManager=browserPanel.getJenkinsManager();
    if (job.hasParameters()) {
      BuildParamDialog.showDialog(job,JenkinsAppSettings.getSafeInstance(project),requestManager,new BuildParamDialog.RunBuildCallback(){
        public void notifyOnOk(        Job job){
          notifyOnGoingMessage(job);
        }
        public void notifyOnError(        Job job,        Exception ex){
          browserPanel.notifyErrorJenkinsToolWindow("String_Node_Str" + job.getName() + "String_Node_Str"+ ex.getMessage());
        }
      }
);
    }
 else {
      requestManager.runBuild(job,JenkinsAppSettings.getSafeInstance(project));
      notifyOnGoingMessage(job);
      browserPanel.loadSelectedJob();
    }
  }
 catch (  Exception ex) {
    LOG.error(ex.getMessage(),ex);
    browserPanel.notifyErrorJenkinsToolWindow("String_Node_Str" + ex.getMessage());
  }
}
Program: 177963
Project: 177963
Buggy source:
private void runMethod(String url,ResponseCollector responseCollector){
  httpClient.getParams().setAuthenticationPreemptive(false);
  PostMethod post=new PostMethod(url);
  setCrumbValueIfNeeded();
  if (isCrumbDataSet()) {
    post.addRequestHeader(CRUMB_NAME,crumbValue);
  }
  InputStream inputStream=null;
  try {
    int statusCode=httpClient.executeMethod(post);
    inputStream=post.getResponseBodyAsStream();
    String responseBody=IOUtils.toString(inputStream,post.getResponseCharSet());
    checkResponse(statusCode,responseBody);
    if (HttpURLConnection.HTTP_OK == statusCode) {
      responseCollector.collect(statusCode,responseBody);
    }
    if (isRedirection(statusCode)) {
      responseCollector.collect(statusCode,post.getResponseHeader("String_Node_Str").getValue());
    }
  }
 catch (  HttpException httpEx) {
    throw new ConfigurationException(String.format("String_Node_Str",url),httpEx);
  }
catch (  IOException ioEx) {
    throw new ConfigurationException(String.format("String_Node_Str",url),ioEx);
  }
 finally {
    IOUtils.closeQuietly(inputStream);
    post.releaseConnection();
  }
}

Fixed version (ground truth):
private void runMethod(String url,ResponseCollector responseCollector){
  PostMethod post=new PostMethod(url);
  setCrumbValueIfNeeded();
  if (isCrumbDataSet()) {
    post.addRequestHeader(CRUMB_NAME,crumbValue);
  }
  InputStream inputStream=null;
  try {
    int statusCode=httpClient.executeMethod(post);
    inputStream=post.getResponseBodyAsStream();
    String responseBody=IOUtils.toString(inputStream,post.getResponseCharSet());
    checkResponse(statusCode,responseBody);
    if (HttpURLConnection.HTTP_OK == statusCode) {
      responseCollector.collect(statusCode,responseBody);
    }
    if (isRedirection(statusCode)) {
      responseCollector.collect(statusCode,post.getResponseHeader("String_Node_Str").getValue());
    }
  }
 catch (  HttpException httpEx) {
    throw new ConfigurationException(String.format("String_Node_Str",url),httpEx);
  }
catch (  IOException ioEx) {
    throw new ConfigurationException(String.format("String_Node_Str",url),ioEx);
  }
 finally {
    IOUtils.closeQuietly(inputStream);
    post.releaseConnection();
  }
}
Program: 177964
Project: 177964
Buggy source:
private void showRssPanel(RelativePoint point){
  myPopup=JBPopupFactory.getInstance().createComponentPopupBuilder(buildStatusSummaryPanel,buildStatusSummaryPanel).setMovable(true).setResizable(true).setTitle("String_Node_Str").setDimensionServiceKey(null,"String_Node_Str",true).setMinSize(getMinSize()).setCancelOnClickOutside(false).setRequestFocus(false).setBelongsToGlobalPopupStack(true).setLocateByContent(true).setCancelButton(new MinimizeButton("String_Node_Str")).createPopup();
  myPopup.showInScreenCoordinates(buildStatusSummaryPanel,new Point(point.getPoint()));
}

Fixed version (ground truth):
private void showRssPanel(RelativePoint point){
  myPopup=JBPopupFactory.getInstance().createComponentPopupBuilder(buildStatusSummaryPanel,buildStatusSummaryPanel).setMovable(true).setResizable(true).setTitle("String_Node_Str").setDimensionServiceKey(null,"String_Node_Str",true).setMinSize(getMinSize()).setCancelOnClickOutside(false).setRequestFocus(false).setBelongsToGlobalPopupStack(true).setLocateByContent(true).setCancelButton(new MinimizeButton("String_Node_Str")).createPopup();
  myPopup.show(point);
}
Program: 177965
Project: 177965
Buggy source:
private Jenkins createJenkins(Document doc){
  Element jenkinsElement=doc.getRootElement();
  if (!StringUtils.equals(JENKINS_ROOT_TAG,jenkinsElement.getName()) && StringUtils.equals(HUDSON_ROOT_TAG,jenkinsElement.getName())) {
    throw new ConfigurationException("String_Node_Str" + jenkinsElement.getName());
  }
  String description=jenkinsElement.getChildText(JENKINS_DESCRIPTION);
  if (description == null) {
    description="String_Node_Str";
  }
  return new Jenkins(description);
}

Fixed version (ground truth):
private Jenkins createJenkins(Document doc){
  Element jenkinsElement=doc.getRootElement();
  if (!StringUtils.equals(JENKINS_ROOT_TAG,jenkinsElement.getName()) && !StringUtils.equals(HUDSON_ROOT_TAG,jenkinsElement.getName())) {
    throw new ConfigurationException("String_Node_Str" + jenkinsElement.getName() + "String_Node_Str");
  }
  String description=jenkinsElement.getChildText(JENKINS_DESCRIPTION);
  if (description == null) {
    description="String_Node_Str";
  }
  return new Jenkins(description);
}
Program: 177966
Project: 177966
Buggy source:
public Map<String,Build> loadJenkinsRssLatestBuilds(JenkinsConfiguration configuration) throws Exception {
  URL url=urlBuilder.createRssLatestUrl(configuration.getServerUrl());
  String inputStream=securityClient.execute(url);
  try {
    Document doc=getXMLBuilder().build(new CharSequenceReader(inputStream));
    return createLatestBuildList(doc);
  }
 catch (  Exception e) {
    throw new Exception("String_Node_Str" + inputStream);
  }
}

Fixed version (ground truth):
public Map<String,Build> loadJenkinsRssLatestBuilds(JenkinsConfiguration configuration) throws Exception {
  URL url=urlBuilder.createRssLatestUrl(configuration.getServerUrl());
  String rssData=securityClient.execute(url);
  Document doc=getXMLBuilder().build(new CharSequenceReader(rssData));
  return createLatestBuildList(doc);
}
Program: 177967
Project: 177967
Buggy source:
BasicSecurityClient(String username,String passwordFile,String crumbDataFile){
  super(new HttpClient(),crumbDataFile);
  this.username=username;
  this.passwordFile=passwordFile;
}

Fixed version (ground truth):
BasicSecurityClient(String username,String passwordFile,String crumbDataFile){
  super(new HttpClient(new MultiThreadedHttpConnectionManager()),crumbDataFile);
  this.username=username;
  this.passwordFile=passwordFile;
}
Program: 177968
Project: 177968
Buggy source:
NoSecurityClient(String crumbDataFile){
  super(new HttpClient(),crumbDataFile);
}

Fixed version (ground truth):
NoSecurityClient(String crumbDataFile){
  super(new HttpClient(new MultiThreadedHttpConnectionManager()),crumbDataFile);
}
Program: 177969
Project: 177969
Buggy source:
private void setType(String paramType){
  jobParameterType=JobParameterType.valueOf(paramType);
}

Fixed version (ground truth):
private void setType(String paramType){
  jobParameterType=evaluate(paramType);
}
Program: 177970
Project: 177970
Buggy source:
private void generateBuilderConstructorCopy(){
  if (data.isEffectiveBuilderScopeVisible()) {
    List<PropertyGen> nonDerived=nonDerivedProperties();
    if (nonDerived.size() > 0) {
      insertRegion.add("String_Node_Str");
      insertRegion.add("String_Node_Str");
      insertRegion.add("String_Node_Str");
      insertRegion.add("String_Node_Str");
      insertRegion.add("String_Node_Str" + data.getNestedClassConstructorScope() + "String_Node_Str"+ data.getTypeNoExtends()+ "String_Node_Str");
      for (int i=0; i < nonDerived.size(); i++) {
        insertRegion.addAll(nonDerived.get(i).generateBuilderConstructorAssign("String_Node_Str"));
      }
      insertRegion.add("String_Node_Str");
      insertRegion.add("String_Node_Str");
    }
  }
}

Fixed version (ground truth):
private void generateBuilderConstructorCopy(){
  if (data.isEffectiveBuilderScopeVisible()) {
    List<PropertyGen> nonDerived=nonDerivedProperties();
    if (nonDerived.size() > 0) {
      insertRegion.add("String_Node_Str");
      insertRegion.add("String_Node_Str");
      insertRegion.add("String_Node_Str");
      insertRegion.add("String_Node_Str");
      insertRegion.add("String_Node_Str" + data.getNestedClassConstructorScope() + "String_Node_Str"+ data.getTypeNoExtends()+ "String_Node_Str");
      if (data.isSubClass()) {
        insertRegion.add("String_Node_Str");
      }
      for (int i=0; i < nonDerived.size(); i++) {
        insertRegion.addAll(nonDerived.get(i).generateBuilderConstructorAssign("String_Node_Str"));
      }
      insertRegion.add("String_Node_Str");
      insertRegion.add("String_Node_Str");
    }
  }
}
Program: 177971
Project: 177971
Buggy source:
/** 
 * Restricted copy constructor.
 * @param beanToCopy  the bean to copy from, not null
 */
protected Builder(ImmSubPersonFromAbstract beanToCopy){
  this.middleName=beanToCopy.getMiddleName();
  this.addressList=beanToCopy.getAddressList();
}

Fixed version (ground truth):
/** 
 * Restricted copy constructor.
 * @param beanToCopy  the bean to copy from, not null
 */
protected Builder(ImmSubPersonFromAbstract beanToCopy){
  super(beanToCopy);
  this.middleName=beanToCopy.getMiddleName();
  this.addressList=beanToCopy.getAddressList();
}
Program: 177972
Project: 177972
Buggy source:
/** 
 * Restricted copy constructor.
 * @param beanToCopy  the bean to copy from, not null
 */
protected Builder(ImmSubPersonNonFinal beanToCopy){
  this.middleName=beanToCopy.getMiddleName();
  this.addressList=beanToCopy.getAddressList();
}

Fixed version (ground truth):
/** 
 * Restricted copy constructor.
 * @param beanToCopy  the bean to copy from, not null
 */
protected Builder(ImmSubPersonNonFinal beanToCopy){
  super(beanToCopy);
  this.middleName=beanToCopy.getMiddleName();
  this.addressList=beanToCopy.getAddressList();
}
Program: 177973
Project: 177973
Buggy source:
/** 
 * Restricted copy constructor.
 * @param beanToCopy  the bean to copy from, not null
 */
private Builder(ImmSubSubPersonFinal beanToCopy){
  this.codeCounts=beanToCopy.getCodeCounts();
}

Fixed version (ground truth):
/** 
 * Restricted copy constructor.
 * @param beanToCopy  the bean to copy from, not null
 */
private Builder(ImmSubSubPersonFinal beanToCopy){
  super(beanToCopy);
  this.codeCounts=beanToCopy.getCodeCounts();
}
Program: 177974
Project: 177974
Buggy source:
/** 
 * Restricted copy constructor.
 * @param beanToCopy  the bean to copy from, not null
 */
private Builder(SimpleSubPersonWithBuilderFinal beanToCopy){
  this.middleName=beanToCopy.getMiddleName();
}

Fixed version (ground truth):
/** 
 * Restricted copy constructor.
 * @param beanToCopy  the bean to copy from, not null
 */
private Builder(SimpleSubPersonWithBuilderFinal beanToCopy){
  super(beanToCopy);
  this.middleName=beanToCopy.getMiddleName();
}
Program: 177975
Project: 177975
Buggy source:
/** 
 * Restricted copy constructor.
 * @param beanToCopy  the bean to copy from, not null
 */
protected Builder(SimpleSubPersonWithBuilderNonFinal beanToCopy){
  this.middleName=beanToCopy.getMiddleName();
}

Fixed version (ground truth):
/** 
 * Restricted copy constructor.
 * @param beanToCopy  the bean to copy from, not null
 */
protected Builder(SimpleSubPersonWithBuilderNonFinal beanToCopy){
  super(beanToCopy);
  this.middleName=beanToCopy.getMiddleName();
}
Program: 177976
Project: 177976
Buggy source:
private static Field findField(MetaBean metaBean,String propertyName){
  Field field=null;
  Class<?> cls=metaBean.beanType();
  while (cls != DirectBean.class) {
    try {
      field=cls.getDeclaredField(propertyName);
      break;
    }
 catch (    NoSuchFieldException ex) {
      try {
        field=cls.getDeclaredField("String_Node_Str" + propertyName);
        break;
      }
 catch (      NoSuchFieldException ex2) {
        cls=cls.getSuperclass();
      }
    }
  }
  return field;
}

Fixed version (ground truth):
private static Field findField(MetaBean metaBean,String propertyName){
  Field field=null;
  Class<?> cls=metaBean.beanType();
  while (cls != DirectBean.class && cls != Object.class && cls != null) {
    try {
      field=cls.getDeclaredField(propertyName);
      break;
    }
 catch (    NoSuchFieldException ex) {
      try {
        field=cls.getDeclaredField("String_Node_Str" + propertyName);
        break;
      }
 catch (      NoSuchFieldException ex2) {
        cls=cls.getSuperclass();
      }
    }
  }
  return field;
}
Program: 177977
Project: 177977
Buggy source:
private String parseSetStyle(List<String> content){
  String line=content.get(annotationIndex).trim();
  Matcher matcher=SETTER_PATTERN.matcher(line);
  if (matcher.matches()) {
    return matcher.group(1);
  }
  return "String_Node_Str";
}

Fixed version (ground truth):
private String parseSetStyle(List<String> content){
  String line=content.get(propertyIndex).trim();
  Matcher matcher=SETTER_PATTERN.matcher(line);
  if (matcher.matches()) {
    return matcher.group(1);
  }
  return "String_Node_Str";
}
Program: 177979
Project: 177979
Buggy source:
private String parseTypeStyle(List<String> content){
  String line=content.get(annotationIndex).trim();
  Matcher matcher=TYPE_PATTERN.matcher(line);
  if (matcher.matches()) {
    return matcher.group(1);
  }
  return "String_Node_Str";
}

Fixed version (ground truth):
private String parseTypeStyle(List<String> content){
  String line=content.get(propertyIndex).trim();
  Matcher matcher=TYPE_PATTERN.matcher(line);
  if (matcher.matches()) {
    return matcher.group(1);
  }
  return "String_Node_Str";
}
Program: 177980
Project: 177980
Buggy source:
private boolean parseFinal(List<String> content){
  String line=parseFieldDefinition(content);
  String[] parts=line.split("String_Node_Str");
  if (parts.length < 2) {
    throw new RuntimeException("String_Node_Str" + annotationIndex);
  }
  if (parts[0].equals("String_Node_Str") || parts[1].equals("String_Node_Str") || (parts.length >= 3 && parts[2].equals("String_Node_Str"))) {
    return true;
  }
  return false;
}

Fixed version (ground truth):
private boolean parseFinal(List<String> content){
  String line=parseFieldDefinition(content);
  String[] parts=line.split("String_Node_Str");
  if (parts.length < 2) {
    throw new RuntimeException("String_Node_Str" + propertyIndex);
  }
  if (parts[0].equals("String_Node_Str") || parts[1].equals("String_Node_Str") || (parts.length >= 3 && parts[2].equals("String_Node_Str"))) {
    return true;
  }
  return false;
}
Program: 177981
Project: 177981
Buggy source:
private String parseFieldName(List<String> content){
  String line=parseFieldDefinition(content);
  String[] parts=line.split("String_Node_Str");
  String last=parts[parts.length - 1];
  if (last.endsWith("String_Node_Str") && last.length() > 1) {
    return last.substring(0,last.length() - 1);
  }
  throw new RuntimeException("String_Node_Str" + annotationIndex);
}

Fixed version (ground truth):
private String parseFieldName(List<String> content){
  String line=parseFieldDefinition(content);
  String[] parts=line.split("String_Node_Str");
  String last=parts[parts.length - 1];
  if (last.endsWith("String_Node_Str") && last.length() > 1) {
    return last.substring(0,last.length() - 1);
  }
  throw new RuntimeException("String_Node_Str" + propertyIndex);
}
Program: 177982
Project: 177982
Buggy source:
private String parseValidation(List<String> content){
  String line=content.get(annotationIndex).trim();
  Matcher matcher=VALIDATION_PATTERN.matcher(line);
  if (matcher.matches()) {
    return matcher.group(1);
  }
  return "String_Node_Str";
}

Fixed version (ground truth):
private String parseValidation(List<String> content){
  String line=content.get(propertyIndex).trim();
  Matcher matcher=VALIDATION_PATTERN.matcher(line);
  if (matcher.matches()) {
    return matcher.group(1);
  }
  return "String_Node_Str";
}
Program: 177983
Project: 177983
Buggy source:
private String parseGetStyle(List<String> content){
  String line=content.get(annotationIndex).trim();
  Matcher matcher=GETTER_PATTERN.matcher(line);
  if (matcher.matches()) {
    return matcher.group(1);
  }
  return "String_Node_Str";
}

Fixed version (ground truth):
private String parseGetStyle(List<String> content){
  String line=content.get(propertyIndex).trim();
  Matcher matcher=GETTER_PATTERN.matcher(line);
  if (matcher.matches()) {
    return matcher.group(1);
  }
  return "String_Node_Str";
}
Program: 177984
Project: 177984
Buggy source:
private int parseCodeIndex(List<String> content){
  for (int index=annotationIndex; index < content.size(); index++) {
    if (content.get(index).trim().startsWith("String_Node_Str") == false) {
      if (content.get(index).trim().length() == 0) {
        throw new RuntimeException("String_Node_Str" + annotationIndex + "String_Node_Str");
      }
      return index;
    }
  }
  throw new RuntimeException("String_Node_Str" + annotationIndex);
}

Fixed version (ground truth):
private int parseCodeIndex(List<String> content){
  for (int index=propertyIndex; index < content.size(); index++) {
    if (content.get(index).trim().startsWith("String_Node_Str") == false) {
      if (content.get(index).trim().length() == 0) {
        throw new RuntimeException("String_Node_Str" + propertyIndex + "String_Node_Str");
      }
      return index;
    }
  }
  throw new RuntimeException("String_Node_Str" + propertyIndex);
}
Program: 177985
Project: 177985
Buggy source:
private String parseFieldType(List<String> content){
  String line=parseFieldDefinition(content);
  String[] parts=line.split("String_Node_Str");
  if (parts.length < 2) {
    throw new RuntimeException("String_Node_Str" + annotationIndex);
  }
  int partsPos=parts.length - 2;
  String type=parts[partsPos];
  while (true) {
    int open=0, openPos=0, close=0, closePos=0;
    while ((openPos=type.indexOf('<',openPos)) >= 0) {
      open++;
      openPos++;
    }
    while ((closePos=type.indexOf('>',closePos)) >= 0) {
      close++;
      closePos++;
    }
    if (open == close) {
      break;
    }
    if (partsPos == 0) {
      throw new RuntimeException("String_Node_Str" + annotationIndex + "String_Node_Str");
    }
    partsPos--;
    type=parts[partsPos] + "String_Node_Str" + type;
  }
  return type;
}

Fixed version (ground truth):
private String parseFieldType(List<String> content){
  String line=parseFieldDefinition(content);
  String[] parts=line.split("String_Node_Str");
  if (parts.length < 2) {
    throw new RuntimeException("String_Node_Str" + propertyIndex);
  }
  int partsPos=parts.length - 2;
  String type=parts[partsPos];
  while (true) {
    int open=0, openPos=0, close=0, closePos=0;
    while ((openPos=type.indexOf('<',openPos)) >= 0) {
      open++;
      openPos++;
    }
    while ((closePos=type.indexOf('>',closePos)) >= 0) {
      close++;
      closePos++;
    }
    if (open == close) {
      break;
    }
    if (partsPos == 0) {
      throw new RuntimeException("String_Node_Str" + propertyIndex + "String_Node_Str");
    }
    partsPos--;
    type=parts[partsPos] + "String_Node_Str" + type;
  }
  return type;
}
Program: 177986
Project: 177986
Buggy source:
@Override protected MetaProperty<?> metaPropertyGet(String propertyName){
switch (propertyName.hashCode()) {
case 467061063:
    return forename;
case -1852993317:
  return surname;
case 926656063:
return numberOfCars;
case -1377524046:
return addressList;
case 1368089592:
return otherAddressMap;
case -226885792:
return addressesList;
case -2032731141:
return mainAddress;
case -1809421292:
return extensions;
}
return super.metaPropertyGet(propertyName);
}

Fixed version (ground truth):
@Override protected MetaProperty<?> metaPropertyGet(String propertyName){
switch (propertyName.hashCode()) {
case 467061063:
    return forename;
case -1852993317:
  return surname;
case 926656063:
return numberOfCars;
case -1377524046:
return addressList;
case 1368089592:
return otherAddressMap;
case -226885792:
return addressesList;
case -2032731141:
return mainAddress;
case 1897330136:
return propDefAnnotationSecondDeprecated;
case 1276990059:
return propDefAnnotationSecondManual;
}
return super.metaPropertyGet(propertyName);
}
Program: 177987
Project: 177987
Buggy source:
@Override public int hashCode(){
  int hash=getClass().hashCode();
  hash+=hash * 31 + JodaBeanUtils.hashCode(getForename());
  hash+=hash * 31 + JodaBeanUtils.hashCode(getSurname());
  hash+=hash * 31 + JodaBeanUtils.hashCode(getNumberOfCars());
  hash+=hash * 31 + JodaBeanUtils.hashCode(getAddressList());
  hash+=hash * 31 + JodaBeanUtils.hashCode(getOtherAddressMap());
  hash+=hash * 31 + JodaBeanUtils.hashCode(getAddressesList());
  hash+=hash * 31 + JodaBeanUtils.hashCode(getMainAddress());
  hash+=hash * 31 + JodaBeanUtils.hashCode(getExtensions());
  return hash;
}

Fixed version (ground truth):
@Override public int hashCode(){
  int hash=getClass().hashCode();
  hash+=hash * 31 + JodaBeanUtils.hashCode(getForename());
  hash+=hash * 31 + JodaBeanUtils.hashCode(getSurname());
  hash+=hash * 31 + JodaBeanUtils.hashCode(getNumberOfCars());
  hash+=hash * 31 + JodaBeanUtils.hashCode(getAddressList());
  hash+=hash * 31 + JodaBeanUtils.hashCode(getOtherAddressMap());
  hash+=hash * 31 + JodaBeanUtils.hashCode(getAddressesList());
  hash+=hash * 31 + JodaBeanUtils.hashCode(getMainAddress());
  hash+=hash * 31 + JodaBeanUtils.hashCode(getPropDefAnnotationSecondDeprecated());
  hash+=hash * 31 + JodaBeanUtils.hashCode(getPropDefAnnotationSecondManual());
  return hash;
}
Program: 177988
Project: 177988
Buggy source:
@SuppressWarnings("String_Node_Str") @Override protected void propertySet(Bean bean,String propertyName,Object newValue,boolean quiet){
switch (propertyName.hashCode()) {
case 467061063:
    ((SimplePerson)bean).setForename((String)newValue);
  return;
case -1852993317:
((SimplePerson)bean).setSurname((String)newValue);
return;
case 926656063:
((SimplePerson)bean).setNumberOfCars((Integer)newValue);
return;
case -1377524046:
((SimplePerson)bean).setAddressList((List<Address>)newValue);
return;
case 1368089592:
((SimplePerson)bean).setOtherAddressMap((Map<String,Address>)newValue);
return;
case -226885792:
((SimplePerson)bean).setAddressesList((List<List<Address>>)newValue);
return;
case -2032731141:
((SimplePerson)bean).setMainAddress((Address)newValue);
return;
case -1809421292:
((SimplePerson)bean).setExtensions((FlexiBean)newValue);
return;
}
super.propertySet(bean,propertyName,newValue,quiet);
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") @Override protected void propertySet(Bean bean,String propertyName,Object newValue,boolean quiet){
switch (propertyName.hashCode()) {
case 467061063:
    ((SimplePerson)bean).setForename((String)newValue);
  return;
case -1852993317:
((SimplePerson)bean).setSurname((String)newValue);
return;
case 926656063:
((SimplePerson)bean).setNumberOfCars((Integer)newValue);
return;
case -1377524046:
((SimplePerson)bean).setAddressList((List<Address>)newValue);
return;
case 1368089592:
((SimplePerson)bean).setOtherAddressMap((Map<String,Address>)newValue);
return;
case -226885792:
((SimplePerson)bean).setAddressesList((List<List<Address>>)newValue);
return;
case -2032731141:
((SimplePerson)bean).setMainAddress((Address)newValue);
return;
case 1897330136:
((SimplePerson)bean).setPropDefAnnotationSecondDeprecated((FlexiBean)newValue);
return;
case 1276990059:
((SimplePerson)bean).setPropDefAnnotationSecondManual((Map<String,String>)newValue);
return;
}
super.propertySet(bean,propertyName,newValue,quiet);
}
Program: 177989
Project: 177989
Buggy source:
@Override protected Object propertyGet(Bean bean,String propertyName,boolean quiet){
switch (propertyName.hashCode()) {
case 467061063:
    return ((SimplePerson)bean).getForename();
case -1852993317:
  return ((SimplePerson)bean).getSurname();
case 926656063:
return ((SimplePerson)bean).getNumberOfCars();
case -1377524046:
return ((SimplePerson)bean).getAddressList();
case 1368089592:
return ((SimplePerson)bean).getOtherAddressMap();
case -226885792:
return ((SimplePerson)bean).getAddressesList();
case -2032731141:
return ((SimplePerson)bean).getMainAddress();
case -1809421292:
return ((SimplePerson)bean).getExtensions();
}
return super.propertyGet(bean,propertyName,quiet);
}

Fixed version (ground truth):
@Override protected Object propertyGet(Bean bean,String propertyName,boolean quiet){
switch (propertyName.hashCode()) {
case 467061063:
    return ((SimplePerson)bean).getForename();
case -1852993317:
  return ((SimplePerson)bean).getSurname();
case 926656063:
return ((SimplePerson)bean).getNumberOfCars();
case -1377524046:
return ((SimplePerson)bean).getAddressList();
case 1368089592:
return ((SimplePerson)bean).getOtherAddressMap();
case -226885792:
return ((SimplePerson)bean).getAddressesList();
case -2032731141:
return ((SimplePerson)bean).getMainAddress();
case 1897330136:
return ((SimplePerson)bean).getPropDefAnnotationSecondDeprecated();
case 1276990059:
return ((SimplePerson)bean).getPropDefAnnotationSecondManual();
}
return super.propertyGet(bean,propertyName,quiet);
}
Program: 177990
Project: 177990
Buggy source:
@Override public boolean equals(Object obj){
  if (obj == this) {
    return true;
  }
  if (obj != null && obj.getClass() == this.getClass()) {
    SimplePerson other=(SimplePerson)obj;
    return JodaBeanUtils.equal(getForename(),other.getForename()) && JodaBeanUtils.equal(getSurname(),other.getSurname()) && (getNumberOfCars() == other.getNumberOfCars())&& JodaBeanUtils.equal(getAddressList(),other.getAddressList())&& JodaBeanUtils.equal(getOtherAddressMap(),other.getOtherAddressMap())&& JodaBeanUtils.equal(getAddressesList(),other.getAddressesList())&& JodaBeanUtils.equal(getMainAddress(),other.getMainAddress())&& JodaBeanUtils.equal(getExtensions(),other.getExtensions());
  }
  return false;
}

Fixed version (ground truth):
@Override public boolean equals(Object obj){
  if (obj == this) {
    return true;
  }
  if (obj != null && obj.getClass() == this.getClass()) {
    SimplePerson other=(SimplePerson)obj;
    return JodaBeanUtils.equal(getForename(),other.getForename()) && JodaBeanUtils.equal(getSurname(),other.getSurname()) && (getNumberOfCars() == other.getNumberOfCars())&& JodaBeanUtils.equal(getAddressList(),other.getAddressList())&& JodaBeanUtils.equal(getOtherAddressMap(),other.getOtherAddressMap())&& JodaBeanUtils.equal(getAddressesList(),other.getAddressesList())&& JodaBeanUtils.equal(getMainAddress(),other.getMainAddress())&& JodaBeanUtils.equal(getPropDefAnnotationSecondDeprecated(),other.getPropDefAnnotationSecondDeprecated())&& JodaBeanUtils.equal(getPropDefAnnotationSecondManual(),other.getPropDefAnnotationSecondManual());
  }
  return false;
}
Program: 177991
Project: 177991
Buggy source:
@Override public String toString(){
  StringBuilder buf=new StringBuilder(288);
  buf.append("String_Node_Str");
  buf.append("String_Node_Str").append('=').append(getForename()).append(',').append(' ');
  buf.append("String_Node_Str").append('=').append(getSurname()).append(',').append(' ');
  buf.append("String_Node_Str").append('=').append(getNumberOfCars()).append(',').append(' ');
  buf.append("String_Node_Str").append('=').append(getAddressList()).append(',').append(' ');
  buf.append("String_Node_Str").append('=').append(getOtherAddressMap()).append(',').append(' ');
  buf.append("String_Node_Str").append('=').append(getAddressesList()).append(',').append(' ');
  buf.append("String_Node_Str").append('=').append(getMainAddress()).append(',').append(' ');
  buf.append("String_Node_Str").append('=').append(getExtensions());
  buf.append('}');
  return buf.toString();
}

Fixed version (ground truth):
@Override public String toString(){
  StringBuilder buf=new StringBuilder(320);
  buf.append("String_Node_Str");
  buf.append("String_Node_Str").append('=').append(getForename()).append(',').append(' ');
  buf.append("String_Node_Str").append('=').append(getSurname()).append(',').append(' ');
  buf.append("String_Node_Str").append('=').append(getNumberOfCars()).append(',').append(' ');
  buf.append("String_Node_Str").append('=').append(getAddressList()).append(',').append(' ');
  buf.append("String_Node_Str").append('=').append(getOtherAddressMap()).append(',').append(' ');
  buf.append("String_Node_Str").append('=').append(getAddressesList()).append(',').append(' ');
  buf.append("String_Node_Str").append('=').append(getMainAddress()).append(',').append(' ');
  buf.append("String_Node_Str").append('=').append(getPropDefAnnotationSecondDeprecated()).append(',').append(' ');
  buf.append("String_Node_Str").append('=').append(getPropDefAnnotationSecondManual());
  buf.append('}');
  return buf.toString();
}
Program: 177992
Project: 177992
Buggy source:
public String getName(){
  final Element nameNode=get(NAME);
  if (nameNode != null)   return nameNode.getText();
 else   return null;
}

Fixed version (ground truth):
public String getName(){
  final Element nameNode=ElementUtils.contains(getRoot(),NAME,1);
  if (nameNode != null)   return nameNode.getText();
 else   return null;
}