nus-yam/ex-repair huggingface dataset:
Program: 71069
Project: 71069
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"}) @Tips(description="String_Node_Str") public void checkBottomDownload() throws InterruptedException {
  WaitUtil.implicitlyWait(5);
  AndroidElement e=mDriver.findElement(By.id("String_Node_Str"));
  LogUtil.printCurrentMethodName();
  assertEquals(e.getText().contains("String_Node_Str"),true);
  e.click();
  WaitUtil.implicitlyWait(5);
  if (ElementUtil.isElementPresent(By.id("String_Node_Str"))) {
    mDriver.findElement(By.id("String_Node_Str")).click();
    WaitUtil.forceWait(2);
  }
  assertEquals(e.getText().contains("String_Node_Str"),true);
  e.click();
  WaitUtil.forceWait(1);
  assertEquals(e.getText().contains("String_Node_Str"),true);
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"}) @Tips(description="String_Node_Str") public void checkBottomDownload() throws InterruptedException {
  WaitUtil.implicitlyWait(5);
  AndroidElement e=mDriver.findElement(By.id("String_Node_Str"));
  LogUtil.printCurrentMethodName();
  assertEquals(e.getText().contains("String_Node_Str"),true);
  e.click();
  WaitUtil.forceWait(1);
  e.click();
  WaitUtil.forceWait(0.5);
  if (!e.getText().contains("String_Node_Str")) {
    if (ElementUtil.isElementPresent(By.id("String_Node_Str"))) {
      mDriver.findElement(By.id("String_Node_Str")).click();
      WaitUtil.forceWait(1);
      e.click();
      WaitUtil.forceWait(0.5);
    }
  }
  assertEquals(e.getText().contains("String_Node_Str"),true);
}
Program: 71070
Project: 71070
Buggy source:
@Test public void initCheck(){
  System.err.println("String_Node_Str" + getClass().getSimpleName() + "String_Node_Str");
  assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
  ScreenUtil.screenShot("String_Node_Str");
  WaitUtil.implicitlyWait(2);
}

