nus-yam/ex-repair huggingface dataset:
Program: 62879
Project: 62879
Buggy source:
@Override public void onReceive(final Context context,Intent intent){
  NotificationManagerCompat notificationManager=NotificationManagerCompat.from(context);
  Notification notification=intent.getParcelableExtra(FlutterLocalNotificationsPlugin.NOTIFICATION);
  int notificationId=intent.getIntExtra(FlutterLocalNotificationsPlugin.NOTIFICATION_ID,0);
  notificationManager.notify(notificationId,notification);
  boolean repeat=intent.getBooleanExtra(FlutterLocalNotificationsPlugin.REPEAT,false);
  if (repeat) {
    return;
  }
  FlutterLocalNotificationsPlugin.removeNotificationFromCache(notificationId,context);
}

Fixed version (ground truth):
@Override public void onReceive(final Context context,Intent intent){
  NotificationManagerCompat notificationManager=NotificationManagerCompat.from(context);
  String notificationDetailsJson=intent.getStringExtra(FlutterLocalNotificationsPlugin.NOTIFICATION_DETAILS);
  boolean repeat=intent.getBooleanExtra(FlutterLocalNotificationsPlugin.REPEAT,false);
  if (StringUtils.isNullOrEmpty(notificationDetailsJson)) {
    Notification notification=intent.getParcelableExtra(FlutterLocalNotificationsPlugin.NOTIFICATION);
    notification.when=System.currentTimeMillis();
    int notificationId=intent.getIntExtra(FlutterLocalNotificationsPlugin.NOTIFICATION_ID,0);
    notificationManager.notify(notificationId,notification);
    if (repeat) {
      return;
    }
    FlutterLocalNotificationsPlugin.removeNotificationFromCache(notificationId,context);
  }
 else {
    Gson gson=FlutterLocalNotificationsPlugin.buildGson();
    Type type=new TypeToken<NotificationDetails>(){
    }
.getType();
    NotificationDetails notificationDetails=gson.fromJson(notificationDetailsJson,type);
    Notification notification=FlutterLocalNotificationsPlugin.createNotification(context,notificationDetails);
    notificationManager.notify(notificationDetails.id,notification);
    if (repeat) {
      return;
    }
    FlutterLocalNotificationsPlugin.removeNotificationFromCache(notificationDetails.id,context);
  }
}
Program: 62881
Project: 62881
Buggy source:
/** 
 * Excluded columns
 * @param columnNames table column name
 * @return AnimaQuery
 */
public AnimaQuery<T> exclude(String... columnNames){
  Collections.addAll(excludedColumns,columnNames);
  return this;
}

Fixed version (ground truth):
/** 
 * Excluded columns by lambda
 * @param functions lambda columns
 * @param < R >
 * @return AnimaQuery
 */
public <R>AnimaQuery<T> exclude(TypeFunction<T,R>... functions){
  String[] columnNames=Arrays.stream(functions).map(AnimaUtils::getLambdaColumnName).collect(Collectors.toList()).toArray(new String[functions.length]);
  return this.exclude(columnNames);
}
Program: 62882
Project: 62882
Buggy source:
/** 
 * Build a paging statement
 * @param pageRow page param
 * @return paging sql
 */
private String buildPageSQL(PageRow pageRow){
  SQLParams sqlParams=SQLParams.builder().modelClass(this.modelClass).selectColumns(this.selectColumns).tableName(this.tableName).pkName(this.primaryKeyColumn).conditionSQL(this.conditionSQL).excludedColumns(this.excludedColumns).orderBy(this.orderBySQL.toString()).pageRow(pageRow).build();
  return Anima.me().getDialect().paginate(sqlParams);
}

Fixed version (ground truth):
/** 
 * Build a paging statement
 * @param pageRow page param
 * @return paging sql
 */
private String buildPageSQL(String sql,PageRow pageRow){
  SQLParams sqlParams=SQLParams.builder().modelClass(this.modelClass).selectColumns(this.selectColumns).tableName(this.tableName).pkName(this.primaryKeyColumn).conditionSQL(this.conditionSQL).excludedColumns(this.excludedColumns).customSQL(sql).orderBy(this.orderBySQL.toString()).pageRow(pageRow).build();
  return Anima.me().getDialect().paginate(sqlParams);
}
Program: 62883
Project: 62883
Buggy source:
default String select(SQLParams sqlParams){
  StringBuilder sql=new StringBuilder();
  sql.append("String_Node_Str");
  if (AnimaUtils.isNotEmpty(sqlParams.getSelectColumns())) {
    sql.append(' ').append(sqlParams.getSelectColumns()).append(' ');
  }
 else   if (AnimaUtils.isNotEmpty(sqlParams.getExcludedColumns())) {
    sql.append(' ').append(AnimaUtils.buildColumns(sqlParams.getExcludedColumns(),sqlParams.getModelClass())).append(' ');
  }
 else {
    sql.append("String_Node_Str");
  }
  sql.append("String_Node_Str").append(sqlParams.getTableName());
  if (sqlParams.getConditionSQL().length() > 0) {
    sql.append("String_Node_Str").append(sqlParams.getConditionSQL().substring(5));
  }
  if (AnimaUtils.isNotEmpty(sqlParams.getOrderBy())) {
    sql.append("String_Node_Str").append(sqlParams.getOrderBy());
  }
  if (sqlParams.isSQLLimit()) {
    sql.append("String_Node_Str");
  }
  return sql.toString();
}

Fixed version (ground truth):
default String select(SQLParams sqlParams){
  StringBuilder sql=new StringBuilder();
  if (AnimaUtils.isNotEmpty(sqlParams.getCustomSQL())) {
    sql.append(sqlParams.getCustomSQL());
  }
 else {
    sql.append("String_Node_Str");
    if (AnimaUtils.isNotEmpty(sqlParams.getSelectColumns())) {
      sql.append(' ').append(sqlParams.getSelectColumns()).append(' ');
    }
 else     if (AnimaUtils.isNotEmpty(sqlParams.getExcludedColumns())) {
      sql.append(' ').append(AnimaUtils.buildColumns(sqlParams.getExcludedColumns(),sqlParams.getModelClass())).append(' ');
    }
 else {
      sql.append("String_Node_Str");
    }
    sql.append("String_Node_Str").append(sqlParams.getTableName());
    if (sqlParams.getConditionSQL().length() > 0) {
      sql.append("String_Node_Str").append(sqlParams.getConditionSQL().substring(5));
    }
  }
  if (AnimaUtils.isNotEmpty(sqlParams.getOrderBy())) {
    sql.append("String_Node_Str").append(sqlParams.getOrderBy());
  }
  if (sqlParams.isSQLLimit()) {
    sql.append("String_Node_Str");
  }
  return sql.toString();
}
Program: 62884
Project: 62884
Buggy source:
@Test public void testPage(){
  Page<User> userPage=select().from(User.class).order("String_Node_Str").page(1,3);
  Assert.assertNotNull(userPage);
  Assert.assertEquals(8,userPage.getTotalRows());
  Assert.assertEquals(3,userPage.getTotalPages());
  Assert.assertEquals(3,userPage.getRows().size());
  Assert.assertEquals(1,userPage.getPageNum());
  Assert.assertEquals(1,userPage.getPrevPage());
  Assert.assertEquals(2,userPage.getNextPage());
  Assert.assertTrue(userPage.isHasNextPage());
  Assert.assertFalse(userPage.isHasPrevPage());
}

