nus-yam/ex-repair huggingface dataset:
Program: 80378
Project: 80378
Buggy source:
public View make(Ioc ioc,String type,String value){
  type=type.toLowerCase();
  if (VIEW_JSP.equals(type))   return new JspView(value);
  if (VIEW_JSON.equals(type))   if (Strings.isBlank(value))   return new UTF8JsonView(JsonFormat.compact());
 else   return new UTF8JsonView(Json.fromJson(JsonFormat.class,value));
  if (VIEW_REDIRECT.equals(type) || VIEW_REDIRECT2.equals(type))   return new ServerRedirectView(value);
  if (VIEW_FORWARD.equals(type) || VIEW_FORWARD2.equals(type))   return new ForwardView(value);
  if (VIEW_VOID.equals(type))   return new VoidView();
  if (VIEW_IOC.equals(type))   return ioc.get(View.class,value);
  if (VIEW_HTTP.equals(type))   return new HttpStatusView(Integer.parseInt(value));
  if (VIEW_RAW.equals(type))   return new RawView(value);
  return null;
}

Fixed version (ground truth):
public View make(Ioc ioc,String type,String value){
  type=type.toLowerCase();
  if (VIEW_JSP.equals(type))   return new JspView(value);
  if (VIEW_JSON.equals(type))   if (Strings.isBlank(value))   return UTF8JsonView.COMPACT;
 else {
    if (value.charAt(0) == '{')     return new UTF8JsonView(Json.fromJson(JsonFormat.class,value));
 else     if ("String_Node_Str".equals(value))     return UTF8JsonView.NICE;
 else     if ("String_Node_Str".equals(value))     return UTF8JsonView.FORLOOK;
 else     if ("String_Node_Str".equals(value))     return UTF8JsonView.FULL;
 else     if ("String_Node_Str".equals(value))     return UTF8JsonView.COMPACT;
 else     throw new IllegalArgumentException("String_Node_Str" + value);
  }
  if (VIEW_REDIRECT.equals(type) || VIEW_REDIRECT2.equals(type))   return new ServerRedirectView(value);
  if (VIEW_FORWARD.equals(type) || VIEW_FORWARD2.equals(type))   return new ForwardView(value);
  if (VIEW_VOID.equals(type))   return new VoidView();
  if (VIEW_IOC.equals(type))   return ioc.get(View.class,value);
  if (VIEW_HTTP.equals(type))   return new HttpStatusView(Integer.parseInt(value));
  if (VIEW_RAW.equals(type))   return new RawView(value);
  return null;
}
Program: 80379
Project: 80379
Buggy source:
/** 
 * 设置新的数据源。 <p> 如果有老的数据源需要你在外部手动关闭
 * @param ds 数据源
 */
public void setDataSource(DataSource ds){
  if (null != dataSource)   if (log.isWarnEnabled())   log.warn("String_Node_Str");
  dataSource=ds;
  expert=Jdbcs.getExpert(ds);
  pojoMaker=new NutPojoMaker(expert);
  meta=new DatabaseMeta();
  runner.run(dataSource,new ConnCallback(){
    public void invoke(    Connection conn) throws Exception {
      DatabaseMetaData dmd=conn.getMetaData();
      meta.setProductName(dmd.getDatabaseProductName());
      meta.setVersion(dmd.getDatabaseProductVersion());
    }
  }
);
  if (log.isDebugEnabled())   log.debug("String_Node_Str" + meta);
  holder=new EntityHolder(this);
  holder.maker=createEntityMaker();
}

Fixed version (ground truth):
/** 
 * 设置新的数据源。 <p> 如果有老的数据源需要你在外部手动关闭
 * @param ds 数据源
 */
public void setDataSource(DataSource ds){
  if (null != dataSource)   if (log.isWarnEnabled())   log.warn("String_Node_Str");
  dataSource=ds;
  expert=Jdbcs.getExpert(ds);
  pojoMaker=new NutPojoMaker(expert);
  meta=new DatabaseMeta();
  runner.run(dataSource,new ConnCallback(){
    public void invoke(    Connection conn) throws Exception {
      DatabaseMetaData dmd=conn.getMetaData();
      meta.setProductName(dmd.getDatabaseProductName());
      meta.setVersion(dmd.getDatabaseProductVersion());
      log.debug("String_Node_Str" + dmd.getDriverVersion());
      log.debug("String_Node_Str" + dmd.getDriverName());
    }
  }
);
  if (log.isDebugEnabled())   log.debug("String_Node_Str" + meta);
  holder=new EntityHolder(this);
  holder.maker=createEntityMaker();
}
Program: 80380
Project: 80380
Buggy source:
/** 
 * 获取当前会话的本地字符串集合的键值；如果当前 HTTP 会话不存在，则返回 null
 * @return 当前会话的本地字符串集合的键值；如果当前 HTTP 会话不存在，则返回 null
 */
public static String getLocalizationKey(){
  HttpSession sess=getHttpSession();
  return null == sess ? null : (String)sess.getAttribute(LOCALE_KEY);
}

Fixed version (ground truth):
/** 
 * 获取当前会话的本地字符串集合的键值；如果当前 HTTP 会话不存在，则返回 null
 * @return 当前会话的本地字符串集合的键值；如果当前 HTTP 会话不存在，则返回 null
 */
public static String getLocalizationKey(){
  HttpSession sess=getHttpSession(false);
  return null == sess ? null : (String)sess.getAttribute(LOCALE_KEY);
}
Program: 80381
Project: 80381
Buggy source:
public void process(ActionContext ac) throws Throwable {
  RequestIocContext reqContext=null;
  try {
    if (null != moduleObj) {
      ac.setModule(moduleObj);
    }
 else {
      Ioc ioc=ac.getIoc();
      if (null == ioc)       throw Lang.makeThrow("String_Node_Str",injectName,injectName);
      Object obj;
      if (ioc instanceof Ioc2) {
        reqContext=new RequestIocContext(ac.getRequest());
        SessionIocContext sessionContext=new SessionIocContext(Mvcs.getHttpSession());
        IocContext myContext=new ComboContext(reqContext,sessionContext);
        Mvcs.setIocContext(myContext);
        obj=((Ioc2)ioc).get(moduleType,injectName,myContext);
      }
 else       obj=ioc.get(moduleType,injectName);
      ac.setModule(obj);
    }
    ac.setMethod(method);
    doNext(ac);
  }
  finally {
    if (reqContext != null)     try {
      reqContext.depose();
    }
 catch (    Throwable e) {
      if (log.isDebugEnabled())       log.debug("String_Node_Str",e);
    }
  }
}

