nus-yam/ex-repair huggingface dataset:
Program: 16103
Project: 16103
Buggy source:
/** 
 * Tests whether certain value is OK to expunge. <p>Note: values are tested thru   {@link #canExpunge} only if{@link #shallExpunge} returns true.<p>Deriving classes might override this method to return different value for different criteria. <p>The return value could be a combination of EXPUNGE_xxx. One of EXPUNGE_YES and EXPUNGE_NO is returned to denote whether to expunge the mapping. One of EXPUNGE_CONTINUE and EXPUNGE_STOP is returned to denote whether to continue the searching of the next mapping for expunging. <p>Normally, you return either (EXPUNGE_YES|EXPUNGE_CONTINUE) or (EXPUNG_NO|EXPUNGE_STOP). Notice that the mapping is queried in the last-access order. Thus, you rarely needs to return (EXPUNGE_NO|EXPUNGE_CONTINUE) unless the appropriate one might be out of this order. <p>This implementation compares the access time and size. It returns (EXPUNGE_YES|EXPUNGE_CONTINUE) if OK, and (EXPUNGE_NO|EXPUNGE_STOP) if not.
 * @param size the current size. It is used instead of size(), sincethe entry might not be removed yet (such as  {@link FastReadCache}).
 * @return a combination of EXPUNGE_xxx
 * @see #shallExpunge
 */
protected int canExpunge(int size,Value<V> v){
  return size > getMaxSize() || (System.currentTimeMillis() - v.access) > getLifetime() ? (EXPUNGE_YES | EXPUNGE_CONTINUE) : (EXPUNGE_NO | EXPUNGE_STOP);
}

Fixed version (ground truth):
/** 
 * Tests whether certain value is OK to expunge. <p>Note: values are tested thru   {@link #canExpunge} only if{@link #shallExpunge} returns true.<p>Deriving classes might override this method to return different value for different criteria. <p>The return value could be a combination of EXPUNGE_xxx. One of EXPUNGE_YES and EXPUNGE_NO is returned to denote whether to expunge the mapping. One of EXPUNGE_CONTINUE and EXPUNGE_STOP is returned to denote whether to continue the searching of the next mapping for expunging. <p>Normally, you return either (EXPUNGE_YES|EXPUNGE_CONTINUE) or (EXPUNG_NO|EXPUNGE_STOP). Notice that the mapping is queried in the last-access order. Thus, you rarely needs to return (EXPUNGE_NO|EXPUNGE_CONTINUE) unless the appropriate one might be out of this order. <p>This implementation compares the access time and size. It returns (EXPUNGE_YES|EXPUNGE_CONTINUE) if OK, and (EXPUNGE_NO|EXPUNGE_STOP) if not.
 * @param size the current size. It is used instead of size(), sincethe entry might not be removed yet (such as  {@link FastReadCache}).
 * @return a combination of EXPUNGE_xxx
 * @see #shallExpunge
 */
protected int canExpunge(int size,Value<V> v){
  return size >= getMaxSize() || (System.currentTimeMillis() - v.access) > getLifetime() ? (EXPUNGE_YES | EXPUNGE_CONTINUE) : (EXPUNGE_NO | EXPUNGE_STOP);
}
Program: 16104
Project: 16104
Buggy source:
/** 
 * Creates an instance of   {@link Event} based on the specified request.
 */
public static Event getEvent(AuRequest request){
  final String name=request.getCommand();
  final Component comp=request.getComponent();
  final Map<String,Object> data=request.getData();
  if (data != null && data.containsKey("String_Node_Str") && data.size() == 1) {
    final Object extractedData=data.get("String_Node_Str");
    if (extractedData == null)     return new Event(name,comp);
    if (extractedData instanceof Collection)     return new Event(name,comp,((Collection<?>)extractedData).toArray());
    return new Event(name,comp,extractedData);
  }
  return new Event(name,comp,data);
}

Fixed version (ground truth):
/** 
 * Creates an instance of   {@link Event} based on the specified request.
 */
public static Event getEvent(AuRequest request){
  final String name=request.getCommand();
  final Component comp=request.getComponent();
  final Map<String,Object> data=request.getData();
  if (data.isEmpty()) {
    return new Event(name,comp);
  }
 else   if (data.containsKey("String_Node_Str") && data.size() == 1) {
    final Object extractedData=data.get("String_Node_Str");
    if (extractedData == null)     return new Event(name,comp);
    if (extractedData instanceof Collection)     return new Event(name,comp,((Collection<?>)extractedData).toArray());
    return new Event(name,comp,extractedData);
  }
  return new Event(name,comp,data);
}
Program: 16105
Project: 16105
Buggy source:
/** 
 * Returns whether the specified tag is an 'orphan' tag. By orphan we mean it doesn't support the format of &lt;xx&gt; &lt;/xx&gt;. <p>For example, br and img are orphan tags.
 * @param tagname the tag name, e.g., br and tr.
 */
public static final boolean isOrphanTag(String tagname){
  return _orphans.contains(tagname.toLowerCase());
}

Fixed version (ground truth):
/** 
 * Returns whether the specified tag is an 'orphan' tag. By orphan we mean it doesn't support the format of &lt;xx&gt; &lt;/xx&gt;. <p>For example, br and img are orphan tags.
 * @param tagname the tag name, e.g., br and tr.
 */
public static final boolean isOrphanTag(String tagname){
  return _orphans.contains(tagname.toLowerCase(java.util.Locale.ENGLISH));
}
Program: 16106
Project: 16106
Buggy source:
/** 
 * Checks whether the prefix of a namespace is valid.
 */
public static final void checkNamespacePrefix(String prefix,Locator loc){
  if (prefix == null || prefix.length() == 0)   return;
  String reason=null;
  char first=prefix.charAt(0);
  if (isXMLDigit(first)) {
    reason="String_Node_Str";
  }
 else   if (first == '$') {
    reason="String_Node_Str";
  }
 else   if (first == '-') {
    reason="String_Node_Str";
  }
 else   if (first == '.') {
    reason="String_Node_Str";
  }
 else {
    final String s=prefix.toLowerCase();
    if (s.startsWith("String_Node_Str") && !s.equals("String_Node_Str"))     reason="String_Node_Str";
  }
  if (reason != null)   throw new DOMException(DOMException.INVALID_CHARACTER_ERR,"String_Node_Str" + prefix + "String_Node_Str"+ reason,loc);
  for (int j=0, len=prefix.length(); j < len; j++)   if (!isXMLNameCharacter(prefix.charAt(j))) {
    StringBuffer sb=new StringBuffer("String_Node_Str");
    throw new DOMException(DOMException.INVALID_CHARACTER_ERR,appendAsHex(sb,prefix.charAt(j)).toString(),loc);
  }
  if (prefix.indexOf("String_Node_Str") >= 0)   throw new DOMException(DOMException.INVALID_CHARACTER_ERR,"String_Node_Str",loc);
}