Fixed version (ground truth):
@Test public void testPage(){
  Page<User> userPage=select().from(User.class).order("String_Node_Str").page(1,3);
  Assert.assertNotNull(userPage);
  Assert.assertEquals(8,userPage.getTotalRows());
  Assert.assertEquals(3,userPage.getTotalPages());
  Assert.assertEquals(3,userPage.getRows().size());
  Assert.assertEquals(1,userPage.getPageNum());
  Assert.assertEquals(1,userPage.getPrevPage());
  Assert.assertEquals(2,userPage.getNextPage());
  Assert.assertTrue(userPage.isHasNextPage());
  Assert.assertFalse(userPage.isHasPrevPage());
  select().from(User.class).where(User::getAge).gt(20).order(User::getId,OrderBy.DESC).page(2,3);
}
Program: 62885
Project: 62885
Buggy source:
@Test public void testFindBySQL(){
  String name=select().bySQL(String.class,"String_Node_Str").one();
  Assert.assertNotNull(name);
  List<String> names=select().bySQL(String.class,"String_Node_Str",3).all();
  Assert.assertNotNull(names);
  Assert.assertEquals(3,names.size());
  Page<User> userPage=select().bySQL(User.class,"String_Node_Str").page(1,10);
  Assert.assertNotNull(userPage);
}

Fixed version (ground truth):
@Test public void testFindBySQL(){
  String name=select().bySQL(String.class,"String_Node_Str").one();
  Assert.assertNotNull(name);
  List<String> names=select().bySQL(String.class,"String_Node_Str",3).all();
  Assert.assertNotNull(names);
  Assert.assertEquals(3,names.size());
}
Program: 62886
Project: 62886
Buggy source:
@Test public void testIgnoreAndExclude(){
  User age=select().from(User.class).exclude("String_Node_Str").one();
}

Fixed version (ground truth):
@Test public void testIgnoreAndExclude(){
  select().from(User.class).exclude("String_Node_Str").one();
  select().from(User.class).exclude(User::getAge).one();
}
Program: 62887
Project: 62887
Buggy source:
@Test(description="String_Node_Str") public void test(){
  Reporter.log("String_Node_Str");
  list.get(0).click();
}

Fixed version (ground truth):
@Test(description="String_Node_Str") public void test(){
  element.click();
  driver.pressKeyCode(4);
}
Program: 62888
Project: 62888
Buggy source:
@Authod("String_Node_Str") @Test(description="String_Node_Str") public void test1(){
  if (TestRetryListener.retryCount < 2)   Assert.assertTrue(false);
}

Fixed version (ground truth):
@Authod("String_Node_Str") @Test(description="String_Node_Str") public void test1(){
  Assert.assertTrue(false);
}
Program: 62889
Project: 62889
Buggy source:
private static List<XmlSuite> getTestList(Configure configure){
  List<XmlSuite> testList=new ArrayList<>();
  List<String> devices=CmdUtil.get().getDevices();
  for (int i=0; i < devices.size(); i++) {
    String deviceUdid=devices.get(i);
    testList.add(new XmlSuiteBuilder(i,deviceUdid,CmdUtil.get().getDeviceName(deviceUdid),CmdUtil.get().getPlatformVersion(deviceUdid),configure).build());
  }
  return testList;
}

Fixed version (ground truth):
private static List<XmlSuite> getTestList(Configure configure){
  List<XmlSuite> testList=new ArrayList<>();
  List<String> devices=CmdUtil.get().getDevices();
  for (int i=0; i < devices.size(); i++) {
    String deviceUdid=devices.get(i);
    testList.add(new XmlSuiteBuilder(i,deviceUdid,CmdUtil.get().getDeviceName(deviceUdid),CmdUtil.get().getPlatformVersion(deviceUdid),configure).build());
    CmdUtil.get().clearLog(deviceUdid);
  }
  return testList;
}
Program: 62890
Project: 62890
Buggy source:
public String getCrashLog(){
  String crashLog="String_Node_Str";
  List<String> results=CmdUtil.get().getCrashLog(deviceUdid,pid);
  for (  String s : results) {
    if (s.contains("String_Node_Str"))     crashLog=crashLog + s;
  }
  return crashLog;
}

Fixed version (ground truth):
public String getCrashLog(){
  String crashLog="String_Node_Str";
  if (isCrash) {
    List<String> results=CmdUtil.get().getCrashLog(deviceUdid);
    for (    String s : results) {
      crashLog=crashLog + s.replace("String_Node_Str","String_Node_Str") + "String_Node_Str";
    }
  }
  return crashLog;
}
Program: 62891
Project: 62891
Buggy source:
public String getAnrLog(){
  return CmdUtil.get().getAnrLog(deviceUdid,pkgName);
}

Fixed version (ground truth):
public String getAnrLog(){
  return CmdUtil.get().getAnrLog(deviceUdid);
}
Program: 62892
Project: 62892
Buggy source:
public void start(final Thread mainThread){
  deviceList.add(device);
  monitorTimer=CmdUtil.get().getCpu(deviceUdid,new RuntimeUtil.AsyncInvoke(){
    @Override public void invoke(    String cpu){
      if (!cpu.contains(pkgName + "String_Node_Str")) {
        getPid(cpu);
        long traffic=getTraffic(deviceUdid,getUid(cpu));
        cpu=cpu.substring(cpu.lastIndexOf("String_Node_Str") - 2,cpu.lastIndexOf("String_Node_Str")).trim();
        int mem=CmdUtil.get().getMem(deviceUdid);
        String stackString=getCurStack(mainThread);
        device.setCpu(Integer.valueOf(cpu)).setMem(mem).setTraffic(traffic).setCurStack(stackString);
        System.out.println("String_Node_Str" + device.getName() + "String_Node_Str"+ cpu+ "String_Node_Str"+ mem+ "String_Node_Str"+ traffic+ "String_Node_Str"+ stackString+ "String_Node_Str");
      }
    }
  }
);
}

