nus-yam/ex-repair huggingface dataset:
Program: 71151
Project: 71151
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) @Tips(description="String_Node_Str",riskPoint="String_Node_Str",triggerTime="String_Node_Str") public void testBack4SplashNoCancelTip(){
  AppUtil.softResetApp();
  WaitUtil.implicitlyWait(2);
  Assert.assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
  WaitUtil.implicitlyWait(1);
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"}) @Tips(description="String_Node_Str",riskPoint="String_Node_Str",triggerTime="String_Node_Str") public void testBack4SplashNoCancelTip() throws InterruptedException {
  LogUtil.printCurrentMethodName();
  String packageName=ContextUtil.getPackageName();
  AppUtil.killApp(packageName);
  AppUtil.runInBackground4AWhile();
  WaitUtil.implicitlyWait(2);
  Assert.assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
  WaitUtil.implicitlyWait(1);
}
Program: 71152
Project: 71152
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) public void allowAllPremission() throws InterruptedException {
  AndroidElement buttonAllow=mDriver.findElement(By.id("String_Node_Str"));
  for (int i=0; i < 4; i++) {
    buttonAllow.click();
    WaitUtil.forceWait(1);
  }
  ScreenUtil.screenShot("String_Node_Str");
  WaitUtil.forceWait(2);
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"}) public void allowAllPremission() throws InterruptedException {
  WaitUtil.implicitlyWait(5);
  LogUtil.printCurrentMethodName();
  AndroidElement buttonAllow=mDriver.findElement(By.id("String_Node_Str"));
  for (int i=0; i < 4; i++) {
    buttonAllow.click();
    WaitUtil.forceWait(1);
  }
  ScreenUtil.screenShot("String_Node_Str");
  WaitUtil.forceWait(2);
}
Program: 71153
Project: 71153
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) public void denyAllPremission() throws InterruptedException {
  AndroidElement buttonAllow=mDriver.findElement(By.id("String_Node_Str"));
  for (int i=0; i < 4; i++) {
    buttonAllow.click();
    WaitUtil.forceWait(1);
  }
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"}) public void denyAllPremission() throws InterruptedException {
  WaitUtil.implicitlyWait(5);
  LogUtil.printCurrentMethodName();
  AndroidElement buttonAllow=mDriver.findElement(By.id("String_Node_Str"));
  for (int i=0; i < 4; i++) {
    buttonAllow.click();
    WaitUtil.forceWait(1);
  }
}
Program: 71154
Project: 71154
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) public void checkShowPermissionRalation() throws InterruptedException {
  WaitUtil.forceWait(1);
  ScreenUtil.screenShot("String_Node_Str");
  Assert.assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
  System.out.println("String_Node_Str");
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"}) public void checkShowPermissionRalation() throws InterruptedException {
  WaitUtil.forceWait(1);
  LogUtil.printCurrentMethodName();
  ScreenUtil.screenShot("String_Node_Str");
  Assert.assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
  System.out.println("String_Node_Str");
}
Program: 71155
Project: 71155
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) public void checkPermissionRefuse() throws InterruptedException {
  AndroidElement showDetailButton=mDriver.findElement(By.id("String_Node_Str"));
  showDetailButton.click();
  AppUtil.launchApp();
  AndroidElement buttonAllow=mDriver.findElement(By.id("String_Node_Str"));
  for (int i=0; i < 4; i++) {
    buttonAllow.click();
    WaitUtil.forceWait(1);
  }
  Assert.assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"}) public void checkPermissionRefuse() throws InterruptedException {
  WaitUtil.implicitlyWait(5);
  LogUtil.printCurrentMethodName();
  AndroidElement showDetailButton=mDriver.findElement(By.id("String_Node_Str"));
  showDetailButton.click();
  AppUtil.launchApp();
  AndroidElement buttonAllow=mDriver.findElement(By.id("String_Node_Str"));
  for (int i=0; i < 4; i++) {
    buttonAllow.click();
    WaitUtil.forceWait(1);
  }
  Assert.assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
}
Program: 71156
Project: 71156
Buggy source:
@Test(enabled=false) public void initCheck() throws InterruptedException {
  System.out.println("String_Node_Str" + getClass().getSimpleName() + "String_Node_Str");
  assertEquals("String_Node_Str",ContextUtil.getCurrentActivity());
  assertEquals(true,DeviceUtil.moreThanTargetSdkVersion("String_Node_Str"));
  WaitUtil.forceWait(3);
}

Fixed version (ground truth):
@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);
}
Program: 71157
Project: 71157
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) public void chekNotNotify() throws InterruptedException {
  AndroidElement notifyCheckbox=mDriver.findElement(By.id("String_Node_Str"));
  notifyCheckbox.click();
  WaitUtil.forceWait(1);
  notifyCheckbox.click();
  WaitUtil.forceWait(1);
  notifyCheckbox.click();
  WaitUtil.forceWait(1);
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"}) public void chekNotNotify() throws InterruptedException {
  WaitUtil.implicitlyWait(5);
  LogUtil.printCurrentMethodName();
  AndroidElement notifyCheckbox=mDriver.findElement(By.id("String_Node_Str"));
  notifyCheckbox.click();
  WaitUtil.forceWait(1);
  notifyCheckbox.click();
  WaitUtil.forceWait(1);
  notifyCheckbox.click();
  WaitUtil.forceWait(1);
}
Program: 71158
Project: 71158
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) @Tips(description="String_Node_Str",riskPoint="String_Node_Str") public void testBack4SplashCancelTip(){
  PageRedirect.redirect2SplashActivity();
  WaitUtil.implicitlyWait(2);
  Assert.assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
  WaitUtil.implicitlyWait(1);
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"}) @Tips(description="String_Node_Str",riskPoint="String_Node_Str") public void testBack4SplashCancelTip(){
  PageRedirect.redirect2SplashActivity();
  LogUtil.printCurrentMethodName();
  WaitUtil.implicitlyWait(2);
  Assert.assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
  WaitUtil.implicitlyWait(1);
}
Program: 71159
Project: 71159
Buggy source:
@BeforeClass public void beforeClass(){
  mTag=getClass().getSimpleName();
  mDriver=DriverManger.getDriver();
  AndroidElement element=mDriver.findElement(By.id("String_Node_Str"));
  element.click();
  WaitUtil.implicitlyWait(1);
  System.out.println("String_Node_Str" + mTag + "String_Node_Str");
}