Fixed version (ground truth):
public void process(ActionContext ac) throws Throwable {
  RequestIocContext reqContext=null;
  try {
    if (null != moduleObj) {
      ac.setModule(moduleObj);
    }
 else {
      Ioc ioc=ac.getIoc();
      if (null == ioc)       throw Lang.makeThrow("String_Node_Str",injectName,injectName);
      Object obj;
      if (NutSessionListener.isSessionScopeEnable && ioc instanceof Ioc2) {
        reqContext=new RequestIocContext(ac.getRequest());
        SessionIocContext sessionContext=new SessionIocContext(Mvcs.getHttpSession());
        IocContext myContext=new ComboContext(reqContext,sessionContext);
        Mvcs.setIocContext(myContext);
        obj=((Ioc2)ioc).get(moduleType,injectName,myContext);
      }
 else       obj=ioc.get(moduleType,injectName);
      ac.setModule(obj);
    }
    ac.setMethod(method);
    doNext(ac);
  }
  finally {
    if (reqContext != null)     try {
      reqContext.depose();
    }
 catch (    Throwable e) {
      if (log.isDebugEnabled())       log.debug("String_Node_Str",e);
    }
  }
}
Program: 80382
Project: 80382
Buggy source:
protected List<Sql> createIndexs(Entity<?> en){
  List<Sql> sqls=new ArrayList<Sql>();
  StringBuilder sb=new StringBuilder();
  List<EntityIndex> indexs=en.getIndexes();
  for (  EntityIndex index : indexs) {
    sb.setLength(0);
    if (index.isUnique())     sb.append("String_Node_Str");
 else     sb.append("String_Node_Str");
    sb.append(index.getName());
    sb.append("String_Node_Str").append(en.getTableName()).append("String_Node_Str");
    for (    EntityField field : index.getFields()) {
      if (field instanceof MappingField) {
        MappingField mf=(MappingField)field;
        sb.append(mf.getColumnName()).append(',');
      }
 else {
        throw Lang.makeThrow(DaoException.class,"String_Node_Str",en.getClass(),field.getName());
      }
    }
    sb.setCharAt(sb.length() - 1,')');
    sqls.add(Sqls.create(sb.toString()));
  }
  return sqls;
}

Fixed version (ground truth):
protected List<Sql> createIndexs(Entity<?> en){
  List<Sql> sqls=new ArrayList<Sql>();
  StringBuilder sb=new StringBuilder();
  List<EntityIndex> indexs=en.getIndexes();
  for (  EntityIndex index : indexs) {
    sb.setLength(0);
    if (index.isUnique())     sb.append("String_Node_Str");
 else     sb.append("String_Node_Str");
    if (index.getName().contains("String_Node_Str"))     sb.append(TableName.render(new CharSegment(index.getName())));
 else     sb.append(index.getName());
    sb.append("String_Node_Str").append(en.getTableName()).append("String_Node_Str");
    for (    EntityField field : index.getFields()) {
      if (field instanceof MappingField) {
        MappingField mf=(MappingField)field;
        sb.append(mf.getColumnName()).append(',');
      }
 else {
        throw Lang.makeThrow(DaoException.class,"String_Node_Str",en.getClass(),field.getName());
      }
    }
    sb.setCharAt(sb.length() - 1,')');
    sqls.add(Sqls.create(sb.toString()));
  }
  return sqls;
}
Program: 80383
Project: 80383
Buggy source:
public String popFirst(int num){
  StringBuilder sb=new StringBuilder();
  for (int i=0; i < num; i++)   sb.append(popFirst());
  return sb.toString();
}

Fixed version (ground truth):
public LinkedCharArray popFirst(int num){
  for (int i=0; i < num; i++)   popFirst();
  return this;
}
Program: 80384
Project: 80384
Buggy source:
@SuppressWarnings("String_Node_Str") public <T>Mirror<T> getMirror(Class<T> type,String name){
  if (MethodInterceptor.class.isAssignableFrom(type) || type.getName().endsWith(ClassAgent.CLASSNAME_SUFFIX) || AopConfigration.IOCNAME.equals(name)|| AopConfigration.class.isAssignableFrom(type)) {
    return Mirror.me(type);
  }
  try {
    return (Mirror<T>)Mirror.me(cd.load(type.getName() + ClassAgent.CLASSNAME_SUFFIX));
  }
 catch (  ClassNotFoundException e) {
  }
  if (aopConfigration == null)   if (ioc.has(AopConfigration.IOCNAME))   aopConfigration=ioc.get(AopConfigration.class,AopConfigration.IOCNAME);
 else   aopConfigration=new AnnotationAopConfigration();
  List<InterceptorPair> interceptorPairs=aopConfigration.getInterceptorPairList(ioc,type);
  if (interceptorPairs == null || interceptorPairs.size() < 1) {
    if (log.isDebugEnabled())     log.debugf("String_Node_Str",type);
    return Mirror.me(type);
  }
  ClassAgent agent=new AsmClassAgent();
  for (  InterceptorPair interceptorPair : interceptorPairs)   agent.addInterceptor(interceptorPair.getMethodMatcher(),interceptorPair.getMethodInterceptor());
  return Mirror.me(agent.define(cd,type));
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") public <T>Mirror<T> getMirror(Class<T> type,String name){
  if (MethodInterceptor.class.isAssignableFrom(type) || type.getName().endsWith(ClassAgent.CLASSNAME_SUFFIX) || AopConfigration.IOCNAME.equals(name)|| AopConfigration.class.isAssignableFrom(type)) {
    return Mirror.me(type);
  }
  try {
    if (cd == null) {
synchronized (lock) {
        if (cd == null) {
          ClassLoader cd=type.getClassLoader();
          if (cd == null) {
            cd=Thread.currentThread().getContextClassLoader();
            if (cd == null)             cd=getClass().getClassLoader();
          }
          log.info("String_Node_Str" + cd);
          this.cd=new DefaultClassDefiner(cd);
        }
      }
    }
    return (Mirror<T>)Mirror.me(cd.load(type.getName() + ClassAgent.CLASSNAME_SUFFIX));
  }
 catch (  ClassNotFoundException e) {
  }
  if (aopConfigration == null)   if (ioc.has(AopConfigration.IOCNAME))   aopConfigration=ioc.get(AopConfigration.class,AopConfigration.IOCNAME);
 else   aopConfigration=new AnnotationAopConfigration();
  List<InterceptorPair> interceptorPairs=aopConfigration.getInterceptorPairList(ioc,type);
  if (interceptorPairs == null || interceptorPairs.size() < 1) {
    if (log.isDebugEnabled())     log.debugf("String_Node_Str",type);
    return Mirror.me(type);
  }
  ClassAgent agent=new AsmClassAgent();
  for (  InterceptorPair interceptorPair : interceptorPairs)   agent.addInterceptor(interceptorPair.getMethodMatcher(),interceptorPair.getMethodInterceptor());
  return Mirror.me(agent.define(cd,type));
}
Program: 80385
Project: 80385
Buggy source:
public DefaultMirrorFactory(Ioc ioc){
  this.ioc=ioc;
  this.cd=new DefaultClassDefiner(getClass().getClassLoader());
}