Fixed version (ground truth):
public void start(final Thread mainThread){
  deviceList.add(device);
  monitorTimer=CmdUtil.get().getCpu(deviceUdid,new RuntimeUtil.AsyncInvoke(){
    @Override public void invoke(    String cpu){
      if (cpu.equals(Constant.APP_NOT_STARTING)) {
        System.out.println(Constant.APP_NOT_STARTING);
        isCrash=true;
        return;
      }
      isCrash=false;
      getPid(cpu);
      long traffic=getTraffic(deviceUdid,getUid(cpu));
      cpu=cpu.substring(cpu.lastIndexOf("String_Node_Str") - 2,cpu.lastIndexOf("String_Node_Str")).trim();
      int mem=CmdUtil.get().getMem(deviceUdid);
      String stackString=getCurStack(mainThread);
      device.setCpu(Integer.valueOf(cpu)).setMem(mem).setTraffic(traffic).setCurStack(stackString);
      System.out.println("String_Node_Str" + device.getName() + "String_Node_Str"+ cpu+ "String_Node_Str"+ mem+ "String_Node_Str"+ traffic+ "String_Node_Str"+ stackString+ "String_Node_Str");
    }
  }
);
}
Program: 62893
Project: 62893
Buggy source:
@Override public void invoke(String cpu){
  if (!cpu.contains(pkgName + "String_Node_Str")) {
    getPid(cpu);
    long traffic=getTraffic(deviceUdid,getUid(cpu));
    cpu=cpu.substring(cpu.lastIndexOf("String_Node_Str") - 2,cpu.lastIndexOf("String_Node_Str")).trim();
    int mem=CmdUtil.get().getMem(deviceUdid);
    String stackString=getCurStack(mainThread);
    device.setCpu(Integer.valueOf(cpu)).setMem(mem).setTraffic(traffic).setCurStack(stackString);
    System.out.println("String_Node_Str" + device.getName() + "String_Node_Str"+ cpu+ "String_Node_Str"+ mem+ "String_Node_Str"+ traffic+ "String_Node_Str"+ stackString+ "String_Node_Str");
  }
}

Fixed version (ground truth):
@Override public void invoke(String cpu){
  if (cpu.equals(Constant.APP_NOT_STARTING)) {
    System.out.println(Constant.APP_NOT_STARTING);
    isCrash=true;
    return;
  }
  isCrash=false;
  getPid(cpu);
  long traffic=getTraffic(deviceUdid,getUid(cpu));
  cpu=cpu.substring(cpu.lastIndexOf("String_Node_Str") - 2,cpu.lastIndexOf("String_Node_Str")).trim();
  int mem=CmdUtil.get().getMem(deviceUdid);
  String stackString=getCurStack(mainThread);
  device.setCpu(Integer.valueOf(cpu)).setMem(mem).setTraffic(traffic).setCurStack(stackString);
  System.out.println("String_Node_Str" + device.getName() + "String_Node_Str"+ cpu+ "String_Node_Str"+ mem+ "String_Node_Str"+ traffic+ "String_Node_Str"+ stackString+ "String_Node_Str");
}
Program: 62894
Project: 62894
Buggy source:
@Override public void onFinish(ITestContext testContext){
  super.onFinish(testContext);
  Iterator<ITestResult> skippedTests=testContext.getSkippedTests().getAllResults().iterator();
  while (skippedTests.hasNext()) {
    ITestResult skippedTest=skippedTests.next();
    if (testContext.getSkippedTests().getResults(skippedTest.getMethod()).size() > 1) {
      skippedTests.remove();
    }
 else {
      String skipRunCount="String_Node_Str";
      List<String> list=Reporter.getOutput(skippedTest);
      for (      String s : list) {
        if (s.contains("String_Node_Str")) {
          skipRunCount=s;
        }
      }
      for (      ITestResult passedTest : testContext.getPassedTests().getAllResults()) {
        if (getId(skippedTest) == getId(passedTest)) {
          Reporter.setCurrentTestResult(passedTest);
          Reporter.log(skipRunCount);
          skippedTests.remove();
        }
      }
      for (      ITestResult failTest : testContext.getFailedTests().getAllResults()) {
        if (getId(skippedTest) == getId(failTest)) {
          Reporter.setCurrentTestResult(failTest);
          Reporter.log(skipRunCount);
          skippedTests.remove();
        }
      }
    }
  }
}

Fixed version (ground truth):
@Override public void onFinish(ITestContext testContext){
  super.onFinish(testContext);
  Iterator<ITestResult> skippedTests=testContext.getSkippedTests().getAllResults().iterator();
  while (skippedTests.hasNext()) {
    ITestResult skippedTest=skippedTests.next();
    int skipRunCount=1;
    List<String> list=Reporter.getOutput(skippedTest);
    for (    String s : list) {
      if (s.contains("String_Node_Str")) {
        skipRunCount=Integer.valueOf(s.replace("String_Node_Str","String_Node_Str"));
      }
    }
    if (skipRunCount == TestRetryListener.maxRetryCount + 1) {
      for (      ITestResult passedTest : testContext.getPassedTests().getAllResults()) {
        if (getId(skippedTest) == getId(passedTest)) {
          Reporter.setCurrentTestResult(passedTest);
        }
      }
      for (      ITestResult failTest : testContext.getFailedTests().getAllResults()) {
        if (getId(skippedTest) == getId(failTest)) {
          Reporter.setCurrentTestResult(failTest);
        }
      }
      Reporter.log("String_Node_Str" + skipRunCount);
    }
    skippedTests.remove();
  }
}
Program: 62895
Project: 62895
Buggy source:
@BeforeClass public void entry(){
  list.get(0).click();
}

Fixed version (ground truth):
@Test public void entry(){
  list.get(0).click();
}
Program: 62896
Project: 62896
Buggy source:
@Unbind(aggregate=true,optional=true) public void unbindActor(IActor actor){
  log.info("String_Node_Str" + actor);
  if (actor == null)   return;
  String[] ctxpaths=actor.getWebPaths();
  if (ctxpaths != null) {
    for (    String ctxpath : ctxpaths) {
      servlets.remove(ctxpath);
      for (      HttpService s : services) {
        try {
          s.unregister(ctxpath);
        }
 catch (        Exception e) {
        }
        log.info("String_Node_Str" + ctxpath);
      }
    }
  }
}

Fixed version (ground truth):
@Unbind(aggregate=true,optional=true) public void unbindActor(IActor actor){
  log.info("String_Node_Str" + actor);
  if (actor == null)   return;
  String[] ctxpaths=actor.getWebPaths();
  String rootpath=prop.get("String_Node_Str","String_Node_Str");
  if (rootpath.endsWith("String_Node_Str")) {
    rootpath=rootpath.substring(0,rootpath.length() - 1);
  }
  if (ctxpaths != null) {
    for (    String ctxpath : ctxpaths) {
      servlets.remove(rootpath + ctxpath);
      for (      HttpService s : services) {
        try {
          s.unregister(rootpath + ctxpath);
        }
 catch (        Exception e) {
        }
        log.info("String_Node_Str" + ctxpath);
      }
    }
  }
}
Program: 62897
Project: 62897
Buggy source:
@Override public Object selectOneByExample(Object example){
  return daosupport.selectOneByExample(SerializerUtil.serialize(example));
}