Fixed version (ground truth):
/** 
 * Checks whether the prefix of a namespace is valid.
 */
public static final void checkNamespacePrefix(String prefix,Locator loc){
  if (prefix == null || prefix.length() == 0)   return;
  String reason=null;
  char first=prefix.charAt(0);
  if (isXMLDigit(first)) {
    reason="String_Node_Str";
  }
 else   if (first == '$') {
    reason="String_Node_Str";
  }
 else   if (first == '-') {
    reason="String_Node_Str";
  }
 else   if (first == '.') {
    reason="String_Node_Str";
  }
 else {
    final String s=prefix.toLowerCase(java.util.Locale.ENGLISH);
    if (s.startsWith("String_Node_Str") && !s.equals("String_Node_Str"))     reason="String_Node_Str";
  }
  if (reason != null)   throw new DOMException(DOMException.INVALID_CHARACTER_ERR,"String_Node_Str" + prefix + "String_Node_Str"+ reason,loc);
  for (int j=0, len=prefix.length(); j < len; j++)   if (!isXMLNameCharacter(prefix.charAt(j))) {
    StringBuffer sb=new StringBuffer("String_Node_Str");
    throw new DOMException(DOMException.INVALID_CHARACTER_ERR,appendAsHex(sb,prefix.charAt(j)).toString(),loc);
  }
  if (prefix.indexOf("String_Node_Str") >= 0)   throw new DOMException(DOMException.INVALID_CHARACTER_ERR,"String_Node_Str",loc);
}
Program: 16107
Project: 16107
Buggy source:
private void init(String name,byte[] data) throws IOException {
  if (data == null)   throw new IllegalArgumentException("String_Node_Str");
  _name=name;
  _data=data;
  String format=null;
  try {
    final ImageInputStream imis=ImageIO.createImageInputStream(new ByteArrayInputStream(data));
    final Iterator it=ImageIO.getImageReaders(imis);
    if (it.hasNext()) {
      final ImageReader rd=(ImageReader)it.next();
      format=rd.getFormatName().toLowerCase();
    }
  }
 catch (  IOException ex) {
  }
  if (format == null) {
    _format=getFormatByName(name);
    if (_format == null)     throw new IOException("String_Node_Str" + name);
    log.warning("String_Node_Str" + _format + "String_Node_Str");
    _width=_height=0;
  }
 else {
    _format=format;
    final ImageIcon ii=new ImageIcon(_data);
    _width=ii.getIconWidth();
    _height=ii.getIconHeight();
  }
  _ctype=getContentType(_format);
}

Fixed version (ground truth):
private void init(String name,byte[] data) throws IOException {
  if (data == null)   throw new IllegalArgumentException("String_Node_Str");
  _name=name;
  _data=data;
  String format=null;
  try {
    final ImageInputStream imis=ImageIO.createImageInputStream(new ByteArrayInputStream(data));
    final Iterator it=ImageIO.getImageReaders(imis);
    if (it.hasNext()) {
      final ImageReader rd=(ImageReader)it.next();
      format=rd.getFormatName().toLowerCase(java.util.Locale.ENGLISH);
    }
  }
 catch (  IOException ex) {
  }
  if (format == null) {
    _format=getFormatByName(name);
    if (_format == null)     throw new IOException("String_Node_Str" + name);
    log.warning("String_Node_Str" + _format + "String_Node_Str");
    _width=_height=0;
  }
 else {
    _format=format;
    final ImageIcon ii=new ImageIcon(_data);
    _width=ii.getIconWidth();
    _height=ii.getIconHeight();
  }
  _ctype=getContentType(_format);
}
Program: 16108
Project: 16108
Buggy source:
/** 
 * Sets the class of the image encoder for the specified format. <p>An instance of the specified class is instantiated each time   {@link #newInstance} is called.
 * @param format  The image format of the ZK image being encoded to.It can be "png" or "jpeg".
 * @param klass the class of the image encoder.It must implement  {@link ImageEncoder}.
 * @return the previous encoder, or null if not set yet.
 */
public static Class setEncoderClass(String format,Class klass){
  if (!ImageEncoder.class.isAssignableFrom(klass))   throw new IllegalArgumentException(ImageEncoder.class + "String_Node_Str" + klass);
  return _encoders.put(format.toLowerCase(),klass);
}

Fixed version (ground truth):
/** 
 * Sets the class of the image encoder for the specified format. <p>An instance of the specified class is instantiated each time   {@link #newInstance} is called.
 * @param format  The image format of the ZK image being encoded to.It can be "png" or "jpeg".
 * @param klass the class of the image encoder.It must implement  {@link ImageEncoder}.
 * @return the previous encoder, or null if not set yet.
 */
public static Class setEncoderClass(String format,Class klass){
  if (!ImageEncoder.class.isAssignableFrom(klass))   throw new IllegalArgumentException(ImageEncoder.class + "String_Node_Str" + klass);
  return _encoders.put(format.toLowerCase(java.util.Locale.ENGLISH),klass);
}
Program: 16109
Project: 16109
Buggy source:
/** 
 * Returns the class of the image encoder for the specified format, or null if not specified yet.
 */
public static Class getEncoderClass(String format){
  return _encoders.get(format.toLowerCase());
}

Fixed version (ground truth):
/** 
 * Returns the class of the image encoder for the specified format, or null if not specified yet.
 */
public static Class getEncoderClass(String format){
  return _encoders.get(format.toLowerCase(java.util.Locale.ENGLISH));
}
Program: 16110
Project: 16110
Buggy source:
/** 
 * Instantiates and returns the image encoder for the specified format.
 * @param format  The image format of the ZK image being encoded to.It can be "png" or "jpeg".
 * @exception IllegalArgumentException if the encoder of the specifiedformat is not found
 * @exception SystemException if failed to instantiate the encoder
 */
public static ImageEncoder newInstance(String format){
  final Class klass=_encoders.get(format.toLowerCase());
  if (klass == null)   throw new IllegalArgumentException("String_Node_Str" + format);
  try {
    return (ImageEncoder)klass.newInstance();
  }
 catch (  Throwable ex) {
    throw SystemException.Aide.wrap(ex);
  }
}