Fixed version (ground truth):
@Test(retryAnalyzer=FailRetry.class) public void initCheck(){
  System.err.println("String_Node_Str" + getClass().getSimpleName() + "String_Node_Str");
  assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
  ScreenUtil.screenShot("String_Node_Str");
  WaitUtil.implicitlyWait(2);
}
Program: 71072
Project: 71072
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"}) @Tips(description="String_Node_Str") public void opearaInImageBrower() throws InterruptedException {
  LogUtil.printCurrentMethodName();
  List<AndroidElement> imageList=mDriver.findElements(By.id("String_Node_Str"));
  if (imageList.size() > 1) {
    imageList.get(1).click();
    WaitUtil.forceWait(2);
    assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
  }
  try {
    ScrollUtil.scrollToPrecent(Direction.LEFT,80);
    WaitUtil.forceWait(1);
    ScrollUtil.scrollToPrecent(Direction.RIGHT,80);
    WaitUtil.forceWait(1);
    PageRouteUtil.pressBack();
    WaitUtil.forceWait(1);
    assertEquals(ContextUtil.getCurrentActivity().equals("String_Node_Str"),false);
  }
 catch (  Exception e) {
    PageRouteUtil.pressBack();
    throw new AssertionError();
  }
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"}) @Tips(description="String_Node_Str") public void opearaInImageBrower() throws InterruptedException {
  LogUtil.printCurrentMethodName();
  WaitUtil.implicitlyWait(App.WAIT_TIME_IMPLICITLY);
  List<AndroidElement> imageList=mDriver.findElements(By.id("String_Node_Str"));
  if (imageList.size() > 1) {
    imageList.get(1).click();
    WaitUtil.forceWait(2);
    assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
  }
  try {
    ScrollUtil.scrollToPrecent(Direction.LEFT,80);
    WaitUtil.forceWait(1);
    ScrollUtil.scrollToPrecent(Direction.RIGHT,80);
    WaitUtil.forceWait(1);
    PageRouteUtil.pressBack();
    WaitUtil.forceWait(1);
    assertEquals(ContextUtil.getCurrentActivity().equals("String_Node_Str"),false);
  }
 catch (  Exception e) {
    PageRouteUtil.pressBack();
    throw new AssertionError();
  }
}
Program: 71073
Project: 71073
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"}) public void checkTheImageScrollView() throws InterruptedException {
  LogUtil.printCurrentMethodName();
  ElementUtil.swipeControl(By.id("String_Node_Str"),Heading.LEFT);
  WaitUtil.forceWait(2);
  ScreenUtil.screenShot("String_Node_Str");
  ElementUtil.swipeControl(By.id("String_Node_Str"),Heading.RIGHT);
  WaitUtil.forceWait(2);
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"}) public void checkTheImageScrollView() throws InterruptedException {
  WaitUtil.implicitlyWait(App.WAIT_TIME_IMPLICITLY);
  AndroidElement e=mDriver.findElement(By.id("String_Node_Str"));
  LogUtil.printCurrentMethodName();
  ElementUtil.swipeControl(e,Heading.LEFT);
  WaitUtil.forceWait(2);
  ScreenUtil.screenShot("String_Node_Str");
  ElementUtil.swipeControl(e,Heading.RIGHT);
  WaitUtil.forceWait(2);
}
Program: 71074
Project: 71074
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"}) @Tips(description="String_Node_Str") public void checkOtherInstall() throws InterruptedException {
  WaitUtil.implicitlyWait(5);
  String otherInstallItemUiSelector="String_Node_Str";
  LogUtil.printCurrentMethodName();
  List<AndroidElement> eList=mDriver.findElementsByAndroidUIAutomator(otherInstallItemUiSelector);
  int eListSize;
  if ((eListSize=eList.size()) > 0) {
    AndroidElement randomItem=eList.get(RandomUtil.getRandomNum(eListSize - 1));
    String tempAppName=randomItem.getText();
    randomItem.click();
    WaitUtil.implicitlyWait(6);
    String nextDetailAppName=mDriver.findElement(By.id("String_Node_Str")).getText();
    assertEquals(nextDetailAppName.equals(tempAppName),true);
    PageRouteUtil.pressBack();
  }
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"}) @Tips(description="String_Node_Str") public void checkOtherInstall() throws InterruptedException {
  WaitUtil.implicitlyWait(App.WAIT_TIME_IMPLICITLY);
  String otherInstallItemUiSelector="String_Node_Str";
  LogUtil.printCurrentMethodName();
  List<AndroidElement> eList=mDriver.findElementsByAndroidUIAutomator(otherInstallItemUiSelector);
  int eListSize;
  if ((eListSize=eList.size()) > 0) {
    AndroidElement randomItem=eList.get(RandomUtil.getRandomNum(eListSize - 1));
    String tempAppName=randomItem.getText();
    randomItem.click();
    WaitUtil.implicitlyWait(App.WAIT_TIME_IMPLICITLY);
    String nextDetailAppName=mDriver.findElement(By.id("String_Node_Str")).getText();
    assertEquals(nextDetailAppName.equals(tempAppName),true);
    PageRouteUtil.pressBack();
  }
}
Program: 71075
Project: 71075
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"}) public void checkActionBarSearch() throws InterruptedException {
  LogUtil.printCurrentMethodName();
  mDriver.findElement(By.id("String_Node_Str")).click();
  WaitUtil.forceWait(2);
  assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
  PageRouteUtil.pressBack();
  WaitUtil.forceWait(1);
  assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"}) public void checkActionBarSearch() throws InterruptedException {
  LogUtil.printCurrentMethodName();
  WaitUtil.implicitlyWait(App.WAIT_TIME_IMPLICITLY);
  AndroidElement e=mDriver.findElement(By.id("String_Node_Str"));
  e.click();
  WaitUtil.forceWait(2);
  assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
  PageRouteUtil.pressBack();
  WaitUtil.forceWait(1);
  assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
}
Program: 71076
Project: 71076
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"}) @Tips(description="String_Node_Str") public void checkTipOff() throws InterruptedException {
  WaitUtil.implicitlyWait(5);
  AndroidElement e=mDriver.findElement(By.id("String_Node_Str"));
  LogUtil.printCurrentMethodName();
  e.click();
  WaitUtil.forceWait(3);
  assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
  PageRouteUtil.pressBack();
  WaitUtil.forceWait(2);
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"}) @Tips(description="String_Node_Str") public void checkTipOff() throws InterruptedException {
  if (ContextUtil.getCurrentActivity().equals("String_Node_Str")) {
    ScrollUtil.scrollToBase();
  }
  WaitUtil.implicitlyWait(5);
  AndroidElement e=mDriver.findElement(By.id("String_Node_Str"));
  LogUtil.printCurrentMethodName();
  e.click();
  WaitUtil.forceWait(3);
  assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
  PageRouteUtil.pressBack();
  WaitUtil.forceWait(2);
}
Program: 71077
Project: 71077
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"}) @Tips(description="String_Node_Str",riskPoint="String_Node_Str") public void checkBriefIntroduction(){
  LogUtil.printCurrentMethodName();
  ScrollUtil.scrollToBase();
  String str1=mDriver.getPageSource();
  if (ElementUtil.isElementPresent(By.id("String_Node_Str"))) {
    mDriver.findElement(By.id("String_Node_Str")).click();
    String str2=mDriver.getPageSource();
    assertEquals(str1.equals(str2),false);
    ScrollUtil.scrollToBase();
    mDriver.findElement(By.id("String_Node_Str")).click();
  }
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"}) @Tips(description="String_Node_Str",riskPoint="String_Node_Str") public void checkBriefIntroduction(){
  if (!ContextUtil.getCurrentActivity().equals("String_Node_Str")) {
    System.err.println("String_Node_Str");
  }
  LogUtil.printCurrentMethodName();
  ScrollUtil.scrollToBase();
  String str1=mDriver.getPageSource();
  if (ElementUtil.isElementPresent(By.id("String_Node_Str"))) {
    mDriver.findElement(By.id("String_Node_Str")).click();
    String str2=mDriver.getPageSource();
    assertEquals(str1.equals(str2),false);
    ScrollUtil.scrollToBase();
    mDriver.findElement(By.id("String_Node_Str")).click();
  }
}
Program: 71078
Project: 71078
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"}) @Tips(description="String_Node_Str") public void checkDownloadInOtherInstall() throws InterruptedException {
  ScrollUtil.scrollToBase();
  LogUtil.printCurrentMethodName();
  String statusBtnUiSelector="String_Node_Str";
  List<AndroidElement> downloadBtnList=mDriver.findElementsByAndroidUIAutomator(statusBtnUiSelector);
  int eListSize;
  if ((eListSize=downloadBtnList.size()) > 0) {
    int randomIndex=RandomUtil.getRandomNum(downloadBtnList.size() - 1);
    AndroidElement targetElement=downloadBtnList.get(randomIndex);
    assertEquals(targetElement.getText(),"String_Node_Str");
    targetElement.click();
    if (ElementUtil.isElementPresent(By.id("String_Node_Str"))) {
      mDriver.findElement(By.id("String_Node_Str")).click();
      WaitUtil.forceWait(2);
    }
    List<AndroidElement> downloadBtnList1=mDriver.findElementsByAndroidUIAutomator(statusBtnUiSelector);
    assertEquals(downloadBtnList1.get(randomIndex).getText(),"String_Node_Str");
    targetElement.click();
    WaitUtil.forceWait(1);
    assertEquals(downloadBtnList1.get(randomIndex).getText(),"String_Node_Str");
    WaitUtil.forceWait(1);
  }
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"}) @Tips(description="String_Node_Str") public void checkDownloadInOtherInstall() throws InterruptedException {
  ScrollUtil.scrollToBase();
  LogUtil.printCurrentMethodName();
  String statusBtnUiSelector="String_Node_Str";
  WaitUtil.implicitlyWait(5);
  List<AndroidElement> downloadBtnList=mDriver.findElementsByAndroidUIAutomator(statusBtnUiSelector);
  int eListSize;
  if ((eListSize=downloadBtnList.size()) > 0) {
    int randomIndex=RandomUtil.getRandomNum(eListSize - 1);
    AndroidElement e=downloadBtnList.get(randomIndex);
    assertEquals(e.getText(),"String_Node_Str");
    e.click();
    WaitUtil.forceWait(1);
    e.click();
    WaitUtil.forceWait(0.5);
    if (!e.getText().contains("String_Node_Str")) {
      if (ElementUtil.isElementPresent(By.id("String_Node_Str"))) {
        mDriver.findElement(By.id("String_Node_Str")).click();
        WaitUtil.forceWait(1);
        e.click();
        WaitUtil.forceWait(0.5);
      }
    }
    assertEquals(e.getText().contains("String_Node_Str"),true);
  }
}
Program: 71079
Project: 71079
Buggy source:
@Test public void initCheck(){
  System.err.println("String_Node_Str" + getClass().getSimpleName() + "String_Node_Str");
  assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
  ScreenUtil.screenShot("String_Node_Str");
  WaitUtil.implicitlyWait(2);
}