Fixed version (ground truth):
public DefaultMirrorFactory(Ioc ioc){
  this.ioc=ioc;
}
Program: 80388
Project: 80388
Buggy source:
@Override public Timestamp cast(String src,Class<?> toType,String... args){
  if (Strings.isBlank(src))   return null;
  try {
    return new java.sql.Timestamp(((DateFormat)dateTimeFormat.clone()).parse(src).getTime());
  }
 catch (  ParseException e) {
    throw Lang.wrapThrow(e);
  }
}

Fixed version (ground truth):
@Override public Timestamp cast(String src,Class<?> toType,String... args){
  if (Strings.isBlank(src))   return null;
  try {
    Date d;
    if (src.length() > 10) {
      d=((DateFormat)dateTimeFormat.clone()).parse(src);
    }
 else {
      d=((DateFormat)dateFormat.clone()).parse(src);
    }
    return new java.sql.Timestamp(d.getTime());
  }
 catch (  ParseException e) {
    throw Lang.wrapThrow(e);
  }
}
Program: 80389
Project: 80389
Buggy source:
public Pager setPageNumber(int pn){
  pageNumber=pn;
  return this;
}

Fixed version (ground truth):
public Pager setPageNumber(int pn){
  if (1 > pn && log.isInfoEnabled())   log.infof("String_Node_Str",pn);
  pageNumber=pn;
  return this;
}
Program: 80390
Project: 80390
Buggy source:
protected EntityMaker createEntityMaker(){
  return new LazyAnnotationEntityMaker(dataSource,expert,holder,this);
}

Fixed version (ground truth):
protected EntityMaker createEntityMaker(){
  if (cycle)   return new LazyAnnotationEntityMaker(dataSource,expert,holder,this);
  return new LazyAnnotationEntityMaker(dataSource,expert,holder,new NutDao(dataSource));
}
Program: 80391
Project: 80391
Buggy source:
@Test public void test_lazy_get(){
  Base base=dao.fetch(Base.class);
  System.out.println("String_Node_Str");
  System.out.println(base.getCountry());
}

Fixed version (ground truth):
@Test public void test_lazy_get(){
  Base base=dao.fetch(Base.class);
  System.out.println("String_Node_Str");
  System.out.println(base.getCountry());
  System.out.println(base.getPlatoons());
}
Program: 80392
Project: 80392
Buggy source:
public Log setTag(String tag){
  return this;
}

Fixed version (ground truth):
public Log setTag(String tag){
  this.tag=tag;
  return this;
}
Program: 80393
Project: 80393
Buggy source:
/** 
 * 为当前的 HTTP 请求对象设置一些必要的属性。包括： <ul> <li>本地化子字符串 => ${msg} <li>应用的路径名 => ${base} </ul>
 * @param req HTTP 请求对象
 */
public static void updateRequestAttributes(HttpServletRequest req){
  Map<String,Map<String,Object>> msgss=getMessageSet();
  if (null != msgss) {
    Map<String,Object> msgs=null;
    String lKey=Strings.sBlank(Mvcs.getLocalizationKey(),getDefaultLocalizationKey());
    if (!Strings.isBlank(lKey))     msgs=msgss.get(lKey);
    if (null == msgs) {
      if (msgss.size() > 0)       msgs=msgss.values().iterator().next();
    }
    req.setAttribute(MSG,msgs);
  }
  req.setAttribute("String_Node_Str",req.getContextPath());
  req.setAttribute("String_Node_Str",req);
}

Fixed version (ground truth):
/** 
 * 为当前的 HTTP 请求对象设置一些必要的属性。包括： <ul> <li>本地化子字符串 => ${msg} <li>应用的路径名 => ${base} </ul>
 * @param req HTTP 请求对象
 */
public static void updateRequestAttributes(HttpServletRequest req){
  Map<String,Map<String,Object>> msgss=getMessageSet();
  if (msgss == null)   msgss=ctx.localizations.values().iterator().next();
  if (null != msgss) {
    Map<String,Object> msgs=null;
    String lKey=Strings.sBlank(Mvcs.getLocalizationKey(),getDefaultLocalizationKey());
    if (!Strings.isBlank(lKey))     msgs=msgss.get(lKey);
    if (null == msgs) {
      if (msgss.size() > 0)       msgs=msgss.values().iterator().next();
    }
    req.setAttribute(MSG,msgs);
  }
  req.setAttribute("String_Node_Str",req.getContextPath());
  req.setAttribute("String_Node_Str",req);
}
Program: 80394
Project: 80394
Buggy source:
public void init(FilterConfig conf) throws ServletException {
  Mvcs.setServletContext(conf.getServletContext());
  this.selfName=conf.getFilterName();
  Mvcs.set(selfName,null,null);
  FilterNutConfig config=new FilterNutConfig(conf);
  Mvcs.setNutConfig(config);
  String skipMode=Strings.sNull(conf.getInitParameter("String_Node_Str"),"String_Node_Str").toLowerCase();
  if (!"String_Node_Str".equals(skipMode)) {
    handler=new ActionHandler(config);
    String regx=Strings.sNull(config.getInitParameter("String_Node_Str"),IGNORE);
    if (!"String_Node_Str".equalsIgnoreCase(regx)) {
      ignorePtn=Pattern.compile(regx,Pattern.CASE_INSENSITIVE);
    }
  }
 else   this.skipMode=true;
  sp=config.getSessionProvider();
}

Fixed version (ground truth):
public void init(FilterConfig conf) throws ServletException {
  if ("String_Node_Str".equals(Strings.sNull(conf.getInitParameter("String_Node_Str"),"String_Node_Str").toLowerCase())) {
    proxyFilter=new NutFilter2();
    return;
  }
  Mvcs.setServletContext(conf.getServletContext());
  this.selfName=conf.getFilterName();
  Mvcs.set(selfName,null,null);
  FilterNutConfig config=new FilterNutConfig(conf);
  Mvcs.setNutConfig(config);
  handler=new ActionHandler(config);
  String regx=Strings.sNull(config.getInitParameter("String_Node_Str"),IGNORE);
  if (!"String_Node_Str".equalsIgnoreCase(regx)) {
    ignorePtn=Pattern.compile(regx,Pattern.CASE_INSENSITIVE);
  }
  sp=config.getSessionProvider();
}
Program: 80395
Project: 80395
Buggy source:
@SuppressWarnings("String_Node_Str") public void doFilter(ServletRequest req,ServletResponse resp,FilterChain chain) throws IOException, ServletException {
  String preName=Mvcs.getName();
  Context preContext=Mvcs.resetALL();
  HttpServletRequest request=(HttpServletRequest)req;
  HttpServletResponse response=(HttpServletResponse)resp;
  try {
    if (sp != null)     req=sp.filter(request,response,Mvcs.getServletContext());
    if (needRealName && skipMode) {
      Enumeration<String> names=Mvcs.getServletContext().getAttributeNames();
      while (names.hasMoreElements()) {
        String name=(String)names.nextElement();
        if (name.endsWith("String_Node_Str")) {
          this.selfName=name.substring(0,name.length() - "String_Node_Str".length());
          break;
        }
      }
      needRealName=false;
    }
    Mvcs.set(this.selfName,request,response);
    if (!skipMode) {
      RequestPath path=Mvcs.getRequestPathObject(request);
      if (null == ignorePtn || !ignorePtn.matcher(path.getUrl()).find()) {
        if (handler.handle(request,response))         return;
      }
    }
    Mvcs.updateRequestAttributes((HttpServletRequest)req);
    chain.doFilter(req,resp);
  }
  finally {
    Mvcs.resetALL();
    if (null != (request.getAttribute("String_Node_Str"))) {
      if (preName != null)       Mvcs.set(preName,request,response);
      if (preContext != null)       Mvcs.ctx.reqThreadLocal.set(preContext);
    }
  }
}