Fixed version (ground truth):
@Override public Object selectOneByExample(Object example){
  return SerializerUtil.deserialize(daosupport.selectOneByExample(SerializerUtil.serialize(example)),domainClazz);
}
Program: 62899
Project: 62899
Buggy source:
@Override public Object selectOneByExample(Object example){
  return daoSupport.selectOneByExample(example);
}

Fixed version (ground truth):
@Override public Object selectOneByExample(Object example){
  return serial(daoSupport.selectOneByExample(localExample(example)));
}
Program: 62900
Project: 62900
Buggy source:
@Override public Object selectOneByExample(Object key){
  return daosupport.selectOneByExample(key);
}

Fixed version (ground truth):
@Override public Object selectOneByExample(Object example){
  return daosupport.selectOneByExample(SerializerUtil.serialize(example));
}
Program: 62901
Project: 62901
Buggy source:
public static String getCurrNodeID(){
  getPropInstance().get("String_Node_Str",POSIXFactory.getPOSIX().getpid() + "String_Node_Str" + getHostName());
  return "String_Node_Str";
}

Fixed version (ground truth):
public static String getCurrNodeID(){
  return getPropInstance().get("String_Node_Str",POSIXFactory.getPOSIX().getpid() + "String_Node_Str" + getHostName());
}
Program: 62902
Project: 62902
Buggy source:
public void routePacket(FramePacket pack,final CompleteHandler handler){
  String destTO=pack.getExtStrProp(PackHeader.TO);
  ModuleSession ms=null;
  if (StringUtils.isNotBlank(destTO)) {
    ms=mss.byModuleAndNodeID(pack.getModule(),destTO);
  }
 else {
    ms=mss.byModule(pack.getModule());
  }
  if (ms != null) {
    ms.onPacket(pack,handler);
  }
 else {
    if (pack.isSync()) {
      handler.onFinished(PacketHelper.toPBReturn(pack,new UnknowModuleBody(pack.getModule() + "String_Node_Str" + destTO,pack)));
    }
  }
}

Fixed version (ground truth):
public void routePacket(FramePacket pack,final CompleteHandler handler){
  String destTO=pack.getExtStrProp(PACK_TO);
  ModuleSession ms=null;
  if (StringUtils.isNotBlank(destTO)) {
    ms=mss.byModuleAndNodeID(pack.getModule(),destTO);
  }
 else {
    if (pack.getExtProp(PACK_FROM) != null) {
      ms=mss.getLocalModuleSession(pack.getModule());
    }
 else {
      ms=mss.byModule(pack.getModule());
    }
  }
  if (ms != null) {
    ms.onPacket(pack,handler);
  }
 else {
    if (pack.isSync()) {
      handler.onFinished(PacketHelper.toPBReturn(pack,new UnknowModuleBody(pack.getModule() + "String_Node_Str" + destTO,pack)));
    }
  }
}
Program: 62904
Project: 62904
Buggy source:
public synchronized ModuleSession addModule(String moduleid,String nodeid,Connection conn){
  ReusefulMapPool<String,ModuleSession> pool=sessionByModule.get(moduleid);
  if (pool == null) {
    pool=new ReusefulMapPool<String,ModuleSession>();
    sessionByModule.put(moduleid,pool);
  }
  ModuleSession ms=pool.getByKey(nodeid);
  if (ms == null) {
    if (nodeid.equals(currentNodeID)) {
      ms=new ModuleSession(moduleid);
    }
 else {
      ms=new RemoteModuleSession(moduleid,nodeid,this);
    }
    pool.addObject(nodeid,ms);
  }
  if (ms instanceof RemoteModuleSession) {
    RemoteModuleSession rms=(RemoteModuleSession)ms;
    rms.addConnection(conn);
  }
  return ms;
}

Fixed version (ground truth):
public synchronized ModuleSession addModule(String moduleid,String nodeid,Connection conn){
  ReusefulMapPool<String,ModuleSession> pool=sessionByModule.get(moduleid);
  if (pool == null) {
    pool=new ReusefulMapPool<String,ModuleSession>();
    sessionByModule.put(moduleid,pool);
  }
  ModuleSession ms=pool.getByKey(nodeid);
  if (ms == null) {
    if (nodeid.equals(currentNodeID)) {
      ms=new ModuleSession(moduleid);
      localsessionByModule.put(moduleid,ms);
    }
 else {
      ms=new RemoteModuleSession(moduleid,nodeid,this);
    }
    pool.addObject(nodeid,ms);
  }
  if (ms instanceof RemoteModuleSession) {
    RemoteModuleSession rms=(RemoteModuleSession)ms;
    rms.addConnection(conn);
  }
  return ms;
}
Program: 62907
Project: 62907
Buggy source:
public Configuration build() throws IOException {
  List<Library> libs=new ArrayList<>();
  for (  Library.Reference ref : libraries) {
    Library file=ref.getLibrary(uri,path,signer);
    for (    Library l : libs) {
      if (Files.isSameFile(l.getPath(),file.getPath())) {
        throw new IllegalStateException("String_Node_Str" + l.getPath());
      }
    }
    libs.add(file);
  }
  Configuration config=new Configuration();
  config.baseUri=uri;
  config.basePath=path;
  config.updateHandler=updateHandler;
  config.launcher=launcher;
  config.libraries=libs;
  config.unmodifiableLibraries=Collections.unmodifiableList(config.libraries);
  config.properties=properties;
  config.unmodifiableProperties=Collections.unmodifiableList(config.properties);
  Map<String,String> resolved=PropertyUtils.extractPropertiesForCurrentMachine(systemProperties,properties);
  resolved=PropertyUtils.resolveDependencies(resolved);
  config.resolvedProperties=resolved;
  config.unmodifiableResolvedProperties=Collections.unmodifiableMap(config.resolvedProperties);
  return config;
}