Fixed version (ground truth):
/** 
 * Instantiates and returns the image encoder for the specified format.
 * @param format  The image format of the ZK image being encoded to.It can be "png" or "jpeg".
 * @exception IllegalArgumentException if the encoder of the specifiedformat is not found
 * @exception SystemException if failed to instantiate the encoder
 */
public static ImageEncoder newInstance(String format){
  final Class klass=_encoders.get(format.toLowerCase(java.util.Locale.ENGLISH));
  if (klass == null)   throw new IllegalArgumentException("String_Node_Str" + format);
  try {
    return (ImageEncoder)klass.newInstance();
  }
 catch (  Throwable ex) {
    throw SystemException.Aide.wrap(ex);
  }
}
Program: 16111
Project: 16111
Buggy source:
private static final int convertSubversion(String subver){
  try {
    return Integer.parseInt(subver);
  }
 catch (  Throwable ex) {
  }
  subver=subver.toLowerCase();
  final int base, j;
  if (subver.startsWith("String_Node_Str")) {
    base=-100;
    j=2;
  }
 else   if (subver.startsWith("String_Node_Str")) {
    base=-300;
    j=4;
  }
 else   if (subver.startsWith("String_Node_Str")) {
    base=-500;
    j=5;
  }
 else {
    return 0;
  }
  if (j < subver.length()) {
    try {
      return base + Integer.parseInt(subver.substring(j));
    }
 catch (    Throwable ex) {
    }
  }
  return base;
}

Fixed version (ground truth):
private static final int convertSubversion(String subver){
  try {
    return Integer.parseInt(subver);
  }
 catch (  Throwable ex) {
  }
  subver=subver.toLowerCase(java.util.Locale.ENGLISH);
  final int base, j;
  if (subver.startsWith("String_Node_Str")) {
    base=-100;
    j=2;
  }
 else   if (subver.startsWith("String_Node_Str")) {
    base=-300;
    j=4;
  }
 else   if (subver.startsWith("String_Node_Str")) {
    base=-500;
    j=5;
  }
 else {
    return 0;
  }
  if (j < subver.length()) {
    try {
      return base + Integer.parseInt(subver.substring(j));
    }
 catch (    Throwable ex) {
    }
  }
  return base;
}
Program: 16112
Project: 16112
Buggy source:
/** 
 * Returns the content type of the specified format, such as "html" and "pdf", or null if not found (or format is null).
 */
public static final String getContentType(String format){
  if (format == null)   return null;
  format=format.trim().toLowerCase();
  for (; ; ) {
synchronized (_fmt2ct) {
      String fmt2ct=_fmt2ct.get(format);
      if (fmt2ct != null)       return fmt2ct;
    }
    int j=format.indexOf('.');
    if (j < 0)     return null;
    format=format.substring(j + 1);
  }
}

Fixed version (ground truth):
/** 
 * Returns the content type of the specified format, such as "html" and "pdf", or null if not found (or format is null).
 */
public static final String getContentType(String format){
  if (format == null)   return null;
  format=format.trim().toLowerCase(java.util.Locale.ENGLISH);
  for (; ; ) {
synchronized (_fmt2ct) {
      String fmt2ct=_fmt2ct.get(format);
      if (fmt2ct != null)       return fmt2ct;
    }
    int j=format.indexOf('.');
    if (j < 0)     return null;
    format=format.substring(j + 1);
  }
}
Program: 16113
Project: 16113
Buggy source:
/** 
 * Returns the format of the specified content type, or null if not found.
 * @exception IllealArgumentException if ctype is null
 */
public static final String getFormat(String ctype){
  if (ctype == null)   throw new IllegalArgumentException();
  ctype=ctype.trim().toLowerCase();
  String format;
synchronized (_ct2fmt) {
    format=_ct2fmt.get(ctype);
  }
  if (format == null) {
    int j=ctype.indexOf(';');
    if (j >= 0) {
      ctype=ctype.substring(0,j);
synchronized (_ct2fmt) {
        format=_ct2fmt.get(ctype);
      }
    }
    if (format == null) {
      j=ctype.indexOf('/');
      format=j >= 0 ? ctype.substring(j + 1) : ctype;
    }
  }
  return format;
}

Fixed version (ground truth):
/** 
 * Returns the format of the specified content type, or null if not found.
 * @exception IllealArgumentException if ctype is null
 */
public static final String getFormat(String ctype){
  if (ctype == null)   throw new IllegalArgumentException();
  ctype=ctype.trim().toLowerCase(java.util.Locale.ENGLISH);
  String format;
synchronized (_ct2fmt) {
    format=_ct2fmt.get(ctype);
  }
  if (format == null) {
    int j=ctype.indexOf(';');
    if (j >= 0) {
      ctype=ctype.substring(0,j);
synchronized (_ct2fmt) {
        format=_ct2fmt.get(ctype);
      }
    }
    if (format == null) {
      j=ctype.indexOf('/');
      format=j >= 0 ? ctype.substring(j + 1) : ctype;
    }
  }
  return format;
}
Program: 16114
Project: 16114
Buggy source:
private static final int toStyle(String style){
  if (style != null) {
    style=style.trim().toLowerCase();
    return "String_Node_Str".equals(style) ? DateFormat.SHORT : "String_Node_Str".equals(style) ? DateFormat.MEDIUM : "String_Node_Str".equals(style) ? DateFormat.LONG : "String_Node_Str".equals(style) ? DateFormat.FULL : -111;
  }
  return -111;
}

Fixed version (ground truth):
private static final int toStyle(String style){
  if (style != null) {
    style=style.trim().toLowerCase(java.util.Locale.ENGLISH);
    return "String_Node_Str".equals(style) ? DateFormat.SHORT : "String_Node_Str".equals(style) ? DateFormat.MEDIUM : "String_Node_Str".equals(style) ? DateFormat.LONG : "String_Node_Str".equals(style) ? DateFormat.FULL : -111;
  }
  return -111;
}
Program: 16115
Project: 16115
Buggy source:
/** 
 * Returns the implementation for the specified evaluator name.
 * @param name the name of the evaluator, say, MVEL.
 * @exception SystemException if not found or the class not found.
 */