Fixed version (ground truth):
@Test(retryAnalyzer=FailRetry.class) public void initCheck(){
  System.err.println("String_Node_Str" + getClass().getSimpleName() + "String_Node_Str");
  assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
  ScreenUtil.screenShot("String_Node_Str");
  WaitUtil.implicitlyWait(2);
}
Program: 71080
Project: 71080
Buggy source:
@Test public void initCheck() throws InterruptedException {
  System.err.println("String_Node_Str" + getClass().getSimpleName() + "String_Node_Str");
  assertEquals("String_Node_Str",ContextUtil.getCurrentActivity());
  assertEquals(true,DeviceUtil.moreThanTargetSdkVersion("String_Node_Str"));
  WaitUtil.forceWait(2);
}

Fixed version (ground truth):
@Test(retryAnalyzer=FailRetry.class) public void initCheck() throws InterruptedException {
  System.err.println("String_Node_Str" + getClass().getSimpleName() + "String_Node_Str");
  assertEquals("String_Node_Str",ContextUtil.getCurrentActivity());
  assertEquals(true,DeviceUtil.moreThanTargetSdkVersion("String_Node_Str"));
  WaitUtil.forceWait(2);
}
Program: 71081
Project: 71081
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"}) @Tips(description="String_Node_Str",riskPoint="String_Node_Str") public void checkMainGameAdContent() throws InterruptedException {
  String curAct1=ContextUtil.getCurrentActivity();
  boolean isTargetAct1=curAct1.equals("String_Node_Str") || curAct1.equals("String_Node_Str");
  if (isTargetAct1) {
    while (ContextUtil.getCurrentActivity().equals("String_Node_Str")) {
      PageRouteUtil.pressBack();
      WaitUtil.forceWait(3);
    }
  }
 else {
    System.out.println("String_Node_Str");
  }
  WaitUtil.implicitlyWait(10);
  List<AndroidElement> elementList=mDriver.findElements(By.id("String_Node_Str"));
  LogUtil.printCurrentMethodName();
  elementList.get(elementList.size() - 1).click();
  WaitUtil.forceWait(5);
  ScreenUtil.screenShot("String_Node_Str");
  String curAct=ContextUtil.getCurrentActivity();
  boolean isTargetAct=curAct.equals("String_Node_Str") || curAct.equals("String_Node_Str");
  assertEquals(isTargetAct,true);
  if (curAct.equals("String_Node_Str")) {
    PageRouteUtil.pressBack();
    WaitUtil.forceWait(3);
  }
  AndroidElement e=mDriver.findElement(By.id("String_Node_Str"));
  e.click();
  WaitUtil.forceWait(3);
  assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"}) @Tips(description="String_Node_Str",riskPoint="String_Node_Str") public void checkMainGameAdContent() throws InterruptedException {
  String curAct1=ContextUtil.getCurrentActivity();
  boolean isTargetAct1=curAct1.equals("String_Node_Str") || curAct1.equals("String_Node_Str");
  if (isTargetAct1) {
    while (ContextUtil.getCurrentActivity().equals("String_Node_Str")) {
      PageRouteUtil.pressBack();
      WaitUtil.forceWait(3);
    }
  }
 else {
  }
  WaitUtil.implicitlyWait(10);
  List<AndroidElement> elementList=mDriver.findElements(By.id("String_Node_Str"));
  LogUtil.printCurrentMethodName();
  elementList.get(elementList.size() - 1).click();
  WaitUtil.forceWait(5);
  ScreenUtil.screenShot("String_Node_Str");
  String curAct=ContextUtil.getCurrentActivity();
  boolean isTargetAct=curAct.equals("String_Node_Str") || curAct.equals("String_Node_Str");
  assertEquals(isTargetAct,true);
  if (curAct.equals("String_Node_Str")) {
    PageRouteUtil.pressBack();
    WaitUtil.forceWait(3);
  }
  AndroidElement e=mDriver.findElement(By.id("String_Node_Str"));
  e.click();
  WaitUtil.forceWait(3);
  assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
}
Program: 71082
Project: 71082
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"}) @Tips(description="String_Node_Str",riskPoint="String_Node_Str") public void checkAdInDetail() throws InterruptedException {
  if (ElementUtil.isElementPresent(By.id("String_Node_Str"))) {
    mDriver.findElement(By.id("String_Node_Str")).click();
    WaitUtil.forceWait(2);
    assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
    mDriver.findElement(By.id("String_Node_Str")).click();
    WaitUtil.forceWait(2);
  }
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) @Tips(description="String_Node_Str",riskPoint="String_Node_Str") public void checkAdInDetail() throws InterruptedException {
  LogUtil.printCurrentMethodName();
  if (ElementUtil.isElementPresent(By.id("String_Node_Str"))) {
    mDriver.findElement(By.id("String_Node_Str")).click();
    WaitUtil.forceWait(2);
    assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
    mDriver.findElement(By.id("String_Node_Str")).click();
    WaitUtil.forceWait(2);
  }
}
Program: 71083
Project: 71083
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"}) @Tips(description="String_Node_Str") public void checkBottomDownload() throws InterruptedException {
  AndroidElement e=mDriver.findElement(By.id("String_Node_Str"));
  assertEquals(e.getText().contains("String_Node_Str"),true);
  e.click();
  WaitUtil.forceWait(2);
  mDriver.findElement(By.id("String_Node_Str")).click();
  WaitUtil.forceWait(1);
  assertEquals(e.getText().contains("String_Node_Str"),true);
  e.click();
  WaitUtil.forceWait(1);
  assertEquals(e.getText().contains("String_Node_Str"),true);
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) @Tips(description="String_Node_Str") public void checkBottomDownload() throws InterruptedException {
  AndroidElement e=mDriver.findElement(By.id("String_Node_Str"));
  LogUtil.printCurrentMethodName();
  assertEquals(e.getText().contains("String_Node_Str"),true);
  e.click();
  WaitUtil.forceWait(2);
  mDriver.findElement(By.id("String_Node_Str")).click();
  WaitUtil.forceWait(1);
  assertEquals(e.getText().contains("String_Node_Str"),true);
  e.click();
  WaitUtil.forceWait(1);
  assertEquals(e.getText().contains("String_Node_Str"),true);
}
Program: 71084
Project: 71084
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"}) @Tips(description="String_Node_Str",riskPoint="String_Node_Str") public void checkWithoutInstall() throws InterruptedException {
  if (ElementUtil.isElementPresent(By.id("String_Node_Str"))) {
    AndroidElement eWithoutInstall=mDriver.findElement(By.id("String_Node_Str"));
    eWithoutInstall.click();
    WaitUtil.forceWait(2);
    assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
    mDriver.findElement(By.id("String_Node_Str")).click();
    WaitUtil.forceWait(2);
  }
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) @Tips(description="String_Node_Str",riskPoint="String_Node_Str") public void checkWithoutInstall() throws InterruptedException {
  LogUtil.printCurrentMethodName();
  if (ElementUtil.isElementPresent(By.id("String_Node_Str"))) {
    AndroidElement eWithoutInstall=mDriver.findElement(By.id("String_Node_Str"));
    eWithoutInstall.click();
    WaitUtil.forceWait(2);
    assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
    mDriver.findElement(By.id("String_Node_Str")).click();
    WaitUtil.forceWait(2);
  }
}
Program: 71085
Project: 71085
Buggy source:
@Test() public void initCheck(){
  assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
  ScreenUtil.screenShot("String_Node_Str");
  WaitUtil.implicitlyWait(2);
}