Fixed version (ground truth):
@BeforeClass public void beforeClass(){
  mTag=getClass().getSimpleName();
  mDriver=DriverManger.getDriver();
  if (ContextUtil.getCurrentActivity().equals("String_Node_Str")) {
  }
 else   if (ElementUtil.isElementPresent(By.id("String_Node_Str"))) {
    WaitUtil.implicitlyWait(5);
    mDriver.findElement(By.id("String_Node_Str")).click();
  }
  System.out.println("String_Node_Str" + mTag + "String_Node_Str");
}
Program: 71160
Project: 71160
Buggy source:
@AfterClass public void afterClass(){
  System.out.println("String_Node_Str" + mTag + "String_Node_Str");
}

Fixed version (ground truth):
@AfterClass public void afterClass(){
  System.out.println("String_Node_Str" + mTag + "String_Node_Str");
  AppUtil.unInstall(App.PACKAGE_NAME);
}
Program: 71161
Project: 71161
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) public void checkGetPermissionDetail() throws InterruptedException {
  AndroidElement showDetailButton=mDriver.findElement(By.id("String_Node_Str"));
  showDetailButton.click();
  WaitUtil.forceWait(1);
  ScreenUtil.screenShot("String_Node_Str");
  showDetailButton.click();
  WaitUtil.forceWait(1);
  ScreenUtil.screenShot("String_Node_Str");
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"}) public void checkGetPermissionDetail() throws InterruptedException {
  WaitUtil.implicitlyWait(5);
  LogUtil.printCurrentMethodName();
  AndroidElement showDetailButton=mDriver.findElement(By.id("String_Node_Str"));
  showDetailButton.click();
  WaitUtil.forceWait(1);
  ScreenUtil.screenShot("String_Node_Str");
  showDetailButton.click();
  WaitUtil.forceWait(1);
  ScreenUtil.screenShot("String_Node_Str");
}
Program: 71162
Project: 71162
Buggy source:
@BeforeClass public void beforeClass(){
  mTag=getClass().getSimpleName();
  mDriver=DriverManger.getDriver();
  System.out.println("String_Node_Str" + mTag + "String_Node_Str");
  ScreenUtil.screenShot("String_Node_Str");
}

Fixed version (ground truth):
@BeforeClass public void beforeClass() throws InterruptedException {
  mTag=getClass().getSimpleName();
  mDriver=DriverManger.getDriver();
  System.out.println("String_Node_Str" + mTag + "String_Node_Str");
  ScreenUtil.screenShot("String_Node_Str");
}
Program: 71163
Project: 71163
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) public void checkComfirmProcotol(){
  System.out.println("String_Node_Str");
  AndroidElement element=mDriver.findElement(By.id("String_Node_Str"));
  element.click();
  WaitUtil.implicitlyWait(1);
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"}) public void checkComfirmProcotol(){
  WaitUtil.implicitlyWait(5);
  LogUtil.printCurrentMethodName();
  AndroidElement element=mDriver.findElement(By.id("String_Node_Str"));
  element.click();
}
Program: 71164
Project: 71164
Buggy source:
@Test(enabled=false) public void initCheck() throws Exception {
  System.out.println("String_Node_Str" + mTag + "String_Node_Str");
  String currentActivityName=ContextUtil.getCurrentActivity();
  Assert.assertEquals(currentActivityName,"String_Node_Str");
}

Fixed version (ground truth):
@Test public void initCheck() throws Exception {
  System.err.println("String_Node_Str" + mTag + "String_Node_Str");
  String currentActivityName=ContextUtil.getCurrentActivity();
  Assert.assertEquals(currentActivityName,"String_Node_Str");
}
Program: 71165
Project: 71165
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) public void checkNoNotify() throws InterruptedException {
  System.out.println("String_Node_Str");
  WaitUtil.forceWait(1);
  AndroidElement element=mDriver.findElementById("String_Node_Str");
  if (element != null)   element.click();
  WaitUtil.forceWait(1);
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"}) public void checkNoNotify() throws InterruptedException {
  WaitUtil.implicitlyWait(5);
  LogUtil.printCurrentMethodName();
  AndroidElement element=mDriver.findElementById("String_Node_Str");
  element.click();
  WaitUtil.forceWait(1);
}
Program: 71166
Project: 71166
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) public void checkScrollProcotol(){
  System.out.println("String_Node_Str");
  By by=By.className("String_Node_Str");
  ElementUtil.swipeControl(by,com.cmic.GoAppiumTest.helper.Heading.DOWN);
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"}) public void checkScrollProcotol(){
  WaitUtil.implicitlyWait(5);
  LogUtil.printCurrentMethodName();
  mDriver.findElement(By.className("String_Node_Str"));
  By by=By.className("String_Node_Str");
  ElementUtil.swipeControl(by,com.cmic.GoAppiumTest.helper.Heading.DOWN);
}
Program: 71167
Project: 71167
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) public void checkDenyProcotol(){
  System.out.println("String_Node_Str");
  AndroidElement element=mDriver.findElement(By.id("String_Node_Str"));
  element.click();
  WaitUtil.implicitlyWait(3);
  ScreenUtil.screenShot("String_Node_Str");
  WaitUtil.implicitlyWait(1);
  AppUtil.launchApp();
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"}) public void checkDenyProcotol() throws InterruptedException {
  WaitUtil.implicitlyWait(5);
  LogUtil.printCurrentMethodName();
  AndroidElement element=mDriver.findElement(By.id("String_Node_Str"));
  element.click();
  WaitUtil.forceWait(1);
  ScreenUtil.screenShot("String_Node_Str");
  AppUtil.softResetApp();
}
Program: 71168
Project: 71168
Buggy source:
@Tips(description="String_Node_Str",riskPoint="String_Node_Str") public static void softResetApp(){
  DriverManger.getDriver().closeApp();
  try {
    AndroidElement remoteAppWidget=DriverManger.getDriver().findElement(By.xpath("String_Node_Str"));
    remoteAppWidget.click();
  }
 catch (  NoSuchElementException e) {
    Assert.assertEquals(true,false);
  }
}