@SuppressWarnings("String_Node_Str") public static final Class<? extends ExpressionFactory> getEvaluatorClass(String name){
  if (name == null || name.length() == 0)   throw new IllegalArgumentException("String_Node_Str");
  if (!_loaded)   load();
  final String evalnm=name.toLowerCase();
  final Object clsnm;
synchronized (_evals) {
    clsnm=_evals.get(evalnm);
  }
  if (clsnm == null)   throw new SystemException("String_Node_Str" + name);
  if (clsnm instanceof Class) {
    final Class<?> cls=(Class)clsnm;
    if (!ExpressionFactory.class.isAssignableFrom(cls))     throw new SystemException(cls + "String_Node_Str" + ExpressionFactory.class);
    return cast(cls);
  }
 else {
    try {
      return cast(Classes.forNameByThread((String)clsnm));
    }
 catch (    ClassNotFoundException ex) {
      throw new SystemException("String_Node_Str" + clsnm);
    }
  }
}

Fixed version (ground truth):
/** 
 * Returns the implementation for the specified evaluator name.
 * @param name the name of the evaluator, say, MVEL.
 * @exception SystemException if not found or the class not found.
 */
@SuppressWarnings("String_Node_Str") public static final Class<? extends ExpressionFactory> getEvaluatorClass(String name){
  if (name == null || name.length() == 0)   throw new IllegalArgumentException("String_Node_Str");
  if (!_loaded)   load();
  final String evalnm=name.toLowerCase(java.util.Locale.ENGLISH);
  final Object clsnm;
synchronized (_evals) {
    clsnm=_evals.get(evalnm);
  }
  if (clsnm == null)   throw new SystemException("String_Node_Str" + name);
  if (clsnm instanceof Class) {
    final Class<?> cls=(Class)clsnm;
    if (!ExpressionFactory.class.isAssignableFrom(cls))     throw new SystemException(cls + "String_Node_Str" + ExpressionFactory.class);
    return cast(cls);
  }
 else {
    try {
      return cast(Classes.forNameByThread((String)clsnm));
    }
 catch (    ClassNotFoundException ex) {
      throw new SystemException("String_Node_Str" + clsnm);
    }
  }
}
Program: 16116
Project: 16116
Buggy source:
/** 
 * Tests whether the evaluator (a.k.a., the expression factory) for the specified evaluator name exists.
 * @param name the name of the evaluator, say, MVEL.
 */
public static final boolean exists(String name){
  if (name == null)   return false;
  if (!_loaded)   load();
  name=name.toLowerCase();
synchronized (_evals) {
    return _evals.containsKey(name);
  }
}

Fixed version (ground truth):
/** 
 * Tests whether the evaluator (a.k.a., the expression factory) for the specified evaluator name exists.
 * @param name the name of the evaluator, say, MVEL.
 */
public static final boolean exists(String name){
  if (name == null)   return false;
  if (!_loaded)   load();
  name=name.toLowerCase(java.util.Locale.ENGLISH);
synchronized (_evals) {
    return _evals.containsKey(name);
  }
}
Program: 16117
Project: 16117
Buggy source:
private static String getCharset(String ctype){
  final String ctypelc=ctype.toLowerCase();
  for (int j=0; (j=ctypelc.indexOf("String_Node_Str",j)) >= 0; j+=7) {
    int k=Strings.skipWhitespacesBackward(ctype,j - 1);
    if (k < 0 || ctype.charAt(k) == ';') {
      k=Strings.skipWhitespaces(ctype,j + 7);
      if (k <= ctype.length() && ctype.charAt(k) == '=') {
        j=ctype.indexOf(';',++k);
        String charset=(j >= 0 ? ctype.substring(k,j) : ctype.substring(k)).trim();
        if (charset.length() > 0)         return charset;
        break;
      }
    }
  }
  return null;
}

Fixed version (ground truth):
private static String getCharset(String ctype){
  final String ctypelc=ctype.toLowerCase(java.util.Locale.ENGLISH);
  for (int j=0; (j=ctypelc.indexOf("String_Node_Str",j)) >= 0; j+=7) {
    int k=Strings.skipWhitespacesBackward(ctype,j - 1);
    if (k < 0 || ctype.charAt(k) == ';') {
      k=Strings.skipWhitespaces(ctype,j + 7);
      if (k <= ctype.length() && ctype.charAt(k) == '=') {
        j=ctype.indexOf(';',++k);
        String charset=(j >= 0 ? ctype.substring(k,j) : ctype.substring(k)).trim();
        if (charset.length() > 0)         return charset;
        break;
      }
    }
  }
  return null;
}
Program: 16119
Project: 16119
Buggy source:
/** 
 * Returns whether the request contains multipart content.
 */
public static final boolean isMultipartContent(HttpServletRequest request){
  return "String_Node_Str".equals(request.getMethod().toLowerCase()) && FileUploadBase.isMultipartContent(new ServletRequestContext(request));
}

Fixed version (ground truth):
/** 
 * Returns whether the request contains multipart content.
 */
public static final boolean isMultipartContent(HttpServletRequest request){
  return "String_Node_Str".equals(request.getMethod().toLowerCase(java.util.Locale.ENGLISH)) && FileUploadBase.isMultipartContent(new ServletRequestContext(request));
}
Program: 16120
Project: 16120
Buggy source:
private static String getCharset(String ctype){
  final String ctypelc=ctype.toLowerCase();
  for (int j=0; (j=ctypelc.indexOf("String_Node_Str",j)) >= 0; j+=7) {
    int k=Strings.skipWhitespacesBackward(ctype,j - 1);
    if (k < 0 || ctype.charAt(k) == ';') {
      k=Strings.skipWhitespaces(ctype,j + 7);
      if (k <= ctype.length() && ctype.charAt(k) == '=') {
        j=ctype.indexOf(';',++k);
        String charset=(j >= 0 ? ctype.substring(k,j) : ctype.substring(k)).trim();
        if (charset.length() > 0)         return charset;
        break;
      }
    }
  }
  return null;
}

Fixed version (ground truth):
private static String getCharset(String ctype){
  final String ctypelc=ctype.toLowerCase(java.util.Locale.ENGLISH);
  for (int j=0; (j=ctypelc.indexOf("String_Node_Str",j)) >= 0; j+=7) {
    int k=Strings.skipWhitespacesBackward(ctype,j - 1);
    if (k < 0 || ctype.charAt(k) == ';') {
      k=Strings.skipWhitespaces(ctype,j + 7);
      if (k <= ctype.length() && ctype.charAt(k) == '=') {
        j=ctype.indexOf(';',++k);
        String charset=(j >= 0 ? ctype.substring(k,j) : ctype.substring(k)).trim();
        if (charset.length() > 0)         return charset;
        break;
      }
    }
  }
  return null;
}
Program: 16121
Project: 16121
Buggy source:
/** 
 * Returns whether the request contains multipart content.
 */