Fixed version (ground truth):
public Configuration build() throws IOException {
  List<Library> libs=new ArrayList<>();
  for (  Library.Reference ref : libraries) {
    Library file=ref.getLibrary(uri,path,signer);
    for (    Library l : libs) {
      if (Files.isSameFile(l.getPath(),file.getPath())) {
        throw new IllegalStateException("String_Node_Str" + l.getPath());
      }
    }
    libs.add(file);
  }
  Configuration config=new Configuration();
  if (uri != null)   config.baseUri=uri;
  if (path != null)   config.basePath=path;
  config.updateHandler=updateHandler;
  config.launcher=launcher;
  config.libraries=libs;
  config.unmodifiableLibraries=Collections.unmodifiableList(config.libraries);
  config.properties=properties;
  config.unmodifiableProperties=Collections.unmodifiableList(config.properties);
  Map<String,String> resolved=PropertyUtils.extractPropertiesForCurrentMachine(systemProperties,properties);
  resolved=PropertyUtils.resolveDependencies(resolved);
  config.resolvedProperties=resolved;
  config.unmodifiableResolvedProperties=Collections.unmodifiableMap(config.resolvedProperties);
  return config;
}
Program: 62909
Project: 62909
Buggy source:
private void initView(Context context){
  setGravity(Gravity.CENTER);
  mHeaderText=new TextView(context);
  mHeaderText.setText("String_Node_Str");
  mProgressDrawable=new ProgressDrawable();
  mArrowView=new PathsView(context);
  mProgressView=new ImageView(context);
  mProgressView.setImageDrawable(mProgressDrawable);
  mArrowView.parserColors(0xff666666);
  mArrowView.parserPaths("String_Node_Str");
  addView(mProgressView,DensityUtil.dp2px(20),DensityUtil.dp2px(20));
  addView(mArrowView,DensityUtil.dp2px(20),DensityUtil.dp2px(20));
  addView(new View(context),DensityUtil.dp2px(20),DensityUtil.dp2px(20));
  addView(mHeaderText,LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT);
  setMinimumHeight(DensityUtil.dp2px(60));
}

Fixed version (ground truth):
private void initView(Context context){
  RelativeLayout parent=new RelativeLayout(context);
  RelativeLayout.LayoutParams rlParent=new RelativeLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT,ViewGroup.LayoutParams.WRAP_CONTENT);
  rlParent.addRule(RelativeLayout.CENTER_IN_PARENT,RelativeLayout.TRUE);
  RelativeLayout.LayoutParams rlArrowView=new RelativeLayout.LayoutParams(DensityUtil.dp2px(20),DensityUtil.dp2px(20));
  mArrowView=new PathsView(context);
  mArrowView.setId(R.id.arrow_view);
  mArrowView.parserColors(0xff666666);
  mArrowView.parserPaths("String_Node_Str");
  parent.addView(mArrowView,rlArrowView);
  RelativeLayout.LayoutParams rlHeaderText=new RelativeLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT,ViewGroup.LayoutParams.WRAP_CONTENT);
  rlHeaderText.addRule(RelativeLayout.RIGHT_OF,mArrowView.getId());
  rlHeaderText.leftMargin=DensityUtil.dp2px(20);
  mHeaderText=new TextView(context);
  mHeaderText.setText("String_Node_Str");
  parent.addView(mHeaderText,rlHeaderText);
  RelativeLayout.LayoutParams rlProgressView=new RelativeLayout.LayoutParams(DensityUtil.dp2px(20),DensityUtil.dp2px(20));
  rlProgressView.addRule(RelativeLayout.ALIGN_RIGHT,mArrowView.getId());
  mProgressDrawable=new ProgressDrawable();
  mProgressView=new ImageView(context);
  mProgressView.setImageDrawable(mProgressDrawable);
  parent.addView(mProgressView,rlProgressView);
  addView(parent,rlParent);
  setMinimumHeight(DensityUtil.dp2px(60));
}
Program: 62911
Project: 62911
Buggy source:
@Override public void receiveCommand(ReactSmartRefreshLayout root,int commandId,@Nullable ReadableArray args){
switch (commandId) {
case COMMAND_FINISH_REFRESH_ID:
    int delayed=args.getInt(0);
  boolean success=args.getBoolean(1);
if (delayed > 0) {
  root.finishRefresh(delayed,success);
}
 else {
  root.finishRefresh(success);
}
break;
default :
break;
}
}

Fixed version (ground truth):
@Override public void receiveCommand(ReactSmartRefreshLayout root,int commandId,@Nullable ReadableArray args){
switch (commandId) {
case COMMAND_FINISH_REFRESH_ID:
    int delayed=args.getInt(0);
  boolean success=args.getBoolean(1);
if (delayed >= 0) {
  root.finishRefresh(delayed,success);
}
 else {
  root.finishRefresh(success);
}
break;
default :
break;
}
}
Program: 62912
Project: 62912
Buggy source:
public static int runpy(File fScript,URL script,String scriptName,String[] args){
  String fpScript;
  if (fScript == null) {
    fpScript=script.toExternalForm();
  }
 else {
    fpScript=fScript.getAbsolutePath();
  }
  if (!Runner.initpy()) {
    Runner.log(-1,"String_Node_Str");
    return -999;
  }
  if (args == null || args.length == 0) {
    args=RunTime.get().getArgs();
  }
  String[] newArgs=new String[args.length + 1];
  for (int i=0; i < args.length; i++) {
    newArgs[i + 1]=args[i];
  }
  Runner.pyRunner.setSysArgv(newArgs);
  newArgs[0]=fpScript;
  int retval;
  if (fScript == null) {
    ImagePath.addHTTP(fpScript);
    retval=(Runner.pyRunner.exec(scriptName) ? 0 : -1);
    ImagePath.removeHTTP(fpScript);
  }
 else {
    if (null == ImagePath.getBundlePathSet())     ImagePath.setBundlePath(fScript.getParent());
 else {
      ImagePath.add(fScript.getParent());
    }
    retval=Runner.pyRunner.execfile(fpScript);
  }
  return retval;
}

Fixed version (ground truth):
public static int runpy(File fScript,URL script,String scriptName,String[] args){
  String fpScript;
  if (fScript == null) {
    fpScript=script.toExternalForm();
  }
 else {
    fpScript=fScript.getAbsolutePath();
  }
  if (!Runner.initpy()) {
    Runner.log(-1,"String_Node_Str");
    return -999;
  }
  if (args == null || args.length == 0) {
    args=RunTime.get().getArgs();
  }
  String[] newArgs=new String[args.length + 1];
  for (int i=0; i < args.length; i++) {
    newArgs[i + 1]=args[i];
  }
  newArgs[0]=fpScript;
  Runner.pyRunner.setSysArgv(newArgs);
  int retval;
  if (fScript == null) {
    ImagePath.addHTTP(fpScript);
    retval=(Runner.pyRunner.exec(scriptName) ? 0 : -1);
    ImagePath.removeHTTP(fpScript);
  }
 else {
    if (null == ImagePath.getBundlePathSet())     ImagePath.setBundlePath(fScript.getParent());
 else {
      ImagePath.add(fScript.getParent());
    }
    retval=Runner.pyRunner.execfile(fpScript);
  }
  return retval;
}
Program: 62913
Project: 62913
Buggy source:
public void scale(boolean lessen){
  if (lessen) {
    Provider.getInstance().setSmall(true);
  }
 else {
    Provider.getInstance().setSmall(false);
  }
  float scale=Provider.getInstance().getFac();
  View rootView=(View)getParent();
  rootView.getLayoutParams().width=(int)(getWindowWidth() * (1 / scale));
  rootView.getLayoutParams().height=(int)(rootView.getHeight() * (1 / scale));
  setScaleX(scale);
  setScaleY(scale);
  setPivotX(0f);
  setPivotY(0f);
  requestLayout();
  for (int i=0; i < mContentView.getChildCount(); i++) {
    View child=mContentView.getChildAt(i);
    child.requestLayout();
  }
}