Fixed version (ground truth):
@Tips(description="String_Node_Str",riskPoint="String_Node_Str") public static void softResetApp(){
  DriverManger.getDriver().closeApp();
  try {
    WaitUtil.implicitlyWait(5);
    AndroidElement remoteAppWidget=DriverManger.getDriver().findElement(By.xpath("String_Node_Str"));
    remoteAppWidget.click();
  }
 catch (  NoSuchElementException e) {
    Assert.assertEquals(true,false);
  }
}
Program: 71169
Project: 71169
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"}) @Tips(description="String_Node_Str",riskPoint="String_Node_Str") public void checkClick2OtherTab(){
  String gameUiSelector="String_Node_Str" + "String_Node_Str";
  AndroidElement topGameTab=mDriver.findElementByAndroidUIAutomator(gameUiSelector);
  topGameTab.click();
  WaitUtil.implicitlyWait(2);
  String softwareUiSelector="String_Node_Str" + "String_Node_Str";
  AndroidElement topSoftwareTab=mDriver.findElementByAndroidUIAutomator(softwareUiSelector);
  topSoftwareTab.click();
  WaitUtil.implicitlyWait(2);
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) @Tips(description="String_Node_Str",riskPoint="String_Node_Str") public void checkClick2OtherTab(){
  String gameUiSelector="String_Node_Str" + "String_Node_Str";
  AndroidElement topGameTab=mDriver.findElementByAndroidUIAutomator(gameUiSelector);
  topGameTab.click();
  WaitUtil.implicitlyWait(2);
  String softwareUiSelector="String_Node_Str" + "String_Node_Str";
  AndroidElement topSoftwareTab=mDriver.findElementByAndroidUIAutomator(softwareUiSelector);
  topSoftwareTab.click();
  WaitUtil.implicitlyWait(2);
}
Program: 71170
Project: 71170
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) @Tips(description="String_Node_Str",riskPoint="String_Node_Str") public void testSlip2OtherTab(){
  ScrollUtil.scrollToPrecent(Direction.RIGHT,80);
  WaitUtil.implicitlyWait(2);
  ScrollUtil.scrollToPrecent(Direction.LEFT,80);
  WaitUtil.implicitlyWait(2);
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"}) @Tips(description="String_Node_Str",riskPoint="String_Node_Str") public void testSlip2OtherTab() throws InterruptedException {
  WaitUtil.forceWait(5);
  int width=ScreenUtil.getDeviceWidth();
  int height=ScreenUtil.getDeviceHeight();
  ScrollUtil.scrollToPrecent(Direction.LEFT,80);
  WaitUtil.forceWait(5);
  ScrollUtil.scrollToPrecent(Direction.RIGHT,80);
  WaitUtil.forceWait(5);
}
Program: 71171
Project: 71171
Buggy source:
public static void scrollToPrecent(ScrollUtil.Direction direction,int precentRate){
  AndroidDriver<AndroidElement> driver=DriverManger.getDriver();
  int width=ScreenUtil.getDeviceWidth() - 1;
  int height=ScreenUtil.getDeviceHeight() - 1;
switch (direction) {
case UP:
    driver.swipe(width / 2,height,width / 2,height * precentRate / 100,SCROLL_TIME);
  break;
case DOWN:
driver.swipe(width / 2,width * precentRate / 100,width / 2,1,SCROLL_TIME);
break;
case LEFT:
driver.swipe(width,height / 2,width * precentRate / 100,height / 2,SCROLL_TIME);
break;
case RIGHT:
driver.swipe(1,height / 2,width * precentRate / 100,height / 2,SCROLL_TIME);
break;
default :
break;
}
}

Fixed version (ground truth):
public static void scrollToPrecent(ScrollUtil.Direction direction,int precentRate){
  AndroidDriver<AndroidElement> driver=DriverManger.getDriver();
  int width=ScreenUtil.getDeviceWidth() - 1;
  int height=ScreenUtil.getDeviceHeight() - 1;
switch (direction) {
case UP:
    driver.swipe(width / 2,height,width / 2,height * precentRate / 100,SCROLL_TIME);
  break;
case DOWN:
driver.swipe(width / 2,width * precentRate / 100,width / 2,1,SCROLL_TIME);
break;
case LEFT:
driver.swipe(width,height / 2,(int)(width * (1 - precentRate / 100.0)),height / 2,SCROLL_TIME);
break;
case RIGHT:
driver.swipe(1,height / 2,width * precentRate / 100,height / 2,SCROLL_TIME);
break;
default :
break;
}
}
Program: 71173
Project: 71173
Buggy source:
public List<String> getRemovedQuotes(Object key){
  List<String> ret=new ArrayList<>();
  List<String> list=this.get(key);
  for (int i=0; i < list.size(); i++) {
    String s=list.get(i);
    if (s.startsWith("String_Node_Str") && s.endsWith("String_Node_Str")) {
      s=s.substring(1,s.length() - 1);
    }
    ret.add(s);
  }
  return ret;
}

Fixed version (ground truth):
public List<String> getRemovedQuotes(Object key){
  List<String> ret=new ArrayList<>();
  List<String> list=this.getOrDefault(key,new ArrayList<>());
  for (int i=0; i < list.size(); i++) {
    String s=list.get(i);
    if (s.startsWith("String_Node_Str") && s.endsWith("String_Node_Str")) {
      s=s.substring(1,s.length() - 1);
    }
    ret.add(s);
  }
  return ret;
}
Program: 71174
Project: 71174
Buggy source:
/** 
 * Used to run   {@link #calculate(String,ArrayList)} in cleaner way, and to output the results.
 * @param url The projects file url to use
 */
public static void run(String url){
  useOptional=Gui.useOptional.isSelected();
  Gui.actiontarget.setText("String_Node_Str");
  Gui.fakeURL.setText("String_Node_Str");
  new Thread(() -> {
    try {
      long millis=System.currentTimeMillis();
      ArrayList<CurseResult> resultList=calculate(url,new ArrayList<>());
      if (!resultList.isEmpty()) {
        String urlOutput="String_Node_Str";
        String forgeGradleOutput="String_Node_Str";
        for (        CurseResult result : resultList) {
          urlOutput+=result.getURL() + "String_Node_Str";
          forgeGradleOutput+="String_Node_Str" + result.getGradle() + "String_Node_Str";
        }
        Gui.fakeURL.setText(urlOutput + "String_Node_Str" + forgeGradleOutput);
      }
      Gui.actiontarget.setText("String_Node_Str" + (System.currentTimeMillis() - millis) + "String_Node_Str");
    }
 catch (    Exception e) {
      e.printStackTrace();
    }
  }
,"String_Node_Str").start();
  ;
}

Fixed version (ground truth):
/** 
 * Used to run   {@link #calculate(String,ArrayList)} in cleaner way, and to output the results.
 * @param url The projects file url to use
 */