public static final boolean isMultipartContent(HttpServletRequest request){
  return "String_Node_Str".equals(request.getMethod().toLowerCase()) && FileUploadBase.isMultipartContent(new ServletRequestContext(request));
}

Fixed version (ground truth):
/** 
 * Returns whether the request contains multipart content.
 */
public static final boolean isMultipartContent(HttpServletRequest request){
  return "String_Node_Str".equals(request.getMethod().toLowerCase(java.util.Locale.ENGLISH)) && FileUploadBase.isMultipartContent(new ServletRequestContext(request));
}
Program: 16123
Project: 16123
Buggy source:
public Boolean isCompatible(String userAgent){
  userAgent=userAgent.toLowerCase();
  return userAgent.indexOf("String_Node_Str") >= 0 || userAgent.indexOf("String_Node_Str") >= 0 || userAgent.indexOf("String_Node_Str") >= 0 || userAgent.indexOf("String_Node_Str") >= 0 || userAgent.indexOf("String_Node_Str") >= 0 ? Boolean.TRUE : null;
}

Fixed version (ground truth):
public Boolean isCompatible(String userAgent){
  userAgent=userAgent.toLowerCase(java.util.Locale.ENGLISH);
  return userAgent.indexOf("String_Node_Str") >= 0 || userAgent.indexOf("String_Node_Str") >= 0 || userAgent.indexOf("String_Node_Str") >= 0 || userAgent.indexOf("String_Node_Str") >= 0 || userAgent.indexOf("String_Node_Str") >= 0 ? Boolean.TRUE : null;
}
Program: 16124
Project: 16124
Buggy source:
/** 
 * Returns the string encoded with ZK.
 * @since 6.0.3
 */
public static String encodeWithZK(String name){
  if (name.startsWith("String_Node_Str"))   return "String_Node_Str" + (WebApps.getEdition().toLowerCase()) + name.substring(2);
  return "String_Node_Str" + (WebApps.getEdition().toLowerCase()) + name;
}

Fixed version (ground truth):
/** 
 * Returns the string encoded with ZK.
 * @since 6.0.3
 */
public static String encodeWithZK(String name){
  if (name.startsWith("String_Node_Str"))   return "String_Node_Str" + (WebApps.getEdition().toLowerCase(java.util.Locale.ENGLISH)) + name.substring(2);
  return "String_Node_Str" + (WebApps.getEdition().toLowerCase(java.util.Locale.ENGLISH)) + name;
}
Program: 16125
Project: 16125
Buggy source:
/** 
 * Returns the interpreter for the specified language name.
 * @param zslang the name of the scripting language, say, Java.
 * @exception InterpreterNotFoundException if not found.
 */
public static final Interpreter newInterpreter(String zslang,Page owner){
  if (zslang == null || zslang.length() == 0 || owner == null)   throw new IllegalArgumentException("String_Node_Str");
  final String zsl=zslang.toLowerCase();
  final Object clsnm;
synchronized (_ips) {
    clsnm=_ips.get(zsl);
  }
  if (clsnm == null)   throw new InterpreterNotFoundException(zslang,MZk.NOT_FOUND,zslang);
  final Class<? extends Interpreter> cls;
  if (clsnm instanceof Class) {
    cls=cast((Class)clsnm);
  }
 else {
    Class<?> c;
    try {
      c=Classes.forNameByThread((String)clsnm);
    }
 catch (    ClassNotFoundException ex) {
      throw new UiException("String_Node_Str" + clsnm);
    }
    if (!Interpreter.class.isAssignableFrom(c))     throw new IllegalArgumentException(c + "String_Node_Str" + Interpreter.class);
    cls=cast(c);
synchronized (_ips) {
      final Object old=_ips.put(zsl,cls);
      if (old != clsnm)       _ips.put(zsl,old);
    }
  }
  try {
    final Interpreter ip=cls.newInstance();
    ip.init(owner,zslang);
    return ip;
  }
 catch (  Exception ex) {
    throw UiException.Aide.wrap(ex,"String_Node_Str" + cls);
  }
}

Fixed version (ground truth):
/** 
 * Returns the interpreter for the specified language name.
 * @param zslang the name of the scripting language, say, Java.
 * @exception InterpreterNotFoundException if not found.
 */
public static final Interpreter newInterpreter(String zslang,Page owner){
  if (zslang == null || zslang.length() == 0 || owner == null)   throw new IllegalArgumentException("String_Node_Str");
  final String zsl=zslang.toLowerCase(java.util.Locale.ENGLISH);
  final Object clsnm;
synchronized (_ips) {
    clsnm=_ips.get(zsl);
  }
  if (clsnm == null)   throw new InterpreterNotFoundException(zslang,MZk.NOT_FOUND,zslang);
  final Class<? extends Interpreter> cls;
  if (clsnm instanceof Class) {
    cls=cast((Class)clsnm);
  }
 else {
    Class<?> c;
    try {
      c=Classes.forNameByThread((String)clsnm);
    }
 catch (    ClassNotFoundException ex) {
      throw new UiException("String_Node_Str" + clsnm);
    }
    if (!Interpreter.class.isAssignableFrom(c))     throw new IllegalArgumentException(c + "String_Node_Str" + Interpreter.class);
    cls=cast(c);
synchronized (_ips) {
      final Object old=_ips.put(zsl,cls);
      if (old != clsnm)       _ips.put(zsl,old);
    }
  }
  try {
    final Interpreter ip=cls.newInstance();
    ip.init(owner,zslang);
    return ip;
  }
 catch (  Exception ex) {
    throw UiException.Aide.wrap(ex,"String_Node_Str" + cls);
  }
}
Program: 16126
Project: 16126
Buggy source:
/** 
 * Tests whether the interpreter for the specified language name exists.
 * @param zslang the name of the scripting language, say, Java.
 */
public static final boolean exists(String zslang){
  if (zslang == null)   return false;
  zslang=zslang.toLowerCase();
synchronized (_ips) {
    return _ips.containsKey(zslang);
  }
}

Fixed version (ground truth):
/** 
 * Tests whether the interpreter for the specified language name exists.
 * @param zslang the name of the scripting language, say, Java.
 */