Fixed version (ground truth):
@Test(enabled=false) public void initCheck(){
  assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
  ScreenUtil.screenShot("String_Node_Str");
  WaitUtil.implicitlyWait(2);
}
Program: 71086
Project: 71086
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"}) @Tips(description="String_Node_Str",riskPoint="String_Node_Str") public void checkPostTipOffReport(){
  qiuckToastCheck();
  mDriver.findElement(By.id("String_Node_Str")).click();
  WaitUtil.implicitlyWait(2);
  mDriver.findElement(By.xpath("String_Node_Str"));
  WaitUtil.implicitlyWait(2);
  AndroidElement reportContent=mDriver.findElement(By.id("String_Node_Str"));
  reportContent.clear();
  reportContent.sendKeys("String_Node_Str");
  AndroidElement reportPhone=mDriver.findElement(By.id("String_Node_Str"));
  reportPhone.clear();
  reportPhone.sendKeys("String_Node_Str");
  AndroidElement reportEmail=mDriver.findElement(By.id("String_Node_Str"));
  reportEmail.clear();
  reportEmail.sendKeys("String_Node_Str");
  mDriver.findElement(By.id("String_Node_Str")).click();
  String reportPostErrorToast="String_Node_Str";
  Assert.assertEquals(ElementUtil.isTargetToast(reportPostErrorToast),false);
  mDriver.findElement(By.id("String_Node_Str")).click();
  assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) @Tips(description="String_Node_Str",riskPoint="String_Node_Str") public void checkPostTipOffReport() throws InterruptedException {
  AndroidElement e=mDriver.findElement(By.id("String_Node_Str"));
  LogUtil.printCurrentMethodName();
  e.click();
  WaitUtil.forceWait(3);
  assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
  LogUtil.printCurrentMethodName();
  mDriver.findElement(By.id("String_Node_Str")).click();
  String reportPostErrorToast="String_Node_Str";
  Assert.assertEquals(ElementUtil.isTargetToast(reportPostErrorToast),true);
  mDriver.findElement(By.id("String_Node_Str")).click();
  WaitUtil.implicitlyWait(2);
  mDriver.findElement(By.xpath("String_Node_Str")).click();
  WaitUtil.implicitlyWait(2);
  AndroidElement reportContent=mDriver.findElement(By.id("String_Node_Str"));
  reportContent.clear();
  reportContent.sendKeys("String_Node_Str");
  AndroidElement reportPhone=mDriver.findElement(By.id("String_Node_Str"));
  reportPhone.clear();
  reportPhone.sendKeys("String_Node_Str");
  AndroidElement reportEmail=mDriver.findElement(By.id("String_Node_Str"));
  reportEmail.clear();
  reportEmail.sendKeys("String_Node_Str");
  mDriver.findElement(By.id("String_Node_Str")).click();
  Assert.assertEquals(ElementUtil.isTargetToast(reportPostErrorToast),false);
  mDriver.findElement(By.id("String_Node_Str")).click();
  assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
}
Program: 71087
Project: 71087
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"}) @Tips(description="String_Node_Str") public void opearaInImageBrower(){
  try {
    ScrollUtil.scrollToPrecent(Direction.LEFT,80);
    WaitUtil.forceWait(1);
    ScrollUtil.scrollToPrecent(Direction.RIGHT,80);
    WaitUtil.forceWait(1);
    ScreenUtil.zoom(mDriver.findElement(By.className("String_Node_Str")));
    WaitUtil.forceWait(1);
    ScreenUtil.doubleRandomTap();
    WaitUtil.forceWait(1);
    assertEquals(ContextUtil.getCurrentActivity().equals("String_Node_Str"),false);
  }
 catch (  Exception e) {
    PageRouteUtil.pressBack();
    throw new AssertionError();
  }
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) @Tips(description="String_Node_Str") public void opearaInImageBrower() throws InterruptedException {
  LogUtil.printCurrentMethodName();
  List<AndroidElement> imageList=mDriver.findElements(By.id("String_Node_Str"));
  if (imageList.size() > 0) {
    imageList.get(1).click();
    WaitUtil.forceWait(2);
    assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
  }
  try {
    ScrollUtil.scrollToPrecent(Direction.LEFT,80);
    WaitUtil.forceWait(1);
    ScrollUtil.scrollToPrecent(Direction.RIGHT,80);
    WaitUtil.forceWait(1);
    PageRouteUtil.pressBack();
    WaitUtil.forceWait(1);
    assertEquals(ContextUtil.getCurrentActivity().equals("String_Node_Str"),false);
  }
 catch (  Exception e) {
    PageRouteUtil.pressBack();
    throw new AssertionError();
  }
}
Program: 71088
Project: 71088
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"}) public void checkTheImageScrollView() throws InterruptedException {
  ElementUtil.swipeControl(By.id("String_Node_Str"),Heading.LEFT);
  WaitUtil.forceWait(2);
  ScreenUtil.screenShot("String_Node_Str");
  ElementUtil.swipeControl(By.id("String_Node_Str"),Heading.RIGHT);
  WaitUtil.forceWait(2);
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) public void checkTheImageScrollView() throws InterruptedException {
  LogUtil.printCurrentMethodName();
  ElementUtil.swipeControl(By.id("String_Node_Str"),Heading.LEFT);
  WaitUtil.forceWait(2);
  ScreenUtil.screenShot("String_Node_Str");
  ElementUtil.swipeControl(By.id("String_Node_Str"),Heading.RIGHT);
  WaitUtil.forceWait(2);
}
Program: 71089
Project: 71089
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"}) @Tips(description="String_Node_Str") public void checkOtherInstall() throws InterruptedException {
  String otherInstallItemUiSelector="String_Node_Str";
  List<AndroidElement> eList=mDriver.findElementsByAndroidUIAutomator(otherInstallItemUiSelector);
  int eListSize;
  if ((eListSize=eList.size()) > 0) {
    AndroidElement randomItem=eList.get(RandomUtil.getRandomNum(eListSize - 1));
    String tempAppName=randomItem.getText();
    randomItem.click();
    WaitUtil.implicitlyWait(3);
    String nextDetailAppName=mDriver.findElement(By.id("String_Node_Str")).getText();
    assertEquals(nextDetailAppName.equals(tempAppName),true);
    PageRouteUtil.pressBack();
  }
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) @Tips(description="String_Node_Str") public void checkOtherInstall() throws InterruptedException {
  LogUtil.printCurrentMethodName();
  String otherInstallItemUiSelector="String_Node_Str";
  List<AndroidElement> eList=mDriver.findElementsByAndroidUIAutomator(otherInstallItemUiSelector);
  int eListSize;
  if ((eListSize=eList.size()) > 0) {
    AndroidElement randomItem=eList.get(RandomUtil.getRandomNum(eListSize - 1));
    String tempAppName=randomItem.getText();
    randomItem.click();
    WaitUtil.implicitlyWait(6);
    String nextDetailAppName=mDriver.findElement(By.id("String_Node_Str")).getText();
    assertEquals(nextDetailAppName.equals(tempAppName),true);
    PageRouteUtil.pressBack();
  }
}
Program: 71090
Project: 71090
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"}) @Tips(description="String_Node_Str") public void checkPermission() throws InterruptedException {
  AndroidElement e=mDriver.findElement(By.id("String_Node_Str"));
  e.click();
  WaitUtil.forceWait(3);
  assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
  ScrollUtil.scrollToBase();
  WaitUtil.forceWait(2);
  mDriver.findElement(By.id("String_Node_Str")).click();
  assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) @Tips(description="String_Node_Str") public void checkPermission() throws InterruptedException {
  LogUtil.printCurrentMethodName();
  AndroidElement e=mDriver.findElement(By.id("String_Node_Str"));
  e.click();
  WaitUtil.forceWait(3);
  assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
  ScrollUtil.scrollToBase();
  WaitUtil.forceWait(2);
  mDriver.findElement(By.id("String_Node_Str")).click();
  assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
}
Program: 71091
Project: 71091
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"}) public void checkActionBarSearch() throws InterruptedException {
  mDriver.findElement(By.id("String_Node_Str")).click();
  WaitUtil.forceWait(2);
  assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
  PageRouteUtil.pressBack();
  WaitUtil.forceWait(1);
  assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) public void checkActionBarSearch() throws InterruptedException {
  LogUtil.printCurrentMethodName();
  mDriver.findElement(By.id("String_Node_Str")).click();
  WaitUtil.forceWait(2);
  assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
  PageRouteUtil.pressBack();
  WaitUtil.forceWait(1);
  assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
}
Program: 71092
Project: 71092
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"}) public void checkImageBrower() throws InterruptedException {
  List<AndroidElement> imageList=mDriver.findElements(By.id("String_Node_Str"));
  if (imageList.size() > 0) {
    imageList.get(0).click();
    WaitUtil.forceWait(2);
    assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
  }
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) public void checkImageBrower() throws InterruptedException {
  LogUtil.printCurrentMethodName();
  List<AndroidElement> imageList=mDriver.findElements(By.id("String_Node_Str"));
  if (imageList.size() > 0) {
    imageList.get(0).click();
    WaitUtil.forceWait(2);
    assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
  }
}
Program: 71093
Project: 71093
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"}) @Tips(description="String_Node_Str") public void checkTipOff() throws InterruptedException {
  AndroidElement e=mDriver.findElement(By.id("String_Node_Str"));
  e.click();
  WaitUtil.forceWait(3);
  assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) @Tips(description="String_Node_Str") public void checkTipOff() throws InterruptedException {
  AndroidElement e=mDriver.findElement(By.id("String_Node_Str"));
  LogUtil.printCurrentMethodName();
  e.click();
  WaitUtil.forceWait(3);
  assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
  PageRouteUtil.pressBack();
  WaitUtil.forceWait(2);
}
Program: 71094
Project: 71094
Buggy source:
@BeforeClass @Tips(description="String_Node_Str",riskPoint="String_Node_Str") public void beforeClass() throws InterruptedException {
  mTag=getClass().getSimpleName();
  mDriver=DriverManger.getDriver();
  PageRedirect.redirect2MainActivity();
  Random randomIndex=new Random();
  int index=1 + randomIndex.nextInt(14);
  System.out.println(index);
  WaitUtil.implicitlyWait(5);
  List<AndroidElement> eList=mDriver.findElements(By.id("String_Node_Str"));
  AndroidElement e=eList.get(index);
  WaitUtil.implicitlyWait(2);
  mTempItemName=mDriver.findElements(By.id("String_Node_Str")).get(index).getText();
  System.out.println(mTempItemName);
  e.click();
  System.out.println("String_Node_Str" + mTag + "String_Node_Str");
}