public static void run(String url){
  useOptional=Gui.useOptional.isSelected();
  Gui.actiontarget.setText("String_Node_Str");
  Gui.fakeURL.setText("String_Node_Str");
  new Thread(() -> {
    try {
      long millis=System.currentTimeMillis();
      ArrayList<CurseResult> resultList=calculate(url,new ArrayList<>());
      if (!resultList.isEmpty()) {
        String urlOutput="String_Node_Str";
        String forgeGradleOutput="String_Node_Str";
        for (        CurseResult result : resultList) {
          urlOutput+=result.getURL() + "String_Node_Str";
          forgeGradleOutput+="String_Node_Str" + result.getGradle() + "String_Node_Str";
        }
        Gui.fakeURL.setText(urlOutput + "String_Node_Str" + forgeGradleOutput);
      }
      Gui.actiontarget.setText("String_Node_Str" + (System.currentTimeMillis() - millis) + "String_Node_Str");
      if (prevList.isEmpty()) {
        prevList=resultList;
      }
    }
 catch (    Exception e) {
      e.printStackTrace();
    }
  }
,"String_Node_Str").start();
  ;
}
Program: 71177
Project: 71177
Buggy source:
private void initDatePicker(){
  format1=new SimpleDateFormat("String_Node_Str",Locale.CHINA);
  format2=new SimpleDateFormat("String_Node_Str",Locale.CHINA);
  Calendar calendar=Calendar.getInstance();
  Date endDate=calendar.getTime();
  date2=date1=calendar.getTime();
  currentDate.setText(format1.format(date1));
  currentTime.setText(format2.format(date1));
  calendar.set(Calendar.YEAR,2010);
  calendar.set(Calendar.MONTH,0);
  calendar.set(Calendar.DAY_OF_MONTH,1);
  calendar.set(Calendar.HOUR_OF_DAY,0);
  calendar.set(Calendar.MINUTE,0);
  Date startDate=calendar.getTime();
  DateTimePicker.Builder builder=new DateTimePicker.Builder(this).setTitle("String_Node_Str").setCancelTextColor(Color.RED).setOkTextColor(CompatColorResourceUtils.getColor(this,R.color.colorPrimary)).setTitleTextColor(0xFF999999).setSelectedTextColor(CompatColorResourceUtils.getColor(this,R.color.colorAccent)).setKeepLastSelected(true).setShowYMDHMLabel(true).setShowType(DateTimePicker.ShowType.DAY);
  dateTimePicker1=new DateTimePicker(this,new DateTimePicker.ResultHandler(){
    @Override public void handle(    Date date){
      DateTimePickerActivity.this.date1=date;
      currentDate.setText(format1.format(date));
    }
  }
,startDate,endDate,builder);
  dateTimePicker2=new DateTimePicker(this,new DateTimePicker.ResultHandler(){
    @Override public void handle(    Date date){
      date2=date;
      currentTime.setText(format2.format(date));
    }
  }
,startDate,endDate,new DateTimePicker.Builder(this).setLoopScroll(true));
}

Fixed version (ground truth):
private void initDatePicker(){
  format1=new SimpleDateFormat("String_Node_Str",Locale.CHINA);
  format2=new SimpleDateFormat("String_Node_Str",Locale.CHINA);
  Calendar calendar=Calendar.getInstance();
  Date endDate=calendar.getTime();
  date2=date1=calendar.getTime();
  currentDate.setText(format1.format(date1));
  currentTime.setText(format2.format(date1));
  calendar.set(Calendar.MONTH,0);
  calendar.set(Calendar.DAY_OF_MONTH,1);
  calendar.set(Calendar.HOUR_OF_DAY,0);
  calendar.set(Calendar.MINUTE,0);
  Date startDate=calendar.getTime();
  DateTimePicker.Builder builder=new DateTimePicker.Builder(this).setTitle("String_Node_Str").setCancelTextColor(Color.RED).setOkTextColor(CompatColorResourceUtils.getColor(this,R.color.colorPrimary)).setTitleTextColor(0xFF999999).setSelectedTextColor(CompatColorResourceUtils.getColor(this,R.color.colorAccent)).setKeepLastSelected(true).setShowYMDHMLabel(true).setShowType(DateTimePicker.ShowType.DAY);
  dateTimePicker1=new DateTimePicker(this,new DateTimePicker.ResultHandler(){
    @Override public void handle(    Date date){
      DateTimePickerActivity.this.date1=date;
      currentDate.setText(format1.format(date));
    }
  }
,startDate,endDate,builder);
  dateTimePicker2=new DateTimePicker(this,new DateTimePicker.ResultHandler(){
    @Override public void handle(    Date date){
      date2=date;
      currentTime.setText(format2.format(date));
    }
  }
,startDate,endDate,new DateTimePicker.Builder(this).setLoopScroll(true));
}
Program: 71178
Project: 71178
Buggy source:
@Override protected void onCreate(@Nullable Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  RecyclerView recyclerView=new RecyclerView(this);
  recyclerView.setLayoutParams(new FrameLayout.LayoutParams(FrameLayout.LayoutParams.MATCH_PARENT,FrameLayout.LayoutParams.MATCH_PARENT));
  recyclerView.setLayoutManager(new LinearLayoutManager(this));
  setContentView(recyclerView);
  setTitleBarTitle(getClass().getSimpleName().replace("String_Node_Str","String_Node_Str"));
  showTitleBarBackView(false);
  ClassItemAdapter adapter=new ClassItemAdapter();
  recyclerView.setAdapter(adapter);
  adapter.setOnItemClickListener(new OnItemClickListener<ClassItem>(){
    @Override public void onItemClick(    View view,    ClassItem item){
      toNewActivity(item);
    }
    @Override public void onItemClick(    View view,    ClassItem item,    int adapterPosition,    int layoutPosition){
    }
  }
);
  adapter.setItems(getClassItems());
  handlerProvider.sendUIEmptyMessageDelay(0,350L);
}