Fixed version (ground truth):
public void doFilter(ServletRequest req,ServletResponse resp,FilterChain chain) throws IOException, ServletException {
  if (proxyFilter != null) {
    proxyFilter.doFilter(req,resp,chain);
    return;
  }
  String preName=Mvcs.getName();
  Context preContext=Mvcs.resetALL();
  HttpServletRequest request=(HttpServletRequest)req;
  HttpServletResponse response=(HttpServletResponse)resp;
  try {
    if (sp != null)     req=sp.filter(request,response,Mvcs.getServletContext());
    Mvcs.set(this.selfName,request,response);
    RequestPath path=Mvcs.getRequestPathObject(request);
    if (null == ignorePtn || !ignorePtn.matcher(path.getUrl()).find()) {
      if (handler.handle(request,response))       return;
    }
    Mvcs.updateRequestAttributes((HttpServletRequest)req);
    chain.doFilter(req,resp);
  }
  finally {
    Mvcs.resetALL();
    if (null != (request.getAttribute("String_Node_Str"))) {
      if (preName != null)       Mvcs.set(preName,request,response);
      if (preContext != null)       Mvcs.ctx.reqThreadLocal.set(preContext);
    }
  }
}
Program: 80396
Project: 80396
Buggy source:
public void destroy(){
  Mvcs.resetALL();
  Mvcs.set(selfName,null,null);
  if (handler != null)   handler.depose();
  Mvcs.setServletContext(null);
  Mvcs.close();
}

Fixed version (ground truth):
public void destroy(){
  if (proxyFilter != null)   return;
  Mvcs.resetALL();
  Mvcs.set(selfName,null,null);
  if (handler != null)   handler.depose();
  Mvcs.setServletContext(null);
  Mvcs.close();
}
Program: 80397
Project: 80397
Buggy source:
@Override public int hashCode(){
  return null == name ? "String_Node_Str".hashCode() : name.hashCode();
}

Fixed version (ground truth):
public int hashCode(){
  return null == name ? "String_Node_Str".hashCode() : name.hashCode();
}
Program: 80398
Project: 80398
Buggy source:
@Override public boolean equals(Object obj){
  if (this == obj)   return true;
  if (obj instanceof NutResource)   return 0 == compareTo((NutResource)obj);
  return false;
}

Fixed version (ground truth):
public boolean equals(Object obj){
  if (obj == null)   return false;
  if (this == obj)   return true;
  if (obj instanceof NutResource)   return this.toString().equals(obj.toString());
  return false;
}
Program: 80399
Project: 80399
Buggy source:
@Override public String toString(){
  return String.format("String_Node_Str",name);
}

Fixed version (ground truth):
public String toString(){
  return String.format("String_Node_Str",name);
}
Program: 80400
Project: 80400
Buggy source:
public List<NutResource> loadResource(String regex,String... paths){
  List<NutResource> list=new LinkedList<NutResource>();
  for (  String path : paths) {
    list.addAll(scan(path,regex));
  }
  if (list.size() < 1 && paths.length > 0)   throw Lang.makeThrow(RuntimeException.class,"String_Node_Str",regex,Castors.me().castToString(paths));
  return list;
}

Fixed version (ground truth):
public List<NutResource> loadResource(String regex,String... paths){
  List<NutResource> list=new LinkedList<NutResource>();
  for (  String path : paths) {
    list.addAll(scan(path,regex));
  }
  if (list.size() < 1 && paths.length > 0)   throw Lang.makeThrow(RuntimeException.class,"String_Node_Str",regex,Castors.me().castToString(paths));
  return new ArrayList<NutResource>((new HashSet<NutResource>(list)));
}
Program: 80401
Project: 80401
Buggy source:
public static NutResource makeJarNutResource(final String jarPath,final String entryName,final String base) throws IOException {
  NutResource nutResource=new NutResource(){
    @Override public InputStream getInputStream() throws IOException {
      ZipInputStream zis=makeZipInputStream(jarPath);
      ZipEntry ens=null;
      while (null != (ens=zis.getNextEntry())) {
        if (ens.getName().equals(entryName))         return zis;
      }
      throw Lang.impossible();
    }
  }
;
  if (entryName.equals(base))   nutResource.setName(entryName);
 else   nutResource.setName(entryName.substring(base.length()));
  return nutResource;
}

Fixed version (ground truth):
public static NutResource makeJarNutResource(final String jarPath,final String entryName,final String base) throws IOException {
  NutResource nutResource=new NutResource(){
    public InputStream getInputStream() throws IOException {
      ZipInputStream zis=makeZipInputStream(jarPath);
      ZipEntry ens=null;
      while (null != (ens=zis.getNextEntry())) {
        if (ens.getName().equals(entryName))         return zis;
      }
      throw Lang.impossible();
    }
    public int hashCode(){
      return (jarPath + "String_Node_Str" + entryName).hashCode();
    }
  }
;
  if (entryName.equals(base))   nutResource.setName(entryName);
 else   nutResource.setName(entryName.substring(base.length()));
  return nutResource;
}
Program: 80402
Project: 80402
Buggy source:
@Override public InputStream getInputStream() throws IOException {
  ZipInputStream zis=makeZipInputStream(jarPath);
  ZipEntry ens=null;
  while (null != (ens=zis.getNextEntry())) {
    if (ens.getName().equals(entryName))     return zis;
  }
  throw Lang.impossible();
}

Fixed version (ground truth):
public InputStream getInputStream() throws IOException {
  ZipInputStream zis=makeZipInputStream(jarPath);
  ZipEntry ens=null;
  while (null != (ens=zis.getNextEntry())) {
    if (ens.getName().equals(entryName))     return zis;
  }
  throw Lang.impossible();
}
Program: 80403
Project: 80403
Buggy source:
public FileResource(String base,File file){
  base=Disks.normalize(Disks.getCanonicalPath(base));
  if (base == null)   base="String_Node_Str";
 else   if (!base.endsWith("String_Node_Str"))   base+="String_Node_Str";
  this.name=Disks.normalize(Disks.getCanonicalPath(file.getAbsolutePath()));
  this.name=this.name.substring(this.name.indexOf(base) + base.length()).replace('\\','/');
  this.file=file;
}