Fixed version (ground truth):
@BeforeClass @Tips(description="String_Node_Str",riskPoint="String_Node_Str") public void beforeClass() throws InterruptedException {
  mTag=getClass().getSimpleName();
  mDriver=DriverManger.getDriver();
  PageRedirect.redirect2MainActivity();
  Random randomIndex=new Random();
  int index=1 + randomIndex.nextInt(14);
  WaitUtil.implicitlyWait(10);
  List<AndroidElement> eList=mDriver.findElements(By.id("String_Node_Str"));
  AndroidElement e=eList.get(index);
  WaitUtil.implicitlyWait(2);
  mTempItemName=mDriver.findElements(By.id("String_Node_Str")).get(index).getText();
  e.click();
  System.out.println("String_Node_Str" + mTag + "String_Node_Str");
}
Program: 71095
Project: 71095
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"}) @Tips(description="String_Node_Str",riskPoint="String_Node_Str") public void checkBriefIntroduction(){
  ScrollUtil.scrollToBase();
  String str1=mDriver.getPageSource();
  if (ElementUtil.isElementPresent(By.id("String_Node_Str"))) {
    mDriver.findElement(By.id("String_Node_Str")).click();
    String str2=mDriver.getPageSource();
    assertEquals(str1.equals(str2),false);
    ScrollUtil.scrollToBase();
    mDriver.findElement(By.id("String_Node_Str")).click();
  }
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) @Tips(description="String_Node_Str",riskPoint="String_Node_Str") public void checkBriefIntroduction(){
  LogUtil.printCurrentMethodName();
  ScrollUtil.scrollToBase();
  String str1=mDriver.getPageSource();
  if (ElementUtil.isElementPresent(By.id("String_Node_Str"))) {
    mDriver.findElement(By.id("String_Node_Str")).click();
    String str2=mDriver.getPageSource();
    assertEquals(str1.equals(str2),false);
    ScrollUtil.scrollToBase();
    mDriver.findElement(By.id("String_Node_Str")).click();
  }
}
Program: 71096
Project: 71096
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"}) @Tips(description="String_Node_Str") public void checkRightTopNumTip(){
  AndroidElement e=mDriver.findElement(By.id("String_Node_Str"));
  assertEquals(e.getText().equals("String_Node_Str"),true);
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) @Tips(description="String_Node_Str") public void checkRightTopNumTip(){
  LogUtil.printCurrentMethodName();
  AndroidElement e=mDriver.findElement(By.id("String_Node_Str"));
  assertEquals(e.getText().equals("String_Node_Str"),true);
}
Program: 71097
Project: 71097
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"}) @Tips(description="String_Node_Str") public void checkDownloadInOtherInstall() throws InterruptedException {
  String statusBtnUiSelector="String_Node_Str";
  List<AndroidElement> downloadBtnList=mDriver.findElementsByAndroidUIAutomator(statusBtnUiSelector);
  int eListSize;
  if ((eListSize=downloadBtnList.size()) > 0) {
    AndroidElement targetElement=downloadBtnList.get(RandomUtil.getRandomNum(downloadBtnList.size() - 1));
    assertEquals(targetElement.getText(),"String_Node_Str");
    targetElement.click();
    mDriver.findElement(By.id("String_Node_Str")).click();
    WaitUtil.forceWait(2);
    assertEquals(targetElement.getText(),"String_Node_Str");
    targetElement.click();
    WaitUtil.forceWait(1);
    assertEquals(targetElement.getText(),"String_Node_Str");
  }
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) @Tips(description="String_Node_Str") public void checkDownloadInOtherInstall() throws InterruptedException {
  ScrollUtil.scrollToBase();
  LogUtil.printCurrentMethodName();
  String statusBtnUiSelector="String_Node_Str";
  List<AndroidElement> downloadBtnList=mDriver.findElementsByAndroidUIAutomator(statusBtnUiSelector);
  int eListSize;
  if ((eListSize=downloadBtnList.size()) > 0) {
    int randomIndex=RandomUtil.getRandomNum(downloadBtnList.size() - 1);
    AndroidElement targetElement=downloadBtnList.get(randomIndex);
    assertEquals(targetElement.getText(),"String_Node_Str");
    targetElement.click();
    mDriver.findElement(By.id("String_Node_Str")).click();
    WaitUtil.forceWait(2);
    List<AndroidElement> downloadBtnList1=mDriver.findElementsByAndroidUIAutomator(statusBtnUiSelector);
    assertEquals(downloadBtnList1.get(randomIndex).getText(),"String_Node_Str");
    targetElement.click();
    WaitUtil.forceWait(1);
    assertEquals(downloadBtnList1.get(randomIndex).getText(),"String_Node_Str");
    PageRouteUtil.pressBack();
    WaitUtil.forceWait(1);
  }
}
Program: 71098
Project: 71098
Buggy source:
@Test public void initCheck(){
  assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
  ScreenUtil.screenShot("String_Node_Str");
  WaitUtil.implicitlyWait(2);
}