Fixed version (ground truth):
@Override protected void onCreate(@Nullable Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  ReboundRecyclerView reboundRecyclerView=new ReboundRecyclerView(this);
  RecyclerView recyclerView=reboundRecyclerView.getRecyclerView();
  recyclerView.setLayoutParams(new FrameLayout.LayoutParams(FrameLayout.LayoutParams.MATCH_PARENT,FrameLayout.LayoutParams.MATCH_PARENT));
  recyclerView.setLayoutManager(new LinearLayoutManager(this));
  recyclerView.addItemDecoration(new HorizontalSpaceItemDecoration(getResources().getDimensionPixelOffset(R.dimen.space_16),getResources().getDimensionPixelOffset(R.dimen.space_4),getResources().getDimensionPixelOffset(R.dimen.space_16),0));
  setContentView(reboundRecyclerView);
  setTitleBarTitle(getClass().getSimpleName().replace("String_Node_Str","String_Node_Str"));
  showTitleBarBackView(false);
  ClassItemAdapter adapter=new ClassItemAdapter();
  recyclerView.setAdapter(adapter);
  adapter.setOnItemClickListener(new OnItemClickListener<ClassItem>(){
    @Override public void onItemClick(    View view,    ClassItem item){
      toNewActivity(item);
    }
    @Override public void onItemClick(    View view,    ClassItem item,    int adapterPosition,    int layoutPosition){
    }
  }
);
  adapter.setItems(getClassItems());
  handlerProvider.sendUIEmptyMessageDelay(0,350L);
}
Program: 71179
Project: 71179
Buggy source:
@Override protected void onCreate(@Nullable Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  initMenu();
  ReboundRecyclerView reboundRecyclerView=new ReboundRecyclerView(this);
  reboundRecyclerView.setMaxReboundAnimDuration(2000);
  RecyclerView recyclerView=reboundRecyclerView.getRecyclerView();
  recyclerView.setLayoutManager(new LinearLayoutManager(this));
  adapter=new ClassItemAdapter();
  adapter.setOnItemClickListener(new OnItemClickListener<ClassItem>(){
    @Override public void onItemClick(    View view,    ClassItem item){
      showCustomToast(item.getLabel());
    }
    @Override public void onItemClick(    View view,    ClassItem item,    int adapterPosition,    int layoutPosition){
    }
  }
);
  recyclerView.setAdapter(adapter);
  setContentView(reboundRecyclerView,new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT,ViewGroup.LayoutParams.MATCH_PARENT));
  setTitle(getClass().getSimpleName().replace("String_Node_Str","String_Node_Str"));
  List<ClassItem> items=new ArrayList<>();
  for (int i=0; i < 60; i++) {
    items.add(new ClassItem("String_Node_Str" + (i < 10 ? "String_Node_Str" + i : "String_Node_Str" + i),null));
  }
  adapter.setItems(items);
}

Fixed version (ground truth):
@Override protected void onCreate(@Nullable Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  initMenu();
  ReboundRecyclerView reboundRecyclerView=new ReboundRecyclerView(this);
  reboundRecyclerView.setMaxReboundAnimDuration(2000);
  RecyclerView recyclerView=reboundRecyclerView.getRecyclerView();
  recyclerView.setLayoutManager(new LinearLayoutManager(this));
  recyclerView.addItemDecoration(new HorizontalSpaceItemDecoration(getResources().getDimensionPixelOffset(R.dimen.space_16),getResources().getDimensionPixelOffset(R.dimen.space_4),getResources().getDimensionPixelOffset(R.dimen.space_16),0));
  adapter=new ClassItemAdapter();
  adapter.setOnItemClickListener(new OnItemClickListener<ClassItem>(){
    @Override public void onItemClick(    View view,    ClassItem item){
      showCustomToast(item.getLabel());
    }
    @Override public void onItemClick(    View view,    ClassItem item,    int adapterPosition,    int layoutPosition){
    }
  }
);
  recyclerView.setAdapter(adapter);
  setContentView(reboundRecyclerView,new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT,ViewGroup.LayoutParams.MATCH_PARENT));
  setTitle(getClass().getSimpleName().replace("String_Node_Str","String_Node_Str"));
  List<ClassItem> items=new ArrayList<>();
  for (int i=0; i < 60; i++) {
    items.add(new ClassItem("String_Node_Str" + (i < 10 ? "String_Node_Str" + i : "String_Node_Str" + i),null));
  }
  adapter.setItems(items);
}
Program: 71180
Project: 71180
Buggy source:
private void initRecyclerViewContent(){
  RecyclerView recyclerView=new RecyclerView(this);
  recyclerView.setLayoutManager(new LinearLayoutManager(this));
  ClassItemAdapter adapter=new ClassItemAdapter();
  recyclerView.setAdapter(adapter);
  refreshLayout.addContent(recyclerView);
  List<ClassItem> items=new ArrayList<>();
  for (int i=0; i < 16; i++) {
    items.add(new ClassItem("String_Node_Str" + (i < 10 ? "String_Node_Str" + i : "String_Node_Str" + i),null));
  }
  adapter.setItems(items);
}

Fixed version (ground truth):
private void initRecyclerViewContent(){
  RecyclerView recyclerView=new RecyclerView(this);
  recyclerView.setLayoutManager(new LinearLayoutManager(this));
  recyclerView.addItemDecoration(new HorizontalSpaceItemDecoration(getResources().getDimensionPixelOffset(R.dimen.space_16),getResources().getDimensionPixelOffset(R.dimen.space_4),getResources().getDimensionPixelOffset(R.dimen.space_16),0));
  ClassItemAdapter adapter=new ClassItemAdapter();
  recyclerView.setAdapter(adapter);
  refreshLayout.addContent(recyclerView);
  List<ClassItem> items=new ArrayList<>();
  for (int i=0; i < 16; i++) {
    items.add(new ClassItem("String_Node_Str" + (i < 10 ? "String_Node_Str" + i : "String_Node_Str" + i),null));
  }
  adapter.setItems(items);
}
Program: 71182
Project: 71182
Buggy source:
@Override protected void onMeasure(int widthMeasureSpec,int heightMeasureSpec){
  super.onMeasure(widthMeasureSpec,widthMeasureSpec);
  int count=gifts.size();
  int perAngle=360 / count;
  float startAngle=-90 - perAngle / 2.0f;
  for (int i=0; i < count; i++) {
    GiftEntity entity=gifts.get(i);
    entity.setStartAngle(startAngle + perAngle * i);
    entity.setSweepAngle(perAngle);
  }
}

Fixed version (ground truth):
@Override protected void onMeasure(int widthMeasureSpec,int heightMeasureSpec){
  super.onMeasure(widthMeasureSpec,widthMeasureSpec);
  int count=gifts.size();
  if (count == 0)   return;
  int perAngle=360 / count;
  float startAngle=-90 - perAngle / 2.0f;
  for (int i=0; i < count; i++) {
    GiftEntity entity=gifts.get(i);
    entity.setStartAngle(startAngle + perAngle * i);
    entity.setSweepAngle(perAngle);
  }
}
Program: 71184
Project: 71184
Buggy source:
/** 
 * 播放Gif图片
 * @param layoutView 父布局
 * @param imageRes   gif图片资源
 */