public static final boolean exists(String zslang){
  if (zslang == null)   return false;
  zslang=zslang.toLowerCase(java.util.Locale.ENGLISH);
synchronized (_ips) {
    return _ips.containsKey(zslang);
  }
}
Program: 16127
Project: 16127
Buggy source:
public void getSecondHalf(StringBuffer sb,String tag){
  if (tag != null) {
    final String tn=tag.toLowerCase();
    if ("String_Node_Str".equals(tn) || HTMLs.isOrphanTag(tn))     return;
    sb.append("String_Node_Str").append(tag).append('>');
  }
}

Fixed version (ground truth):
public void getSecondHalf(StringBuffer sb,String tag){
  if (tag != null) {
    final String tn=tag.toLowerCase(java.util.Locale.ENGLISH);
    if ("String_Node_Str".equals(tn) || HTMLs.isOrphanTag(tn))     return;
    sb.append("String_Node_Str").append(tag).append('>');
  }
}
Program: 16128
Project: 16128
Buggy source:
public void getFirstHalf(StringBuffer sb,String tag,Map<String,Object> props,Collection<Namespace> namespaces){
  if (tag != null)   sb.append('<').append(tag);
  NativeHelpers.getAttributes(sb,props,namespaces);
  if (tag != null) {
    final String tn=tag.toLowerCase();
    if ("String_Node_Str".equals(tn) || HTMLs.isOrphanTag(tn))     sb.append('/');
    sb.append('>');
  }
}

Fixed version (ground truth):
public void getFirstHalf(StringBuffer sb,String tag,Map<String,Object> props,Collection<Namespace> namespaces){
  if (tag != null)   sb.append('<').append(tag);
  NativeHelpers.getAttributes(sb,props,namespaces);
  if (tag != null) {
    final String tn=tag.toLowerCase(java.util.Locale.ENGLISH);
    if ("String_Node_Str".equals(tn) || HTMLs.isOrphanTag(tn))     sb.append('/');
    sb.append('>');
  }
}
Program: 16130
Project: 16130
Buggy source:
/** 
 * Returns whether the specified feature is supported.
 * @param feature which feature to check. Supported features:<dl> <dt><code>professional</code> or <code>pe</code></dt> <dd>Whether it is ZK PE, i.e., whether zkex.jar (and others) are installed.</dd> <dt><code>enterprise</code> or <code>ee</code></dt> <dd>Whether it is ZK EE, i.e., whether zkmax.jar (and others) are installed. Note: ZK EE implies "pe". In other words, if getFeature("ee") is true, getFeature("pe") must be true.</dd> </dl>
 * @since 3.0.7
 */
public static boolean getFeature(String feature){
  final String f=feature.toLowerCase();
  return "String_Node_Str".equals(f) || "String_Node_Str".equals(f) ? _pe : "String_Node_Str".equals(f) || "String_Node_Str".equals(f) ? _ee : false;
}

Fixed version (ground truth):
/** 
 * Returns whether the specified feature is supported.
 * @param feature which feature to check. Supported features:<dl> <dt><code>professional</code> or <code>pe</code></dt> <dd>Whether it is ZK PE, i.e., whether zkex.jar (and others) are installed.</dd> <dt><code>enterprise</code> or <code>ee</code></dt> <dd>Whether it is ZK EE, i.e., whether zkmax.jar (and others) are installed. Note: ZK EE implies "pe". In other words, if getFeature("ee") is true, getFeature("pe") must be true.</dd> </dl>
 * @since 3.0.7
 */
public static boolean getFeature(String feature){
  final String f=feature.toLowerCase(java.util.Locale.ENGLISH);
  return "String_Node_Str".equals(f) || "String_Node_Str".equals(f) ? _pe : "String_Node_Str".equals(f) || "String_Node_Str".equals(f) ? _ee : false;
}
Program: 16131
Project: 16131
Buggy source:
public Interpreter getInterpreter(String zslang){
  zslang=(zslang != null ? zslang : _zslang).toLowerCase();
  Interpreter ip=_ips.get(zslang);
  if (ip == null) {
    if (_desktop != null && !_desktop.getWebApp().getConfiguration().isZScriptEnabled())     throw new UiException("String_Node_Str");
    ip=Interpreters.newInterpreter(zslang,this);
    _ips.put(zslang,ip);
    String script=_langdef.getInitScript(zslang);
    if (script != null) {
      if (_impclss != null && !_impclss.isEmpty() && "String_Node_Str".equals(zslang)) {
        StringBuilder sb=new StringBuilder();
        for (        String name : _impclss)         sb.append("String_Node_Str").append(name).append("String_Node_Str");
        script+=sb.toString();
        sb=null;
      }
      ip.interpret(script,this);
    }
  }
  evalDeferredZScripts(ip,zslang);
  return ip;
}

Fixed version (ground truth):
public Interpreter getInterpreter(String zslang){
  zslang=(zslang != null ? zslang : _zslang).toLowerCase(java.util.Locale.ENGLISH);
  Interpreter ip=_ips.get(zslang);
  if (ip == null) {
    if (_desktop != null && !_desktop.getWebApp().getConfiguration().isZScriptEnabled())     throw new UiException("String_Node_Str");
    ip=Interpreters.newInterpreter(zslang,this);
    _ips.put(zslang,ip);
    String script=_langdef.getInitScript(zslang);
    if (script != null) {
      if (_impclss != null && !_impclss.isEmpty() && "String_Node_Str".equals(zslang)) {
        StringBuilder sb=new StringBuilder();
        for (        String name : _impclss)         sb.append("String_Node_Str").append(name).append("String_Node_Str");
        script+=sb.toString();
        sb=null;
      }
      ip.interpret(script,this);
    }
  }
  evalDeferredZScripts(ip,zslang);
  return ip;
}
Program: 16132
Project: 16132
Buggy source:
/** 
 * Adds a component definition to this map. <p>Thread safe.
 */
public void add(ComponentDefinition compdef){
  if (compdef == null)   throw new IllegalArgumentException("String_Node_Str");
  String name=compdef.getName();
  if (isCaseInsensitive())   name=name.toLowerCase();
  Object implcls=compdef.getImplementationClass();
  if (implcls instanceof Class)   implcls=((Class)implcls).getName();
synchronized (this) {
    if (_compdefs == null) {
      _compdefsByClass=Collections.synchronizedMap(new HashMap<String,ComponentDefinition>(4));
      _compdefs=Collections.synchronizedMap(new HashMap<String,ComponentDefinition>(4));
    }
    _compdefs.put(name,compdef);
    _compdefsByClass.put((String)implcls,compdef);
  }
}