Fixed version (ground truth):
@Test(enabled=false) public void initCheck(){
  assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
  ScreenUtil.screenShot("String_Node_Str");
  WaitUtil.implicitlyWait(2);
}
Program: 71099
Project: 71099
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"}) @Tips(description="String_Node_Str") public void opearaInImageBrower(){
  try {
    ScrollUtil.scrollToPrecent(Direction.LEFT,80);
    WaitUtil.forceWait(1);
    ScrollUtil.scrollToPrecent(Direction.RIGHT,80);
    WaitUtil.forceWait(1);
    ScreenUtil.zoom(mDriver.findElement(By.className("String_Node_Str")));
    WaitUtil.forceWait(1);
    ScreenUtil.doubleRandomTap();
    WaitUtil.forceWait(1);
    assertEquals(ContextUtil.getCurrentActivity().equals("String_Node_Str"),false);
  }
 catch (  Exception e) {
    PageRouteUtil.pressBack();
    throw new AssertionError();
  }
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) @Tips(description="String_Node_Str") public void opearaInImageBrower(){
  try {
    ScrollUtil.scrollToPrecent(Direction.LEFT,80);
    WaitUtil.forceWait(1);
    ScrollUtil.scrollToPrecent(Direction.RIGHT,80);
    WaitUtil.forceWait(1);
    ScreenUtil.zoom(mDriver.findElement(By.className("String_Node_Str")));
    WaitUtil.forceWait(1);
    ScreenUtil.doubleRandomTap();
    WaitUtil.forceWait(1);
    assertEquals(ContextUtil.getCurrentActivity().equals("String_Node_Str"),false);
  }
 catch (  Exception e) {
    PageRouteUtil.pressBack();
    throw new AssertionError();
  }
}
Program: 71100
Project: 71100
Buggy source:
@Tips(description="String_Node_Str") public void checkDownloadInOtherInstall() throws InterruptedException {
  String statusBtnUiSelector="String_Node_Str";
  List<AndroidElement> downloadBtnList=mDriver.findElementsByAndroidUIAutomator(statusBtnUiSelector);
  int eListSize;
  if ((eListSize=downloadBtnList.size()) > 0) {
    AndroidElement targetElement=downloadBtnList.get(RandomUtil.getRandomNum(downloadBtnList.size() - 1));
    assertEquals(targetElement.getText(),"String_Node_Str");
    targetElement.click();
    mDriver.findElement(By.id("String_Node_Str")).click();
    WaitUtil.forceWait(2);
    assertEquals(targetElement.getText(),"String_Node_Str");
    targetElement.click();
    WaitUtil.forceWait(1);
    assertEquals(targetElement.getText(),"String_Node_Str");
  }
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) @Tips(description="String_Node_Str") public void checkDownloadInOtherInstall() throws InterruptedException {
  String statusBtnUiSelector="String_Node_Str";
  List<AndroidElement> downloadBtnList=mDriver.findElementsByAndroidUIAutomator(statusBtnUiSelector);
  int eListSize;
  if ((eListSize=downloadBtnList.size()) > 0) {
    AndroidElement targetElement=downloadBtnList.get(RandomUtil.getRandomNum(downloadBtnList.size() - 1));
    assertEquals(targetElement.getText(),"String_Node_Str");
    targetElement.click();
    mDriver.findElement(By.id("String_Node_Str")).click();
    WaitUtil.forceWait(2);
    assertEquals(targetElement.getText(),"String_Node_Str");
    targetElement.click();
    WaitUtil.forceWait(1);
    assertEquals(targetElement.getText(),"String_Node_Str");
  }
}
Program: 71101
Project: 71101
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) public void checkUpdate2Baseline(){
  ScrollUtil.scrollToBase();
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) public void checkUpdate2Baseline(){
  LogUtil.printCurrentMethodName();
  ScrollUtil.scrollToBase();
}
Program: 71102
Project: 71102
Buggy source:
public void switchUpdate() throws InterruptedException {
  AndroidElement eCurrentTab=mDriver.findElementByAndroidUIAutomator("String_Node_Str");
  if (!eCurrentTab.isSelected()) {
    eCurrentTab.click();
    WaitUtil.forceWait(2);
  }
}