private static void startGifAnim(View layoutView,int imageRes){
  GifImageView gifImageView=layoutView.findViewById(R.id.iv_gif);
  if (gifImageView == null) {
    Log.e(TAG,"String_Node_Str");
    return;
  }
  GifDrawable gifDrawable=(GifDrawable)gifImageView.getDrawable();
  if (gifDrawable == null) {
    Log.e(TAG,"String_Node_Str");
  }
 else {
    gifImageView.setImageResource(imageRes);
    gifDrawable.start();
  }
}

Fixed version (ground truth):
/** 
 * 播放Gif图片
 * @param layoutView 父布局
 * @param imageRes   gif图片资源
 */
private static void startGifAnim(View layoutView,int imageRes){
  GifImageView gifImageView=layoutView.findViewById(R.id.iv_gif);
  if (gifImageView == null) {
    Log.e(TAG,"String_Node_Str");
    return;
  }
  gifImageView.setImageResource(imageRes);
  GifDrawable gifDrawable=(GifDrawable)gifImageView.getDrawable();
  if (gifDrawable == null) {
    Log.e(TAG,"String_Node_Str");
  }
 else {
    gifDrawable.start();
  }
}
Program: 71186
Project: 71186
Buggy source:
private void startRun(){
  confirmButton.hb.clicked=false;
  confirmButton.isDisabled=true;
  confirmButton.hide();
  if (setSeed) {
    Settings.seed=seed;
  }
 else {
    Settings.seed=Long.valueOf(new Random().nextLong());
  }
  System.out.println("String_Node_Str" + Settings.seed);
  AbstractDungeon.generateSeeds();
  Settings.isDailyRun=true;
  AbstractPlayer.PlayerClass chosen=AbstractPlayer.PlayerClass.IRONCLAD;
  if (selected == 0) {
    chosen=AbstractPlayer.PlayerClass.IRONCLAD;
  }
 else   if (selected == 1) {
    chosen=AbstractPlayer.PlayerClass.THE_SILENT;
  }
 else {
    int index=2;
    boolean found=false;
    for (    Object playerKey : keys) {
      if (!found && index == selected) {
        chosen=AbstractPlayer.PlayerClass.valueOf(playerKey.toString());
        found=true;
      }
      index++;
    }
    if (!found) {
      logger.error("String_Node_Str");
      chosen=AbstractPlayer.PlayerClass.IRONCLAD;
    }
  }
  buildDailyMods();
  climbPanel.isUp=false;
  climbPanel.waitingOnEvent=false;
  BaseMod.modSettingsUp=false;
  Gdx.input.setInputProcessor(climbPanel.oldInputProcessor);
  CardCrawlGame.mainMenuScreen.lighten();
  CardCrawlGame.cancelButton.hideInstantly();
  CardCrawlGame.chosenCharacter=chosen;
  CardCrawlGame.mainMenuScreen.isFadingOut=true;
  CardCrawlGame.mainMenuScreen.fadeOutMusic();
}

Fixed version (ground truth):
private void startRun(){
  confirmButton.hb.clicked=false;
  confirmButton.isDisabled=true;
  confirmButton.hide();
  if (setSeed) {
    Settings.seed=seed;
  }
 else {
    Settings.seed=Long.valueOf(new Random().nextLong());
  }
  System.out.println("String_Node_Str" + Settings.seed);
  AbstractDungeon.generateSeeds();
  Settings.isDailyRun=true;
  AbstractPlayer.PlayerClass chosen=AbstractPlayer.PlayerClass.IRONCLAD;
  if (selected == 0) {
    chosen=AbstractPlayer.PlayerClass.IRONCLAD;
  }
 else   if (selected == 1) {
    chosen=AbstractPlayer.PlayerClass.THE_SILENT;
  }
 else   if (selected == 2) {
    chosen=AbstractPlayer.PlayerClass.DEFECT;
  }
 else {
    int index=3;
    boolean found=false;
    for (    Object playerKey : keys) {
      if (!found && index == selected) {
        chosen=AbstractPlayer.PlayerClass.valueOf(playerKey.toString());
        found=true;
      }
      index++;
    }
    if (!found) {
      logger.error("String_Node_Str");
      chosen=AbstractPlayer.PlayerClass.IRONCLAD;
    }
  }
  buildDailyMods();
  climbPanel.isUp=false;
  climbPanel.waitingOnEvent=false;
  BaseMod.modSettingsUp=false;
  Gdx.input.setInputProcessor(climbPanel.oldInputProcessor);
  CardCrawlGame.mainMenuScreen.lighten();
  CardCrawlGame.cancelButton.hideInstantly();
  CardCrawlGame.chosenCharacter=chosen;
  CardCrawlGame.mainMenuScreen.isFadingOut=true;
  CardCrawlGame.mainMenuScreen.fadeOutMusic();
}
Program: 71187
Project: 71187
Buggy source:
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  disposable=new CompositeDisposable();
  binding=DataBindingUtil.setContentView(this,R.layout.activity_movie_details);
  setupUi();
  DaggerMainActivityComponent.builder().coreComponent(((App)getApplication()).getCoreComponent()).build().inject(this);
  viewModel=ViewModelProviders.of(this,factory).get(MovieDetailsActivityViewModel.class);
  Intent intent=getIntent();
  if (intent == null) {
    closeOnError();
    return;
  }
  long id=intent.getLongExtra(MOVIE_EXTRA_KEY,-1L);
  if (id == -1L) {
    closeOnError();
    return;
  }
  viewModel.getMovie(id).observe(this,movie -> {
    Log.d(TAG,"String_Node_Str" + movie);
    if (MovieDetailsUtils.isNullMovie(movie)) {
      hideProgressBar();
      showNoMovieErrorDialog();
      return;
    }
    bindUi(movie);
  }
);
  viewModel.getIsMovieInFavorites().observe(this,isInFavorites -> {
    Log.d(TAG,"String_Node_Str" + isInFavorites);
    isMovieInFavorites=isInFavorites;
    adjustAddToFavoritesButton(isInFavorites);
  }
);
}