Fixed version (ground truth):
/** 
 * Adds a component definition to this map. <p>Thread safe.
 */
public void add(ComponentDefinition compdef){
  if (compdef == null)   throw new IllegalArgumentException("String_Node_Str");
  String name=compdef.getName();
  if (isCaseInsensitive())   name=name.toLowerCase(java.util.Locale.ENGLISH);
  Object implcls=compdef.getImplementationClass();
  if (implcls instanceof Class)   implcls=((Class)implcls).getName();
synchronized (this) {
    if (_compdefs == null) {
      _compdefsByClass=Collections.synchronizedMap(new HashMap<String,ComponentDefinition>(4));
      _compdefs=Collections.synchronizedMap(new HashMap<String,ComponentDefinition>(4));
    }
    _compdefs.put(name,compdef);
    _compdefsByClass.put((String)implcls,compdef);
  }
}
Program: 16133
Project: 16133
Buggy source:
/** 
 * Returns whether the specified component exists.
 */
public boolean contains(String name){
  return _compdefs != null && _compdefs.containsKey(isCaseInsensitive() ? name.toLowerCase() : name);
}

Fixed version (ground truth):
/** 
 * Returns whether the specified component exists.
 */
public boolean contains(String name){
  return _compdefs != null && _compdefs.containsKey(isCaseInsensitive() ? name.toLowerCase(java.util.Locale.ENGLISH) : name);
}
Program: 16134
Project: 16134
Buggy source:
/** 
 * Adds the script that shall execute each time before evaluating zscript. <p>Note: it doesn't test the existence of the specified language, such that you can add the scripting language later.
 * @param zslang the scripting language, say, Java.
 */
public void addEachTimeScript(String zslang,String script){
  if (zslang == null || zslang.length() == 0)   throw new IllegalArgumentException("String_Node_Str");
  if (script != null && script.length() > 0) {
    zslang=zslang.toLowerCase();
synchronized (_eachscripts) {
      final String s=_eachscripts.get(zslang);
      _eachscripts.put(zslang,s != null ? s + '\n' + script : script);
    }
  }
}

Fixed version (ground truth):
/** 
 * Adds the script that shall execute each time before evaluating zscript. <p>Note: it doesn't test the existence of the specified language, such that you can add the scripting language later.
 * @param zslang the scripting language, say, Java.
 */
public void addEachTimeScript(String zslang,String script){
  if (zslang == null || zslang.length() == 0)   throw new IllegalArgumentException("String_Node_Str");
  if (script != null && script.length() > 0) {
    zslang=zslang.toLowerCase(java.util.Locale.ENGLISH);
synchronized (_eachscripts) {
      final String s=_eachscripts.get(zslang);
      _eachscripts.put(zslang,s != null ? s + '\n' + script : script);
    }
  }
}
Program: 16135
Project: 16135
Buggy source:
/** 
 * Returns the initial scripts of the specified language, or null if no script.
 */
public String getInitScript(String zslang){
  zslang=zslang.toLowerCase();
synchronized (_initscripts) {
    return _initscripts.get(zslang);
  }
}

Fixed version (ground truth):
/** 
 * Returns the initial scripts of the specified language, or null if no script.
 */
public String getInitScript(String zslang){
  zslang=zslang.toLowerCase(java.util.Locale.ENGLISH);
synchronized (_initscripts) {
    return _initscripts.get(zslang);
  }
}
Program: 16136
Project: 16136
Buggy source:
/** 
 * Returns the each-time scripts of  the specified language, or null if no scripts. <p>The each-time script is evaluated each time before evaluating zscript.
 */
public String getEachTimeScript(String zslang){
  zslang=zslang.toLowerCase();
synchronized (_eachscripts) {
    return _eachscripts.get(zslang);
  }
}

Fixed version (ground truth):
/** 
 * Returns the each-time scripts of  the specified language, or null if no scripts. <p>The each-time script is evaluated each time before evaluating zscript.
 */
public String getEachTimeScript(String zslang){
  zslang=zslang.toLowerCase(java.util.Locale.ENGLISH);
synchronized (_eachscripts) {
    return _eachscripts.get(zslang);
  }
}
Program: 16137
Project: 16137
Buggy source:
/** 
 * Adds the script that shall execute when a page's interpreter is initialized. In other words, they are evaluated only once for each page. <p>Note: it doesn't test the existence of the specified language, such that you can add the scripting language later.
 * @param zslang the scripting language, say, Java.
 */
public void addInitScript(String zslang,String script){
  if (zslang == null || zslang.length() == 0)   throw new IllegalArgumentException("String_Node_Str");
  if (script != null && script.length() > 0) {
    zslang=zslang.toLowerCase();
synchronized (_initscripts) {
      final String s=_initscripts.get(zslang);
      _initscripts.put(zslang,s != null ? s + '\n' + script : script);
    }
  }
}

Fixed version (ground truth):
/** 
 * Adds the script that shall execute when a page's interpreter is initialized. In other words, they are evaluated only once for each page. <p>Note: it doesn't test the existence of the specified language, such that you can add the scripting language later.
 * @param zslang the scripting language, say, Java.
 */
public void addInitScript(String zslang,String script){
  if (zslang == null || zslang.length() == 0)   throw new IllegalArgumentException("String_Node_Str");
  if (script != null && script.length() > 0) {
    zslang=zslang.toLowerCase(java.util.Locale.ENGLISH);
synchronized (_initscripts) {
      final String s=_initscripts.get(zslang);
      _initscripts.put(zslang,s != null ? s + '\n' + script : script);
    }
  }
}
Program: 16138
Project: 16138
Buggy source:
static boolean matchType(Component component,String type){
  if (type == null)   return true;
  return component.getDefinition().getName().toLowerCase().equals(type.toLowerCase());
}

Fixed version (ground truth):
static boolean matchType(Component component,String type){
  if (type == null)   return true;
  return component.getDefinition().getName().toLowerCase(java.util.Locale.ENGLISH).equals(type.toLowerCase(java.util.Locale.ENGLISH));
}
Program: 16140
Project: 16140
Buggy source:
/** 
 * Creates an instance of   {@link Event} based on the specified request.
 */
public static Event getEvent(AuRequest request){
  final String name=request.getCommand();
  final Component comp=request.getComponent();
  final Map<String,Object> data=request.getData();
  final Object data2=data != null ? data.get("String_Node_Str") : null;
  if (data2 == null)   return new Event(name,comp);
  if (data2 instanceof Collection)   return new Event(name,comp,((Collection)data2).toArray());
  return new Event(name,comp,data2);
}