Fixed version (ground truth):
public void scale(boolean lessen){
  if (lessen) {
    Provider.getInstance().setSmall(true);
  }
 else {
    Provider.getInstance().setSmall(false);
  }
  float scale=Provider.getInstance().getFac();
  View rootView=(View)getParent();
  if (lessen && mRootViewHeight == 0) {
    mRootViewHeight=rootView.getHeight();
  }
  rootView.getLayoutParams().width=(int)(getWindowWidth() * (1 / scale));
  rootView.getLayoutParams().height=(int)(mRootViewHeight * (1 / scale));
  setScaleX(scale);
  setScaleY(scale);
  setPivotX(0f);
  setPivotY(0f);
  requestLayout();
  for (int i=0; i < mContentView.getChildCount(); i++) {
    ViewGroup child=(ViewGroup)mContentView.getChildAt(i);
    Log.e(TAG,"String_Node_Str" + child.getChildAt(1).getHeight() + "String_Node_Str"+ lessen);
    child.requestLayout();
  }
}
Program: 62914
Project: 62914
Buggy source:
/** 
 * 加上ItemDecoration的位置
 */
private View findChildViewUnderWithInsets(RecyclerView recyclerView,float x,float y){
  final int count=recyclerView.getChildCount();
  Rect rect=new Rect(0,0,0,0);
  for (int i=count - 1; i >= 0; i--) {
    final View child=recyclerView.getChildAt(i);
    final float translationX=child.getTranslationX();
    final float translationY=child.getTranslationY();
    try {
      rect=(Rect)getItemDecorInsetsForChildMethod.invoke(recyclerView,child);
    }
 catch (    Exception e) {
      e.printStackTrace();
    }
    if (x >= child.getLeft() + translationX - rect.left - 30 && x <= child.getRight() + translationX + rect.right+ 30 && y >= child.getTop() + translationY - rect.top && y <= child.getBottom() + translationY + rect.bottom) {
      Log.e(TAG,"String_Node_Str" + rect.toString());
      return child;
    }
  }
  return null;
}

Fixed version (ground truth):
/** 
 * 加上ItemDecoration的位置
 */
private View findChildViewUnderWithInsets(RecyclerView recyclerView,float x,float y){
  final int count=recyclerView.getChildCount();
  Rect rect=new Rect(0,0,0,0);
  for (int i=count - 1; i >= 0; i--) {
    final View child=recyclerView.getChildAt(i);
    final float translationX=child.getTranslationX();
    final float translationY=child.getTranslationY();
    try {
      rect=(Rect)getItemDecorInsetsForChildMethod.invoke(recyclerView,child);
    }
 catch (    Exception e) {
      e.printStackTrace();
    }
    if (x >= child.getLeft() + translationX - rect.left - 30 && x <= child.getRight() + translationX + rect.right+ 30 && y >= child.getTop() + translationY - rect.top && y <= child.getBottom() + translationY + rect.bottom) {
      return child;
    }
  }
  return null;
}
Program: 62915
Project: 62915
Buggy source:
private int numOfLivingNeighbors(){
  int numOfLivingNeighbors=0;
  for (  Cell neighbor : this.neighbors) {
    if (neighbor.isAlive()) {
      numOfLivingNeighbors++;
    }
  }
  return numOfLivingNeighbors;
}

Fixed version (ground truth):
private int numOfLivingNeighbors(){
  int numOfLivingNeighbors=0;
  for (  Cell neighbor : this.neighbors) {
    if (neighbor.wasAlive()) {
      numOfLivingNeighbors++;
    }
  }
  return numOfLivingNeighbors;
}
Program: 62916
Project: 62916
Buggy source:
public void step(){
  for (int row=0; row < this.grid.length; row++) {
    for (int col=0; col < this.grid[row].length; col++) {
      this.grid[row][col].transition();
      this.grid[row][col].clearState();
    }
  }
}

Fixed version (ground truth):
public void step(){
  for (int row=0; row < this.grid.length; row++) {
    for (int col=0; col < this.grid[row].length; col++) {
      this.grid[row][col].transition();
    }
  }
  for (int row=0; row < this.grid.length; row++) {
    for (int col=0; col < this.grid[row].length; col++) {
      this.grid[row][col].clearState();
    }
  }
}
Program: 62917
Project: 62917
Buggy source:
public Grid(int width){
  this.width=width;
  this.grid=new Cell[width][width];
}

Fixed version (ground truth):
public Grid(int width){
  this.width=width;
  this.grid=new Cell[width][width];
  this.setLayout(new GridLayout(width,width));
}
Program: 62918
Project: 62918
Buggy source:
private void link(){
  for (int row=0; row < this.grid.length; row++) {
    for (int col=0; col < this.grid[row].length; col++) {
      int previousRow=Math.floorMod((row - 1),this.width);
      int nextRow=Math.floorMod((row + 1),this.width);
      int previousCol=Math.floorMod((col - 1),this.width);
      int nextCol=Math.floorMod((col + 1),this.width);
      this.grid[row][col].addNeighbor(this.grid[row][previousCol]);
      this.grid[row][col].addNeighbor(this.grid[row][nextCol]);
      this.grid[row][col].addNeighbor(this.grid[nextRow][col]);
      this.grid[row][col].addNeighbor(this.grid[previousRow][col]);
    }
  }
}

Fixed version (ground truth):
private void link(){
  for (int row=0; row < this.grid.length; row++) {
    for (int col=0; col < this.grid[row].length; col++) {
      int previousRow=Math.floorMod((row - 1),this.width);
      int nextRow=Math.floorMod((row + 1),this.width);
      int previousCol=Math.floorMod((col - 1),this.width);
      int nextCol=Math.floorMod((col + 1),this.width);
      this.grid[row][col].addNeighbor(this.grid[row][previousCol]);
      this.grid[row][col].addNeighbor(this.grid[row][nextCol]);
      this.grid[row][col].addNeighbor(this.grid[nextRow][col]);
      this.grid[row][col].addNeighbor(this.grid[previousRow][col]);
      this.grid[row][col].addNeighbor(this.grid[previousRow][previousCol]);
      this.grid[row][col].addNeighbor(this.grid[previousRow][nextCol]);
      this.grid[row][col].addNeighbor(this.grid[nextRow][previousCol]);
      this.grid[row][col].addNeighbor(this.grid[nextRow][nextCol]);
    }
  }
}
Program: 62919
Project: 62919
Buggy source:
public static void main(String[] args){
  Grid grid=new Grid(10);
  grid.generate();
  for (int i=0; i < 10; i++) {
    System.out.println(grid.toString());
    grid.step();
  }
}