Fixed version (ground truth):
public FileResource(String base,File file){
  base=Disks.normalize(Disks.getCanonicalPath(base));
  if (base == null)   base="String_Node_Str";
 else   if (!base.endsWith("String_Node_Str"))   base+="String_Node_Str";
  this.name=Disks.normalize(Disks.getCanonicalPath(file.getAbsolutePath()));
  this.name=this.name.substring(this.name.indexOf(base) + base.length()).replace('\\','/');
  this.file=file.getAbsoluteFile();
}
Program: 80404
Project: 80404
Buggy source:
@Override public InputStream getInputStream() throws IOException {
  return Streams.fileIn(file);
}

Fixed version (ground truth):
public InputStream getInputStream() throws IOException {
  return Streams.fileIn(file);
}
Program: 80405
Project: 80405
Buggy source:
public static ResourceLocation file(File root){
  if (!root.exists())   return new ErrorResourceLocation(root);
  try {
    return new FileSystemResourceLocation(root.getAbsoluteFile());
  }
 catch (  Exception e) {
    return new ErrorResourceLocation(root);
  }
}

Fixed version (ground truth):
public static ResourceLocation file(File root){
  if (!root.exists())   return new ErrorResourceLocation(root);
  try {
    return new FileSystemResourceLocation(root.getAbsoluteFile().getCanonicalFile());
  }
 catch (  Exception e) {
    return new ErrorResourceLocation(root);
  }
}
Program: 80406
Project: 80406
Buggy source:
private static String makeMessage(Throwable e,Class<?> type,Object[] args){
  StringBuilder sb=new StringBuilder();
  String name=null == type ? "String_Node_Str" : type.getName();
  sb.append("String_Node_Str").append(name).append('\'');
  if (null != args) {
    sb.append("String_Node_Str");
    for (    Object arg : args)     sb.append("String_Node_Str").append(arg).append(')');
    sb.append("String_Node_Str");
  }
  if (null != e) {
    sb.append("String_Node_Str").append(getExceptionMessage(e));
  }
  return sb.toString();
}

Fixed version (ground truth):
private static String makeMessage(Throwable e,Class<?> type,Object[] args){
  StringBuilder sb=new StringBuilder();
  String name=null == type ? "String_Node_Str" : type.getName();
  sb.append("String_Node_Str").append(name).append('\'');
  if (null != args) {
    sb.append("String_Node_Str");
    for (    Object arg : args)     sb.append("String_Node_Str").append(arg).append(')');
    sb.append("String_Node_Str");
  }
 else {
    sb.append("String_Node_Str");
  }
  if (null != e) {
    sb.append("String_Node_Str").append(getExceptionMessage(e));
  }
  return sb.toString();
}
Program: 80407
Project: 80407
Buggy source:
/** 
 * 根据参数类型数组获取一个对象的构建信息
 * @param < T > 对象类型信息
 * @param type 对象类型
 * @param args 构造参数数组
 * @return 构建信息对象
 */
public static <T>BornContext<T> eval(Class<T> type,Object... args){
  BornContext<T> re;
  if (args.length == 0) {
    re=evalWithoutArgs(type);
  }
 else {
    re=evalWithArgs(type,args);
  }
  return re;
}

Fixed version (ground truth):
/** 
 * 根据参数类型数组获取一个对象的构建信息
 * @param < T > 对象类型信息
 * @param type 对象类型
 * @param args 构造参数数组
 * @return 构建信息对象
 * @throws NullPointerException when args is null
 */
public static <T>BornContext<T> eval(Class<T> type,Object... args){
  BornContext<T> re;
  if (args.length == 0) {
    re=evalWithoutArgs(type);
  }
 else {
    re=evalWithArgs(type,args);
  }
  return re;
}
Program: 80408
Project: 80408
Buggy source:
public UrlMapping load(NutConfig config){
  if (log.isInfoEnabled()) {
    log.infof("String_Node_Str",Nutz.version());
    log.infof("String_Node_Str",config.getAppName());
  }
  if (log.isDebugEnabled()) {
    Properties sys=System.getProperties();
    log.debug("String_Node_Str");
    log.debugf("String_Node_Str",Encoding.defaultEncoding());
    log.debugf("String_Node_Str",new File("String_Node_Str").getAbsolutePath());
    log.debugf("String_Node_Str",sys.get("String_Node_Str"));
    log.debugf("String_Node_Str",sys.get("String_Node_Str"));
    log.debugf("String_Node_Str",sys.get("String_Node_Str"));
    log.debugf("String_Node_Str",sys.get("String_Node_Str"),sys.get("String_Node_Str"));
    log.debugf("String_Node_Str",config.getServletContext().getServerInfo());
  }
  UrlMapping mapping;
  Stopwatch sw=Stopwatch.begin();
  try {
    Class<?> mainModule=config.getMainModule();
    createContext(config);
    createIoc(config,mainModule);
    mapping=evalUrlMapping(config,mainModule);
    evalLocalization(config,mainModule);
    createSessionProvider(config,mainModule);
    evalSetup(config,mainModule);
  }
 catch (  Exception e) {
    if (log.isErrorEnabled())     log.error("String_Node_Str",e);
    throw Lang.wrapThrow(e,LoadingException.class);
  }
  sw.stop();
  if (log.isInfoEnabled())   log.infof("String_Node_Str",config.getAppName(),sw.getDuration());
  return mapping;
}

Fixed version (ground truth):
public UrlMapping load(NutConfig config){
  if (log.isInfoEnabled()) {
    log.infof("String_Node_Str",Nutz.version());
    log.infof("String_Node_Str",config.getAppName());
  }
  if (log.isDebugEnabled()) {
    Properties sys=System.getProperties();
    log.debug("String_Node_Str");
    log.debugf("String_Node_Str",Encoding.defaultEncoding());
    log.debugf("String_Node_Str",new File("String_Node_Str").getAbsolutePath());
    log.debugf("String_Node_Str",sys.get("String_Node_Str"));
    log.debugf("String_Node_Str",sys.get("String_Node_Str"));
    log.debugf("String_Node_Str",sys.get("String_Node_Str"));
    log.debugf("String_Node_Str",sys.get("String_Node_Str"),sys.get("String_Node_Str"));
    log.debugf("String_Node_Str",config.getServletContext().getServerInfo());
    log.debugf("String_Node_Str",config.getServletContext().getContextPath());
  }
  UrlMapping mapping;
  Stopwatch sw=Stopwatch.begin();
  try {
    Class<?> mainModule=config.getMainModule();
    createContext(config);
    createIoc(config,mainModule);
    mapping=evalUrlMapping(config,mainModule);
    evalLocalization(config,mainModule);
    createSessionProvider(config,mainModule);
    evalSetup(config,mainModule);
  }
 catch (  Exception e) {
    if (log.isErrorEnabled())     log.error("String_Node_Str",e);
    throw Lang.wrapThrow(e,LoadingException.class);
  }
  sw.stop();
  if (log.isInfoEnabled())   log.infof("String_Node_Str",config.getAppName(),sw.getDuration());
  return mapping;
}
Program: 80409
Project: 80409
Buggy source:
/** 
 * 将一组 NutResource 转换成 class 对象
 * @param packagePath 包前缀
 * @param list 列表
 * @return 类对象列表
 */