Fixed version (ground truth):
@Tips(description="String_Node_Str") private void switchUpdate() throws InterruptedException {
  AndroidElement eCurrentTab=mDriver.findElementByAndroidUIAutomator("String_Node_Str");
  if (!eCurrentTab.isSelected()) {
    eCurrentTab.click();
    WaitUtil.forceWait(2);
  }
}
Program: 71103
Project: 71103
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) public void checkUpdateOne() throws InterruptedException {
  String updateBtnUiSelector="String_Node_Str";
  List<AndroidElement> eList=mDriver.findElementsByAndroidUIAutomator(updateBtnUiSelector);
  if (eList.size() > 0) {
    int minItemSize=Math.min(eList.size(),5);
    AndroidElement targetElement=eList.get(RandomUtil.getRandomNum(minItemSize));
    assertEquals(targetElement.getText(),"String_Node_Str");
    targetElement.click();
    WaitUtil.forceWait(2);
    mDriver.findElement(By.id("String_Node_Str")).click();
    WaitUtil.forceWait(2);
    assertEquals(targetElement.getText(),"String_Node_Str");
    targetElement.click();
    WaitUtil.forceWait(1);
    assertEquals(targetElement.getText(),"String_Node_Str");
  }
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) public void checkUpdateOne() throws InterruptedException {
  LogUtil.printCurrentMethodName();
  String updateBtnUiSelector="String_Node_Str";
  List<AndroidElement> eList=mDriver.findElementsByAndroidUIAutomator(updateBtnUiSelector);
  if (eList.size() > 0) {
    int minItemSize=Math.min(eList.size(),5);
    AndroidElement targetElement=eList.get(RandomUtil.getRandomNum(minItemSize));
    assertEquals(targetElement.getText(),"String_Node_Str");
    targetElement.click();
    WaitUtil.forceWait(2);
    mDriver.findElement(By.id("String_Node_Str")).click();
    WaitUtil.forceWait(2);
    assertEquals(targetElement.getText(),"String_Node_Str");
    targetElement.click();
    WaitUtil.forceWait(1);
    assertEquals(targetElement.getText(),"String_Node_Str");
  }
}
Program: 71104
Project: 71104
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) @Tips(description="String_Node_Str") public void checkUpdateAll() throws InterruptedException {
  AndroidElement e=mDriver.findElement(By.id("String_Node_Str"));
  e.click();
  WaitUtil.forceWait(1);
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) @Tips(description="String_Node_Str") public void checkUpdateAll() throws InterruptedException {
  LogUtil.printCurrentMethodName();
  AndroidElement e=mDriver.findElement(By.id("String_Node_Str"));
  e.click();
  WaitUtil.forceWait(1);
}
Program: 71105
Project: 71105
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) public void checkClick2OtherTab() throws InterruptedException {
  LogUtil.printCurrentMethodName();
  WaitUtil.implicitlyWait(3);
  AndroidElement downloadTabTip=mDriver.findElementByAndroidUIAutomator("String_Node_Str");
  AndroidElement updateTabTip=mDriver.findElementByAndroidUIAutomator("String_Node_Str");
  downloadTabTip.click();
  WaitUtil.forceWait(3);
  Assert.assertEquals(updateTabTip.isSelected(),false);
  Assert.assertEquals(downloadTabTip.isSelected(),true);
  updateTabTip.click();
  WaitUtil.forceWait(3);
  Assert.assertEquals(updateTabTip.isSelected(),true);
  Assert.assertEquals(downloadTabTip.isSelected(),false);
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) public void checkClick2OtherTab() throws InterruptedException {
  WaitUtil.implicitlyWait(3);
  AndroidElement downloadTabTip=mDriver.findElementByAndroidUIAutomator("String_Node_Str");
  LogUtil.printCurrentMethodName();
  AndroidElement updateTabTip=mDriver.findElementByAndroidUIAutomator("String_Node_Str");
  downloadTabTip.click();
  WaitUtil.forceWait(3);
  Assert.assertEquals(updateTabTip.isSelected(),false);
  Assert.assertEquals(downloadTabTip.isSelected(),true);
  updateTabTip.click();
  WaitUtil.forceWait(3);
  Assert.assertEquals(updateTabTip.isSelected(),true);
  Assert.assertEquals(downloadTabTip.isSelected(),false);
}
Program: 71106
Project: 71106
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) @Tips(description="String_Node_Str") public void checkDownloadPauseAndResumeAll() throws InterruptedException {
  ScrollUtil.scrollToPrecent(Direction.RIGHT,80);
  AndroidElement e=mDriver.findElement(By.id("String_Node_Str"));
  e.click();
  WaitUtil.forceWait(1);
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) @Tips(description="String_Node_Str") public void checkDownloadPauseAndResumeAll() throws InterruptedException {
  LogUtil.printCurrentMethodName();
  ScrollUtil.scrollToPrecent(Direction.RIGHT,80);
  AndroidElement e=mDriver.findElement(By.id("String_Node_Str"));
  e.click();
  WaitUtil.forceWait(1);
}
Program: 71107
Project: 71107
Buggy source:
@Tips(description="String_Node_Str",riskPoint="String_Node_Str") public void checkDeleteTaskAndKeepTheFile(){
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) @Tips(description="String_Node_Str",riskPoint="String_Node_Str") public void checkDeleteTaskAndKeepTheFile(){
  LogUtil.printCurrentMethodName();
}
Program: 71108
Project: 71108
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) public void checkDownloadPauseAndResumeOne() throws InterruptedException {
  List<AndroidElement> eList=mDriver.findElements(By.id("String_Node_Str"));
  if (eList.size() > 0) {
    int minItemSize=Math.min(eList.size(),5);
    AndroidElement targetElement=eList.get(RandomUtil.getRandomNum(minItemSize));
    targetElement.click();
    WaitUtil.forceWait(2);
    mDriver.findElement(By.id("String_Node_Str")).click();
    WaitUtil.forceWait(2);
    assertEquals(targetElement.getText(),"String_Node_Str");
    targetElement.click();
    WaitUtil.forceWait(1);
    assertEquals(targetElement.getText(),"String_Node_Str");
  }
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) public void checkDownloadPauseAndResumeOne() throws InterruptedException {
  LogUtil.printCurrentMethodName();
  List<AndroidElement> eList=mDriver.findElements(By.id("String_Node_Str"));
  if (eList.size() > 0) {
    int minItemSize=Math.min(eList.size(),5);
    AndroidElement targetElement=eList.get(RandomUtil.getRandomNum(minItemSize));
    targetElement.click();
    WaitUtil.forceWait(2);
    mDriver.findElement(By.id("String_Node_Str")).click();
    WaitUtil.forceWait(2);
    assertEquals(targetElement.getText(),"String_Node_Str");
    targetElement.click();
    WaitUtil.forceWait(1);
    assertEquals(targetElement.getText(),"String_Node_Str");
  }
}
Program: 71109
Project: 71109
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) @Tips(description="String_Node_Str",riskPoint="String_Node_Str") public void checkRamdomEnterDetail() throws InterruptedException {
  switchUpdate();
  WaitUtil.implicitlyWait(3);
  List<AndroidElement> eList=mDriver.findElements(By.className("String_Node_Str"));
  if (eList.size() > 0) {
    int minItemSize=Math.min(eList.size(),5);
    eList.get(RandomUtil.getRandomNum(minItemSize)).click();
    WaitUtil.forceWait(3);
    assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
    WaitUtil.implicitlyWait(3);
    mDriver.findElement(By.id("String_Node_Str")).click();
    WaitUtil.forceWait(2);
  }
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) @Tips(description="String_Node_Str",riskPoint="String_Node_Str") public void checkRamdomEnterDetail() throws InterruptedException {
  switchUpdate();
  LogUtil.printCurrentMethodName();
  WaitUtil.implicitlyWait(3);
  List<AndroidElement> eList=mDriver.findElements(By.className("String_Node_Str"));
  if (eList.size() > 0) {
    int minItemSize=Math.min(eList.size(),5);
    int randomIndex=RandomUtil.getRandomNum(minItemSize);
    eList.get(randomIndex).click();
    WaitUtil.forceWait(3);
    assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
    WaitUtil.implicitlyWait(3);
    mDriver.findElement(By.id("String_Node_Str")).click();
    WaitUtil.forceWait(2);
  }
}