Fixed version (ground truth):
public static void main(String[] args){
  JFrame frame=new JFrame("String_Node_Str");
  Grid grid=new Grid(100);
  grid.generate();
  frame.getContentPane().add(grid);
  frame.pack();
  frame.setVisible(true);
  for (int i=0; i < 30; i++) {
    System.out.println(grid.toString());
    try {
      Thread.sleep(1000);
    }
 catch (    InterruptedException ex) {
      Thread.currentThread().interrupt();
    }
    grid.step();
  }
}
Program: 62920
Project: 62920
Buggy source:
private void populate(){
  for (int row=0; row < this.grid.length; row++) {
    for (int col=0; col < this.grid[row].length; col++) {
      boolean rand=Math.random() < .15;
      this.grid[row][col]=new Cell(rand);
    }
  }
}

Fixed version (ground truth):
private void populate(){
  for (int row=0; row < this.grid.length; row++) {
    for (int col=0; col < this.grid[row].length; col++) {
      boolean rand=Math.random() < .25;
      this.grid[row][col]=new Cell(rand);
      this.add(this.grid[row][col]);
    }
  }
}
Program: 62921
Project: 62921
Buggy source:
public void step(){
  for (int row=0; row < this.grid.length; row++) {
    for (int col=0; col < this.grid[row].length; col++) {
      this.grid[row][col].transition();
    }
  }
  for (int row=0; row < this.grid.length; row++) {
    for (int col=0; col < this.grid[row].length; col++) {
      this.grid[row][col].clearState();
    }
  }
}

Fixed version (ground truth):
public void step(){
  for (int row=0; row < this.grid.length; row++) {
    for (int col=0; col < this.grid[row].length; col++) {
      this.grid[row][col].transition();
      this.grid[row][col].updateBackground();
    }
  }
  for (int row=0; row < this.grid.length; row++) {
    for (int col=0; col < this.grid[row].length; col++) {
      this.grid[row][col].clearState();
    }
  }
}
Program: 62922
Project: 62922
Buggy source:
public Cell(boolean isAlive){
  this.wasAlive=isAlive;
  this.isAlive=isAlive;
  neighbors=new ArrayList<Cell>();
}

Fixed version (ground truth):
public Cell(boolean isAlive){
  this.wasAlive=isAlive;
  this.isAlive=isAlive;
  this.updateBackground();
  neighbors=new ArrayList<Cell>();
}
Program: 62929
Project: 62929
Buggy source:
private GitHubThread(Context context,String token,GitHubData data,String url){
  this.data=data;
  this.url=url;
  this.token=token;
  gson=new GsonBuilder().setLenient().create();
  cacheFile=new File(context.getCacheDir(),"String_Node_Str");
}

Fixed version (ground truth):
private GitHubThread(Context context,String token,GitHubData data,String url){
  this.data=data;
  this.url=url;
  this.token=token;
  File dir=new File(context.getCacheDir() + "String_Node_Str");
  if (!dir.exists())   dir.mkdirs();
  cacheFile=new File(dir,url.replace("String_Node_Str","String_Node_Str") + "String_Node_Str");
}
Program: 62931
Project: 62931
Buggy source:
@Override public void onInit(GitHubData data){
  if (data instanceof RepositoryData) {
    RepositoryData repository=(RepositoryData)data;
    if ((description == null || !description.startsWith("String_Node_Str")) && repository.description != null)     description=repository.description;
    List<LinkInfoData> newLinks=new ArrayList<>();
    if (repository.html_url != null)     newLinks.add(new GitHubLinkInfoData(repository.html_url,0,true));
    if (repository.homepage != null) {
      newLinks.add(repository.homepage.startsWith("String_Node_Str") ? new PlayStoreLinkInfoData(repository.homepage,0) : new WebsiteLinkInfoData(repository.homepage,0));
    }
    for (    LinkInfoData link : newLinks) {
      if (links.contains(link))       links.get(links.indexOf(link)).merge(link);
 else       links.add(link);
    }
  }
}

Fixed version (ground truth):
@Override public void onInit(GitHubData data){
  if (data instanceof RepositoryData) {
    RepositoryData repository=(RepositoryData)data;
    if ((description == null || !description.startsWith("String_Node_Str")) && repository.description != null)     description=repository.description;
    List<LinkInfoData> newLinks=new ArrayList<>();
    if (repository.html_url != null)     newLinks.add(new GitHubLinkInfoData(repository.html_url,0,true));
    if (repository.homepage != null) {
      newLinks.add(repository.homepage.startsWith("String_Node_Str") ? new PlayStoreLinkInfoData(repository.homepage,0) : new WebsiteLinkInfoData(repository.homepage,0));
    }
    for (    LinkInfoData link : newLinks)     addChild(link);
  }
}
Program: 62932
Project: 62932
Buggy source:
public AppInfoData(XmlResourceParser parser) throws IOException, XmlPullParserException {
  super(R.layout.item_attribouter_app_info);
  icon=parser.getAttributeValue(null,"String_Node_Str");
  description=parser.getAttributeValue(null,"String_Node_Str");
  playStoreUrl=parser.getAttributeValue(null,"String_Node_Str");
  websiteUrl=parser.getAttributeValue(null,"String_Node_Str");
  gitHubUrl=parser.getAttributeValue(null,"String_Node_Str");
  String repo=parser.getAttributeValue(null,"String_Node_Str");
  if (gitHubUrl == null && repo != null)   gitHubUrl="String_Node_Str" + repo;
  links=new ArrayList<>();
  if (repo != null || gitHubUrl != null)   links.add(new GitHubLinkInfoData(gitHubUrl != null ? gitHubUrl : repo,0,gitHubUrl != null));
  if (websiteUrl != null)   links.add(new WebsiteLinkInfoData(websiteUrl,0));
  links.add(new PlayStoreLinkInfoData(playStoreUrl,0));
  while (parser.next() != XmlPullParser.END_TAG || parser.getName().equals("String_Node_Str")) {
    if (parser.getEventType() == XmlPullParser.START_TAG && parser.getName().equals("String_Node_Str")) {
      LinkInfoData link=new LinkInfoData(parser);
      if (links.contains(link))       links.get(links.indexOf(link)).merge(link);
 else       links.add(link);
    }
  }
  addRequest(new RepositoryData(repo));
}

Fixed version (ground truth):
public AppInfoData(XmlResourceParser parser) throws IOException, XmlPullParserException {
  super(R.layout.item_attribouter_app_info);
  icon=parser.getAttributeValue(null,"String_Node_Str");
  description=parser.getAttributeValue(null,"String_Node_Str");
  playStoreUrl=parser.getAttributeValue(null,"String_Node_Str");
  websiteUrl=parser.getAttributeValue(null,"String_Node_Str");
  gitHubUrl=parser.getAttributeValue(null,"String_Node_Str");
  String repo=parser.getAttributeValue(null,"String_Node_Str");
  if (gitHubUrl == null && repo != null)   gitHubUrl="String_Node_Str" + repo;
  if (repo != null || gitHubUrl != null)   addChild(new GitHubLinkInfoData(gitHubUrl != null ? gitHubUrl : repo,0,gitHubUrl != null));
  if (websiteUrl != null)   addChild(new WebsiteLinkInfoData(websiteUrl,0));
  addChild(new PlayStoreLinkInfoData(playStoreUrl,0));
  addChildren(parser);
  addRequest(new RepositoryData(repo));
}
Program: 62933
Project: 62933
Buggy source:
public List<InfoData> getChildren(){
  return children;
}