private static List<Class<?>> rs2class(List<NutResource> list){
  Set<Class<?>> re=new HashSet<Class<?>>(list.size());
  if (!list.isEmpty()) {
    for (    NutResource nr : list) {
      if (!nr.getName().endsWith("String_Node_Str") || nr.getName().endsWith("String_Node_Str")) {
        continue;
      }
      InputStream in=null;
      try {
        in=nr.getInputStream();
        String className=ClassTools.getClassName(in);
        if (className == null) {
          if (log.isInfoEnabled())           log.infof("String_Node_Str",nr);
          continue;
        }
        Class<?> klass=Lang.loadClass(className);
        re.add(klass);
      }
 catch (      ClassNotFoundException e) {
        if (log.isInfoEnabled())         log.infof("String_Node_Str",nr,e);
      }
catch (      IOException e) {
        if (log.isInfoEnabled())         log.infof("String_Node_Str",nr,e);
      }
 finally {
        Streams.safeClose(in);
      }
    }
  }
  return new ArrayList<Class<?>>(re);
}

Fixed version (ground truth):
/** 
 * 将一组 NutResource 转换成 class 对象
 * @param packagePath 包前缀
 * @param list 列表
 * @return 类对象列表
 */
private static List<Class<?>> rs2class(String pkg,List<NutResource> list){
  Set<Class<?>> re=new HashSet<Class<?>>(list.size());
  if (!list.isEmpty()) {
    for (    NutResource nr : list) {
      if (!nr.getName().endsWith("String_Node_Str") || nr.getName().endsWith("String_Node_Str")) {
        continue;
      }
      String className=pkg + "String_Node_Str" + nr.getName().substring(0,nr.getName().length() - 6).replaceAll("String_Node_Str","String_Node_Str");
      try {
        Class<?> klass=Lang.loadClass(className);
        re.add(klass);
        continue;
      }
 catch (      Throwable e) {
      }
      InputStream in=null;
      try {
        in=nr.getInputStream();
        className=ClassTools.getClassName(in);
        if (className == null) {
          if (log.isInfoEnabled())           log.infof("String_Node_Str",nr);
          continue;
        }
        Class<?> klass=Lang.loadClass(className);
        re.add(klass);
      }
 catch (      ClassNotFoundException e) {
        if (log.isInfoEnabled())         log.infof("String_Node_Str",nr,e);
      }
catch (      IOException e) {
        if (log.isInfoEnabled())         log.infof("String_Node_Str",nr,e);
      }
 finally {
        Streams.safeClose(in);
      }
    }
  }
  return new ArrayList<Class<?>>(re);
}
Program: 80410
Project: 80410
Buggy source:
/** 
 * 搜索给定包下所有的类（递归），并返回所有符合正则式描述的类
 * @param pkg 包名或者包路径
 * @param regex 正则表达式，请注意你需要匹配的名称为 'xxxx.class' 而不仅仅是类名，从而保证选出的对象都是类文件
 */
public List<Class<?>> scanPackage(String pkg,String regex){
  String packagePath=pkg.replace('.','/').replace('\\','/');
  if (!packagePath.endsWith("String_Node_Str"))   packagePath+="String_Node_Str";
  return rs2class(scan(packagePath,regex));
}

Fixed version (ground truth):
/** 
 * 搜索给定包下所有的类（递归），并返回所有符合正则式描述的类
 * @param pkg 包名或者包路径
 * @param regex 正则表达式，请注意你需要匹配的名称为 'xxxx.class' 而不仅仅是类名，从而保证选出的对象都是类文件
 */
public List<Class<?>> scanPackage(String pkg,String regex){
  String packagePath=pkg.replace('.','/').replace('\\','/');
  if (!packagePath.endsWith("String_Node_Str"))   packagePath+="String_Node_Str";
  return rs2class(pkg,scan(packagePath,regex));
}
Program: 80412
Project: 80412
Buggy source:
public void exec(Connection conn,DaoStatement st){
  Object[][] paramMatrix;
  try {
    st.onBefore(conn);
switch (st.getSqlType()) {
case SELECT:
      _runSelect(conn,st);
    break;
case ALTER:
case TRUNCATE:
case CREATE:
case DROP:
  _runStatement(conn,st);
st.onAfter(conn,null);
break;
case RUN:
st.onAfter(conn,null);
break;
default :
if (st.getSqlType() == SqlType.OTHER && log.isInfoEnabled()) log.info("String_Node_Str" + st);
paramMatrix=st.getParamMatrix();
if (null == paramMatrix || paramMatrix.length == 0) {
_runStatement(conn,st);
}
 else {
_runPreparedStatement(conn,st,paramMatrix);
}
st.onAfter(conn,null);
}
}
 catch (SQLException e) {
if (log.isInfoEnabled()) log.debug("String_Node_Str",e);
throw new DaoException(format("String_Node_Str",st.toString(),st.toPreparedStatement()),e);
}
}

Fixed version (ground truth):
public void exec(Connection conn,DaoStatement st){
  Object[][] paramMatrix;
  try {
    st.onBefore(conn);
switch (st.getSqlType()) {
case SELECT:
      _runSelect(conn,st);
    break;
case ALTER:
case TRUNCATE:
case CREATE:
case DROP:
  _runStatement(conn,st);
st.onAfter(conn,null);
break;
case RUN:
st.onAfter(conn,null);
break;
case CALL:
case EXEC:
_runExec(conn,st);
break;
default :
if (st.getSqlType() == SqlType.OTHER && log.isInfoEnabled()) log.info("String_Node_Str" + st);
paramMatrix=st.getParamMatrix();
if (null == paramMatrix || paramMatrix.length == 0) {
_runStatement(conn,st);
}
 else {
_runPreparedStatement(conn,st,paramMatrix);
}
st.onAfter(conn,null);
}
}
 catch (SQLException e) {
if (log.isInfoEnabled()) log.debug("String_Node_Str",e);
throw new DaoException(format("String_Node_Str",st.toString(),st.toPreparedStatement()),e);
}
}
Program: 80413
Project: 80413
Buggy source:
/** 
 * 根据函数参数类型数组的最后一个类型（一定是数组，表示变参），为最后一个变参生成一个空数组
 * @param pts 函数参数类型列表
 * @return 变参空数组
 */
public static Object[] blankArrayArg(Class<?>[] pts){
  return (Object[])Array.newInstance(pts[pts.length - 1].getComponentType(),0);
}