Fixed version (ground truth):
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  binding=DataBindingUtil.setContentView(this,R.layout.activity_movie_details);
  setupUi();
  DaggerMainActivityComponent.builder().coreComponent(((App)getApplication()).getCoreComponent()).build().inject(this);
  viewModel=ViewModelProviders.of(this,factory).get(MovieDetailsActivityViewModel.class);
  Intent intent=getIntent();
  if (intent == null) {
    closeOnError();
    return;
  }
  long id=intent.getLongExtra(MOVIE_EXTRA_KEY,-1L);
  if (id == -1L) {
    closeOnError();
    return;
  }
  viewModel.getMovie(id).observe(this,movie -> {
    Log.d(TAG,"String_Node_Str" + movie);
    if (MovieDetailsUtils.isNullMovie(movie)) {
      Log.d(TAG,"String_Node_Str");
      hideProgressBar();
      showNoMovieErrorDialog();
      return;
    }
    bindUi(movie);
  }
);
  viewModel.getIsMovieInFavorites().observe(this,isInFavorites -> {
    Log.d(TAG,"String_Node_Str" + isInFavorites);
    isMovieInFavorites=isInFavorites;
    updateAddToFavoritesButton(isInFavorites);
  }
);
}
Program: 71188
Project: 71188
Buggy source:
@Override protected void onDestroy(){
  if (disposable != null && !disposable.isDisposed())   disposable.clear();
  super.onDestroy();
}

Fixed version (ground truth):
@Override protected void onDestroy(){
  super.onDestroy();
}
Program: 71190
Project: 71190
Buggy source:
private void hideDetailsUi(){
  binding.appBarRoot.setVisibility(View.GONE);
  binding.detailsScrollView.setVisibility(View.GONE);
}

Fixed version (ground truth):
private void hideDetailsUi(){
  binding.appBarRoot.setVisibility(View.INVISIBLE);
  binding.detailsScrollView.setVisibility(View.INVISIBLE);
}
Program: 71191
Project: 71191
Buggy source:
private void showDetailsUi(){
  binding.detailsScrollView.setVisibility(View.VISIBLE);
  binding.appBarRoot.setVisibility(View.VISIBLE);
}

Fixed version (ground truth):
private void showDetailsUi(){
  Log.d(TAG,"String_Node_Str");
  binding.detailsScrollView.setVisibility(View.VISIBLE);
  binding.appBarRoot.setVisibility(View.VISIBLE);
}
Program: 71192
Project: 71192
Buggy source:
@Override public void onBindViewHolder(MovieViewHolder holder,int position){
  MoviePreview movie=movies.get(position);
  Picasso.with(context).load(context.getString(R.string.movies_db_poster_base_url_poster_w342) + movie.getPosterUrl()).into(holder.poster);
}

Fixed version (ground truth):
@Override public void onBindViewHolder(MovieViewHolder holder,int position){
  MoviePreview movie=movies.get(position);
  Picasso.with(context).load(context.getString(R.string.movies_db_poster_base_url_poster_w342) + movie.getPosterUrl()).placeholder(R.drawable.poster_ph).into(holder.poster);
}
Program: 71193
Project: 71193
Buggy source:
@Test public void testGetAllUsers(){
  List<User> allUsers=userService.getAll();
  verify(userRepository,times(1)).findAll();
  assertEquals(new ArrayList<>(),allUsers);
}

Fixed version (ground truth):
@Test public void testGetAllUsers(){
  when(userRepository.findAll()).thenReturn(new ArrayList<>());
  List<User> allUsers=userService.getAll();
  verify(userRepository,times(1)).findAll();
  assertEquals(new ArrayList<>(),allUsers);
}
Program: 71194
Project: 71194
Buggy source:
@PostMapping("String_Node_Str") public RedirectView registerNewUser(@Valid OrderRequest neworder,BindingResult result,Model model){
  User user=(User)SecurityContextHolder.getContext().getAuthentication().getPrincipal();
  neworder.setPublishedBy(user);
  orderService.add(neworder);
  model.addAttribute("String_Node_Str",true);
  return new RedirectView("String_Node_Str" + neworder.getID());
}

Fixed version (ground truth):
@PostMapping("String_Node_Str") public RedirectView registerNewUser(@Valid OrderRequest neworder,BindingResult result,Model model){
  User user=(User)SecurityContextHolder.getContext().getAuthentication().getPrincipal();
  neworder.setPublishedBy(user);
  neworder.setBuyer(user);
  orderService.add(neworder);
  model.addAttribute("String_Node_Str",true);
  return new RedirectView("String_Node_Str" + neworder.getID());
}
Program: 71195
Project: 71195
Buggy source:
@Bean public CommandLineRunner demo(UserService userService){
  return args -> {
    Localization local=new Localization("String_Node_Str","String_Node_Str","String_Node_Str",7);
    User jesuspa98=new User(0.0,0,"String_Node_Str","String_Node_Str",new ArrayList<>(),0,"String_Node_Str",local,new ArrayList<>(),"String_Node_Str");
    userService.add(jesuspa98);
  }
;
}

Fixed version (ground truth):
@Bean public CommandLineRunner demo(UserService userService,OrderService orderService){
  return args -> {
    Localization local=new Localization("String_Node_Str","String_Node_Str","String_Node_Str",7);
    User jesuspa98=new User(0.0,0,"String_Node_Str","String_Node_Str",new ArrayList<>(),0,"String_Node_Str",local,new ArrayList<>(),"String_Node_Str");
    userService.register(jesuspa98);
    OrderRequest order=new OrderRequest(jesuspa98,"String_Node_Str",15,15,"String_Node_Str","String_Node_Str");
    orderService.add(order);
  }
;
}
Program: 71196
Project: 71196
Buggy source:
@GetMapping("String_Node_Str") public String orderPanel(@PathVariable("String_Node_Str") Long id,Model model){
  model.addAttribute("String_Node_Str",false);
  model.addAttribute("String_Node_Str",orderService.getOrderById(id));
  return "String_Node_Str";
}

Fixed version (ground truth):
@GetMapping("String_Node_Str") public String orderPanel(@PathVariable("String_Node_Str") Long id,Model model){
  User user=(User)SecurityContextHolder.getContext().getAuthentication().getPrincipal();
  OrderRequest order=orderService.getOrderById(id);
  model.addAttribute("String_Node_Str",order.getPublishedBy().getUserName().equals(user.getUserName()));
  model.addAttribute("String_Node_Str",orderService.getOrderById(id));
  return "String_Node_Str";
}
Program: 71197
Project: 71197
Buggy source:
@Override public int hashCode(){
  return Objects.hash(maxTime,publishedBy,description,maxCost);
}

Fixed version (ground truth):
@Override public int hashCode(){
  return Objects.hash(publishedBy,description,maxCost);
}
Program: 71198
Project: 71198
Buggy source:
public int getMonth(){
  return month;
}

Fixed version (ground truth):
public String getMonth(){
  return month;
}
Program: 71199
Project: 71199
Buggy source:
public void setMonth(int month){
  this.month=month;
}