Fixed version (ground truth):
/** 
 * Creates an instance of   {@link Event} based on the specified request.
 */
public static Event getEvent(AuRequest request){
  final String name=request.getCommand();
  final Component comp=request.getComponent();
  final Map<String,Object> data=request.getData();
  if (data != null && data.containsKey("String_Node_Str") && data.size() == 1) {
    final Object extractedData=data.get("String_Node_Str");
    if (extractedData == null)     return new Event(name,comp);
    if (extractedData instanceof Collection)     return new Event(name,comp,((Collection<?>)extractedData).toArray());
    return new Event(name,comp,extractedData);
  }
  return new Event(name,comp,data);
}
Program: 16142
Project: 16142
Buggy source:
/** 
 * Adds a response directly with the given priority. The higher priority, the earlier the update is executed. The priority of   {@link #addResponse(String,AuResponse)}and   {@link #addResponse(AuResponse)} is assumed to be 0.
 * @since 6.0.1
 */
public void addResponse(String key,AuResponse response,int priority){
  if (response == null)   throw new IllegalArgumentException();
  if (_ending) {
    Object dps=response.getDepends();
    if (dps == null)     return;
    if (dps instanceof Page && _pgRemoved != null && _pgRemoved.contains((Page)dps)) {
      return;
    }
    if (dps instanceof Component) {
      Component p=(Component)dps;
      if (p.getPage() == null || (_pgRemoved != null && _pgRemoved.contains(p.getPage()))) {
        return;
      }
    }
  }
  final Object depends=response.getDepends();
  if (depends instanceof Component && isCUDisabled((Component)depends))   return;
  if (_responses == null)   _responses=new HashMap<Object,ResponseInfo>();
  ResponseInfo ri=_responses.get(depends);
  if (ri == null)   _responses.put(depends,ri=new ResponseInfo());
  final TimedValue tval=new TimedValue(_timed++,response,priority);
  if (key != null) {
    ri.values.put(key,tval);
  }
 else {
    ri.keyless.add(tval);
  }
}

Fixed version (ground truth):
/** 
 * Adds a response directly with the given priority. The higher priority, the earlier the update is executed. The priority of   {@link #addResponse(String,AuResponse)}and   {@link #addResponse(AuResponse)} is assumed to be 0.
 * @since 6.0.1
 */
public void addResponse(String key,AuResponse response,int priority){
  if (response == null)   throw new IllegalArgumentException();
  if (_ending) {
    Object dps=response.getDepends();
    if (dps == null && _owner == null)     return;
    if (dps instanceof Page && _pgRemoved != null && _pgRemoved.contains((Page)dps)) {
      return;
    }
    if (dps instanceof Component) {
      Component p=(Component)dps;
      if (p.getPage() == null || (_pgRemoved != null && _pgRemoved.contains(p.getPage()))) {
        return;
      }
    }
  }
  final Object depends=response.getDepends();
  if (depends instanceof Component && isCUDisabled((Component)depends))   return;
  if (_responses == null)   _responses=new HashMap<Object,ResponseInfo>();
  ResponseInfo ri=_responses.get(depends);
  if (ri == null)   _responses.put(depends,ri=new ResponseInfo());
  final TimedValue tval=new TimedValue(_timed++,response,priority);
  if (key != null) {
    ri.values.put(key,tval);
  }
 else {
    ri.keyless.add(tval);
  }
}
Program: 16143
Project: 16143
Buggy source:
public void load(){
  binder.loadComponent(comp,true);
}

Fixed version (ground truth):
public void load(){
  BindUiLifeCycle.markLifeCycleHandling(comp);
  binder.loadComponent(comp,true);
}
Program: 16144
Project: 16144
Buggy source:
public void afterComponentAttached(Component comp,Page page){
  if (comp.getDesktop() != null) {
    Binder selfBinder=BinderUtil.getBinder(comp);
    if (selfBinder == null) {
      Binder parentBinder=BinderUtil.getBinder(comp,true);
      if (parentBinder != null && (parentBinder instanceof BinderImpl)) {
        comp.addEventListener(10000,BinderImpl.ON_BIND_INIT,new EventListener<Event>(){
          @Override public void onEvent(          Event event) throws Exception {
            final Component comp=event.getTarget();
            comp.removeEventListener(BinderImpl.ON_BIND_INIT,this);
            if (comp.getPage() == null) {
              return;
            }
            final Binder innerBinder=BinderUtil.getBinder(comp);
            if (innerBinder != null) {
              return;
            }
            Binder binder=BinderUtil.getBinder(comp,true);
            if (binder == null) {
              return;
            }
            if (binder instanceof AnnotateBinder) {
              new AnnotateBinderHelper(binder).initComponentBindings(comp);
            }
            binder.loadComponent(comp,true);
            if (comp.getAttribute(BinderImpl.VAR) != null)             BinderUtil.markHandling(comp,binder);
          }
        }
);
        Events.postEvent(new Event(BinderImpl.ON_BIND_INIT,comp));
      }
    }
  }
}

Fixed version (ground truth):
public void afterComponentAttached(Component comp,Page page){
  if (comp.getDesktop() != null) {
    Binder selfBinder=BinderUtil.getBinder(comp);
    if (selfBinder == null) {
      Binder parentBinder=BinderUtil.getBinder(comp,true);
      if (parentBinder != null && (parentBinder instanceof BinderImpl)) {
        comp.addEventListener(10000,BinderImpl.ON_BIND_INIT,new EventListener<Event>(){
          @Override public void onEvent(          Event event) throws Exception {
            final Component comp=event.getTarget();
            comp.removeEventListener(BinderImpl.ON_BIND_INIT,this);
            if (comp.getPage() == null) {
              return;
            }
            final Binder innerBinder=BinderUtil.getBinder(comp);
            if (innerBinder != null) {
              return;
            }
            Binder binder=BinderUtil.getBinder(comp,true);
            if (binder == null) {
              return;
            }
            if (getExtension().isLifeCycleHandling(comp)) {
              return;
            }
            if (binder instanceof AnnotateBinder) {
              new AnnotateBinderHelper(binder).initComponentBindings(comp);
            }
            getExtension().markLifeCycleHandling(comp);
            binder.loadComponent(comp,true);
            if (comp.getAttribute(BinderImpl.VAR) != null)             BinderUtil.markHandling(comp,binder);
          }
        }
);
        Events.postEvent(new Event(BinderImpl.ON_BIND_INIT,comp));
      }
    }
  }
}