Fixed version (ground truth):
/** 
 * 根据函数参数类型数组的最后一个类型（一定是数组，表示变参），为最后一个变参生成一个空数组
 * @param pts 函数参数类型列表
 * @return 变参空数组
 */
public static Object blankArrayArg(Class<?>[] pts){
  return Array.newInstance(pts[pts.length - 1].getComponentType(),0);
}
Program: 80414
Project: 80414
Buggy source:
@Test public void testEncode(){
  Response response1=Http.get("String_Node_Str");
  assertTrue("String_Node_Str".equals(response1.getEncodeType()));
  assertTrue(response1.getContent().indexOf("String_Node_Str") > 0);
  Response response2=Http.get("String_Node_Str");
  assertTrue(response2.getContent("String_Node_Str").indexOf("String_Node_Str") > 0);
}

Fixed version (ground truth):
@Test public void testEncode(){
  Response response1=Http.get("String_Node_Str");
  assertEquals("String_Node_Str",response1.getEncodeType());
  assertTrue(response1.getContent().indexOf("String_Node_Str") > 0);
  Response response2=Http.get("String_Node_Str");
  assertTrue(response2.getContent("String_Node_Str").indexOf("String_Node_Str") > 0);
}
Program: 80415
Project: 80415
Buggy source:
protected ResourceLocation makeResourceLocation(URL url){
  try {
    String str=url.toString();
    if (str.endsWith("String_Node_Str")) {
      return ResourceLocation.jar(str);
    }
 else     if (str.contains("String_Node_Str")) {
      return ResourceLocation.jar(str.substring(0,str.lastIndexOf("String_Node_Str") + 3));
    }
 else     if (str.startsWith("String_Node_Str")) {
      return ResourceLocation.file(new File(url.getFile()));
    }
 else {
      if (log.isDebugEnabled())       log.debug("String_Node_Str" + url);
    }
  }
 catch (  Throwable e) {
    if (log.isInfoEnabled())     log.info("String_Node_Str" + url,e);
  }
  return new ErrorResourceLocation(url);
}

Fixed version (ground truth):
protected ResourceLocation makeResourceLocation(URL url){
  try {
    String str=url.toString();
    if (str.endsWith("String_Node_Str")) {
      return ResourceLocation.jar(str);
    }
 else     if (str.contains("String_Node_Str")) {
      if (str.startsWith("String_Node_Str")) {
        str=str.substring("String_Node_Str".length());
      }
      return ResourceLocation.jar(str.substring(0,str.lastIndexOf("String_Node_Str") + 3));
    }
 else     if (str.startsWith("String_Node_Str")) {
      return ResourceLocation.file(new File(url.getFile()));
    }
 else {
      if (log.isDebugEnabled())       log.debug("String_Node_Str" + url);
    }
  }
 catch (  Throwable e) {
    if (log.isInfoEnabled())     log.info("String_Node_Str" + url,e);
  }
  return new ErrorResourceLocation(url);
}
Program: 80416
Project: 80416
Buggy source:
private void _evalFieldMacro(Entity<?> en,List<MappingInfo> infos){
  for (  MappingInfo info : infos) {
    if (null != info.annPrev) {
      en.addBeforeInsertMacro(__macro(en.getField(info.name),_annToFieldMacroInfo(info.annPrev.els(),info.annPrev.value())));
    }
    if (null != info.annNext && en.addAfterInsertMacro(__macro(en.getField(info.name),_annToFieldMacroInfo(info.annNext.els(),info.annNext.value())))) {
      continue;
    }
 else     if (null != info.annId && info.annId.auto()) {
      if (expert != null && !expert.isSupportAutoIncrement()) {
        throw new DaoException("String_Node_Str");
      }
      en.addAfterInsertMacro(expert.fetchPojoId(en,en.getField(info.name)));
    }
  }
}

Fixed version (ground truth):
private void _evalFieldMacro(Entity<?> en,List<MappingInfo> infos){
  for (  MappingInfo info : infos) {
    if (null != info.annPrev) {
      en.addBeforeInsertMacro(__macro(en.getField(info.name),_annToFieldMacroInfo(info.annPrev.els(),info.annPrev.value())));
    }
    if (null != info.annNext && en.addAfterInsertMacro(__macro(en.getField(info.name),_annToFieldMacroInfo(info.annNext.els(),info.annNext.value())))) {
      continue;
    }
 else     if (null != info.annId && info.annId.auto()) {
      if (expert != null && !expert.isSupportAutoIncrement()) {
        log.debug("String_Node_Str");
      }
      en.addAfterInsertMacro(expert.fetchPojoId(en,en.getField(info.name)));
    }
  }
}
Program: 80417
Project: 80417
Buggy source:
public static Throwable unwrapThrow(Throwable e){
  if (e == null)   return null;
  if (e instanceof InvocationTargetException) {
    InvocationTargetException itE=(InvocationTargetException)e;
    if (itE.getTargetException() != null)     return unwrapThrow(itE.getTargetException());
  }
  if (e.getCause() != null)   return unwrapThrow(e.getCause());
  return e;
}

Fixed version (ground truth):
public static Throwable unwrapThrow(Throwable e){
  if (e == null)   return null;
  if (e instanceof InvocationTargetException) {
    InvocationTargetException itE=(InvocationTargetException)e;
    if (itE.getTargetException() != null)     return unwrapThrow(itE.getTargetException());
  }
  if (e instanceof RuntimeException && e.getCause() != null && e.getMessage() == null)   return unwrapThrow(e.getCause());
  return e;
}
Program: 80418
Project: 80418
Buggy source:
public UrlMapping load(NutConfig config){
  if (log.isInfoEnabled()) {
    log.infof("String_Node_Str",Nutz.version());
    log.infof("String_Node_Str",config.getAppName());
  }
  if (log.isDebugEnabled()) {
    log.debug("String_Node_Str");
    log.debugf("String_Node_Str",Encoding.defaultEncoding());
    log.debugf("String_Node_Str",new File("String_Node_Str").getAbsolutePath());
    log.debugf("String_Node_Str",System.getProperties().get("String_Node_Str"));
    log.debugf("String_Node_Str",System.getProperties().get("String_Node_Str"));
    log.debugf("String_Node_Str",System.getProperties().get("String_Node_Str"));
  }
  UrlMapping mapping;
  Stopwatch sw=Stopwatch.begin();
  try {
    Class<?> mainModule=config.getMainModule();
    createContext(config);
    createIoc(config,mainModule);
    mapping=evalUrlMapping(config,mainModule);
    evalLocalization(config,mainModule);
    createSessionProvider(config,mainModule);
    evalSetup(config,mainModule);
  }
 catch (  Exception e) {
    if (log.isErrorEnabled())     log.error("String_Node_Str",e);
    throw Lang.wrapThrow(e,LoadingException.class);
  }
  sw.stop();
  if (log.isInfoEnabled())   log.infof("String_Node_Str",config.getAppName(),sw.getDuration());
  return mapping;
}