Fixed version (ground truth):
public void setMonth(String month){
  this.month=month;
}
Program: 71200
Project: 71200
Buggy source:
@Override public boolean equals(Object o){
  if (this == o)   return true;
  if (o == null || getClass() != o.getClass())   return false;
  OrderRequest orderRequest=(OrderRequest)o;
  return Double.compare(orderRequest.maxCost,maxCost) == 0 && Objects.equals(maxTime,orderRequest.maxTime) && Objects.equals(publishedBy,orderRequest.publishedBy) && Objects.equals(description,orderRequest.description);
}

Fixed version (ground truth):
@Override public boolean equals(Object o){
  if (this == o)   return true;
  if (o == null || getClass() != o.getClass())   return false;
  OrderRequest orderRequest=(OrderRequest)o;
  return Double.compare(orderRequest.maxCost,maxCost) == 0 && Objects.equals(publishedBy,orderRequest.publishedBy) && Objects.equals(description,orderRequest.description);
}
Program: 71201
Project: 71201
Buggy source:
@Override public String toString(){
  return "String_Node_Str" + "String_Node_Str" + id + "String_Node_Str"+ maxTime+ "String_Node_Str"+ publishedBy+ "String_Node_Str"+ description+ '\''+ "String_Node_Str"+ maxCost+ "String_Node_Str"+ buyer+ "String_Node_Str"+ seller+ "String_Node_Str"+ verifiedByBuyer+ "String_Node_Str"+ verifiedBySeller+ '}';
}

Fixed version (ground truth):
@Override public String toString(){
  return "String_Node_Str" + "String_Node_Str" + id + "String_Node_Str"+ publishedBy+ "String_Node_Str"+ description+ '\''+ "String_Node_Str"+ maxCost+ "String_Node_Str"+ buyer+ "String_Node_Str"+ seller+ "String_Node_Str"+ verifiedByBuyer+ "String_Node_Str"+ verifiedBySeller+ "String_Node_Str"+ day+ "String_Node_Str"+ month+ '\''+ "String_Node_Str"+ hour+ '\''+ '}';
}
Program: 71202
Project: 71202
Buggy source:
public java.util.Date parseToDate(int day,int month,String hora){
  java.util.Date date=new Date();
  date.setMonth(month - 1);
  date.setDate(day);
  date.setYear(118);
  String array[]=hora.split("String_Node_Str");
  date.setHours(Integer.valueOf(array[0]));
  date.setMinutes(Integer.valueOf(array[1]));
  return date;
}

Fixed version (ground truth):
public java.util.Date parseToDate(int day,String mes,String hora){
  java.util.Date date=new Date();
  int month=parseToMonth(mes);
  String array[]=hora.split("String_Node_Str");
  date.setMonth(month - 1);
  date.setDate(day);
  date.setYear(118);
  date.setHours(Integer.valueOf(array[0]));
  date.setMinutes(Integer.valueOf(array[1]));
  return date;
}
Program: 71203
Project: 71203
Buggy source:
public void update(OrderRequest orderRequest){
  OrderRequest o=repository.getOne(orderRequest.getID());
  o.setMaxTime(orderRequest.getMaxTime());
  o.setPublishedBy(orderRequest.getPublishedBy());
  o.setDescription(orderRequest.getDescription());
  o.setMaxCost(orderRequest.getMaxCost());
  repository.saveAndFlush(o);
}

Fixed version (ground truth):
public void update(OrderRequest orderRequest){
  OrderRequest o=repository.getOne(orderRequest.getID());
  o.setDay(orderRequest.getDay());
  o.setHour(orderRequest.getHour());
  o.setMonth(orderRequest.getMonth());
  o.setPublishedBy(orderRequest.getPublishedBy());
  o.setDescription(orderRequest.getDescription());
  o.setMaxCost(orderRequest.getMaxCost());
  repository.saveAndFlush(o);
}
Program: 71204
Project: 71204
Buggy source:
public boolean timeout(OrderRequest order){
  java.util.Date currentDate=new Date();
  return (currentDate.compareTo(order.getMaxTime()) < 0);
}

Fixed version (ground truth):
public boolean timeout(OrderRequest order){
  java.util.Date currentDate=new Date();
  java.util.Date date=new Date();
  date=parseToDate(order.getDay(),order.getMonth(),order.getHour());
  return (currentDate.compareTo(date) < 0);
}
Program: 71205
Project: 71205
Buggy source:
public OrderRequest publishOrder(Long id,String description,double cost,int day,int month,String hour){
  return new OrderRequest(searchByid(id),description,cost,day,month,hour);
}

Fixed version (ground truth):
public OrderRequest publishOrder(Long id,String description,double cost,int day,String month,String hour){
  return new OrderRequest(searchByid(id),description,cost,day,month,hour);
}
Program: 71206
Project: 71206
Buggy source:
public void setDescription(){
  return this.description;
}

Fixed version (ground truth):
public void setDescription(String d){
  description=d;
}
Program: 71207
Project: 71207
Buggy source:
public double getMaxCost(){
}

Fixed version (ground truth):
public double getMaxCost(){
  return maxCost;
}
Program: 71208
Project: 71208
Buggy source:
public void setId(int id){
  this.id=id;
}

Fixed version (ground truth):
public void setId(Long id){
  this.id=id;
}
Program: 71209
Project: 71209
Buggy source:
@Override public String toString(){
}

Fixed version (ground truth):
@Override public String toString(){
  return "String_Node_Str" + "String_Node_Str" + address1 + '\''+ "String_Node_Str"+ address2+ '\''+ "String_Node_Str"+ city+ '\''+ "String_Node_Str"+ country+ '\''+ "String_Node_Str"+ zipCode+ "String_Node_Str"+ latitude+ "String_Node_Str"+ longitude+ '}';
}
Program: 71210
Project: 71210
Buggy source:
public void update(Order order){
  Order o=repository.getOne(order.getId());
  o.setMaxTime(order.getMaxTime());
  o.setPublishedBy(order.getPublishedBy());
  o.setDescription(order.getDescription());
  o.setMaxCost(order.getMaxCost());
  repository.saveAndFlush(o);
}

Fixed version (ground truth):
public void update(Order order){
  Order o=repository.getOne(order.getID());
  o.setMaxTime(order.getMaxTime());
  o.setPublishedBy(order.getPublishedBy());
  o.setDescription(order.getDescription());
  o.setMaxCost(order.getMaxCost());
  repository.saveAndFlush(o);
}
Program: 71211
Project: 71211
Buggy source:
public void delete(Order order){
  repository.deleteById(order.getId());
}

Fixed version (ground truth):
public void delete(Order order){
  repository.deleteById(order.getID());
}