Fixed version (ground truth):
public <X extends InfoData>List<X> getChildren(Class<X> type){
  List<X> children=new ArrayList<>();
  for (  InfoData info : getChildren()) {
    if (type.isInstance(info))     children.add((X)info);
  }
  return children;
}
Program: 62934
Project: 62934
Buggy source:
void addChildren(XmlResourceParser parser) throws IOException, XmlPullParserException {
  while (parser.next() != XmlResourceParser.END_TAG) {
    if (parser.getEventType() == XmlResourceParser.START_TAG) {
      try {
        Class<?> classy=Class.forName(parser.getName());
        Constructor constructor=classy.getConstructor(XmlResourceParser.class);
        addChild((InfoData)constructor.newInstance(parser));
      }
 catch (      ClassNotFoundException e) {
        Log.e("String_Node_Str","String_Node_Str" + parser.getName() + "String_Node_Str");
        e.printStackTrace();
      }
catch (      NoSuchMethodException e) {
        Log.e("String_Node_Str","String_Node_Str" + parser.getName() + "String_Node_Str");
        e.printStackTrace();
      }
catch (      IllegalAccessException e) {
        e.printStackTrace();
      }
catch (      java.lang.InstantiationException e) {
        e.printStackTrace();
      }
catch (      InvocationTargetException e) {
        e.printStackTrace();
      }
catch (      ClassCastException e) {
        Log.e("String_Node_Str","String_Node_Str" + parser.getName() + "String_Node_Str");
        e.printStackTrace();
      }
    }
  }
}

Fixed version (ground truth):
void addChildren(XmlResourceParser parser) throws IOException, XmlPullParserException {
  while (parser.next() != XmlResourceParser.END_TAG || !parser.getName().equals(getClass().getName())) {
    if (parser.getEventType() == XmlResourceParser.START_TAG) {
      try {
        Class<?> classy=Class.forName(parser.getName());
        Constructor constructor=classy.getConstructor(XmlResourceParser.class);
        addChild((InfoData)constructor.newInstance(parser));
      }
 catch (      ClassNotFoundException e) {
        Log.e("String_Node_Str","String_Node_Str" + parser.getName() + "String_Node_Str");
        e.printStackTrace();
      }
catch (      NoSuchMethodException e) {
        Log.e("String_Node_Str","String_Node_Str" + parser.getName() + "String_Node_Str");
        e.printStackTrace();
      }
catch (      IllegalAccessException e) {
        e.printStackTrace();
      }
catch (      java.lang.InstantiationException e) {
        e.printStackTrace();
      }
catch (      InvocationTargetException e) {
        e.printStackTrace();
      }
catch (      ClassCastException e) {
        Log.e("String_Node_Str","String_Node_Str" + parser.getName() + "String_Node_Str");
        e.printStackTrace();
      }
    }
  }
}
Program: 62935
Project: 62935
Buggy source:
@Override public Object merge(Object mergee){
  return null;
}

Fixed version (ground truth):
@Override public LicenseInfoData merge(LicenseInfoData mergee){
  if ((title == null || !title.startsWith("String_Node_Str")) && mergee.title != null && !mergee.title.isEmpty())   title=mergee.title;
  if ((description == null || !description.startsWith("String_Node_Str")) && mergee.description != null && !mergee.description.isEmpty())   description=mergee.description;
  if ((licenseName == null || !licenseName.startsWith("String_Node_Str")) && mergee.licenseName != null)   licenseName=mergee.licenseName;
  if ((websiteUrl == null || !websiteUrl.startsWith("String_Node_Str")) && mergee.websiteUrl != null && !mergee.websiteUrl.isEmpty())   websiteUrl=mergee.websiteUrl;
  if ((gitHubUrl == null || !gitHubUrl.startsWith("String_Node_Str")) && mergee.gitHubUrl != null)   gitHubUrl=mergee.gitHubUrl;
  if ((licenseUrl == null || !licenseUrl.startsWith("String_Node_Str")) && mergee.licenseUrl != null)   licenseUrl=mergee.licenseUrl;
  if (mergee.licensePermissions != null)   licensePermissions=mergee.licensePermissions;
  if (mergee.licenseConditions != null)   licenseConditions=mergee.licenseConditions;
  if (mergee.licenseLimitations != null)   licenseLimitations=mergee.licenseLimitations;
  if (mergee.licenseDescription != null)   licenseDescription=mergee.licenseDescription;
  if ((licenseBody == null || !licenseBody.startsWith("String_Node_Str")) && mergee.licenseBody != null)   licenseBody=mergee.licenseBody;
  for (  LinkInfoData link : mergee.links) {
    if (links.contains(link))     links.get(links.indexOf(link)).merge(link);
 else     links.add(link);
  }
  return this;
}
Program: 62936
Project: 62936
Buggy source:
public void merge(TranslatorInfoData contributor){
  if ((name == null || !name.startsWith("String_Node_Str")) && contributor.name != null)   name=contributor.name;
  if ((avatarUrl == null || !avatarUrl.startsWith("String_Node_Str")) && contributor.avatarUrl != null)   avatarUrl=contributor.avatarUrl;
  if ((blog == null || !blog.startsWith("String_Node_Str")) && contributor.blog != null && !contributor.blog.isEmpty())   blog=contributor.blog;
  if ((email == null || !email.startsWith("String_Node_Str")) && contributor.email != null && !contributor.email.isEmpty())   email=contributor.email;
  if ((locales == null || !locales.startsWith("String_Node_Str")) && contributor.locales != null)   locales=contributor.locales;
}

Fixed version (ground truth):
@Override public TranslatorInfoData merge(TranslatorInfoData contributor){
  if ((name == null || !name.startsWith("String_Node_Str")) && contributor.name != null)   name=contributor.name;
  if ((avatarUrl == null || !avatarUrl.startsWith("String_Node_Str")) && contributor.avatarUrl != null)   avatarUrl=contributor.avatarUrl;
  if ((blog == null || !blog.startsWith("String_Node_Str")) && contributor.blog != null && !contributor.blog.isEmpty())   blog=contributor.blog;
  if ((email == null || !email.startsWith("String_Node_Str")) && contributor.email != null && !contributor.email.isEmpty())   email=contributor.email;
  if ((locales == null || !locales.startsWith("String_Node_Str")) && contributor.locales != null)   locales=contributor.locales;
  return this;
}