Fixed version (ground truth):
public UrlMapping load(NutConfig config){
  if (log.isInfoEnabled()) {
    log.infof("String_Node_Str",Nutz.version());
    log.infof("String_Node_Str",config.getAppName());
  }
  if (log.isDebugEnabled()) {
    Properties sys=System.getProperties();
    log.debug("String_Node_Str");
    log.debugf("String_Node_Str",Encoding.defaultEncoding());
    log.debugf("String_Node_Str",new File("String_Node_Str").getAbsolutePath());
    log.debugf("String_Node_Str",sys.get("String_Node_Str"));
    log.debugf("String_Node_Str",sys.get("String_Node_Str"));
    log.debugf("String_Node_Str",sys.get("String_Node_Str"));
    log.debugf("String_Node_Str",sys.get("String_Node_Str"),sys.get("String_Node_Str"));
    log.debugf("String_Node_Str",config.getServletContext().getServerInfo());
  }
  UrlMapping mapping;
  Stopwatch sw=Stopwatch.begin();
  try {
    Class<?> mainModule=config.getMainModule();
    createContext(config);
    createIoc(config,mainModule);
    mapping=evalUrlMapping(config,mainModule);
    evalLocalization(config,mainModule);
    createSessionProvider(config,mainModule);
    evalSetup(config,mainModule);
  }
 catch (  Exception e) {
    if (log.isErrorEnabled())     log.error("String_Node_Str",e);
    throw Lang.wrapThrow(e,LoadingException.class);
  }
  sw.stop();
  if (log.isInfoEnabled())   log.infof("String_Node_Str",config.getAppName(),sw.getDuration());
  return mapping;
}
Program: 80420
Project: 80420
Buggy source:
public void visit(Object obj,LinkField lnk){
  Object value=lnk.getValue(obj);
  if (value == null) {
    log.infof("String_Node_Str",lnk.getLinkType(),lnk.getEntity().getType().getSimpleName(),lnk.getHostField().getName());
    return;
  }
  final Pojo pojo=opt.maker().makeDelete(lnk.getLinkedEntity());
  pojo.setOperatingObject(value);
  pojo.append(Pojos.Items.cndAuto(lnk.getLinkedEntity(),null));
  Lang.each(value,new Each<Object>(){
    public void invoke(    int i,    Object ele,    int length) throws ExitLoop, LoopException {
      pojo.addParamsBy(ele);
    }
  }
);
  opt.add(pojo);
}

Fixed version (ground truth):
public void visit(Object obj,LinkField lnk){
  Object value=lnk.getValue(obj);
  if (value == null || Lang.length(value) == 0) {
    log.infof("String_Node_Str",lnk.getLinkType(),lnk.getEntity().getType().getSimpleName(),lnk.getHostField().getName());
    return;
  }
  final Pojo pojo=opt.maker().makeDelete(lnk.getLinkedEntity());
  pojo.setOperatingObject(value);
  pojo.append(Pojos.Items.cndAuto(lnk.getLinkedEntity(),null));
  Lang.each(value,new Each<Object>(){
    public void invoke(    int i,    Object ele,    int length) throws ExitLoop, LoopException {
      pojo.addParamsBy(ele);
    }
  }
);
  opt.add(pojo);
}
Program: 80421
Project: 80421
Buggy source:
public boolean createEntity(Dao dao,Entity<?> en){
  StringBuilder sb=new StringBuilder("String_Node_Str" + en.getTableName() + "String_Node_Str");
  for (  MappingField mf : en.getMappingFields()) {
    sb.append('\n').append(mf.getColumnName());
    sb.append(' ').append(evalFieldType(mf));
    if (mf.isName() && en.getPkType() != PkType.NAME) {
      sb.append("String_Node_Str");
    }
 else {
      if (mf.isNotNull() || mf.isPk())       sb.append("String_Node_Str");
      if (mf.hasDefaultValue())       sb.append("String_Node_Str").append(getDefaultValue(mf)).append('\'');
      if (mf.isAutoIncreasement())       sb.append("String_Node_Str");
      if (mf.isPk() && en.getPks().size() == 1) {
        sb.append("String_Node_Str");
      }
    }
    sb.append(',');
  }
  sb.setCharAt(sb.length() - 1,')');
  dao.execute(Sqls.create(sb.toString()));
  if (en.getPks().size() > 1) {
    sb=new StringBuilder();
    sb.append("String_Node_Str").append(en.getTableName()).append("String_Node_Str");
    for (    MappingField mf : en.getPks()) {
      sb.append("String_Node_Str").append(mf.getColumnName());
    }
    sb.append("String_Node_Str");
    for (    MappingField mf : en.getPks()) {
      sb.append(mf.getColumnName()).append("String_Node_Str");
    }
    sb.setCharAt(sb.length() - 1,')');
    dao.execute(Sqls.create(sb.toString()));
  }
  createRelation(dao,en);
  dao.execute(createIndexs(en).toArray(new Sql[0]));
  addComment(dao,en);
  return true;
}

Fixed version (ground truth):
public boolean createEntity(Dao dao,Entity<?> en){
  StringBuilder sb=new StringBuilder("String_Node_Str" + en.getTableName() + "String_Node_Str");
  for (  MappingField mf : en.getMappingFields()) {
    sb.append('\n').append(mf.getColumnName());
    sb.append(' ').append(evalFieldType(mf));
    if (mf.isName() && en.getPkType() != PkType.NAME) {
      sb.append("String_Node_Str");
    }
 else {
      if (mf.isNotNull() || mf.isPk())       sb.append("String_Node_Str");
      if (mf.hasDefaultValue())       sb.append("String_Node_Str").append(getDefaultValue(mf)).append('\'');
      if (mf.isAutoIncreasement())       sb.append("String_Node_Str");
      if (mf.isPk() && en.getPks().size() == 1) {
        sb.append("String_Node_Str");
      }
    }
    sb.append(',');
  }
  sb.setCharAt(sb.length() - 1,')');
  dao.execute(Sqls.create(sb.toString()));
  if (en.getPks().size() > 1) {
    sb=new StringBuilder();
    sb.append("String_Node_Str").append(en.getTableName()).append("String_Node_Str");
    sb.append(makePksName(en));
    sb.append("String_Node_Str");
    for (    MappingField mf : en.getPks()) {
      sb.append(mf.getColumnName()).append("String_Node_Str");
    }
    sb.setCharAt(sb.length() - 1,')');
    dao.execute(Sqls.create(sb.toString()));
  }
  createRelation(dao,en);
  dao.execute(createIndexs(en).toArray(new Sql[0]));
  addComment(dao,en);
  return true;
}
Program: 80423
Project: 80423
Buggy source:
public String getServerInfo(){
  throw Lang.noImplement();
}

Fixed version (ground truth):
public String getServerInfo(){
  return "String_Node_Str";
}